From 38b54047df94556eec5db012a80fb04e40ba3102 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Tue, 18 Feb 2025 14:16:18 +0000 Subject: [PATCH 01/31] !1 release-1.5.4 * release-1.5.4 --- VERSION | 2 +- arkoala/arkui-common/package.json | 8 ++++---- arkoala/arkui/package.json | 8 ++++---- arkoala/ets-plugin/package.json | 2 +- incremental/build-common/package.json | 7 +++++-- incremental/common/package.json | 4 ++-- incremental/compat/package.json | 2 +- incremental/compiler-plugin/package.json | 4 ++-- incremental/harness/package.json | 6 +++--- incremental/runtime/package.json | 8 ++++---- interop/package.json | 4 ++-- 11 files changed, 29 insertions(+), 26 deletions(-) diff --git a/VERSION b/VERSION index 1d5e9e0ba..63ebd3fe3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.3 \ No newline at end of file +1.5.4 \ No newline at end of file diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index eaf72b00b..a47ed8a21 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel", - "@koalaui/runtime": "1.5.3+devel", + "@koalaui/common": "1.5.4+devel", + "@koalaui/compat": "1.5.4+devel", + "@koalaui/runtime": "1.5.4+devel", "@koalaui/ets-tsc": "4.9.5-r4", "@koalaui/fast-arktsc": "next" } diff --git a/arkoala/arkui/package.json b/arkoala/arkui/package.json index d7f5d0a20..784d1062d 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/runtime": "1.5.3+devel", + "@koalaui/common": "1.5.4+devel", + "@koalaui/runtime": "1.5.4+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.3+devel", + "@koalaui/arkui-common": "1.5.4+devel", "@koalaui/ets-tsc": "4.9.5-r4", "media-query-parser": "^2.0.2", "commander": "10.0.1" diff --git a/arkoala/ets-plugin/package.json b/arkoala/ets-plugin/package.json index 167262437..229020c03 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", diff --git a/incremental/build-common/package.json b/incremental/build-common/package.json index 4fbd620d6..ae04b44d0 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,8 +1,11 @@ { "name": "@koalaui/build-common", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "files": [ "tsconfig.json" - ] + ], + "scripts": { + "compile": "" + } } \ No newline at end of file diff --git a/incremental/common/package.json b/incremental/common/package.json index 5eb5658c8..fed0d1e32 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -43,7 +43,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.3+devel" + "@koalaui/compat": "1.5.4+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/package.json b/incremental/compat/package.json index 62ad8d61d..97ea035f5 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/src/index.js", "types": "build/src/index.d.ts", diff --git a/incremental/compiler-plugin/package.json b/incremental/compiler-plugin/package.json index 8f29b81db..dccd66d64 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", @@ -10,7 +10,7 @@ ], "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel" + "@koalaui/common": "1.5.4+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/incremental/harness/package.json b/incremental/harness/package.json index 257c87491..fe784704c 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/harness", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "A harness library compatible with OHOS and ArkTS", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -35,8 +35,8 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel" + "@koalaui/common": "1.5.4+devel", + "@koalaui/compat": "1.5.4+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index e20c6e8fd..aa8066c4c 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -41,9 +41,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel", - "@koalaui/harness": "1.5.3+devel" + "@koalaui/common": "1.5.4+devel", + "@koalaui/compat": "1.5.4+devel", + "@koalaui/harness": "1.5.4+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/interop/package.json b/interop/package.json index 511ad48a3..cc1f72473 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.3+devel", + "version": "1.5.4+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,7 +57,7 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.3+devel" + "@koalaui/common": "1.5.4+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", -- Gitee From 469990480f04780d57831c6af1f91176f43bc4bc Mon Sep 17 00:00:00 2001 From: Roman Sedaikin Date: Tue, 18 Feb 2025 14:29:02 +0000 Subject: [PATCH 02/31] !2 EtsHarness log assertion. --- arkoala-arkts/arkui/src/Application.ts | 3 +- .../arkui/src/peers/ArkTestComponentPeer.ts | 2 +- .../ets-harness/src/EtsHarnessApplication.ts | 12 ++++++-- .../ets-harness/src/ets/pages/case1.ets | 1 - .../ets-harness/src/ets/pages/case2.ets | 1 - arkoala-arkts/ets-harness/src/loader.ts | 17 +++++++---- arkoala-arkts/ets-harness/src/test_entry.ts | 30 +++++++++++-------- arkoala-arkts/loader/src/loader.ts | 2 +- interop/src/cpp/common-interop.cc | 11 ++++--- interop/src/cpp/vmloader.cc | 21 ++++++++----- 10 files changed, 62 insertions(+), 38 deletions(-) diff --git a/arkoala-arkts/arkui/src/Application.ts b/arkoala-arkts/arkui/src/Application.ts index a60c065a0..afa0423cd 100644 --- a/arkoala-arkts/arkui/src/Application.ts +++ b/arkoala-arkts/arkui/src/Application.ts @@ -306,7 +306,7 @@ export class Application { } // TODO: make [emitEvent] suitable to get string argument - emitEvent(type: int32, target: int32, arg0: int32, arg1: int32) { + emitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string { const node = PeerNode.findPeerByNativeId(target) if (node != undefined) { try { @@ -332,6 +332,7 @@ export class Application { InteropNativeModule._NativeLog("emitEvent error: " + errorInfo(error as Object)) } } + return "0" } static createApplication(appUrl: string, params: string, useNativeLog: boolean): Application { diff --git a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts index 431e97dff..3a7ba1c6c 100644 --- a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts @@ -43,7 +43,7 @@ export class ArkTestComponentPeer extends ArkCommonMethodPeer { this.onChangeCallback = callback } logAttribute(message: string): void { - InteropNativeModule._AppendGroupedLog(1, message) + InteropNativeModule._AppendGroupedLog(0, message + "\n") } } export interface ArkTestComponentAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts b/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts index 38bf4ba7c..83016e900 100644 --- a/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts +++ b/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts @@ -113,8 +113,9 @@ export class EtsHarnessApplication { return true } - emitEvent(type: int32, target: int32, arg0: int32, arg1: int32) { + emitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string { const node = PeerNode.findPeerByNativeId(target) + let result = "0" switch (type) { case 1: { if (node != undefined) { @@ -124,11 +125,15 @@ export class EtsHarnessApplication { break } case 2: { - UserView.startNativeLog(1) + UserView.startNativeLog(0) break; } case 3: { - UserView.stopNativeLog(1) + UserView.stopNativeLog(0) + break; + } + case 4: { + result = UserView.getNativeLog(0) break; } default: { @@ -136,6 +141,7 @@ export class EtsHarnessApplication { break; } } + return result } updateStates(manager: StateManager, root: ComputableState ) { diff --git a/arkoala-arkts/ets-harness/src/ets/pages/case1.ets b/arkoala-arkts/ets-harness/src/ets/pages/case1.ets index 8594a5214..98f08cc78 100644 --- a/arkoala-arkts/ets-harness/src/ets/pages/case1.ets +++ b/arkoala-arkts/ets-harness/src/ets/pages/case1.ets @@ -5,7 +5,6 @@ struct Case1 { build() { TestComponent({ id: 42 }).onChange(() => { this.x++ - console.log("Case1 - value:" + this.x) }) .log("Case1 - value:" + this.x) } diff --git a/arkoala-arkts/ets-harness/src/ets/pages/case2.ets b/arkoala-arkts/ets-harness/src/ets/pages/case2.ets index 30529d8ff..392f423b7 100644 --- a/arkoala-arkts/ets-harness/src/ets/pages/case2.ets +++ b/arkoala-arkts/ets-harness/src/ets/pages/case2.ets @@ -5,7 +5,6 @@ struct Case2 { build() { TestComponent({ id: 42 }).onChange(() => { this.x-- - console.log("Case2 - value:" + this.x) }) .log("Case2 - value:" + this.x) } diff --git a/arkoala-arkts/ets-harness/src/loader.ts b/arkoala-arkts/ets-harness/src/loader.ts index 586a48ad7..4fabe956a 100644 --- a/arkoala-arkts/ets-harness/src/loader.ts +++ b/arkoala-arkts/ets-harness/src/loader.ts @@ -26,7 +26,7 @@ export interface LoaderOps { } export interface NativeControl extends LoaderOps { - _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): void + _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string _RestartWith(page: string): void } @@ -46,20 +46,27 @@ export function nativeModule(): NativeControl { return theModule } +export enum TaskType { + OnChange = 1, + StartLog = 2, + StopLog = 3, + GetLog = 4, +} + export class AppControl { getLog(): string { - return "" + return nativeModule()._EmitEvent(TaskType.GetLog, -1, 0, 0) } - emitTask(type: int32, target: int32, arg1: int32, arg2: int32): AppControl { + emitTask(type: int32, target: int32, arg1: int32 = 0, arg2: int32 = 0): AppControl { nativeModule()._EmitEvent(type, target, arg1, arg2) return this } start(): AppControl { - nativeModule()._EmitEvent(2, -1, 0, 0) + nativeModule()._EmitEvent(TaskType.StartLog, -1, 0, 0) return this } stop(): AppControl { - nativeModule()._EmitEvent(3, -1, 0, 0) + nativeModule()._EmitEvent(TaskType.StopLog, -1, 0, 0) return this } nextFrame(): AppControl { diff --git a/arkoala-arkts/ets-harness/src/test_entry.ts b/arkoala-arkts/ets-harness/src/test_entry.ts index ec112fe5e..47cd0f156 100644 --- a/arkoala-arkts/ets-harness/src/test_entry.ts +++ b/arkoala-arkts/ets-harness/src/test_entry.ts @@ -1,33 +1,37 @@ import { Assert } from "@koalaui/harness" -import { AppControl } from "./loader" +import { AppControl, TaskType } from "./loader" export function entry(control: AppControl) { suite("Case1", () => { test("StateChange:Increment", () => { + const expected = "Case1 - value:1\nCase1 - value:2\nCase1 - value:3\n" + const componentId = 42 // id from Case1.TestComponent // onChange - control + const actual = control .loadPage("Case1") .start() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() .stop() - let x = 3 - Assert.equal(x, 3, "StateChange test is failed!\n expected: " + 3 + "\ncurrent: " + x) + .getLog() + Assert.equal(expected, actual, "StateChange: Case1 test is failed!") }) }) suite("Case2", () => { test("StateChange:Decrement", () => { + const expected = "Case2 - value:-1\nCase2 - value:-2\nCase2 - value:-3\n" + const componentId = 42 // id from Case2.TestComponent // onChange - control + const actual = control .loadPage("Case2") .start() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() .stop() - let x = -3 - Assert.equal(x, -3, "StateChange test is failed!\n expected: " + (-3) + "\ncurrent: " + x) + .getLog() + Assert.equal(expected, actual, "StateChange: Case2 test is failed!") }) }) } diff --git a/arkoala-arkts/loader/src/loader.ts b/arkoala-arkts/loader/src/loader.ts index 8936e229e..f66b0a977 100644 --- a/arkoala-arkts/loader/src/loader.ts +++ b/arkoala-arkts/loader/src/loader.ts @@ -46,7 +46,7 @@ export interface NativeControl extends LoaderOps { _SetVsyncCallback(pipeline: KPointer): void _VSyncAwait(pipeline: KPointer): Promise _UnblockVsyncWait(pipeline: KPointer): void - _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): void + _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string } function callCallback(id: int32, args: KUint8ArrayPtr, length: int32): int32 { diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index c522cc84a..cd3146017 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -259,7 +259,7 @@ struct ForeignVMContext { typedef KInt (*LoadVirtualMachine_t)(KInt vmKind, const char* classPath, const char* libraryPath, const struct ForeignVMContext* foreignVM); typedef KNativePointer (*StartApplication_t)(const char* appUrl, const char* appParams); typedef KBoolean (*RunApplication_t)(const KInt arg0, const KInt arg1); -typedef void (*EmitEvent_t)(const KInt type, const KInt target, const KInt arg0, const KInt arg1); +typedef const char* (*EmitEvent_t)(const KInt type, const KInt target, const KInt arg0, const KInt arg1); typedef void (*RestartWith_t)(const char* page); void* getImpl(const char* path, const char* name) { @@ -310,12 +310,15 @@ KBoolean impl_RunApplication(const KInt arg0, const KInt arg1) { } KOALA_INTEROP_2(RunApplication, KBoolean, KInt, KInt) -void impl_EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { +KStringPtr impl_EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { static EmitEvent_t impl = nullptr; if (!impl) impl = reinterpret_cast(getImpl(nullptr, "EmitEvent")); - impl(type, target, arg0, arg1); + const char* out = impl(type, target, arg0, arg1); + auto size = std::string(out).size(); + KStringPtr result(out, size, true); + return result; } -KOALA_INTEROP_V4(EmitEvent, KInt, KInt, KInt, KInt) +KOALA_INTEROP_4(EmitEvent,KStringPtr, KInt, KInt, KInt, KInt) void impl_RestartWith(const KStringPtr& page) { static RestartWith_t impl = nullptr; diff --git a/interop/src/cpp/vmloader.cc b/interop/src/cpp/vmloader.cc index d409a8780..e7eda0d42 100644 --- a/interop/src/cpp/vmloader.cc +++ b/interop/src/cpp/vmloader.cc @@ -310,7 +310,7 @@ const AppInfo javaAppInfo = { "enter", "(IIJ)Z", "emitEvent", - "(IIII)V", + "(IIII)Ljava/lang/String;", }; #endif @@ -324,7 +324,7 @@ const AppInfo pandaAppInfo = { "enter", "IIJ:Z", "emitEvent", - "IIII:V", + "IIII:Lstd/core/String;", }; const AppInfo harnessAppInfo = { "@koalaui/ets-harness/src/EtsHarnessApplication/EtsHarnessApplication", @@ -335,7 +335,7 @@ const AppInfo harnessAppInfo = { "enter", "II:Z", "emitEvent", - "IIII:V", + "IIII:Lstd/core/String;", "restartWith", "Lstd/core/String;:V" }; @@ -509,15 +509,15 @@ extern "C" DLL_EXPORT KBoolean RunApplication(const KInt arg0, const KInt arg1) return 1; } -extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { +extern "C" DLL_EXPORT const char* EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { #ifdef KOALA_JNI if (g_vmEntry.vmKind == JAVA_VM_KIND) { JNIEnv* jEnv = (JNIEnv*)(g_vmEntry.env); if (!g_vmEntry.emitEvent) { LOGE("Cannot find emitEvent method"); - return; + return "-1"; } - jEnv->CallVoidMethod( + auto rv = (jstring)jEnv->CallObjectMethod( (jobject)(g_vmEntry.app), (jmethodID)(g_vmEntry.emitEvent), (jint)type, @@ -529,6 +529,8 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K jEnv->ExceptionDescribe(); jEnv->ExceptionClear(); } + const char *result = jEnv->GetStringUTFChars(rv, 0); + return result; } #endif #ifdef KOALA_ETS_NAPI @@ -536,9 +538,9 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K EtsEnv* etsEnv = (EtsEnv*)(g_vmEntry.env); if (!g_vmEntry.emitEvent) { LOGE("Cannot find emitEvent method"); - return; + return "-1"; } - etsEnv->CallVoidMethod( + auto rv = (ets_string)etsEnv->CallObjectMethod( (ets_object)(g_vmEntry.app), (ets_method)(g_vmEntry.emitEvent), (ets_int)type, @@ -551,8 +553,11 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K etsEnv->ErrorDescribe(); etsEnv->ErrorClear(); } + const char *result = etsEnv->GetStringUTFChars(rv, 0); + return result; } #endif + return "-1"; } extern "C" DLL_EXPORT void RestartWith(const char* page) { -- Gitee From 2605710849691dada76faa1cb2e8b31d75e4866f Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Tue, 18 Feb 2025 15:15:13 +0000 Subject: [PATCH 03/31] !3 Fix ANI * Fix Java and ANI typos --- interop/src/cpp/ani/convertors-ani.h | 10 +++++----- interop/src/cpp/common-interop.cc | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/interop/src/cpp/ani/convertors-ani.h b/interop/src/cpp/ani/convertors-ani.h index 6ca8e43d9..c6aaaf46c 100644 --- a/interop/src/cpp/ani/convertors-ani.h +++ b/interop/src/cpp/ani/convertors-ani.h @@ -1367,11 +1367,11 @@ void getKoalaEtsNapiCallbackDispatcher(ani_class* clazz, ani_method* method); #else #define KOALA_INTEROP_CALL_VOID(venv, id, length, args) -#define KOALA_INTEROP_CALL_INT(venv, id, length, args) -#define KOALA_INTEROP_CALL_VOID_INTS32(venv, id, argc, args) -#define KOALA_INTEROP_CALL_INT_INTS32(venv, id, argc, args) -#define KOALA_INTEROP_THROW(vmContext, object, ...) -#define KOALA_INTEROP_THROW_STRING(vmContext, message, ...) +#define KOALA_INTEROP_CALL_INT(venv, id, length, args) { return 0; } +#define KOALA_INTEROP_CALL_VOID_INTS32(venv, id, argc, args) { return; } +#define KOALA_INTEROP_CALL_INT_INTS32(venv, id, argc, args) { return 0; } +#define KOALA_INTEROP_THROW(vmContext, object, ...) { return __VA_ARGS__; } +#define KOALA_INTEROP_THROW_STRING(vmContext, message, ...) { return __VA_ARGS__; } #endif #endif // KOALA_ETS_NAPI diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index cd3146017..f7f5b74a6 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -310,7 +310,7 @@ KBoolean impl_RunApplication(const KInt arg0, const KInt arg1) { } KOALA_INTEROP_2(RunApplication, KBoolean, KInt, KInt) -KStringPtr impl_EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { +KStringPtr impl_EmitEvent(KVMContext vmContext, KInt type, KInt target, KInt arg0, KInt arg1) { static EmitEvent_t impl = nullptr; if (!impl) impl = reinterpret_cast(getImpl(nullptr, "EmitEvent")); const char* out = impl(type, target, arg0, arg1); @@ -318,7 +318,7 @@ KStringPtr impl_EmitEvent(const KInt type, const KInt target, const KInt arg0, c KStringPtr result(out, size, true); return result; } -KOALA_INTEROP_4(EmitEvent,KStringPtr, KInt, KInt, KInt, KInt) +KOALA_INTEROP_CTX_4(EmitEvent, KStringPtr, KInt, KInt, KInt, KInt) void impl_RestartWith(const KStringPtr& page) { static RestartWith_t impl = nullptr; -- Gitee From c9d8a7335bf2d2367dfc4e3b724ae34efb4a0e73 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Tue, 18 Feb 2025 15:49:58 +0000 Subject: [PATCH 04/31] !4 release-1.5.5 * release-1.5.5 --- VERSION | 2 +- arkoala/arkui-common/package.json | 8 ++++---- arkoala/arkui/package.json | 8 ++++---- arkoala/ets-plugin/package.json | 2 +- incremental/build-common/package.json | 2 +- incremental/common/package.json | 4 ++-- incremental/compat/package.json | 2 +- incremental/compiler-plugin/package.json | 4 ++-- incremental/harness/package.json | 6 +++--- incremental/runtime/package.json | 8 ++++---- interop/package.json | 4 ++-- 11 files changed, 25 insertions(+), 25 deletions(-) diff --git a/VERSION b/VERSION index 63ebd3fe3..5ebba4f08 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.4 \ No newline at end of file +1.5.5 \ No newline at end of file diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index a47ed8a21..f67bcb9d5 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.4+devel", - "@koalaui/compat": "1.5.4+devel", - "@koalaui/runtime": "1.5.4+devel", + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/runtime": "1.5.5+devel", "@koalaui/ets-tsc": "4.9.5-r4", "@koalaui/fast-arktsc": "next" } diff --git a/arkoala/arkui/package.json b/arkoala/arkui/package.json index 784d1062d..55c80acfa 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.4+devel", - "@koalaui/runtime": "1.5.4+devel", + "@koalaui/common": "1.5.5+devel", + "@koalaui/runtime": "1.5.5+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.4+devel", + "@koalaui/arkui-common": "1.5.5+devel", "@koalaui/ets-tsc": "4.9.5-r4", "media-query-parser": "^2.0.2", "commander": "10.0.1" diff --git a/arkoala/ets-plugin/package.json b/arkoala/ets-plugin/package.json index 229020c03..aa39e9813 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", diff --git a/incremental/build-common/package.json b/incremental/build-common/package.json index ae04b44d0..6c39c39b5 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/build-common", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "files": [ "tsconfig.json" diff --git a/incremental/common/package.json b/incremental/common/package.json index fed0d1e32..5a948a90b 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -43,7 +43,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.4+devel" + "@koalaui/compat": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/package.json b/incremental/compat/package.json index 97ea035f5..81a3dea9b 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/src/index.js", "types": "build/src/index.d.ts", diff --git a/incremental/compiler-plugin/package.json b/incremental/compiler-plugin/package.json index dccd66d64..a81d998ee 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", @@ -10,7 +10,7 @@ ], "keywords": [], "dependencies": { - "@koalaui/common": "1.5.4+devel" + "@koalaui/common": "1.5.5+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/incremental/harness/package.json b/incremental/harness/package.json index fe784704c..399333031 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/harness", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "A harness library compatible with OHOS and ArkTS", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -35,8 +35,8 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.4+devel", - "@koalaui/compat": "1.5.4+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index aa8066c4c..a0f665056 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -41,9 +41,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.4+devel", - "@koalaui/compat": "1.5.4+devel", - "@koalaui/harness": "1.5.4+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/interop/package.json b/interop/package.json index cc1f72473..7f0af0df8 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.4+devel", + "version": "1.5.5+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,7 +57,7 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.4+devel" + "@koalaui/common": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", -- Gitee From 9ba76b51b1d6186df14906625e9afee6fd870fd9 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Tue, 18 Feb 2025 22:24:23 +0000 Subject: [PATCH 05/31] !6 After Checker: Builder Lambda Transformation + Struct Transformation The commit author is shijiakai2@huawei.com --- arkoala-arkts/arkui/src/sts/arkui.sts | 2 +- arkoala-arkts/libarkts/native/src/bridges.cc | 9 + .../libarkts/plugins/input/library.sts | 2 + arkoala-arkts/libarkts/plugins/input/main.sts | 2 +- .../libarkts/plugins/src/arkts-utils.ts | 28 +++ .../plugins/src/builder-lambda-transformer.ts | 185 ++++++++++++------ .../plugins/src/checked-stage-plugin.ts | 10 +- .../plugins/src/component-transformer.ts | 5 +- .../plugins/src/struct-transformer.ts | 178 +++++++++++++++++ arkoala-arkts/libarkts/plugins/tsconfig.json | 2 + .../libarkts/src/Es2pandaNativeModule.ts | 40 ++++ .../src/arkts-api/factory/nodeFactory.ts | 21 ++ .../src/arkts-api/factory/nodeTests.ts | 21 ++ arkoala-arkts/libarkts/src/arkts-api/types.ts | 148 +++++++++++++- .../src/arkts-api/utilities/public.ts | 3 +- .../libarkts/src/arkts-api/visitor.ts | 47 +++++ arkoala-arkts/trivial/user/src/sts/hello.sts | 2 +- 17 files changed, 630 insertions(+), 75 deletions(-) create mode 100644 arkoala-arkts/libarkts/plugins/src/arkts-utils.ts create mode 100644 arkoala-arkts/libarkts/plugins/src/struct-transformer.ts diff --git a/arkoala-arkts/arkui/src/sts/arkui.sts b/arkoala-arkts/arkui/src/sts/arkui.sts index 69aa97ece..2998691be 100644 --- a/arkoala-arkts/arkui/src/sts/arkui.sts +++ b/arkoala-arkts/arkui/src/sts/arkui.sts @@ -31,7 +31,7 @@ export abstract class StructBase { if (builder !== undefined) builder(instance) instance.build() } - abstract build() + build() {} } export enum Color { diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index 4250b7908..1ee0b055d 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -50,6 +50,15 @@ KNativePointer impl_AnnotationAllowedAnnotations(KNativePointer contextPtr, KNat } KOALA_INTEROP_3(AnnotationAllowedAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) +KNativePointer impl_AnnotationAllowedAnnotationsConst(KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer returnLen) { + auto context = reinterpret_cast(contextPtr); + auto node = reinterpret_cast(nodePtr); + std::size_t params_len = 0; + auto annotations = GetImpl()->AnnotationAllowedAnnotationsConst(context, node, ¶ms_len); + return new std::vector(annotations, annotations + params_len); +} +KOALA_INTEROP_3(AnnotationAllowedAnnotationsConst, KNativePointer, KNativePointer, KNativePointer, KNativePointer) + KNativePointer impl_AstNodeVariableConst(KNativePointer contextPtr, KNativePointer nodePtr) { auto context = reinterpret_cast(contextPtr); auto node = reinterpret_cast(nodePtr); diff --git a/arkoala-arkts/libarkts/plugins/input/library.sts b/arkoala-arkts/libarkts/plugins/input/library.sts index 9d7a1f0e1..84aa6aac1 100644 --- a/arkoala-arkts/libarkts/plugins/input/library.sts +++ b/arkoala-arkts/libarkts/plugins/input/library.sts @@ -1 +1,3 @@ export @interface Component {} + +export @interface memo {} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/plugins/input/main.sts b/arkoala-arkts/libarkts/plugins/input/main.sts index bff61711a..0a64cf195 100644 --- a/arkoala-arkts/libarkts/plugins/input/main.sts +++ b/arkoala-arkts/libarkts/plugins/input/main.sts @@ -1,4 +1,4 @@ -import { Component } from "./library" +import { Component, memo } from "./library" @interface BuilderLambda { value: string diff --git a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts new file mode 100644 index 000000000..549790fd7 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -0,0 +1,28 @@ +import * as arkts from "@koalaui/libarkts" + +export function annotation(name: string): arkts.AnnotationUsageIr { + const ident: arkts.Identifier = arkts.factory.createIdentifier(name).setAnnotationUsage(); + const annotation: arkts.AnnotationUsageIr = arkts.factory.createAnnotationUsageIr(ident); + + annotation.modifiers = arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_ANNOTATION_USAGE; + ident.parent = annotation; + + return annotation; +} + +export function mangle(value: string): string { + return `__${value}`; +} + +export function backingField(originalName: string): string { + return mangle(`backing_${originalName}`); +} + +export function filterDefined(value: (T | undefined)[]): T[] { + return value.filter((it: T | undefined): it is T => it != undefined); +} + +export function collect(...value: (ReadonlyArray | T | undefined)[]): T[] { + const empty: (T | undefined)[] = [] + return filterDefined(empty.concat(...value)) +} diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 6be93bccd..e65728dba 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -31,7 +31,7 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar arkts.factory.createIdentifier( builderLambdaInstanceName, // TODO: it should be the return type of the function annotated with the @BuilderLambda - typeName ? arkts.factory.createTypeReference( + typeName ? arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier( typeName ) @@ -45,7 +45,7 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar param ], // TODO: it should be the return type of the function annotated with the @BuilderLambda - typeName ? arkts.factory.createTypeReference( + typeName ? arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier( typeName ) @@ -190,75 +190,142 @@ function builderLambdaReplace(leaf: arkts.CallExpression): arkts.Identifier|arkt return undefined } -export class BuilderLambdaTransformer extends AbstractVisitor { - visitor(beforeChildren: arkts.AstNode): arkts.AstNode { - const node = this.visitEachChild(beforeChildren) +function builderLambdaBodyRewrite(node: arkts.AstNode): arkts.AstNode { + if (!arkts.isArrowFunctionExpression(node)) return node; - if (!arkts.isCallExpression(node)) { - return node - } + const scriptFunc: arkts.ScriptFunction = node.scriptFunction; + if (!scriptFunc || !scriptFunc.body) return node; - if (true - && arkts.isMemberExpression(node.parent) - && arkts.isIdentifier(node.parent.property) - && arkts.isCallExpression(node.parent.parent) + const body: arkts.BlockStatement = scriptFunc.body; + const statements: arkts.AstNode[] = body.statements.map((statement: arkts.AstNode) => { + if ( + arkts.isExpressionStatement(statement) + && statement.expression + && arkts.isCallExpression(statement.expression) ) { - return node + return transformBuilderLambda(statement.expression); } + return statement; + }); + const updateBody = arkts.factory.updateBlock(body, statements); + + const signature: arkts.FunctionSignature = arkts.FunctionSignature.create(undefined, [], undefined); + const updateFunc: arkts.ScriptFunction = arkts.factory.updateScriptFunction( + scriptFunc, + updateBody, + signature, // TODO: Cannot get signature from original ScriptFunction node + scriptFunc.scriptFunctionFlags, + scriptFunc.modifiers, + false, + undefined + ); - let instanceCalls: arkts.CallExpression[] = [] - let leaf: arkts.CallExpression = node + return arkts.factory.updateArrowFunction(node, updateFunc); +} - while (true - && arkts.isMemberExpression(leaf.expression) - && arkts.isIdentifier(leaf.expression.property) - && arkts.isCallExpression(leaf.expression.object) - ) { - instanceCalls.push( - arkts.factory.createCallExpression( - leaf.expression.property, - undefined, - leaf.arguments - ) - ) - leaf = leaf.expression.object - } +function transformBuilderLambda(node: arkts.CallExpression): arkts.AstNode { + let instanceCalls: arkts.CallExpression[] = [] + let leaf: arkts.CallExpression = node - const replace = builderLambdaReplace(leaf) - if (replace === undefined) { - return node - } - - instanceCalls = instanceCalls.reverse() - let lambdaBody: arkts.Identifier | arkts.CallExpression = arkts.factory.createIdentifier(builderLambdaInstanceName) - instanceCalls.forEach((call)=> { - if (!arkts.isIdentifier(call.expression)) { - throw new Error('call expression should be identifier') - } - lambdaBody = arkts.factory.createCallExpression( - arkts.factory.createMemberExpression( - lambdaBody, - call.expression, - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ), + while (true + && arkts.isMemberExpression(leaf.expression) + && arkts.isIdentifier(leaf.expression.property) + && arkts.isCallExpression(leaf.expression.object) + ) { + instanceCalls.push( + arkts.factory.createCallExpression( + leaf.expression.property, undefined, - call.arguments + leaf.arguments ) - }) + ) + leaf = leaf.expression.object + } - const typeName = builderLambdaTypeName(leaf) - const lambdaArg = getLambdaArg(lambdaBody, typeName) + const replace = builderLambdaReplace(leaf) + if (replace === undefined) { + return node + } - return arkts.factory.updateCallExpression( - node, - replace, + instanceCalls = instanceCalls.reverse() + let lambdaBody: arkts.Identifier | arkts.CallExpression = arkts.factory.createIdentifier(builderLambdaInstanceName) + instanceCalls.forEach((call)=> { + if (!arkts.isIdentifier(call.expression)) { + throw new Error('call expression should be identifier') + } + lambdaBody = arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + lambdaBody, + call.expression, + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), undefined, - [ - lambdaArg, - ...leaf.arguments - ] + call.arguments ) + }) + + const typeName = builderLambdaTypeName(leaf) + const lambdaArg = getLambdaArg(lambdaBody, typeName) + + let args: arkts.AstNode[] = leaf.arguments.length < 3 + ? leaf.arguments as arkts.AstNode[] + : [ + ...leaf.arguments.slice(0, 2), + builderLambdaBodyRewrite(leaf.arguments.at(2)!), + ...leaf.arguments.slice(3) // Currently, this is never reached since the maximum length of arguments is 3 + ]; + + return arkts.factory.updateCallExpression( + node, + replace, + undefined, + [ + lambdaArg, + ...args + ] + ) +} + +function isBuilderLambda(node: arkts.AstNode): boolean { + const builderLambda: arkts.AstNode | undefined = _getDeclForBuilderLambda(node); + return !!builderLambda; +} + +// TODO: temporary solution for get declaration of a builder lambda +function _getDeclForBuilderLambda(node: arkts.AstNode): arkts.AstNode | undefined { + if (!node || !arkts.isCallExpression(node)) return undefined; + + if (node.expression && arkts.isMemberExpression(node.expression)) { + const _node: arkts.MemberExpression = node.expression; + if (_node.property && arkts.isIdentifier(_node.property) && _node.property.name === "$_instantiate") { + return node; + } + if (_node.object && arkts.isCallExpression(_node.object)) { + return _getDeclForBuilderLambda(_node.object); + } + } + + return undefined; +} + +export class BuilderLambdaTransformer extends AbstractVisitor { + visitEachChild(node: arkts.AstNode): arkts.AstNode { + if (arkts.isCallExpression(node) && isBuilderLambda(node)) { + return node; + } + + return super.visitEachChild(node); + } + + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + const node = this.visitEachChild(beforeChildren) + + if (arkts.isCallExpression(node) && isBuilderLambda(node)) { + return transformBuilderLambda(node); + } + + return node; } } diff --git a/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts b/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts index ec0578ffd..c7b9f1463 100644 --- a/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts +++ b/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts @@ -2,6 +2,7 @@ import * as ts from "@koalaui/libarkts" import { PrintVisitor } from './print-visitor' import { BuilderLambdaTransformer } from './builder-lambda-transformer' import { ComponentTransformer } from './component-transformer' +import { StructTransformer } from './struct-transformer' export interface TransformerOptions { trace?: boolean, @@ -11,6 +12,13 @@ export default function exampleTransformer( userPluginOptions?: TransformerOptions ) { return (node: ts.EtsScript) => { - return new BuilderLambdaTransformer().visitor(node) + const builderLambdaTransformer = new BuilderLambdaTransformer(); + const structTransformer = new StructTransformer(); + + let script: ts.EtsScript = node; + script = builderLambdaTransformer.visitor(script) as ts.EtsScript; + script = structTransformer.visitor(script) as ts.EtsScript; + + return script; } } diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index eb9dea774..10b2a6d0e 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -71,6 +71,7 @@ export class ComponentTransformer extends AbstractVisitor { processComponent(node: arkts.ClassDeclaration | arkts.StructDeclaration): arkts.ClassDeclaration { const className = node.definition.name.name + arkts.GlobalInfo.getInfoInstance().add(className); this.context.componentNames.push(className) const newDefinition = arkts.factory.updateClassDefinition( @@ -85,10 +86,10 @@ export class ComponentTransformer extends AbstractVisitor { arkts.factory.createIdentifier('StructBase'), arkts.factory.createTSTypeParameterInstantiation( [ - arkts.factory.createTypeReference( + arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier(className) ), - arkts.factory.createTypeReference( + arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier(`__Options_${className}`) ), ] diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts new file mode 100644 index 000000000..0959ea80a --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -0,0 +1,178 @@ +import * as arkts from "@koalaui/libarkts" +import { AbstractVisitor } from "./AbstractVisitor"; +import { annotation } from "./arkts-utils"; + +function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { + const structCollection: Set = arkts.GlobalInfo.getInfoInstance().getStructCollection(); + if (structCollection.has(node.definition.name.name)) { + return true; + } + return false; +} + +function isKnownMethodDefinition(method: arkts.MethodDefinition, name: string): boolean { + if (!method || !arkts.isMethodDefinition(method)) return false; + + // For now, we only considered matched method name. + const isNameMatched: boolean = method.name?.name === name; + return isNameMatched; +} + +function createStyleArgInBuildMethod(className: string): arkts.ETSParameterExpression { + const styleLambdaParams: arkts.ETSParameterExpression = arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'instance', + arkts.factory.createIdentifier(className), + ), + undefined + ); + + const styleLambda: arkts.ETSFunctionType = arkts.factory.createFunctionType( + arkts.FunctionSignature.create( + undefined, + [ + styleLambdaParams + ], + arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID) + ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW + ); + + const optionalStyleLambda: arkts.ETSUnionType = arkts.factory.createUnionType([ + styleLambda, + arkts.factory.createUndefinedLiteral() + ]); + + const styleParam: arkts.Identifier = arkts.factory.createIdentifier( + 'style', + optionalStyleLambda + ); + + const param = arkts.factory.createParameterDeclaration(styleParam, undefined); + param.annotations = [annotation("memo")]; + + return param; +} + +function createContentArgInBuildMethod(): arkts.ETSParameterExpression { + const contentLambda: arkts.ETSFunctionType = arkts.factory.createFunctionType( + arkts.FunctionSignature.create( + undefined, + [], + arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID) + ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW + ); + + const contentParam: arkts.Identifier = arkts.factory.createIdentifier( + 'content', + contentLambda + ); + + const param = arkts.factory.createParameterDeclaration(contentParam, undefined); + param.annotations = [annotation("memo")]; + + return param; +} + +function createInitializerArgInBuildMethod(className: string): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'initializers', + arkts.factory.createTypeReferenceFromId( + arkts.factory.createIdentifier(`__Options_${className}`) + ) + ).setOptional(true), + undefined + ); +} + +function prepareArgsInBuildMethod(className: string): arkts.ETSParameterExpression[] { + return [ + createStyleArgInBuildMethod(className), + createContentArgInBuildMethod(), + createInitializerArgInBuildMethod(className) + ]; +} + +function transformBuildMethod( + method: arkts.MethodDefinition, + className: string +): arkts.MethodDefinition { + const updateKey: arkts.Identifier = arkts.factory.createIdentifier( + '_build' + ); + + const scriptFunction: arkts.ScriptFunction = method.scriptFunction; + + const params: arkts.ETSParameterExpression[] = prepareArgsInBuildMethod(className); + + const signature: arkts.FunctionSignature = arkts.FunctionSignature.create( + undefined, + params, + undefined + ); + const updateScriptFunction = arkts.factory.createScriptFunction( + scriptFunction.body, + signature, + scriptFunction.scriptFunctionFlags, + scriptFunction.modifiers, + false, + undefined + ); + + updateScriptFunction.annotations = [annotation("memo")]; + + // TODO: Currently, just return method itself. Remove this once createMethodDefinition is ready. + return arkts.factory.createMethodDefinition( + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, + updateKey, + arkts.factory.createFunctionExpression(updateScriptFunction), + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PROTECTED, + false + ); +} + +function tranformClassMembers(node: arkts.ClassDeclaration): arkts.ClassDeclaration { + const definition: arkts.ClassDefinition = node.definition; + const className: string = node.definition.name.name; + + const updateMembers: arkts.AstNode[] = definition.members.map((member: arkts.AstNode) => { + if (arkts.isMethodDefinition(member) && isKnownMethodDefinition(member, "constructor")) { + return arkts.factory.createMethodDefinition( + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_CONSTRUCTOR, + member.name, + arkts.factory.createFunctionExpression(member.scriptFunction), + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_CONSTRUCTOR, + false + ); + } + if (arkts.isMethodDefinition(member) && isKnownMethodDefinition(member, "build")) { + return transformBuildMethod(member, className); + } + + return member; + }); + + const updateClassDef: arkts.ClassDefinition = arkts.factory.updateClassDefinition( + definition, + definition.name, + updateMembers, + definition.modifiers, + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, + definition.typeParamsDecl, + definition.superClass + ); + + return arkts.factory.updateClassDeclaration(node, updateClassDef); +} + +export class StructTransformer extends AbstractVisitor { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + const node = this.visitEachChild(beforeChildren); + if (arkts.isClassDeclaration(node) && isCustomComponentClass(node)) { + return tranformClassMembers(node); + } + return node; + } +} diff --git a/arkoala-arkts/libarkts/plugins/tsconfig.json b/arkoala-arkts/libarkts/plugins/tsconfig.json index d0ce6f222..a460c9048 100644 --- a/arkoala-arkts/libarkts/plugins/tsconfig.json +++ b/arkoala-arkts/libarkts/plugins/tsconfig.json @@ -14,5 +14,7 @@ "./src/print-visitor.ts", "./src/builder-lambda-transformer.ts", "./src/component-transformer.ts", + "./src/struct-transformer.ts", + "./src/arkts-utils.ts", ] } diff --git a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts index e62809f69..f3fe48606 100644 --- a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts @@ -53,6 +53,9 @@ export class Es2pandaNativeModule { _AnnotationAllowedAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { throw new Error("Not implemented") } + _AnnotationAllowedAnnotationsConst(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } _AstNodeRebind(context: KPtr, node: KPtr): void { throw new Error("Not implemented") } @@ -164,6 +167,9 @@ export class Es2pandaNativeModule { _ScriptFunctionBody(context: KPtr, node: KPtr): KPtr { throw new Error("Not implemented") } + _ScriptFunctionAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } _ScriptFunctionSetIdent(context: KPtr, ast: KPtr, id: KPtr): KPtr { throw new Error("Not implemented") } @@ -176,6 +182,9 @@ export class Es2pandaNativeModule { _ScriptFunctionSetScope(context: KPtr, ast: KPtr, scope: KPtr): KPtr { throw new Error("Not implemented") } + _ScriptFunctionSetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _ScriptFunctionDeclareConst(context: KPtr, node: KPtr): KBoolean { throw new Error("Not implemented") } @@ -191,6 +200,12 @@ export class Es2pandaNativeModule { _ScriptFunctionAddFlag(context: KPtr, node: KPtr, flags: KInt): void { throw new Error("Not implemented") } + _ClassPropertyAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } + _ClassPropertySetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _UpdateBlockStatement(context: KPtr, original: KPtr, statementList: KPtrArray, statementListLen: KInt): KPtr { throw new Error("Not implemented") } @@ -392,6 +407,12 @@ export class Es2pandaNativeModule { _ETSParameterExpressionIdent(context: KPtr, node: KPtr): KPtr { throw new Error("Not implemented") } + _ETSParameterExpressionAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } + _ETSParameterExpressionSetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _CreateTSTypeParameterDeclaration(context: KPtr, params: KPtrArray, paramsLen: KInt, requiredParams: KInt): KPtr { throw new Error("Not implemented") } @@ -551,6 +572,25 @@ export class Es2pandaNativeModule { _DeclarationFromIdentifier(context: KPtr, identifier: KPtr): KPtr { throw new Error("Not implemented") } + _IsTSInterfaceDeclaration(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsAnnotationDeclaration(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsAnnotationUsage(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsClassProperty(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _CreateAnnotationUsageIr(context: KPtr, ast: KPtr): KPtr { + throw new Error("Not implemented") + } } export function initEs2panda(): Es2pandaNativeModule { diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index ff36ada6f..778cb68cd 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -15,12 +15,14 @@ import { updateNodeByNode } from "../utilities/private" import { + AnnotationUsageIr, ArrowFunctionExpression, BinaryExpression, BlockStatement, CallExpression, ClassDeclaration, ClassDefinition, + ClassProperty, ETSFunctionType, EtsImportDeclaration, ETSParameterExpression, @@ -46,6 +48,7 @@ import { TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, + UndefinedLiteral, VariableDeclaration, VariableDeclarator } from "../types" @@ -238,6 +241,12 @@ export const factory = { get updateClassDefinition() { return compose(ClassDefinition.create) }, + get createClassProperty() { + return ClassProperty.create + }, + get updateClassProperty() { + return compose(ClassProperty.create) + }, get createFunctionType() { return ETSFunctionType.create }, @@ -274,4 +283,16 @@ export const factory = { get updateInterfaceDeclaration() { return compose(TSInterfaceDeclaration.create) }, + get createUndefinedLiteral() { + return UndefinedLiteral.create + }, + get updateUndefinedLiteral() { + return compose(UndefinedLiteral.create) + }, + get createAnnotationUsageIr() { + return AnnotationUsageIr.create + }, + get updateAnnotationUsageIr() { + return compose(UndefinedLiteral.create) + }, } diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 07750fe2f..70089c669 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,4 +1,7 @@ +import { global } from "../static/global" import { + AnnotationDeclaration, + AnnotationUsageIr, ArrowFunctionExpression, BlockStatement, CallExpression, @@ -14,11 +17,29 @@ import { ScriptFunction, StringLiteral, StructDeclaration, + TSInterfaceDeclaration, VariableDeclaration, + ClassProperty } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" +export function isClassProperty(node: AstNode): node is ClassProperty { + return global.es2panda._IsClassProperty(node.peer); +} + +export function isAnnotationUsage(node: AstNode): node is AnnotationUsageIr { + return global.es2panda._IsAnnotationUsage(node.peer); +} + +export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { + return global.es2panda._IsAnnotationDeclaration(node.peer); +} + +export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { + return global.es2panda._IsTSInterfaceDeclaration(node.peer); +} + export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier } diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 10b6b5197..a3168d27b 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -19,6 +19,7 @@ import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/intero import { Es2pandaClassDefinitionModifiers, Es2pandaContextState, + Es2pandaExpressionParseFlags, Es2pandaIdentifierFlags, Es2pandaImportKinds, Es2pandaMethodDefinitionKind, @@ -298,6 +299,7 @@ export class ETSTypeReferencePart extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART) super(peer) + this.typeName = unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePartName(global.context, this.peer)); } // TODO: support type params and prev @@ -317,7 +319,7 @@ export class ETSTypeReferencePart extends AstNode { ) } - // readonly typeName: Identifier + readonly typeName: Identifier } export class TSUnionType extends AstNode { @@ -396,9 +398,18 @@ export class Identifier extends AstNode { static create( name: string, - typeAnnotation?: AstNode + typeAnnotation?: AstNode, + isAnnotation?: boolean ): Identifier { - if (typeAnnotation === undefined) { + if (isAnnotation) { + return new Identifier( + global.es2panda._ETSParserCreateExpression( + global.context, + passString(name), + Es2pandaExpressionParseFlags.EXPRESSION_PARSE_FLAGS_ACCEPT_COMMA + ) + ) + } else if (typeAnnotation === undefined) { return new Identifier( global.es2panda._CreateIdentifier1(global.context, passString(name)) ) @@ -409,6 +420,16 @@ export class Identifier extends AstNode { } } + setOptional(optional: boolean): Identifier { + global.generatedEs2panda._IdentifierSetOptional(global.context, this.peer, optional) + return this + } + + setAnnotationUsage(): Identifier { + global.generatedEs2panda._IdentifierSetAnnotationUsage(global.context, this.peer); + return this; + } + protected override dumpMessage(): string { return ` ` } @@ -554,6 +575,12 @@ export class ScriptFunction extends AstNode { return new ScriptFunction(peer) } + setIdent(id: Identifier): ScriptFunction { + assertValidPeer(id.peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, id.peer); + return this; + } + protected override dumpMessage(): string { const scriptFunctionFlags = global.generatedEs2panda._ScriptFunctionFlagsConst(global.context, this.peer) return ` ` @@ -596,6 +623,23 @@ export class ScriptFunction extends AstNode { // readonly signature: FunctionSignature readonly scriptFunctionFlags: KInt readonly ident?: Identifier + + get annotations(): AnnotationUsageIr[] { + return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + )) as AnnotationUsageIr[]; + } + + set annotations(newAnnotations: AnnotationUsageIr[]) { + global.es2panda._ScriptFunctionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } } export class ArrowFunctionExpression extends AstNode { @@ -721,6 +765,23 @@ export class ETSParameterExpression extends AstNode { ) ) } + + get annotations(): AnnotationUsageIr[] { + return unpackNodeArray(global.es2panda._ETSParameterExpressionAnnotations( + global.context, + this.peer, + nullptr + )) as AnnotationUsageIr[]; + } + + set annotations(newAnnotations: AnnotationUsageIr[]) { + global.es2panda._ETSParameterExpressionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } } export class TSTypeParameterDeclaration extends AstNode { @@ -933,10 +994,20 @@ export class ClassStaticBlock extends AstNode { } export class MethodDefinition extends AstNode { - constructor(peer: KPtr) { + constructor(peer: KPtr, key?: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION) super(peer) + this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer); this.scriptFunction = unpackNonNullableNode(global.generatedEs2panda._MethodDefinitionFunction(global.context, this.peer)) + assertValidPeer(this.scriptFunction.peer, Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION); + + // Somehow the scriptFunction cannot attach method's key to its ident after checker + if (key) { + assertValidPeer(key, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + const _name = unpackNonNullableNode(key); + this.scriptFunction = this.scriptFunction.setIdent(_name as Identifier); + } + this.name = unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.scriptFunction.peer)) this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } @@ -956,13 +1027,19 @@ export class MethodDefinition extends AstNode { passNode(value), modifiers, isComputed - ) + ), + key.peer ) } + // TODO: does not work + isConstructor(): boolean { + return global.generatedEs2panda._MethodDefinitionIsConstructorConst(global.context, this.peer); + } + + readonly kind: Es2pandaMethodDefinitionKind; readonly scriptFunction: ScriptFunction readonly name: Identifier - readonly kind: Es2pandaMethodDefinitionKind } export class ClassElement extends AstNode { @@ -980,6 +1057,7 @@ export class ClassProperty extends ClassElement { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY) super(peer) + this.typeAnnotation = unpackNonNullableNode(global.generatedEs2panda._ClassPropertyTypeAnnotationConst(global.context, this.peer)); } static create( @@ -1000,6 +1078,25 @@ export class ClassProperty extends ClassElement { ) ) } + + get annotations(): AnnotationUsageIr[] { + return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + )) as AnnotationUsageIr[]; + } + + set annotations(newAnnotations: AnnotationUsageIr[]) { + global.es2panda._ScriptFunctionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } + + readonly typeAnnotation: ETSTypeReference; } export class VariableDeclaration extends AstNode { @@ -1067,6 +1164,7 @@ export class SuperExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION) super(peer) + this.id = unpackNonNullableNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer)); } static create( @@ -1077,6 +1175,8 @@ export class SuperExpression extends AstNode { ) ) } + + readonly id?: Identifier; } export class ImportSource extends ArktsObject { @@ -1165,8 +1265,16 @@ export class AnnotationUsageIr extends AstNode { this.properties = unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesConst(global.context, this.peer)) } - // TODO: - // static create + static create( + annoIdent: AstNode + ): AnnotationUsageIr { + return new AnnotationUsageIr( + global.es2panda._CreateAnnotationUsageIr( + global.context, + passNode(annoIdent) + ) + ); + } readonly expr: AstNode readonly properties: readonly ClassProperty[] @@ -1225,4 +1333,28 @@ export class UndefinedLiteral extends AstNode { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL) super(peer) } + + static create(): UndefinedLiteral { + return new UndefinedLiteral( + global.generatedEs2panda._CreateUndefinedLiteral(global.context) + ) + } +} + +export class AnnotationDeclaration extends AstNode { + constructor(peer: KPtr) { + assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION); + super(peer) + } + + static create( + expr: AstNode + ): AnnotationDeclaration { + return new AnnotationDeclaration ( + global.generatedEs2panda._CreateAnnotationDeclaration( + global.context, + passNode(expr) + ) + ) + } } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index dbea933f3..7231cc0f5 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -16,12 +16,11 @@ import { global } from "../static/global" import { throwError } from "../../utils" import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" -import { AnnotationUsageIr, MethodDefinition } from "../types" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" import { AstNode } from "../peers/AstNode" -import { Identifier } from "../types" +import { AnnotationUsageIr } from "../types" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index f114ccef7..622448e38 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -38,6 +38,53 @@ import { MemberExpression } from "./to-be-generated/MemberExpression" type Visitor = (node: AstNode) => AstNode +export interface DoubleNode { + originNode: AstNode; + translatedNode: AstNode; +} + +export class StructInfo { + stateVariables: Set = new Set(); +} + +export class GlobalInfo { + private _structCollection: Set; + private static instance: GlobalInfo; + private _structMap: Map; + + private constructor() { + this._structCollection = new Set(); + this._structMap = new Map(); + } + + public static getInfoInstance(): GlobalInfo { + if (!this.instance) { + this.instance = new GlobalInfo(); + } + return this.instance; + } + + public add(str: string): void { + this._structCollection.add(str); + } + + public getStructCollection(): Set { + return this._structCollection; + } + + public getStructInfo(structName: string): StructInfo { + const structInfo = this._structMap.get(structName); + if (!structInfo) { + return new StructInfo(); + } + return structInfo; + } + + public setStructInfo(structName: string, info: StructInfo): void { + this._structMap.set(structName, info); + } +} + // TODO: rethink (remove as) function nodeVisitor(node: T, visitor: Visitor): T { if (node === undefined) { diff --git a/arkoala-arkts/trivial/user/src/sts/hello.sts b/arkoala-arkts/trivial/user/src/sts/hello.sts index 41c42c50e..1923eb273 100644 --- a/arkoala-arkts/trivial/user/src/sts/hello.sts +++ b/arkoala-arkts/trivial/user/src/sts/hello.sts @@ -1,7 +1,7 @@ import { Text } from "@ohos.arkui" import { Column, ColumnOptions } from "@ohos.arkui" import { Button } from "@ohos.arkui" -import { Component, State, Entry } from "@ohos.arkui" +import { Component, State, Entry, memo } from "@ohos.arkui" import { Color } from "@ohos.arkui" @Entry -- Gitee From 2aa6dab87237c0b026dac3dc304844f8cecb26cc Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 19 Feb 2025 01:41:14 +0000 Subject: [PATCH 06/31] !9 Struct runs again --- arkoala-arkts/arkui/src/sts/arkui.sts | 12 +++++++++--- .../libarkts/plugins/src/struct-transformer.ts | 17 +++++++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/arkoala-arkts/arkui/src/sts/arkui.sts b/arkoala-arkts/arkui/src/sts/arkui.sts index 2998691be..58a5b1b1a 100644 --- a/arkoala-arkts/arkui/src/sts/arkui.sts +++ b/arkoala-arkts/arkui/src/sts/arkui.sts @@ -29,9 +29,15 @@ export abstract class StructBase { console.log("Struct instantiate redirected") const instance = factory() if (builder !== undefined) builder(instance) - instance.build() + instance._build(builder, content, options) + } + build() { + throw new Error("The struct build() should never be executed directly") + } + + protected _build(style: ((instance: T)=>T)|undefined, content: (() => void)|undefined, options: OptionsT|undefined) { + throw new Error("The struct _build() must have a valid override") } - build() {} } export enum Color { @@ -141,7 +147,7 @@ export class Text extends CommonMethod { style(instance) //content() } - + fontColor(value: Color): this { console.log("\.fontColor(", Color[value], ")") return this diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts index 0959ea80a..1243e1c91 100644 --- a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -13,7 +13,7 @@ function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { function isKnownMethodDefinition(method: arkts.MethodDefinition, name: string): boolean { if (!method || !arkts.isMethodDefinition(method)) return false; - // For now, we only considered matched method name. + // For now, we only considered matched method name. const isNameMatched: boolean = method.name?.name === name; return isNameMatched; } @@ -64,9 +64,14 @@ function createContentArgInBuildMethod(): arkts.ETSParameterExpression { arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW ); + const optionalContentLambda: arkts.ETSUnionType = arkts.factory.createUnionType([ + contentLambda, + arkts.factory.createUndefinedLiteral() + ]); + const contentParam: arkts.Identifier = arkts.factory.createIdentifier( 'content', - contentLambda + optionalContentLambda ); const param = arkts.factory.createParameterDeclaration(contentParam, undefined); @@ -82,7 +87,7 @@ function createInitializerArgInBuildMethod(className: string): arkts.ETSParamete arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier(`__Options_${className}`) ) - ).setOptional(true), + ).setOptional(true), undefined ); } @@ -108,8 +113,8 @@ function transformBuildMethod( const params: arkts.ETSParameterExpression[] = prepareArgsInBuildMethod(className); const signature: arkts.FunctionSignature = arkts.FunctionSignature.create( - undefined, - params, + undefined, + params, undefined ); const updateScriptFunction = arkts.factory.createScriptFunction( @@ -146,7 +151,7 @@ function tranformClassMembers(node: arkts.ClassDeclaration): arkts.ClassDeclarat arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_CONSTRUCTOR, false ); - } + } if (arkts.isMethodDefinition(member) && isKnownMethodDefinition(member, "build")) { return transformBuildMethod(member, className); } -- Gitee From 30f61cb361c9218cd7d954de105de1dd905fd71c Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 19 Feb 2025 09:57:48 +0000 Subject: [PATCH 07/31] !5 Perf measurement harness --- arkoala-arkts/arkui/src/ArkComponentRoot.ts | 2 -- arkoala-arkts/arkui/src/ArkStructBase.ts | 3 --- arkoala-arkts/package.json | 3 ++- .../user/src/ets/pages/homePage/main.ets | 21 +++++++++++++++++++ incremental/tools/fast-arktsc/src/main.ts | 9 ++++---- 5 files changed, 28 insertions(+), 10 deletions(-) diff --git a/arkoala-arkts/arkui/src/ArkComponentRoot.ts b/arkoala-arkts/arkui/src/ArkComponentRoot.ts index 3af4b9281..27ddb6c47 100644 --- a/arkoala-arkts/arkui/src/ArkComponentRoot.ts +++ b/arkoala-arkts/arkui/src/ArkComponentRoot.ts @@ -43,12 +43,10 @@ export function ArkComponentRoot( }) } ) - console.log("Going to attach") NodeAttach( () => ArkComponentRootPeer.create(), (node: PeerNode) => { content() - console.log("TODO: ArkComponentRoot routing") // const state = CurrentRouterTransitionState() // if (state) { // RunEffect(state.visibility, visibility => { diff --git a/arkoala-arkts/arkui/src/ArkStructBase.ts b/arkoala-arkts/arkui/src/ArkStructBase.ts index 5c40d5e86..ce99fe7ee 100644 --- a/arkoala-arkts/arkui/src/ArkStructBase.ts +++ b/arkoala-arkts/arkui/src/ArkStructBase.ts @@ -18,7 +18,6 @@ export abstract class ArkStructBase extends ArkCustomComponentImpl arg1?: () => void, arg2?: T_Options ): void { - console.log("_instantiate()") const receiver = remember(() => { const instance = factory(); instance.__initializeStruct(arg1, arg2); @@ -43,8 +42,6 @@ export abstract class ArkStructBase extends ArkCustomComponentImpl content?: () => void, initializers?: T_Options ): void { - console.log("_buildWrapper()") - ArkComponentRoot(this, () => { this.__updateStruct(initializers) this.__build(attributes, content, initializers) diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index ee2066012..bcae4f45d 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -65,12 +65,13 @@ "build:arkoala": "npm run panda:sdk:check-install && npm run build:arkoala:components && npm run link:arkoala", "build:arkoala:inc": "npm run build:arkoala:components:inc && npm run link:arkoala", "link:arkoala": "mkdir -p build && ../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ./arkui/build/arkui-no-common.abc ../arkoala/arkui-common/build/arkui-common.abc ../incremental/runtime/build/incremental.abc ../interop/build/interop.abc", - "aot:host:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc", + "aot:host:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:stdlib && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc", "aot:arm32:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc --aot-target arm", "aot:arm64:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc --aot-target arm64", "build:user": "npm run build:user --prefix trivial/user && mkdir -p ./build && cp -r trivial/user/build/user.abc ./build/", "build:navigation": "npm run build:user --prefix navigation/user && mkdir -p ./build && cp -r navigation/user/build/user.abc ./build/navigation.abc", "build:shopping": "npm run build:user --prefix shopping/user && mkdir -p ./build && cp -r shopping/user/build/user.abc ./build/shopping.abc", + "aot:host:stdlib": "node ../incremental/tools/fast-arktsc --only-aot ../incremental/tools/panda/node_modules/@panda/sdk/ets/etsstdlib.abc", "aot:host:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc", "aot:arm32:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc --aot-target arm", "aot:arm64:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc --aot-target arm64", diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets index 4ddc9ed53..a57b795dd 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets @@ -31,7 +31,28 @@ export struct MainPage { @Prop num: number @Prop ratio: number @Consume('pathInfos') pathInfos: NavPathStack + + isPerf: boolean = false + build() { + if (this.isPerf) { + const count = 100 + let perfData = new Array(count) + for (let i = 0; i < count; i++) perfData[i] = i + let now = Date.now() + console.log(`Measuring...`) + ForEach(perfData, (item: number, index: number) => { + this.buildReal() + }, (item: number, index: number) => String(item)) + let passed = Date.now() - now + console.log(`Passed ${passed}ms, ${passed / count}ms per iteration`) + } else { + this.buildReal() + } + } + + @Builder + buildReal() { Column() { Flex({ justifyContent: FlexAlign.SpaceAround, alignItems: ItemAlign.Center }) { Column() { diff --git a/incremental/tools/fast-arktsc/src/main.ts b/incremental/tools/fast-arktsc/src/main.ts index 2e8bc7cf3..b9b066a0b 100644 --- a/incremental/tools/fast-arktsc/src/main.ts +++ b/incremental/tools/fast-arktsc/src/main.ts @@ -177,7 +177,7 @@ function mainAot(abc: string) { let sdk = options.sdk ?? path.resolve(path.join(__dirname, '..', '..', 'panda', 'node_modules', '@panda', 'sdk')) let aot = path.join(sdk, archDir(), 'bin', 'ark_aot') let stdlib = path.resolve(path.join(sdk, "ets", "etsstdlib.abc")) - const aotLibs = [stdlib] + const aotLibs = abc.indexOf("etsstdlib") == -1 ? [stdlib] : [] if (options.aotLibs) aotLibs.push(... options.aotLibs.split(",")) let args: string[] = [] if (process.platform == "darwin") { @@ -185,15 +185,16 @@ function mainAot(abc: string) { args.push(aot) aot = "echo" } - let result = abc.replace('.abc', '.an') + let dir = options.outputDir ?? path.dirname(abc) + let result = path.join(dir, path.basename(abc).replace('.abc', '.an')) args.push(... options.aotTarget ? [`--compiler-cross-arch=${options.aotTarget}`] : []) args.push(... [ `--load-runtimes=ets`, - `--boot-panda-files=${aotLibs.join(':')}:${abc}`, + `--boot-panda-files=${aotLibs.map(it => path.resolve(it)).concat(abc).join(':')}`, `--paoc-panda-files=${abc}`, `--paoc-output=${result}` ]) - console.log(`AOT compile ${abc}...`) + console.log(`AOT compile ${abc} to ${result}...`) const child = child_process.spawn(aot, args) child.stdout.on('data', (data) => { process.stdout.write(data); -- Gitee From a5973a42406af5e652752127bbea6ee1d5d32aa2 Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Wed, 19 Feb 2025 09:58:57 +0000 Subject: [PATCH 08/31] !11 Trivial demo with dollar functions * Test dollar r and rawfile --- .../src/main/resources/base/element/color.json | 4 ++++ .../main/resources/base/element/string.json | 4 ++++ .../entry/src/main/resources/rawfile/koala.png | Bin 0 -> 112716 bytes .../entry/src/main/resources/rawfile/phone.png | Bin 49101 -> 0 bytes arkoala-arkts/trivial/user/src/ets/page1.ets | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png delete mode 100644 arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json index 3c712962d..c813809cb 100644 --- a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json +++ b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json @@ -3,6 +3,10 @@ { "name": "start_window_background", "value": "#FFFFFF" + }, + { + "name": "my_color", + "value": "#114bbf" } ] } \ No newline at end of file diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json index f94595515..d1c869602 100644 --- a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json +++ b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json @@ -11,6 +11,10 @@ { "name": "EntryAbility_label", "value": "label" + }, + { + "name": "my_text", + "value": "some_text" } ] } \ No newline at end of file diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png b/arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png new file mode 100644 index 0000000000000000000000000000000000000000..04c21efeca88b0eea5f17e89fb4a8e1c7bb30892 GIT binary patch literal 112716 zcmeGDWmg+-*ggsecPsAD{tC3Tc#+^>btkw6KW_Gp`jg0vnb?mm$m;elF1!!qMcjhg zmG$mq#-b&tlD+LR_)jRrSkNbZo$ispt2D3L{AEhiOi%MFQ2(^)kgwjbN+WgH$*eqo zJ$^=!M&^~YK~A2`y&U(5@mu6nX6*2zQ#vd`J)FPeK7%a33)?jm&IHx=9H$s!Vn{8l zEi@#Ko_f#BuQhs#ITbZs2|ixjhO0x4-JDVh`S;mC0AsoO#(W#uWS71KLO@FNMYs0o zOHs2C&Q0R1a;fAIb>?p?cZI{eV&z6Q~K^0R{Rs7dFs9Vr~CpeI=E zirNGZy!gs?=q0%0PIo~8Tc^V_d{ zbXI8$+D5Q`xX3Oc{O?mh&^Aj(b;%f8o=#=e_3t|snc#q^}$6nmzc`?~KxA){(Ub=s2? zzaWL<|9fO?)zvqbb!ry`ORRi`Z7(xkDOmUN^QHUol_K=8aMy z{Xbu359B|>iR0jty(5R=-@*yi#&K(Te8{6=wxg28s}*X=E14(8sk3wSi@tTwjQjw~ zz<4&FLa0Fb-I6Z-WE2K1aD-lNsxws~cC|G<8I8d!7nO83O&?zTEdKKI)x?4HDQ~Iw z|UYjcq{(}L7?SEFzac>cUEd2PCy(5)JfGCW4u_SncU0*T^ z3)$$lDG5W(ttzUxfo|Tb*4!nD3TVGda!_nJlU?w=`R#_U)T``qQ`|Y{Y8lPq(~d#NNVi`f=R%4L%DpYzI4V zM)u9scr@5Q%k6km^uR~Pdf_MRdOTz1t{r5c-%MqZ$#Wh#@yG`NJC`Sh)B_;ut_{lk zkE!OWCX+t1g{qDR+BIkl;FjzigJ+?h9|k;s4&)Q<4Du$#W-~ieP-Dp1h%-OlBV?Ho z;*1cEae5ftJ*qh%wQ?Di9#L!EQoF#Jikc|@C(0bSAFN2*(8%xh_~?d~wv)5v3h(wpV9fY#$~eN|$A``I8IG1Ko=Xhl`B9%9ww>2R3?kvc zbY*hHrz$m|zilNR9^Mb5QtkBg^gRAIe%cGZNm@bZDmVE9a9BWn5kwyg*nbv%m!6_*W?Z6n(*~P_A zaU~$<0nfI9kal+8e$T>ze1H9+Aco&E=THN3e#~}&)%hV!xtRo@8ryN5bl_F5fMhUD~BGQ;O3MRQ$}aO z{f{a{du$`syXp5^TkR%bFk0Jv`;q_s2;&$U^*9Hbmy;s&d+#eZK6v@oX%X{rnwj-PF;r?6JiarJ; zidhK+4gty{db(sn2z{D^?%zo+paT)4b=bSj+G8(RwJR}U4ye9II1q}30EZ4u73!{IFn5Uq(W^sSkOvuBF+~TpY4(bXp}M-ym**TLd9mExp;SRkpo5%cDTB5%n}5JD`Dj}rDD?jaHAaG5-=xv9wjg?J{5 z=!18Qm?(X=0w2o}Q&CKX6S2E=0ZX$6ZJsCl{BN%*7WNX*#&o6eDtd=jA{87esbRFGHjDqKa6@Zqz-E{dJF%L%4=lpGuD;UC-Xjrcqm#~68|=y zO?yX*zSKp^8zZ}GBTDNRY#9))onL^{UwFDK6P64<)$pnYe12P|gGUd0)yCh9$4b|{ z`AUKhctqZow!Nsq$RI8oeuS1M0hQE}f*H-(dRe&D~jnIL1d`+|l`>p}~EAWmXm%L~gES?UG}T2`kECv2C>! z3rjzU3#Y8d$AczTMURS&i#z;vS%f2f)pFEt%oD59no?sj#svV*Otg`?$-}ZnUn3NjX> zcwnq{5%HANN34r~;&9kdD2pbhIgVw>@i;=qv|yl*2y=XoXCU6KQ74Vw2VKn`!I?j@ z@!=9goZlcm)Gp*>agMtml9WvZ3(%Zo<*-5=URU|vJcS9^#s1klx0`LR{wENNN40op zi{2@N68s~J7KYTJg6xhQ%0bq!;P5QgIeFbGA3vE1|BF@H^b;KSd0OYe5H~qT0gu5Q zkb8nYRn?M|3bZ8`W+YpXZerlRdh9D0{X%&?Ya^OJzzlsmK7bb>B($>*DKuY^D6Q9( zq}i7)W4I*>V4<&m9biv|G8ih#MC%uP8X6-;C^_o+f!-eg$Z94sDFXDoNG=>>0HgzN z&wxE>7y;l-GGEBweuID-ed1b-hyq)Z{-zJkM&H`r z21K7k6w=wT5xr+<=a!!%TKzsD{6z`9=Glhy!!?^eV6H6k7GOc5jHZu0jk0qEU@CBB zab~P>sUo!(@8N$9&t+!lYjYB3kh?RlJC*O$b2mUMd+{DdW#P*sq$?`f;py)B+=SlI zg@}2f*=i(%;E4D`J6H|*Wpb*Godcr2*2r0SIyy0?bF{noR{`M+ZiorT8cS5$SF-J$ zHGSp)ezxU~7s!4lVG%n2_6#bmYqp5v8;jkAkpQcu;K}SL3e2&|lACev@kl_q<6tsu z?7i~H4iCdtj9bl=fF@p4+Edr&`N98-C&0wlZnHLvBk?Fi=6#Zpt-aA ziZ!xF|I&t=@QLY+$ndYdkkCIWy?8|oR>AdXYa*u4w8(!^lJ0$UxDk}wsSIndiDDzT z$|JnR@2&`Hg|B`eo?45J90ped(Xi9nZ}`U5T9a#0nZmx&3@WCDJ*_7z({Kg(5Zm`%~OQ?{JgO8q^rU)cTUAYf-2{o9y+ zH;K(xCI(#+FYMN;wE8sjoISx@6RfHQ6+J9%Y3}2{np}=FLgY!ym_IxRcHQ6fnGv;5 z2n)8;Ly?3(czJ+r)QszY$CxEb=$D!okO0_R@9NL6>79y8jF&0ov*Hi8r#;V}>t1^~ zPdo7!u-H{2`@7KPuI0U^MoZY);MNQl0+H{ZRqgfTS3v_yG}uZh&eB3!>L|l2dUQx_ zTfLIyV7P@Jk7HJtoqo)7rU!#DRz!Xw)aSD4#%mO*{}NOYI1muct4?2ibbvApny{fU z^vFmju!~0J*1Tz>w=n4DrTCh#Jt1A|3t48h^5xn-m|(-K+YQS)%hjmc9XobO1KjOQ z6eQH*%*!6prB43{BN`l#@|-(s-|WQspR`c(iBZ;m(3pQIm>L;&Gv(Ykl8%cuIj!|e zM`J_HYlBLfp6RbgnnBJX$Na}BQ2QWz*WP@TrN{ua06p^bD`w!~6!lr+<^`L_=%^`6 zI3*LO@IeRn3lOv?BVOaTr9nZgGQofPVINZ1S(1EYTPGshlseMrf|oJ6P=;|P(aW;Y zh$L8bXyby#7E$&bV4!2vD#R-Ns+fq>`+X9qo2!#B+3x)<(oMg>DBVPtifG4#GLIxi zP^lx77!pO05lSk?3U&V2%KxP!x#Mh>H`vc2vHw$3=nvT_OrwyKfiY*M0b0jb945He zZ7*e!&p%QV%MiYbW@RbMKXO;Axq7pV&N<+pBK66__9u?5RmE=Kfac+Rj9GA^9J^J} z6>bg-z?~}TqlGMS7L}$IJ&+&$g$SMv#h^Tmwnd_iY<&zCW@XOC!QI(vx0>=T-48Kw8u<)#-@RIu> z)Ov5%Z-5OokI!NWKP%M51E1Y)Vst8NO5Vat!ahK_vDk z^mB4(>~;RR%BF1|BSu4Y0~eU$SI`e&<9vtz6@I0P% zY!%o)G!?n=s}&aMiaUdO-T;P>b$FN1&{7k}An*w3i5PA|W62oSw$yr7&$A2;E@9=T zeDIG%9cs4!QHR?`!v83dHq)8W#-0u(O5JMg)g_HA4$X4k7?Ut6Uk28$E3<(bUY!YxMBK0D;Kz- z?#~{iC5vUEYW9^gy%5h&-*2?;wb(@rrpZ6k&XHYIh<~!gXZP$wK zXU3f_K4@VMl!xd$tb2QVy#P0iyK4*bj?moHFYaxIHml(eZ-){LSC;d+PU3fL@kj{N z&`Lo5ByRJZFZLlAoqi}QoiE+bDV-m~(Ec}))Gc`0(0*!*sJKUdaEFjap$zx!BoZmR zYx7;1e#JbHEdGdA({bj4+yh5ezK#HUTR{aqg6q z^UJa_uH2UfvCFVUq8TQxi)AUs| zL*cJ5j$LLw_34rmTC2t(>|}a4qqqsF>ETW%|JMY-9~f3DecU{sY_CZjTE8G+p#0od z@Bf^ayjDZ4lkc5Lcle2iS|Y+IXsP^K@VHhwRe!u_Qm(0~Y4BQ=yTqjAqYSLKOXKA9 z*kR6cv?F4^jLGusjrbShuoX#cGd5KqUBUl4QBq__OTokI0puQizN#5>%9S}U$kL(5 z3IT$G5cQBOv_X;f>s*=k;HDKeP-DZ zy^w7r|HLe?Wjs1Qdo+NbCQT0|nFy!FxYNUjpcX;C<%0#4cN$G8AiU#GbXvBly=3D{ zU4^m`?V0W)3wgyGfm=cj;X*bx75cS~YF%hQIGOAkFytZpG?QC^G)0Nxy#4?thy;;= zRvV93DF^Di)nq~x7~uGW$FrFau=ei3d9pPLJ_BWgJwJ+0v*d?@MH;t z>eB2z5lU{{P0;rNFk{=XE#G2DPXvs4fo#|U7mj*KYe75Zm_@(RwgIj^{<+V-#;t-S-#m1t;V(K^-<$^49Q-Vd<+j@vT7rrGeBQ1R4NQRQZXr&yBak7(Km2Jqqg|Om7XGYu^Y3}LjDRSl&dShFWCIk zM^Zq!3ZZtK#|0cv08UvF$yrqOddHV|2u2}# zO?F>Wcj{g{N2cr250fyk_mn?#XJifl3DDr9Sab?p-Q(gIo5)>Sam}w}y?DUnt!Fgz z{&iQ{a{blPnU!kvAtl{?f&X0Jv^RD5lJS0x(H6V5xcRZDp;P;nWl{gPCXHRdp#B-E zbE0s1CVYh!@cGq}`h)0uB!~-_^H6-hSl8n%snpiz% zdo>bjW|%W*OsDDy^dj0-Z^t*l=tSocPA%?x?5P=d#dnnE6vW zL&*|4-?BtnOQd>d(O3Rx*VyMY-^&6(Q6#afIzKPy(!k6fqDwXVjH!LWn%c?c%-D+4okORrHwIWs65b}<$Ho}1{ zm7`;n9`0h;uX`vsVMRg_Nf|9(ppaLy`g@(c_)((83h`&SmCrH0bbK$05xZU6n<*ta zUY7N0WWd~WYqh7hJx-%xzn{_$BaMuVPbPWrq9H=H1a@9SLXO<=dFuj?*FbH!UYd^C z5T{jNY77M;J?z0g<~(g4Ih`(6J6L<9#Qfq`u;a>w8oN3*8|B7N$p%DnLvBV$QzR0r z&y<|#Gxji18^U>n-6?L1JilDO*Qu0b`5yB$4D9uP&jLi2IGJD`rOQn&I@I3C>%eZ3 z7f)GLGF0m|!W&;}tVjcaqHteSyFQgT-WV*qQ?DU2)XH~48~-&#{+d2mRqJ-=oASSk%2&v zA&PPDm7%!5nE0de)|m4LIyS5BzQ{^4J|D#0@>OVYI(6vU$9a6Y zcaOhqpCZ{Fhr6h9J0NF*Bk@h=V1Gm~3!TemsIeLA?Vopw?$%0J^x}V07XR7=r{RXq zOXrA6%+t1wDoP+V>>n^;L&hE5J%VTLDDEpOv$Is_p;h|X(12T&`wbPgrY3LKXG5l& zHD7Ew8!#3dBIq4adYqnrO6eh9>GB@?Y{XaOiDwd{ou>@zJWd18K35RAr(6%%3oxV@ zK8HoAvxyaId8h6e+)%IWn}L?pW;zy`--?`N2f39GGHlUEbfL3E1PAb~0GLFsfGLR(#$ZA2wA@D^`s)R7Clx9@3-Z}b2j&^>;9r9M*ELie>zzIa|oMD z!B;83;`*`sX7~9J372GLK8y~ALz(x2!PrWjE;ph3<#O*-h7BF?OWlMBS``p&E56W# zMc7eI~Pxf)Ge)U2SF5mMJ;cj1`fk`Ys2WbT#E=yKU>Dg)NHzRE+O}Ec?U$Zzi z2C{`U7UF{f^_}~|u8eeZ{vzX8hjNtEh-^d8l6(J4N}=2j-mh3N42s!>wi2*WVwi#^ z$p>GN8Y&TnTjS_m`qf3E>wEQ`KWi-QRO+>>Gb;ULd}-G?)KgX;snE>L*}nG5q~sLj ze+dfCygw^QC^+;Z_B|Vu*Bm@EemLqRBI)K4TCml0MC(U^O~r0A)4FDb*@Mi8Gi5`` zFeE#lxn71>{J5pb8xh(rEa0;f|ABaw0Er$Uqdz9QoVD7>Fn@J36D(;J51`LRusSU_ z3CRilI`Yy_5|m$-UxPDxv=}R2>JC?qcy_40`|c@4F2_;N(vsGT1;&& z{Qw2(s;td-Wr1kwFyUn>uj|R%+kRXjShUwFPc25rvEgf8Kg)sqRJ-qg`7WKcfv0wTA^jAia?-@sQet{7Z*a7g z>0B_n%<#+k{bn&1#fS^yL6R4RM}{?m5aqg*%#7u8-O=wg=(In|kJDWFaTcu;owy?# zbq>X74$LLb-~RMRGx0}B$uvDj4Om>2ZS`;X;=1U4zB{!u;(ve2&}JasY@m-7r_CjR zg2Hd9;j|no>{n}4>PzYEN7S)WAcW?;F9c;Qek&FT5+Z>)v&~mCV5@1(*d?~GJr8AQ ziol^$WA`K;S3aoM`GQheBOc^-Pt~bmWQwd(!nNs@7HGh_qH|mER9jl-!Nzc7bbr*Y z%IENbC+#{_ZJUu4i#2!6c-oe`$C%Mhiq4g`3@cFJyxjb6JcvABth#O%S~A0J*;GAk zJ$*P`blx}xKKE;1S~@CoZNQn=3}!fK9HxcTHgrAnC^?wZZawr={dnE#lWCHaP!of(2J ze=p2tks!MJ<&7J72a&RH?v+|^JJW$8&z-p%J^J~=aqV@cZ!6; z$FmUaB`WRR#{622lb51dJ5|59rb(@1UEoy-G(Gh4!KI^>4>YA=OY!kxRXxafWh<+@ zq}F}&!DHgR-Wf)btETEE5#c51uhMBdQai6USEAu<(U70!&q}xXjo3%SpEKmk)PJpB zp8~F%o$#;4jSsNx$>?DWZZ&>TMc?3`ZFyfSLe^(E>JSWGda0c{d%=n&8hV00c$^-} zdv;V}xhLM$(#TTMFgXv*26ekZ!7Nhj2{|^3aVpVU<89D zE%;2va@Rz^r>?_R8)HW^#B;E?$J=maijT;Fd5LUv0&*?{fLv7b97C;dWfrqWT%VF`c$Y-(Mlo z=S;z+*XW1F1mNb<>mU7*;7TO8g2&@*r(h-aU`an6nqj14Tb0UwP7_M^sfdc5&J;Vy zi&dMBgh(0%#+Zy%CCso4!au~8bZ_aMS%^S>(2YeaeR0w)`WAo`)8J$QTvyx*dy9p z{1_iDYkNFD4?kr!CBcsl;A5e*(MEWD3~rknQ%Q{}YVB+2v2NSddPhfxZxr(bwuCb8 zZ*d9MJ51nhvTw?CmM0LlD@dvD_(HO+5R=FNR-rA-!p1sFlEq?Wcer*3_^&!FqRpsH z#W&FPCjTApxtEPMatI`T>sZy))DU$TaE!}P_Q`RqVPckux!;V!gPRgy^n9J!v$H!d zh42?qopdex+*ha@>`ExlaMY;g{ot7_m$J<{!XjX?#(3MwUFU9=J7q#&gqyA-GZ$AB z+TP`i_Qx$&VeMK6<|pXoT2}jD>w7mh))}V40;&;kTFoBvF}aTYmcimm`Uq=IIn0a$ zy9xI8*IZtam)uCv3d4xr(&W7YQoXS!b|d7)s;O6ajyNEpwMV!o6%T&P99js8Oqt6> z873kb_6r%YMSw9jE!Gx4mKswEZ^2$$3_nfv$Z4(G`$x%%y*ccAYJM7^tTbDYg)O?b zV@z}bQ&meIV&-ZOmCW#wlN%d@Ls~^HrDEL2F1bbz=;@s|nyE*4t8&akUaZ!%nUVY- zm}%1?tjb9ND1w8zP@JxF^4!E?6xgunfOMk>a;+@v1T{>O=H2opFc^Uoh~?E7A}g;)%e)&8S9+YX{W&!o|&M+}Cg( zRgS!oX~xXcbk$`3wX}>_C;ugz89H}CIGHH7J?svhu@=j>yajnZ*1k49J>By+Qk#?2 zlfOobivwv{J5wKYE;5~xs~y9K6lhCgkSf!X#Zm+t%bWrvDLHt z)pyTmqO(;CMtBW-k_?>~W`e)({GM-g`4%TP&Z1r2mP6B7`IZEU&ytC?`zXI*|J2(_GdY+F`iX1Hpq${%YqA*1KC#aer$Z#*v0 zXso`LO<%4iy$ulTqo*{Fw0S6Ru+B|zCrM!M`@6ZfO&ilVkjy@{Pt<@E>>2hSuMfQu z?J5$TvOTx7w2GmiOaijA7li>%*3R|^yJT{O0$tNPozcq~yy^0xgZZMk2@4ViVHS*q zMLGQk@o(EyuLzZr;N4|kN#fb~4QK?{S$32OLaATnlCx z>1tFK99-3FJ^72$9xLV-o;577Dk=r@1qB2WM#1xEeTW9)esjZ0CvPph_(zLbb2La1 z8P^GL596*GI6AE^7z|0wg)|5Xq;3-xapHr@wC-T{#3kMZr?erZ4}{E!1-@mvQ%u#3 zsGY>U74kO=P#4~GATR0a(2C&<@Zh^>QGS#7Bd`W$7!Z26BE$x=`{esj9uucmFy}tQ z13^Pa)UAM{>;C@!v+?n9x;ALXlz8C`YfCJ5Po`-Tx6*YrE^CCrryzdOk=hq&BP1Y) z+8|`NbUmtTK^oj`9M8Zspw2m3EoMw6mm8Xv#yHIR=Il5JXBjv#G12)~3r{xk0TzMx z1I{*lbp>_PB)8D~o|GT>Z46h+RG2SaH_&(3ONvQIUL#M< zWX!}TBD!E-5MCfCqb*i3`eJUh<2kQZyHEre#_Ju8WGC=qN}SM2$#WtdM9UJvIH@|& z1!1~Oj?d1Gdopir+A@u8hzP_Gm>AW^@?G|x6wUPU1-+Cyf`6owB&W{jnzuYI8E_XahJR1Lue=8lfa0gG#el)#-BbG5mw+vhTZGL@CQV}pbH z#KT?~=6}O9G$z#SY;9)?XL9t4Iojws>SatEC_K(}?~Jw#RqPfxTMapdQ~!$I9pFX^ zDEfT5;?Nf|EOWdu)S}iDuOwI2EZ{NS*)_EbH;#?1NroK3ar;DbwAawS8l>Ud#agm8)Ovf9cI_shn_J!VKLe{Pja$hk z%Gp1ZWIG@ z(?cJNED_kS)nQ?Z@Ed6)HC_V9>M=Y%!EI_Lv_`tYM4t@*ruR|l)a)-`V5-(~DDyki)gPyxUgb34OcezW#9E9XD9Hvc$~s9+;6f{)H8^X$*3 zua7PogL-wcH`D5azMl(lhoXS+8@?GMs!J4OtX}aiYun%CLnEBwGmE!SFYU6&YPLuy zQ0v~8j7wWKeMDPRGUfSFMlqcjHmLow5qmSIh1$GpYAOSx-vK!Z=Xn;`1{ELt1l=PWUnS!hIHoEwTzjo!-Lp&xK-tQBA&9)q3nH|c|sVLDr z)#KxFckN=4qU**Vpc-@fFEz`(7{Sx1T(RJ~5&^H>6B-f{72fcZW8H)5<< z22r3C*msVP*1b`}pdA8c|AAGDQeP_QyC5GI1TuZZa4#Pqjr3r5X))4Tg^*)^IZ+EV zSmDIl3YEU+4uJN=KA`kanwVBNV1WnE(<1g#C8i_v7cwUtvpCq&Y-Y_I&4 z54YwV)Zj>)b<;61gt&mXYyKe3@aS^5c^PM(1{t9IrfS(C>YpvlN{#0->|oxG@mCP) zPCDygVm$pesaMg^hkh2P0RxKG!R-b@_l&$Cy2!a}Znh@kye1g1$KhgJ&3jNh8T|57 zcs?6#^%OC$$(CE)TE$^;I<*jw2p3{q+RUf!B&b{r9rvp^xw_`Gu$XpsaR{*k?sp_TsfgW3IEon)K$8`L% z-a)OG;?~fyKI)EK^oO1#V@$T0wuJz9j862qDZO`6A<}#(+Zk9PBg3eDlv`^tBX|;- zJwHyKboFg4`oax0&Q&Hde$CG1_~>7DTo_|dpQgBr zem$mB>X=7%8+YQgQPv*gptrZdjn~{+2NSl%_r@q2ptzyetKrjy6cQXf6FwPm zH3pUd)}ud!mK~sS(gLQ}jK{Vebz`iPEe$@AHE%E02OBL6l77rv7plP)5@hID5W3PQz>KUHiV!6SOyD<2L2-)>R@SWqT;wNukZ< zOFd;wTFvC83DpdyLLL2Sm010nuxJENfKkG<`|#hl1xX>NC4f^{ZZ0;jm%K2xow$UK z@Ru48(6DaH@EiZo3wCwa;u6n4?>W48P4*9)dZEpTUw^iroF4Fg<4c=Jxps)53r~BeQ$QV7D2k>qD0CqC?G)Kib@AmvlYf zI6GfH5cV+p8~vJUiB(wg3y9f$-j&he6CGd>tIcS~TqiZ@aWU+^jYjX{mI*ayAlwAU z^5RpU$nJ)??*6voPfhopYabErogBf6LaVa5y*eAT=M&~7%@)c1k|ztvh_)myQC_gV ztt0HPoNW;7=rix1Lhc;?`p{Aa`oW`MwQZUcg_m#G+PJ%0mu2uL)nQGVbo!Ju^;ej} z1(*tT^Sa!3lpgh{Ur2@CU1*wa*fu1h0|3Lez=|>t^%R8r1e{B^U30HC2mf6s9v90Z zpDD{|X1PX6)bDZYdNuOyrE8hT$9jf|h=z_xstmd3Qs{355o6JF{)E$?t~q0QoRfz# z+$PeU#>XEdg@rW|5%Ciew)mbSB=M(#5K3RI+V1CEwM#(5FTKi0orf}4%Rg=B>H*oe z;2#3UZ=XtJQ1brBHW7FfUPpZ8A8iynrBn-giTlS{+6{QL93qx|Y97tL)yAc71fBs; zr~5EoHF3<}G3plZIrNuRir7Ket`mlD=OBv@Q{|XN?fE(Hd7qG$NH!)$qpnT?&QjS| zYRgZ(e|9G{#!kjRR5euu#d!oB>%Q?1eL0#++CeR_cSOb_sE|7Q&$$-~Epz_J_~&#F(L4 zgH}!ChAS+LI#H$v_6BCE?T4k-8ii%{>ixi3N%>YbAsCF0*f&cZ5ig|Od#e@ZiZM)2 zcF)|uA=H1yoY;8NJvR2&AId=2;&r}1*3&aa^7a=6?&fcqv$K?(SaJcULi|nBS_N;B61Kiz+u_qf9TdVg3-TZl0~T=gZt-$ zWpCs{yA*9&G}>sgbJPu`d2bR0C2>UyHj{BoVv;u30+`*_%%Gm2r@LN_%Hh`4SG%=w zdGmfwZX3d9sd6=wa+pHMnWPqDp)8yUzKCvaP7pwBrQf=2e^rO>PFf|4_Zns6 zbu%IS&QImzl^k(Pb2GVvqvKbFRko^TG?Rk7DfF&hE)F7)92*h9)vl4f&TTV^iBHd{ z>5xs8fw#8K(5ffJt}D}*A`9(i)~OZ@SE-KjMt_zzh|V%Im#?3=rv|=a1vh@ z0|E_2)_eE$vhK}q!E~C+bGP5edFg??;&8svZVAU}LOkXE|3Y6TkvSenLq!gj1a=8X zzH{_ObIKJB1RVd+TuWAgX=0U4;P0QQfcmkBC!^j(FG?PkvK7(sAW|CLu|)RV?Y&tT?xac7NZ(o$Z|+_7NO<4F^_jQF;bx|LbeXx}(pBEiB9FhEd#u)V*a zm@)lPj?*6#riA2Px6$vLw8k1_9R^G70K@IzeD}^o^!+=$UwGUBn;Xggcw7&^7ZCS3 zOJYcs0A!Jqam!-ImFv3~jSiNc)VQW$p3Uf*-|CkQmH4U(M;asC?w|6g2r|LUnBAAp z0#u$}Zjw`P109amKBkKos}&{n*N#51fea5uxJ-IEm)$S99ifYE-_m+<1Zs1h_|sROs-4Yv|LmOyiu%htvptN#DIv6)KG3B9)~TYyh|=I?~FYb z5DyaG_Xl&8R#h>`ow2cRsaHx^Zg-Wh#rn1Vce;Q3sr;_?tl_w_WFz8GSAHV5LS{hT zzt@IM&@mv*f1VR-FG-3j0pjEVr_|pL4wk;u|M>BPmdYoJdt*qvc-k&=^7oX_EPvQA zuh0hi@#MFQbgOzr@m$^v6iioxjKV)!nSeIb0qe2Pxlvmu{(x${W@j`xKc7EMg(7XO|J>&}OeHa4)3)|v%Gq+QBSg87MXixE2B8DrSTmQZ+c-IT(3S8Kox2>vZpcpcxKM@)%QO@4o zQnzvsYEktdt&xTvM|B3;h5J#C8Yd#|Wrfk`-|F%$?I}rJ* z=b=?fSFB_HR9qY=c%?0YyzUGm65wL73=pS%Z;TRks2B%|eW%@>yZY$)DAT=*+$9A& zy;IaTtNygT(|!z3Qndjs5G@lKjA7i(2Hq0zmwf#aCegr?U%w;?4zB*ox|RN;bl*#r zbo=6u;hpqnXS7nBvw$v%4Y$WehIt3+QKIdKtI?#Cag+a0PWjSb2iw<`Ok)jx8KChM zHTTiW$E;$-s`#$Coy*owH2s?2?Zj@kM1^HGv)l*Z}4czkTR#DY>g^7 z*xyo4?eP4kubZ9p;IJRAfZ>7p>%_bE<3YuRzthuyRO)32rZftERh?b)@)WD(^FH*3 z@zc9+T3gY$dP>P57eCNTU>)u|6W|;I>k3RVCRdIzIR45r{4!tegiD81v>u#eJ-CBi zuS>(ie2o3>&SzqYQ34}SEX~-&k0k4ZT@*6_t8*x@^9t+$;w}fF3%l8+b&U*$2`Fg&OJa@n2t=sU&WqN2*FNQ=_ zm%!sdL#}^#W)kz?b-Gk%wC-%ZJk_^o6WLq;tqB#Cv74z`hcPsc# z99Yu3>J_RbxE%xpB`tZmvmR8$VF^3y!xbTpQKSXjut;nTV}1Qdtty-)1I6_8A?6Y3 zdN+J;ri3(7gU#LqcAdX_pV4+J;tctli^emt5{gcySK{ZB+)v^o_aJOLxW<(8a zN20`^g{wee*}9^(xp~Q&GzOU_P?|#@#k;bwL<$=y$4_E*nRguL*K^2JW`37*a5m`;Se@&p&g{-2Zwa%q%FP6O+tJtxzHvsVF4goPf)brV$d(E!gucb^)-gm zQ!;5+@>tY(R| zkuyV9{t~n|G#s8gaH!|5z;%RyCQ|sJg2f1C zY1d~j?Iae}W-fVz?$WHr=1%nlI#n`n~74c%4a4v#?qia)BqRTmrobq*FLybm_lndg4?T8$pNsi4r$n zuD=zs_a5ja{20yuTDjyCOx=lS)C-vyc$`=qengSFeY;aay~?C46Bf1)5>;7pP>IQA zl55T4mZ+}=>C_BZ|H3$nckV-hp)cwPi0R4J0gHwGU_C?IJws_@8=n>bNE&U#O>E9X zU4`ouT?U=c@%h+lm8pE5_4@)2@MLGQyEju8c1?BrIMT$b4vf(gtmfmUBn5I6&B}(W zvdJbj{W#!@@Z`ptq7_X+;kPNC&R)bQM>*Q1M)Jaq3jt>i+(LALjcmCtlJ&WUFE?q> zH*#dV5K>Fzk#z1mUXf%j6_7jS+JfwT8=Xdm2#)lO!?-**qOUHFvn%n79!MqIF>$wwF!)CTs0v7wx_IjK}b8FAoQdt z2Fw^#{iUj=CwXP4PLhFY*#=l{*9K=FdcThhei~aVuEGq)oGx=TeS_?sn5gu}-@eJ! zYrY8EUMyxV#cArY-?OQ8m3jF_l|i5TdFPur{hk;&-Dy)NtLbww@d*W$0{x`k$cdD_ zRMxd41#ML!AOTwVsv|2~m)8tVHKU0)} z>^#y2lH^EKUZ@MJN$<|M?;>IS&c;g#Ml>)*|0$uDuKXg_NDJb_-l+SFX-BwYcHDuY zl_SXaGPJY^Tv}a#FC*LoO^flq@R_IZl~9(7z*%*MpgMsOs9k^G`6EwctM1oj-9uhZ z5R$BOoZ!BVTdX75RHw8uk<0lh03<)pMr7iUYA3v{ZR|<5@_%d!*Z@V17o<5lxm9e8 zm#>Cy6jtwEW}#lHQS`DUXeV<&WUeMYya;86ARk}fX=+oq!FIw*j>K6ZgB~^}e#m{U z$?45LFi-JM&^O2)1^vU5pff+VL&)=KGcIT=0VRF{*#@A$8f=*vENrD_ zh)Rkq$Z=0JZKgn4vH1T*)py53;s5d53Xx>*Pg%)I8E2DJW=Y6d$tWD|jLudenb~m; zDatsR=j<|$Gp@)!`_4M^&OYOJeSeSNAHP5DZ;yL>-|PK)J=e?o_L@%QHHtVOh}@Gh zBrDB<$_y27rwW<67R-VcVq}nJ`@Plk4Q|1x%8TN*?m&X*a+d!dn~_6a9n-)Aj^F-k zCRx)2JnC=tCBT6{?0eDlmw;}moIfnxNomI6%lpFfDZ`IFDn?%jAsl4=e{Cc+tl>+x z`~ikE3bHwHhgfEMfdx-x=jMcKoAj?{1N~avqtpJpicq=QB$oW2G}2p8D!uF*S82{_ zhtftN@2UJ`X@VK&s*v-RWOE;% zTCI%LRmpVbh%u&g^c@Gm?h5*rqlrzJdrbHXV1V4NmWU?;cF-wmjyr_-_wU?fBnTwFLk+BAC+8*9d)C97FgG{Hh#g?Fhd0^aT?1=mP+e~7#sdX+q%pi6 zt@%Ze9TmKC)g3m9Tk@gxy3GIJ;QBWstYr9@ub+#qDAFbAR)L@>ZhM7~ zn5nZK)O4OiI#SO>Qtn8GPE8O43FBb??j-AZuXQ(@rt?vW=Cw}$Jla>1k5^Z6W{mFhD?x5Jt^1N=w z<3v?=uB9qL0vlQS-}2Q0?)$l0eyWbwO_2P9^=t2C$ISLmBs{K9Yb-)ug~i`8i!|J$ zNz=5#{$NN)qYw7k?P&^M<>?V|s0I;ykG7eMKAIoq-B){a2X#f`wpI-kl)kb7*T=^p*93&SOEP(Qz{t{{W z`jMc?vd-D`Y9ydtZ%@oV+I&+@eU8-zB19#+P7W*Vkn`CJ7tk;_+melH9|xZP;jr`? zZvcLwX)^)+BPFP_h8_A*12Jgjb9a%+FQh%{9J}*vM@(D3e@5{!XnRA|Ol@o`3hpyA zoym6nv$@wc{9UD|w_3PjW=y+#(K8cj=N=#Kb*CHnt}IA{X2*LzJ6>stNVL)S)|s50 z&2ss(Q+-OVld``4!QuQ?U8iq5SBVDm&Z>coZ5v^NFyGv+&dVm^W9@Brjvx&W$@~rk z;Cp|3JPfU^S}r=_jL!p4*2R`5S+JWcini;}_eY@G+9*v%R3?nqrH?z?y%5LXmt{F< zq5W`v`=8cj&Z>Qub=&Rd#eW=*fb`s3DoJsv(@@kRgrEILv;LCe6ksUDfW71G%(7r2 zPq(CkSm0@sul;%cy_OwxT@IhI88J0kI}^8%B3nM#IQ#e9{3md?`*vhzchGvc>@Z+Z z?BYvnO6UITZVA=>-slSAlrlQW6G)R@vee|Fe}f~XtkL@^4Y;S5(Z|#@ZV%ln>{w(w z>Vs=P+>x1wTaGt!f4QS;?VA$4e^r1*ueqJScCLs4e=?Fnxvt?I(=&_wrdRgrAE^*?~kATx`6)F4Znlw8zm;NzFgptCS z^M?=my)X7V|VT!PuK~HWw{=Y9b5~5sHtbCeY#Lk)1e;Y=RT~V1!CWP z=qm@^-=nG7#d^5Vx=9i$^;2Y{GT*LhuvQi5sFM1mE{v2}&(7&#dSBMvKxc{yuM#tp zAw#NJ*9OgwJdoNm@!SnOED7Ux8h9qR4XIHUx~00(=|o+`aS9+|s$IxeD|VK4QTa-D z7i(Di6e}yl*U9I(JqasmH>^X8Kcxkd1XqOM-ZzilvqR}7AN+mom2=$}7E>dIfUOf) zC5GScm)F3j5s5{Kd*(FKWJSF` zo^ttcBc6-vlF~3Bs)>E-v;J#g$h0`NIE(v60M1oMTM&Ur=I4k42beWpb?30f&ZqUX z-b_fQhK8sjENqY+D2;xttK;#%CS61R*oUZ(+MV0e1@R1a6_p&SR@uitt)dSWISE(> z3Y(v1Li*=3(>z;Sss97VcDdR3{d5=YT8$-^04wz)8m)=VH@-#SuiHYRKVNUB=nFa+X(SjKrCUUy-hi`QP;sT^1hKF;WFPr6w;@u)E88u=_v6(m!@-~m?<|qAuv;#p6E)WX}Mh2C`?BP_6SLx z;U7X6gawwP`kYHk6M$eP-_F`u6wA`5?{7F8y-I3S|S-wbEC+MhYyOhR!dP@rrscO;|FUzIf ze-jhq)$M?W%618o#J_|iekx^r?E}njq_SF_aI6LnO)3lpu-ofsBmTP`yzuiaGxBoN z*(&}8*(fnC?wqyYfcBPmp@CI=Wp7aUgt2OYCUe!ZZ;fPiN=6^Wm7} z8v_h%Sjt?%Z|)9FZ)Dt7bKc5Q*M~oQo)K2Gchd|(-Pnt!AsOF## z{lGmVd|=)b;t$vx~<5NqTf_&hGXlg(2?tvY( zN3$+BHhHVGd0iq$1wXSQv!f<9t1o-|wbe0uG;+!3Mro6St03@zerB5vp_*zJw?F~M zR>P#Dc=zXY4O(hTl#r0#;N^v9SEB{KI<>@oLNtu)FuByVxvm&8z0z8(NoovnedDjM zdZ#KEz@hhdCe{hcti^ix-35LI@A+yUBB}@}weJp9Me}kr)i0S+o1J*QZWYF0CD6sIP=XEwJE8WiWW%_br|F6mv(9QvLO25c zpDEB#c=>_ayd|H3*&G!{s3 z4N;XHoM_h^7}$VO&T*}M7MpZI2V1t$)Csq5*1y*^?Y^@XA7-)M7XPlK08SUogD0Ho z##D23QaEv>Yc~`3{|oF_oy+!Vh6-yedCSCjI=l&Wt(^_cOOd;U9dLk0ZNiM@u|`3| z!wX3)emLf$KL@y-z6$z(`u-<|Bglb ztZ@U=f7=q&7a`J;c1-IR(?Y32#_sngvzXUoK+=nwP$tZu`MgL9prt;L_%=HF=sc;e zH{yND%2pwLT}%>wLh3a{ZJ{x3BcSJw5zfCSZR?^3uSOX4l9-9|8nfRwLECfZOK9e+ zOhg(*NPk@4{KoVbB{lBw>)+jXrQZFfAoKo4Gh&KttY$zPS(*A&-(`#wR+-XfQM!WE z+}!Qk+Ii|7@yRjJ3l%P-Vq;AiANq9by5bcdY2tf|(-iX5dpbWf3B>^$Aonx5yi3*# zqHW%ycKRZ31KMpMVG$Fc4~4*DDQVFU5`Pp6`EVrD`5c`Pv!tUM4<8>CAef?_m+WQFq`=3?HG{S4Ax#sYCua)>|6NvfcgIH8_rd&QaR)6g z1TB!N>hpH_lA*-&&%^4c+?WOH*>K8+LAtdddW$pN(|Nr%-zNdZJ`2cJPS3h|-RxhY zoh=ngK;8T2TmDE_q>Ex-|6KXCC4qo->y^oJ>1BQ^(EX8hjtOr{hv9wt6cl<(M~C7P zie~T`IoNq7CS`BeCsn@7#``R=p(d$eN}Tt5O`1tp-rj3tfog<0Uh;n5#cw!tI`qMn zo@VrN>7Xreo3B7q9S+Yo7>J9zsPy!NCsVVDRjlMk02tGI$45mfO$lEc!k67guRhF^ zAgnrXNA2+b&W=bVGWT0XVE_w;b7296nx0pm-7~?9@Ex_=WkmL=BQ@qqF9{Z|e)TtUzi24)=3)F%O@V zJ0qfoj*T#e+C7@IrEQ}t(nnqDClfy!(P3mi3K`26zzPIC)689Pq#F+TrltcY3^mY* zn89JwX15<&b$3sf6)f@HU{B}D?)`EDL||4J0!9yl{ECmX|6-mcnRdiK+qF8G7od>P z1OtzFr$4`5dV~W5IKVyb#qM+Ov4#htn(wK!u7MIf^yN!V_M>-vE(rZm*EZC+#F#MH z^Ek3<5#W?-K|S-bdul21Eot_qMxihi#3os_h5>pX8lBDt)5 zGgV5}(TXbKggSdPsgG)keoTe@-COM9lw;|1ZOM|VXvYzK#1U-evCJoylAo7H>+25!JJ5NO(usQjM>nH(QMqq>hJ z25>gEzH<;teIMa`fMEN=B53zt)x3v$-fFF~ydH4B0;Y?2i(zhsIf-} z@4n~$$P2gb;xULIjYJk72IUy$=?_~!eX2BkoVap!dhnTNr0m;UQc+XhXNF|$ z*K+BJHqPAG?Q34pA0v$<7ikmsrWwY;PVgl>2JL0%8Z{j_*t#FgUx;HIPbyvZA3Qz6 zi@xBFE{cCDHwhmQN1C5xVilTvZpms0k>7T_y}%W3m`p?9*qNM}{1A9~H0e`&S6?vK z@VuJcr<&D7e|hHVclHsl8$Fs=JH4w@F@M%b=Q}Eb-}+>SqBOoQ@++DT_lC+Pp(Jk4 zsJP9HIed#Oq^&yQ#JCAxKI@vF-u_>o%MujPL7=Hok$IN+KpZ`Pvf)?@|nSYP;)>DQVKo_2+D4w0sS20XZt_kRm=F*LZ zr8UY}0|Q1YejtRDy*4|;6=H>?vp>&Pm9sJy_eKWP8Nw1#`tg~^h zWmBS_>5zBSmO+s`8Ct>$AbwB8R+&yZs~wX-6mAxo6~2Yb02}2oZ^Ey_?=PSvln`1{|WJa z8L*eO`u)48ij?Ge?X!wd8k*}_R2B`p`+$|T`<=sp1Xg{nTV*1DI1)%~j(5mvwGYh- zt1@Zz1AI(-Gc(SQ49Du#gZBuux11Er_4jE;sxtTto!5`Ui(l`ATdCo%X12cnihX*y z^h^Y|!!dI%mgAUWoX=fh0B7`3wdngj(p)6Zq8f+}xbPzi6@KhaPrfZB`kGQ-2J>AozFCwB8zu zfTD2>9vu(HrUNhG(oXQqM>J-r1UyiIf8_MV-!rZ*Rg5yyuB3y1XMd!oOpWS5Yv(zi?85FZbP z=9TNJGh%d6SaD<|RP$%9kg-D|I(4i^B9?WkA>#b3qAMcez?yYM<=fLD^Bcra@e;gc6S0@`(KD@ zv5$=1VhQMbxmv>`>DL5dt|^~w6P+%Mn+8pH54p>k9IA*5frJ0(lu;`5>b#rAv2=KG zb`+r4A+Ltrp;3b4_s++}$qjn%*}#Ciye3(vTD9LBNtdF%$Ncn#ed{7TjxVQ-Vr3`= zveS=w{&M@4)n99i_xbLEps@=YWR-klX|V;yTS;qV&cD$JzoHeke><272^&?6*jX_A zo0zxTz$w97(&c?Uut9i;vF@2L8Fo!%Sw7s_R~R{Ma@g?ZKLsRU5T=RVsfm>2>$_`egpB#X$)H_sB_lJf?Saw(G3ExxZOL z=?mHzMj=OoM~a?A8_BClw(`m!g>1F(wlK$r21H8++VO0vdm~Y!^07FU4W);8eRa${#&URSQJ7{8RSXx&;H#7LRE9Cd0`1N}N zkY*J79LxGfyF#*_lbJH&fYP#ZXH+iYt?f7!R20(s+36FzlMR{AwnL|ubmql^kEkS8 ztlH9oo^7*ZGi2>a*$Hk-JqyQqEJC;R(xLu$AXMsB-Vtt`oIo?Ev#?X~`u^KP^B=b- z$!3+5WFs`XZG3w2__T%^3`RdhVOUagIKLbHL-b;aP$fNAPe2w<$P#hm$7XgJmrDtZ zVp~r0D0rmf|7iiJU|M7$PL@-OY8v}Wr!74e1>AwHX3Jh4%Of2kVV3d*LX`l?K+oyc zFv@9HSJ%0UlKN3caK%}ee>SL79#!iecJAdo=ZDt3WOt|gjo^I64Sy|KGL0A#u;4ac zex1RO@w0(XsC8TJRK;qlykky&rm(QMdeY(aeV=_k;$94&LO6NUv}%_hp6H}SqC5wx zqwoy)aA^fFwnm)zd7<-1L9(!Fp<`YNN3;Fl>&CVdJfs!dIIZbe(-`yXwFkfvqKJ$I ztQNArepa#Wq}94n%~N*ait_AbCuB@HdJq+0S7-+ZY&;0Lqdz&)3CiBEi&VqeHjB7? zs?8vrexy%#?0v zkQsb$yzQ&-HCJ--!082}9 zDq~ms>g~<2)c)Pt`X63wS0CzH-fnwUjWvA=N8;;Vv>jWl!tXHnSeb0!b6#a2T4ol~Bz7b%x|HMHJ-#VWd;XbX{; zeS3VIy7%hp1pj+sFBj%!ws{Z59Tm`h2}||nwt z=zf#u_uE=`HJB$Je2Kex^acJxi0nT?M`T+Dqx;qT#ts;AMyfslN&VT701#BsT30?c zrHp^3#^sOqVjsb0C+wPcd8=e(9VWJA-gmorc=fb&TK$ypb7rP;I})#yS?QT(Y^Lx+ zKk0~uHJd|GyCiv)98iK2GDbvLBdv!e#-<@t>WxDFvwPct|57F1{97~eQ=ee`oUyw= zmtR^{7|eyK`@Of$;3Jt{M6aO~A91ibO&L5nIZ38{8}a@DTKn6R()g7pRxXM`j&Pn* zP+)u7)>Fl?xe=Uvf!!?VUE6;yT6eXy%=7@my&Pxq3R)0tQY7hst+p)u^HK^C^U~j- zz`ksxXk^4H^3c>|eV@kSOnX$aByQR*EpGa+4T;Ueb2Ia(iK9n33Am6=tWk9@E9Ce_ z`2L0RBQV>Bsv7H_#kcqD`oiQ#!=E@M*YMMWLB;hDg%;@=Ou=h%4#xm%Yzo*hmZ z{o$cfsDz;>jd;vW`5#Yf46A{sD#BjO%}p?O;+DV*_xh<{^YM{DSS7c3bJ!e`w&vJr58T04C<@^gM(0j>ijT^dc2lHPLGh=Q^Z7*=Cr zSulGNLtgTz)s$St%~uX=gr7k-sG>h$*gu{;oS)2HO;;rCG$RO{4WQvYm0Yw^BL=g2 zrd?~X$rakV(@>QbxpP!kSGP4VAa^p+d3O;KITzNvbXOohz#}Hw69iq5XEp9$q7usH zc^ij8cLs54_n3O>e0PD;yzi|kbhPoZn{tu=fQ5_rwI-&eecLfV z0fwbJCEh7*Z}=_Ir)m)_mg8 zq%vX0M!Hq26;SL-(v{L`=Tu+sL(Vck^HGUl-M#IOA4dE7Z;V`}i7D*pmV?avFE|-{1Q<`rEA8@z>z!6vxI%kY*}8Q+R`-W?@v#9t~RQu`z}Y@k>v4GZlyCua8D@8uRei&~HkQ(6%rbLMd&{IRrVkAnod@&`NSy|TBKDa~wK(|dSG4Yt=)ySGa zdnkYblQtM81S-Ytz?2byX+I;osK7x}bDSUJj5|G8%D3-QwL#^#`x-{m7tMe6GVC%u zdgFPORyC2k4N83K&)NrXIS~0ZDyn%|oJchw_71r>(!--k&(XP&z)ji41w9wEeNtZI zx95uH!hnci+pm3ZkP0o$k1qmN)jQ|BWk28zB^UIAK}&(E z+3uo^j{rzZxc0aujlvLGe0@zhjQTDxzt##pG~FGsZcA2CRryhT#3LETRSfbK9F?_I znbb$&5mkhxeYL!fN9K9H)7;qbr%rh>-vq^17ZlzJ=paPyeLaZQ%qFs{-rzPF}|5pYw3F2tUu|vralqupOsel1Z1{me1KWo#`Q)p@>WC z5wD)LN^Xn%1NI+KWq)m77||sIEHG-aZ2?fPVc{|tW^ZC_Raq{&*Z@kmG%o4pXmnxk z_NbJj-80~c7buX&LVHIhGL(_uJdU{cuF_p&^4_-w{%W{x<+U$3-|h_hC4Wrf@7+$l zpi?s~WI_j=4s~eHVQ2nE+-2E;K4^qBT_=OM_{W5J8#VQo`V#9LTC}St%KU@Zdc6zR zR()hra^;c!e|If{Z0)?~H-f8T=uze1C5s_4xZ8eYkZI);Q@Uo#kGj#Tw?e%qEH}cM zq^3-N*KK8+g?mhc)YgjBRtlXENun&{FM}s|(jlAlp@IceYGCQ>+d$HU`bF4MxuAs^ z<@pi%+c3z;Cet`Ut|V^OK{G;9@@)s+<)>@T^}l&!JY@f8+AD=>ZCicn14;VQg5j9t z+xicU+eq(Q3EXH{3xuDD%!;OxNr`gi^d+Gi272luF+$I6YmFjFv+XkH5&7C-$AWjI zh13d~MWf{si<|KBXwC0A_kLzJIcHUJH#7f}N&QDH{|b+scfMEulSy5cwto4c0M{xs zd9y%hQ_XAZ2H^fHO(=<7I^WjDp|z^I`DCJhcm3Ss_S!5x!%#o5;&5_fxn%C?ZvI}? zMCQauomp+d=*X|pz2AY}Y|sTK^!)d@8hLhJ`dX%O$rR#TDx=>9FvAYyU;x&-!k!8l zymJ40sa~E9xcB9Ms&^&tiiYnBzpIFNU)Ph>DL_~X#zRYR?Bl(Bqp21Mnt~O3dnc9| z5^om7em_Y0{A7n@g(bdsbeC2Y@)u69&vzZcf*(S~vM9+c_%)%c{_btd2E&E`j%=bC z3fwpH_$4)Z#IY4f<+wxN`z<9GowjJ19EYV0i#J5M|C+Q^1tzB4|7mku<63A-ax+sTX*LKf+ZZ+^|mjI>)%p>3~K*>g5i;KV!xVmX;8~E`6?D5US3H30PL&oRf<5 zN@7$M_97&p^Snm*&80#uX+(nh6Hmaa3yT^Ns`Y(~ap$kLj(TTbd^pUfRVQeMIfiX^UE?y^edErF911Ox;HiH>cA_zVKa5= zryZ*^mKN2e&PyXAs_^NzDTgz5#^rAOn9%-bvJQQ^d&k(t)|V!zX&H{ZI4wxo(;zP+ zXtj&>W5eY0CKWf*>Y-RI1WB3{0)(fck|nAq#lpP*s_bMqu?d z1Yk7jcOWDFqSKef=C9YNH3EzeDA5d~NeTFExva_l2>Y&B*4>=8A+y_e)^I-Q!a{IY z!OlVr#3uRV>~uwA_DHQUaR*;3Bp^A;B@bnpmjUwXqn>q3Z~B%D2K&7anVdJn%Cq&8 zot)_^ureI9Ti4B@pL-vCh~+x&_o78$Wq(eVSd~!x@nQn- zo27+;+f`}R)E8efr!T`ujB123s)QE~KN96iWQwlL0%IV9ujz&)rO{3ZAu!{5sR8^1 zq_&u(v{2ksECe3;iH$_szWceR2%3|nI_veK*HtBsOY`&!-N)#5~8%zFphthBozdDo# z+_RWYtrH8gAMMt+hU<3u)(raQ`yf!oTOr zroU3@7_j32euMf7I!U)%3|hURdYt?jyDt%xvax>{d@}f`-3wQ?rx_|| zC9ylbvZB1)$>gX%Kco=HXDkwgN^^}%SB57EkG123?BEUf;KSE|CC!Tl$OK_?9C$4b ziq5vff&CVCu7h4hY^Xlcb@A;P@ggEYvpl+I)VAYgcR-GJo@8K+2EIPUe?&acyCxPT zB^)rKH1-Ov@#U!`>7RZ8@PuDcw2Lz+s($03jD`TUIM9Q#bd@>~IVDSBgPSQ$k@h0u zx6jGG{Q=U}PG*B@a&i0AwI@I2&LyA4Le7@36c5Bl?5K+qZm}XiE|E-FwEL zWu&nH0!u&H0@1W|?0zIA&4DkyRc)#L@GBvVDrNutPs%Ri(Q5Kk%p!^$N%fBlkr?00 zmT1E9ra_oLKBb=X#QcH&{C@k1xh#YjSD}|F*8QQhE_4HJw%7pRnr>N>mrw?BT zO0DSIjo+1142A}j5TA2JH3Mi0+`TT&w-{w9tw^<*ahPTqsR%}=v1-&>T5L~OaUTRnolY%5z`yP6PdaO9&z0m#MO<7)Y6X-0(r2{x5LH3Ca(SRpZZ zyz$~98^NWl2gWJuyGK>@wgtOltUFm?hEY^ScdItE`Kmy$8I>0zWx`hExEjr7v2+BM z{}wg_7c$*xaWny3DP2J$&Z;oamSIz^+XG5ib0&A~3q4J9SK3*DWF@u5U_-Gvc!wIP zt4pH4_UzGauT=isGEdLvOo0MMn@r$|i-TUG^eGfw^$o{mgBgjj9I^b0MptCKW?g7> zAe|)D`ZPC+H72;n{B_`!M!s!wSa#h=SI+XhW0lO;djiw;9VXVXcAko_?(FOZ0)3nP z)R!bvWP7BHU~?f5$hF{0u_p(PXY9`Fjz+P}vA^_058AHwSe+&jLu?hTy}Q|BIp`qM zd8#^7?Lg*GZwKaUCo^6U_7d2yv5OeP!$u|o*aVfcZW>cL95l@-rKs958W4+Pq#oKL zq6a2Q)%yQCH2vt_tY0h%dQsGbAa9-nV|oZm8+uy~olcKQ>z#hC#yd}BAiOeBcXK@N zr4H6?o%f8Sm5TX12SQ#2U5Gmms#gF0zNW_$4^rlQbrT0&>%+4m#zj zJ80m!eX{N&_bZ!`?mxBI`ZtnLui6j?kA%qUcYP)(T;4=_j8eC4g2cI2qTKm0(Zgl& zQg@C|+^6yQ{{%5t>+X97^p9+PzV$H3?(0Z_#_(DHtoD zZM`K8uCDU#WRqq~l?c=+EU2@(#0B%RT9uLwjv)tZpaxQQUYta&MVOb9&iX^hqhHjJ3hVeMO%WRz;zB#QDR14+)Pr^7YMv@QCxie^Rup7xm!ycVWH+u=%d)TwIwgVSi&jq0+k$f*|nc3|jl?=RNgo)Rk)K z(NpjrqK83-m8{1?o=Ry6SEpM2&Zs=n9b}x8Y*;STWF@`wQXl9(V)|~`oh!8~mCXiJ^bt-@+WojQgD`j#RsEY!$0xAzf#L`8n1FVmW^tlmp zIxCG7TF64)-AM=VSQpV&<{Lm20d6k&MJc9dRequlOuifce$au2gS`DLS8piFOOM%8 zDNLdnR5DaJ&zg>UAN48pwvzsnAA@i8i<1;^N z89nxvQqO9TyQu$1*srLyOq#a@0%AM0ILa69$*6%_DKPYm+#%SLy*vQkNP6f#t@u|< zm%f9*Aj9$FF~?Kw;P(^btK`kiB;R4|qT`GbcCZ`72=Ts&Y;9xxrJUB<rvZF2l|Fp$#l!Ff1GhlOP_-~UArv8MKUtUFBlQo zRGEi$x$Y6zCQA8+BD=J;F8o&mo2#`2qB~uRtEJ1r%JmmPUTn3aM$hadE&+xiO4lw)>M=^xlDt z*Xc}{+VXImF#^zrni$ET&s1|>dgoI_k6HnEiWjdHar79#e3gCnv}j4!O*AXkT0=9c ziQ4# z>V_l3(sRuQ$SLV&wk+~wclS2njfR=-KQSd-C)uGj^rFYsMPE^hPKQ!ffHge?olSx* z%8B4?VSBjKPNf*lR@I)+9run%Qf-)>n=`L!>dBV`5oz93`U28K&j%vbx!)=O%Q7MV({nU)FP%`6g1@#O=^ovb3{LY*>zf#(U13zug8yfm9RGj_9Q89K-hf^*8?Wcc~a<1GGs7-Ace+Lbm25Ra5Ol-Vn;Fn~M%+_C4J8SE}u< zzuzq-$@up)ftX>j*_oPqNN%Bra=sYo8e=56(QIrP?N?CD?HzL6EzN0h!kXK;)OB?; zI_R$|dED=>`7linWQsn49N8B%$1PNhEy*qixC|Vy<72;OD?i0?;82J# zWFH)+rC0VyDP0EWgdE~?=?TUfQyL1$dX@0JPoK^sW?PJ1FseUtI0#LnVPR;9<19yd z$-q=o2q%W4L>=97k2Tbi=e@<5=``YX^&h%eP}JLZ)Xb$8k@TSUkwza650BlIKSg6P zG55~$5u1qI4R7x>nxEmpVww6Vt507co&e{UF8F-Fe)9B-Z>*p7 zMeNOpZUBB+0eD}&!#m8&%VeSN4$4mZXD;oc{*Y=V1jw{CsaJWH{&kg5Uz&oX!-EVm zH(t>|J7}hZmmma6>BPp>fYQGasgztk>V2TwgaK z9Sys`a8Z>QS{ZGnE<+?EHl6EgE0~{v(f0QF)XRz!R+ODK6H#4E+WZxg=|32+g(Sw# zXyknPrLW$9%xKZN7wY1&X#I}v1U-fH5!GdM{ONarFqQOpvpb!-_s>B2L+)MHyR5aK zs0)OOshc29xos`GIbW&_`{CydS;A!>jo@Pn#Yj>r*-=3r{;k7j1w3L*R;)uNgW? z*nAMCl?&4d(N+&RgZ;hkF1b&Y-J2YNo+fKD5DMA-P^7%JwWr)*UN3`Lt1#J{x&+dxh)TLU1&NJ>Kdi9X@hT8|3uf)Bt5K_ct(e+|!R7o4=E+~4B7 zvQp7#F}Qbiu;_7XKF?KTBF}psj}bafj9r}#Q0LhkrM`WOg|PA>kmHR|GL=i`zp>Ru zE9P@e{`j`8pY#Pnl0N8AGrvIYiwC8OkjgShOI{BW>9-7Mx|xY%hG>a0Zqqb~KDE^M zYP}BD2w?{ivnsDkS)8%WFh4Li_hG@if>sE7Jsl5&wZv546O~sTqHwcj8`)F{JrFno z3eq}gKHca`_tUx8%(i|?DaAN?gj)$pTjCC;Ksi5w9#GleBL3nB&#}X_cPOxiv8zv8 zt*YuVsDu&%H)PsKc@EK}IhEgRzyCGcItuzN9E!L*Ir)rqJW__=BWCp)zjz)&Ub+Ju zSH0r)Qm0mj6@Lu-QhFyJFZLsg9_n#wB6Hx<;pyhg(b-_Ff0U)5(Xd69mOJnb3)|Sl zEi5?dv__n>S+MVGQ{7FZ#ojxV;3pW4ijQ5wM$}8$K>fjsOc~Vb*6NOE6tWGO-pkv* z+S3eox|+xH|Fi(sm=KftfH+xnNq1(@WsG2AcYBqKlzehx;+gDRszo?Yff|sBV7oli z{W8P}j{3m6sK(kmtvQ0TMztwArxk&huPQ~yr?9qcjwOm)=a18aBHq2av2YU_DAGHP zaA?XD^K*E^5bSHW^>BK)5BIy{-&r@Z)(_B50X>AjHr1UrZf-yI8D+3C8!CDGxVucZ z`F53^*ipJqyoK_iWC755%0c&X&!ypq)yjKGSm>t)UPsp2J}XjV`v%;7LIpgz+Mci8 z`*h#YT8V0sN2%nY$HBi2c6ZVEe-dq%h*Ztk=dHE1*IkF$H?T4(PrSW>T4YQULBn7P<4b!)lz9sR88n`NY?TQQa@Ws*8!w=Q?S8O+MWv`3>&^dO{ zIU33!EjBX^iS1o7>8f+B;V(l&*UxwN=`d4MSY#bC`H3ECRXR)B+zzi{HiPZflI5_!EPy;x|gFm+ye7jkMjUG(acHJRlXF{?;|=k4 z{Vm3ptF;4`S+qfuwd90Hr7#V8%L?gb)M;-GPt2|xP2QEq?TayeAEx?nTCz(_wJk#2 z`z?gGs2jwb#4spS#@5Cr<;qJeT#M`eIh$(WG-B}7`=xL+So>#HjH1+RFj5=vY=h=!RS-#h)=nBr~FC;tkQ~}^lUfjzx0}Q zTf5xK^w?J!HAkbpt#B3fEr+|(KHvSiGm02n%~|hK0qHHz=2DNSmS=M*1vr_wm~1dJ zChTi7>!+U->M1*ihLZ9_LYlVx{rw$YdHM*tT66Gr^}2`XA8=n4M9q#Rl&q^J>85Ov88#qA`LIwnaKI!E> zn7(Cr!!bg$^7&U`m)r|U%NFMRKJ0kycdC}P(~C>bTN68%mg#P4nWJLb1Kx)XCxtsq z1XWIzOTL4heSHOoq+vAaag@VrdQf(M;j7=vV6n^>grpDB_iu3H!bEauPr|v$De;XI zvmIh~lf|I7s;X)#RYu_F=pI*V?du-Fsv3A>6~<0fIDk=D>a}&?vd{|)$_?xW;i%N4 z5|%BQu=;`U{u=kBBJ4NbEs)65JFFQbx$&LhrS4;FSs77>x_NlkV1Lir)6-M%wGUIF zkl@zy%a31WK;8uDe{(?bb0%4Y+n6eDsy>^Gt`U|>PuMOSJZm6nZ5a0$W6YLEjN_d;hpU|c1O?{{tCjR>H1E1Ob+X>^&Yg*c`fYTdR-G43C|%gLc1bg8RJ!p5htB3))-X#&&qsi~>r zalh$s;FW4C=@sbLsYg?}(#zUvM3hx9Ms1lJaQ<66m%dRc9S#~fE{xJuRlb(LRwBl+FwEh){t(`}q}^AEZ++xRJA!Qo!1n z`@TYEPGjr4Q2MgV7*X$t_eGbnN?>46@z~htSz~qeKAD>K+HtTo+pOo&E?J;iVVcwj zHZC%h)~Su*4ib{PEH`H-rVsVv`a}1J4#61iC_Rf?Ux~sV|4EZFFLXH4+1uZnrnQ)P z!%9)|?^;=CWtKj`{qB1{*unskS*MV-E{vH4z4QjVQ#!m}{djbXj>f%vFW%R-jXE9D zKpl%7ZPbITAkiD80DM5C=37rlT|m3$R55(Wo)K^Lkm8WB^OW1~pfQoNymV9RrK{3P z<75yc!E7DMK4U+&bA!+vSPoS}z7wm>>iEgHIz+xmbLw!Fd_xhdr`A)&h8al=3k+2G z^yvtu8GK0NIwUf6JlUGi+^^J9@n($EX9B-WD&MtH4xY)AT4W^)3Z>-Tuv?RT8;0~EF zQRn^UO*hK_I?LU?k`BU)%atWyf~!a1++_WGfk5{RL5;qG3dH1|6z;>X9AwyExk-PRO{zk$uo^u_S%aNOGd;9yhTUfnqm=6I}u8_RDC zIe1lCQ)9W7<`NN|4eq!63hQgVd$4EV{oHT)51mdkY4J9Kt}mt{JVYZgXSFb3u2pdBsVp>&jWxl5S(|PTVz}@RN7_vZL3r=+v5P zf*+&~rg3##z^!4RD^V<8hLGX3(e?3ZUfRu?i7TO zOeiWzvg(zY>~gYKrOZ>(Ar6vN_Bl9?Eu>*(@03KwF>{=AtdMc6WE|rh`&fr#9D9DB z-rw8jm-7cauj^db<36wDn$~1zRb-R|@F(Q~{-kR&X4kd%V&SDTNe|fv${PvqVAx!o zNMAuX!pJB)m0wU08APHYRaX6$67NgeJ*gI;T^?!>OjJk? zaB_MSkApUNGT!Zo74tYTK1(T#2X$6wwsVh0%QjCWkWI9KxFVib($Qv$C{jV&vANl|NW@oe)K zkA*g1%gKO99d3Jke;UsV4{{2YYDuO+<9ojag@CP+Ck-bo==1nNj$GS7KDyzB6?AWB zr1#5Iy}AlB+5gJ+EmOQyVw*BKa;RWBCYSjevn6m*$FAIXas5TkQWp5k;(xx027i>v zj9`32fE-sv>CWgi@FM7rxY#HbD`+SU#oh)31&i4^ z<2cg}g}lOBV}7Q$m5hmq73t&TU$DpH9C{K2m(HN4`4zM`B0fZBDB%IALA?&CB{IRpQCxgf3Doh-&>qA?jL4NR*O)n4WXVy9&c5+u!j{#*G zFZlIvE!~6&Kb`FR0I2k;=skd%JfuAC=^@#{F|{fJ?X~K6R26;R_}a}5Y38n%Ld8G% zd@pgO6UcK@8j-QCmlEHJHxPK1@JcsHZ}*9vxdwc@SlAcmwI^@e5&2yj>5t0=kMxw@ zny&A}mVPJDFU84I!(dJtRAqZgzTA+}r#o$u*qZr7pDC8gC!-zi@unnk%1CHBJ%$Qd zef66JHT~liVTsz_+y;d$J9O@h#-wZcjcmyOdC{9|pjFC1^RiG8cMx2yEviAzeKH@_ z34s#TO`7|Un3_y1Ev^i%EeB{XVUEpE1*kUY1&BY#9f zBxjJJdhl_gEGzNru@ZGkf=M!QY`!~kp13+ekM}&3q1)J6A(0kWy1O0O^*c|F*PC&; zkd3tH=xF=Q>ehJnOn8$jJ?$(xax{Iq=X9s4p6*n`|A3v^_^WZ1mF)E@Wf)da8^+k& zoG|l>3&gU|ck<58K7~FZ_ny-G@!0G`%vq`(RQdZ({OhVZe*jbIW~qdhH=PIjC|D0xoA7EVO>qmV{Xf~6KPnYgJI3O zk(hxcXE4mgM;!I#&aU7<9Rrb^k$ezT@0n3$prvW@nVb=^C2^ihFS*IDFnqrGsa;@w z{`S|z$}}@^>jzy&H~{p37&h%QUB_?iPE#D*vF(jrOz4Guq zd9=JGauNLr*rK~jr?6}Pg)EcL2Xjll0+U)((J_1fz%?udH9hO=ac$3L7h?7X)Uw^f}YLoJiMcJ6J_kwScui@v4VqHKDwWUyZX zk4)V1`F*)#pL_#$bdWVW|K&u<)cL8}J|{;@q>ODxAI2b|b_&-LKW04ZO<9N-RZ;bv zZXx&m{vEtXUBvYD4FwgJ)CI@{ za{HQ#Uta3&{9)=k!QYi3pkYC6iy?%;u;oBo_GcsY0N?*VsjpFvW;+tvI+QQfUmW6G zk;#cVV0?4-E?xwA+q8p`x^^x5DJEJy*XW-9OK`7h)T2eMRc~SB*r;D^b@{qYkPlTx zXuLkC8e3le@vfp&BF>Y{xtI`lgJ z8}qhpXxKX#PtVvS#PCn80Julq>2*9v2)~Zw1CMJU4|n&<`_@lLgnsYJx;h$z?RVY3 zW1%K9S~|$&y1L@1bk6xax8>~rzFd(T?<5rrzsvgj;X}vlDexqBLgJkX?vKv+XaIB; z%>j(c8haxP5_`^9oq=t{Ntcl|se--C8~l$_#78B%SZx0dc3~(_WOug3G%|oUwQuJN={XG;}2#ewK2$d z{HEhb8FTT8@exuMY1FKtp`zLo;pR3sjsv-8H)n+0#Y--_W6xKvN2{HbB821IoM4de){@kj zJBr{zotX|(37)HM(iN#2igbG$6{T^y;u?vq+=y#ZYp(!IxfdIFGBc>lzI(-q886j( zRmRrwR`PuXxw&6oGkJ&om6fq#01S~+RQ9Xv8>=Ca`j1R>{SR0*kr3|0{PJ%Y*lTjf zn0x{1z0?Uy7);c+Ip+b4dWifWq5+?CflbdoE{aF9Knb0fVH)phuYEU!|ICe}_;oj` zGLr@#)beL?C$fL^`EY6VEr!qen(E1=h&pb2OHo-DBQA(vAN(gS+tq=_t*;1BSe@GWpL=`0K#KJ{epEqwpx5WyH z8Os4pinowE)Dq3TuOS$9=Lja3?Yf+o3fpR)lVGZFF#LBd6CN?yP>-#vqy+_fugK8! z*)@85do@n(+`Svo{|W|b@=c#Ld`S$FKiHRkcn>PR10Cvowy{tzc<}rbkV~Cn^G?xE zeD~P{2v_b2iwm^`eRTu*gvpW13Ph0!#@b59%3@-%#@Z4M^1~XwxP0`yaVp|WTA+W8 z`YOZF-T3#6ljaQhzyqDH=ar+C+%Mwmu(N-Tka?*bWg~wdWEJk(x5Q68ysgAlE0>*_ zHryZYNN-vgL%}vxoh&xn3CNzPg%X(|jI}JuOcF;05{NX! z8S_mK_4H7IpY4pKUxO#9Ss6H-ti}nIHZb5=Fv~W>Hvjteo-&aj^4sEWB7`0pzR~=~ z*R!FIVWJ!WrNM0=kkyN-M#0-27r;G%zHj!f2QlIg8>|AeH)xeo0nB5K_qQ)6OAt$XCV&%U?0ecd6^~R* zstt|}cP}vS33qq)aCZEMZr-P9jdWMn%ZL+Z-Ay&A!teD5VYCM<|EeyJicWVp+I->B z?*zsx1r>iDy}iw)fBzVkwL#w25yPpu z-?lz8f9$HXdo{lqyMFrV0lm)w(5E6DMr&rALf!u{urQMaQ&qq{%Rp10nQnZYXA@$T zE3~g8WxM`&{qMfdpJ$qNZh}}2_)b{BLCoa?It%x_&68>s6BGWM#HY3-vf;V)K zQeEkwDJ?uj)@s-C;t~f@o=eW}9i?r&#>l_n`1XB$mi_|ApY-`e8sqaW3zK%5qU_jE ztX!|7Jqt5-^}5+@lYz8|K*_W(8O8u$$Rsud%OE!wLJzGhE!$1c7mPhzDxTNISRcDg zfUPd-XA45O6h{%E2VFA(W}t-E1PHOeXB$` zq$7FA0k{jUdhV#s^7;@*IsYV)9*go48x-DOe31mFX5t=^!n`O3WDa&EEpV!hiL?Dsl|Hpaxw@QWc!SBdjS zO$Ah-r?WGS`TF4$Ue|%5cLsX)&WzuUjtp_KbgCoRO6&)*diUfxZKeKY4|A8nFD=}Y`WD^lvCRh4OMPt$wX!W z51m~E1loK`32N?4!!rJczF;eUI}Qn0M2#v7(Kr0WD|OQ7^Q5 zEk^@IYW0+QwVXMuqu#n@-}FoceX%x|>qQb4_NsP&-cph&Uth1`6``f-lTX!!AxrJiPs&B_JQTak(4wjMU!3-<5u%p(J**k9% zg;atJ4tV5dfk&8f*vO7`&l(`UwCf??KnMZ zB&)I35SQ*cK`*6+;Sxd#ilNxtEvLG1x6jSVS2?D1j@{4UA2+-mp;%WP`qZhYXlHJI zPB1Xw~rC;@V)b9dHizZ?58NOG#f@+NjWhK z+~(i+t!B<_u>YNexZ!J+rXut(?~v7om2JED;CCSeMp*3ql&bK4E!+KbZQV z4q!LS`T!A(H|05Od06g)SiWC&*!o*-H{}xb)J{WMjxwXc%4E8QAOi$pCGf{m%OZwV zR)$m>T+8^Zox2@+RXS(_Cr{Pc*0|=ix+BtOAVoOhi;>dCjMQ7n->dvIbeX0nGHNmk zP1&3FQ7nJq6ryQVq*OprX|a6AK1bF>QRc=q_^*0Qm;!G@%w@#!Yb((oHb-)H93WOj zrp8{?l$WAVH@H+HrWlV^9*OscBF8gyC%Aci$7(MxuCMH$Y324?#MZN+kI~M~l;A82 zt6GqTO6OB2A-PyUZPnu1@ir=pD^spz4*%1TNxe&iJ0Gb|@R z(dgK`zL;E=p-)+JdbxW7=KXsbIX`(*$70a_wP9Y?VqQ170%4mAauN|fGjoP}hGhP% zF4aVc_$)ED$%EI)`H{E4U!NV*p9PXm&WB>qrz^GmM2g?|J{EOio`391KF*q1oUt3~ z#SP(J&XtJIOsFJE-p7`HlmDa2xv03@G9t@_W%iKvd`Y0)E4T`$@rN}puNTs*Gj5h? zQyFVBUHARk>lBv#@0W^wSu5f1`T0(vI>61XM>qh70PSrZ2ezciG?oOu_P>D?m$^-Zre^q` z?9J!`Svk*Hz=!5aCeAE@PGb9H$+xv1OA`K`JSk3;@Bo!s^$ zyRPV%mFgGUQj+rVi8DPfc<B&(N7m3+N?t+K>D z5A4Rhk@?i^cL2bF2zA{|1obXNR<>sT$ zaMfeB@bJeIWixk1`05c}p)H>y0;hLp%Pn+t7*B{JBin1ko{ zz-xPFtUx!!3H{RWb;aI7_Ideyy4gjA747=KaeRD3UhfpWy}i4s94D@r2TIzCPcN~a zYt3%L))_@hSzB9k$p&w(z1+CK#Z@18U(^SB(wII#uY-9T;63MUV)!4Q3;ZP%wfsrg zK|kKKU{+=l8x)L0t_Q0d7;9KqnVSbt+Nw-A6TT&2uukXyhS>;_=6}lI+ zJUlq{`?to;uERIFjszvTzjW1dtP`-Mn#C>s$RY2Sx|Tmem(SthlUCot58jvxY(Zm# zFMuL7$H&IlBM#+>LwA3VdHyssveDR`b^GH&NkT1h5LvXwc=@lV(pLY55c!<`zKY0E z4WoW5@>Ag15;|XR;o4^Z219LA)nS`?pxIlR0vYdiAeYav0Aym|6GBoQuTw^UZ`)Yp z8QBf1GjoB-gJQjrBDFz8Df=8@l%MhX z2AGI7%iBsxw7YNB5^ANm)|8~)UBX3#Sn|CY$v?UJK-_)n&m}_amED-r8AGKWv;Gg5 zFYaKTLfhbo;2c2_aVtJ8@VZAD#BldA* z^!y?>aY$hYY+4(|=U1=OIqp;V9%qBfa_o{6pEI-_0e6&&qTNoIK-)8y zjEx9ecPLoXuL=){A?|6~faGiVi52_NpLHs|Bn8rLNL!2LeO9KH0zbJIbPkE_4JpEU zt#xxS=plz%;EYV6Gmb|`(~1Yat@RYcBI0OZijUBv=$8zrWmE<_P_g^f7y8O$b#d8V zy0L8Ir9cxeHAHMyc1pcYCcJm3pHc-`#*|0qs4~Lg0Zlday}Ma!-5XA;PdHY9LcES< z7EZba8DWKkZN-Ebp{|LSS{T(&8z@#fOb>dszzdoiN8^oD7)UvP&Zw)nq~zH9rRRF7 zc*J(VesjLWuzhZ&iH&LmjDpP;Mf6WNr+WvcbxfqHN=IzSUvU4CnDQGDz7h61##07> z<`JjRoChsub-$`H)M7FxC-Xq!Ei$;_gG6t99Y&<@nH1rllYoVV^#w&z-(6(D^zOp& z@SoogXM8xh>VKhybaV?@SUfM)o7%tZwH)|$vnVSVa^$vDG0xOZ3KVF`;?*45TL182 zc65ucV`U7Tu)hA`dqabDj_UXL1M{KIrO)#>(j3z<&huJ#;qcO;)P8|MghJBI8n@DI zbWbUt4s|tuYk1v&7j%F})h+LDsy~bfaF@b%C6RzpZq?z)HhG)BfUV!}Ba+T#C*!b$ zBNYPuqSWnj9UMH?k3dx_w-Qb9gKj@zZgs&0?@XjlHebKEyy5>|GI)FQr?7wS+aPeT zDR}(NHxLqXFU+UH-9oF0U(9;EPoS&P2IYY}?|+-2F`tfnqNJvBKp5HE+o1_LIvBQk zN0~j-RLb-63;2qBn08#`_DL6y`d?xP!`*JhGK`2acsJosT zhU9zy)E0k0H}?!v@~;H&)A4LGxh)HrC3~HVJs)#EI*MON;97mZ)16~xfs+1(zvrjv zvZ`|>?|KqB%AWKco?G5ag;nYWjcbMOsZ&E;@Ep>e*;)6HY`;3(g+a3G2*BAW{hRNV z6e$K~4u$2$l1=H+ZamM26`Vlx%Z1ZOf`>UZ1nH;FQV<8R);%g-xoQaW5AUUAWf&%>ByaoB7%T)XC(chW$7J~J$DF0ZNcSVslC^c-qO(Y(*A7tY z7v{$&<8{F&Xfm0Mi5@Hwarp+O62y#?V4QdaJvkjog0vUec5shEivXugSuzjeveeqq z3*d|H_`A;}0bjK3bTl@@3pRQ~347A-DH{fIXgy#aRyr@xBQKuMW(2gD`FnWS6!cwH zQdUA%Hps2XKuJ)ZugS)?$Wo;gnMZXLFPFfpgk9L;-}ElLdgDCNszlPC?nhe^9R8{ySoiwQ4P4sO`Zfz*Q00}gn8JfbD{f~&hJBl;J#}vQP8uk-oc(W_ zr2m%R-irJm(iis$t8t}+w)0xZ8!9;Om)1~d=!@gW6=fRqiNS}v7s>w|M5u??kDqQS z=R1w<#C&1uX-(y+tiUy{Ap73Gh#}X%&BmfFLO?RyDpwBdUHzTe*Jm<}Qua1=2ZSTdQ+pk~yI<|> zsrv?)CH@J(L{HGTF5u>>+n~Qib}fdW^pw8xt6Y#pPh<_l7|8-^YNR@~tfRJ5w==)s zG29)o`l|=kLjxzUlo17cP5IL|rEtVc{I&W(?W78VKX#s*Edbj-3% zcgQfdv(96RDbL#bG;_K|%OYkr|>CB*#94}X)czzc43csEt&J61SL zdI%?f1WYJr3+)fo!#(2(6gq6yTy1Em`W6ltKbp|zTjF|Uy7aGX=X+QOAMKmUpO?*# z7sRqi5w#BtEOOLk#e3uRukCEbbz*x6j-V~Sspz+l>T$Ig%%0P$z!`OX6Dg23MY{QT zt-7+ZgPeM~wHb^;Q6wenwa4|8?qIgE)pDPXzhV4D0fx1ZQ(csCeABn1kKyj^zqbn7@0eey|MT!Cg4pg$^qyhd>2_@u)-Rq&P zJM~10cxQL{lIc1Q<9*|i)Wna4cxoH6!la~aLnH5NLAvNizsE2op?21PhrL$Teo`W1 zjt8#U&^iOT2}<3kvB65sv(GSjp~id3epLe>5 zq1C*po!U@s>2>+x1v{wm#A65WdEjZGwju%6aUY*K*{kcce;ari+9z7{PHOu=YKf!;&e)m0dBjtxeI{p?m~s8Bv^WR#(=sC zc2Sz+&LKwMgj_{@wX_^Y7bGLRyo`(tGOzLpG!Q2yc3BJ8g%+D)V$4%ahes0L@!_0o zG5>Ueh`vVN8w0EVTqsfwwrIQZ{O9lJBfp1+yUq7nKXRJ@IvIkgmhy_~*&ab@lzpwX z_!Nm5W*dlXau4hW%-)6{T*dei4di0YQ}!ai$3+gT6~wLn?5M8&yo$97|9gqxIqfH& zivd|@dxrSDY!I=bmX<2rYVtT|WU|J|4?+LTO`hMe)~L=r=n2KtNo()jT1slrsz9g6 zSiiUJk$(-27r98xKG|j?)01(9ipcbv%>p(9^qAt?>6%K%KJ}U+kvxr?K*A}wyGQ2G z)yM64CI2VFWOt`2`UcNEG-{dKoS@HDYZ{6nYC99olKtImJevWrj&Lg05&eZqRbS-b z8T=z)FU8#1LiTdR$&WRD1YGfHLNoZ?U{^{0m8&x%=d%gS3+?TT7li{T&UcP^l&$g? znqnALSSL0##{r}URy*DL(IGqU%N+H+KvcZ2rAL9F{g_9v*S|vK!bqok7*;M0`(CW3>{hBXG4as z)&1%V8(os+hX1U(zPXGEPYK1Cc5){++fe;R%-)M8G24!KYb+iYBce4X4yCENE(Z*8 zV@HMTDwQSu_E|PTC&zWON^g=&=?2UNU3-JGE1*A9^LvZyQ);iShcHk%YB3#>3J;(Y zA{!NZ+DZJH^&fU<`Q6-X&Z_%DF0ARR52gc0UHr~ z>}*mh9G{AoaI#LEVL8((`moLY{JG5&xFcdGBBr{UH3TUGCD>OS-PAZ!xrq?SBSJbj zFXCB0FsaK2Zf~}~nsI4on__)Hfc$1jn z@I#k>6JL!d(l6q7#u;Xkfx)-rbnr!^6|KyG!PhK@H{Vx6-{qSPKgBALeIMsYT$}-fxWe!o5|ZjB`Io^(v2!E}|Z7J9OqJCFvyW zabFjFHoB9#l1g0!;zJ!01v4r1WWtl&%wPCL?0Db!%gQ1Zw#1dPcbclpZ{2X!O5V70 zM19+Kq`~5Co=Y-=g}PQ=p`dPY<~t+5`k7WdwU;s(uzTkiF-7kV7%#JIRJCL+k1^ES zqE>!G;#O#`P;_%|m3pj1NPjfR-9+1TPZ%aKxk}$fv3rGJxq!DEE19$ckCWz`#mR~n z^MD6O{6Qn5-h@De&0X$I>v~_OG%6$vC#>U z+WI*n?@s`cQogp^-OWYy#RSn;7KGlV9Q;J|W-$Rt8nQWow$*`1$P-~+zm->e4iBA- zVIAKl{+oUWSW>frFMZ;>qiW?@r78J8rfsy-7{!h=?JPHvV^^6PiFxIikNqwD+3JFTs&=*Hj4AP_bLiI$4>+428%Ma>>7wTx}s0@3|h`{h1ad6P{)xhLU$1y}%7gcn=-j6R!&8boIi7N!N>-m%O$r-QqZKP=~ukT|Gb_488vr9V<@1Lu=aDsN37iOX>ge zmJgh=CN=jr_LWWR%A3n=z?!7J`6a4)T zf|eGR?~%sG<=%2YI89-pE(vubPr825Tn6ug#wxI-KUk;b?Q094BcGV>#C)xQbX(kS zw-eX^?Cc_tQmC=CWldbB8bX?vpC8a@Kgrv7#ztJK?dV>&ZTHS*pR=dfQ5?#wn2-_U zw$8>$YsS~^#eGo5hijNP*FI>`=+d^QQpUoCllqVSU`96&^#hZw=n$xEWLWJc7QC>)ZbFmOdVAW$^6y9 zO8(;D82sl~Q2N0k^2#b>sJqdy(NyMy{q*)erni^^qhxm6eHp$nv3GQlQ%GvK!P)neIOL}Qo#QWN*hIk)4374G36HGkn1~Kb?fMY+1<;Uk&()_oeA62hmhP- zpzwZScQ-FIH1rGB-(Lpd?Ufz+LjC<#P4uE95-eB@5qt}`AP^(n7SBRja^^21_$Eg6 zu51J1^GIb!cLrMcV1J!UEI!E2mgjGk&1WsllVfcZ1;+IPFgZf;M=J_Rom9wv`;-f1 zDi!Vzae3|%;h}v+jM3~&#aV7P0o2hZzmwQoU&s8=btB=%8JmX)1Y{p5uBThI8Y2WJ zZU^7zY4??~2j_LxZvliZ;R7vM@rG>AcDYm|E69HDnI^$!wz=qo?wPomz1O<_|GQ05ykVz2p`_~>PS|!8%fk1ooDAg>8Fx48XaN`FkP zt|`at*}(&6eos#yHvcsKl3h|#TI$xU*2sXSU{SK!VX#|sXH`LYf0HfnSho|;$Dx+N zxGT|MD|FzWty9|_(WcHR`ZTxT6#AB#gAEUr-MJxPK5XcMF^a?Jyuk<~n|Uwc=@)jF zcmJI~OHosn^L*pvyQ>%MK5^Igm$mz<(-%$0(%xdptbvfH*$88VmfAuql_2gOe>LV{ z4f>i=4JadSzS}!u^F3L{)Wc1d0SS!+0|O(`g3fI0YrgB8juxfQ>(6`FxRK=B3QhOb z?#P^*U8)vruXaN>e3g4QU4O$5PIPNf*!i5oQhM0idt)C% zJ+Th(X@pT>`X{}p>RcPDC|^P-fB3z>l}+a+z49ki)-&E<&P`7;VX{h7QzXgckzpE} z@0rA4OB2DoF~ zU#Nx#7-E%6jPyR>kQ*7As*a&pG#+JJSwL}UfH$WsH#HTdEvD^^QTX_Dl@;vyeV(43 z@G*sTO)z7)S`kdZlPy-s#BPLj%9xGV5jAMPTUFGz=wPx9Siw{Dn|H`kySN^o%lx9O z(F&j=e|9`G*cJW!w)+0H$uZAY2te%URN++^uivuQUrOdY9}~sF$(eOk;2L(EuyAx! znVA3ioGbtQUwf5On1J-;?nKxUrqGN2y0OZ~dwI01CE;W-bA~7|uB*o7mzUqEov+9~Qgj5@*IqTDHv2udsIh{97$ZiKiky`-n7>z7GZ#PG zGH7sjJ8Q;jsiZj9Ga!{!D3&np?akY$ecbRJjRu9zM+Cs0F8miRkxAJi)CpO`)m&59 zOqYJFV4aJgPh}XQA87g~_|TPohk9u?`Cc}=JKQ=!$>|}~RzHu;bA9m4Q^o0~EJwSr z(>GD?Gjq>6|8zEqHwJ8b(dnGAYf%$mQ!4#3b>nK+SKSAo>|cTbK2sywO^+1f7<<`4 z#-Y_In^`wRhCVK#>E~?~eX>8*2NQR|BRk(HxN^%!<}$TyL{;9Qh^*d$%a%jt*H*^s za2=KT#(#V=d|Q`}^BC2#b&b-1Q-=bZNXT~y-lG?xgeKHgrkXL#9adCV)*aEWM)9;) zA9n)HkAVL7A|0A;k=~}k65<{;X@{aLHBp29c?TlS+r+SlhQYY>1sPxs{OLpvmBpRE z`R?Oq$=-aHmNG9US*lL+ZEHW;^kc3JhcT!BMv`h^JVOGqLN=t0n~!grboMd2>b6#2 zZZFY8p;i=oYI7M;#VgUj)qQ<9qYYxBt(JtGh^O}1v!HF-!rASwJi@;^OZHbpg8E~m zNqwI@C*2|mkh%;lj0>glyH}TUYx2$x=XKh?+5g<(oFN-C;t^+d0_b$mDc&S;!){9g z?SdOMNI;geF|i7VexL30Ne#y@;BJGd8w(*4gRm`to(Jz`&UfRpL;-MxbBJJfp~8 z#S4N!7PrkoBFaRf&HeGTC>W);hu1T;MOW<4{;OU7KGE;+)OHA1`cVr@F<|L`oi6=m zYg=c`6{kK1e}JR?W+1l{Uw;u_?iS2}ADe7NJs!9GMWlywS#W^1QR+42#s&tN@4f}( z<>#;Z8C$PrZC6*n^lCN75$$f6fVS^^&fp}AB$2XpO!`f@HGGz9 zH1~ivN`=||WhUd7tVTz+F4ZPUkYQXfJkmT0S+ktx_5}__49Ewc9Ip7({~{(fiH2GZ z_K@uv&6tcB=XP5V5k8^58TJ;9{Ty$c&fyBuu5=A@WBL}jYNlJR1{m#Uc%Yy$R_*+I868k9+p218DRume2I%+(} z54r+Lnn-tR<9`d3HnHUh+0WVIg0Ce-Lvz;UFCctCJK?oYH>h)ScXPpRb@qirofWV|^UO5OocWSU<8*e8b7nYDaD)CmHl?Zmt9;oLu|*90rSX zes8#ROx3zK>MV=0Y?d}yhzK>;+@khS4|{rsbcs9G$;rvoUK#27Jyiu7eHbX-tnn@4 zkpSXV2XhlM{%2xJTfC$fp~M)q9aTQtZSmal=4r~K5?K3T;nN#?>2wCxPwAkx9~Hx1 z$vC`PT{VUdFXE}%O50i3s)U1Lm^APrd_f_=3NbpgvFJWD;@~`I#r*z|)vcgyY*gi; zXO8q{d_ijlhue+y3`WxLaQ7cAU=+;))S6kIWmHk<@J31HI2YUj7;bNFb-0gXlMIXu zKI$21dXQA^R@M|HX4E^ME$fzgb48!ZP>Ykv1*;tR*cy1NAp(6yqmxr5X0ILSM`UW2 z)l}Wic~B$2{@Yn}D9Hnm+9mw+Jo|`3Tog1~;h`mTWb7%o8EJ@*2_{b7l%2ePZ$AHn z+UmvjZx%bN%wJLRD7`ZA#t@^%hZSXI*WZXveW2ZwNHyV|v%ZXs{XZ{&V!DT{e~6s6 zJ$?L21ffu~r|YOTCz|I2TbRAomvIyeY^J2%?3fyZ0&#?iKN z*)TK-J&fVnoHoGT1GhnhE2x@S{XSC!P|;n@JR^XKjeg=ZQk8KUsVaCCstoQq8epb* zAn%9RD)jtcAG7z(ObR(v94&ETDDgu8gqy3Awr6}Q-T5(+D<=t~#I;d6N zsQDxqhgtD|ckFx|L@@`QG7MxBa5w!gLw5`1vt}XA?EOJe$QyG+Z6Er2ZXlij zXEIssc81wzNrn&H0Z{}E2{q=<$&I!&FD@?5OHwG3?fca};c0XwMSgTG?6-hY`e*pg zR~=AU$Sx{jSV|k&pUe$8UGdY#3?Nlk)o6A5uM3?F(+t~Ux8*Rvefp_a^9Rib)ooN+ zrZ?7jy7%JqzWOK~@5e5>aIkN`ZG|k1+@eF#J2K|iDKjSK9l}@D~*9OeI zdAfcHUn5nYcTsrFLvL~;6EAz?nW=5`U4osHwZ0tWx>yuEkL1C3r4$@?-j(ixZD2e(&c_HaJ^^ z?atoWg$J_tWK%bD+1|d>tP#8-?ZTdi#H06)wqA9Tc2ZlD6r9z@F4Rd=CmO`=c23kH zv*_OR+xbQukddvaiuMWm%1cPudeszU9dDweM|P;vrKqxJ>6q7E0=fwkX<=e5j&ysy zPVBLtU61aPhWf53PHvSgYGZCq6Jyp~HB4j?OYt<(*O|yPc|eKT81fN464>AD=6%&+ z5qP6zEBAElze9042@(B}a+=D&P^MXlc)*>gPrzq9lOXJIBs!Lp>u|VmDwqVzlF{t> z5EApP>O!M3R#!^^$Owu(eD@ATFYBhWrxM{eq}!)O`Fw75I~I>=1RWQJ!(>=3Wq(*| zHMEqd<)`X{P{YP1A-2_97HBv2xGzfZD>ky%!ETB59spHUu6Sh5Jly44cTa;~U+`HY zWBKfB-BBgM)#{pVhKiqdsHfcdlyXy5Rbe8(oEvlxBUF{+UL#gn*EHwENRO&5u%+5j-BdFa{^E2zGY)dXvb-~6EgnEUxc3b zSbUNKY4!~J@j*B;JY|>rawDG>9V+3!0s65zL|J+wrXsW^6BNTaXFoDb5vRD+0g{;< z8)o>{V_zMRhqZOH$*c(e%Tbii`u&O$AciwJzG7oIz6);kW`^-}k+8Ej#5pl#goyQm zxHhWE=>d=}^|v^;ZeF16{An_@UZ4FA{1qZa(u1AlxdBHGr#zLf~?kFVlrnO~QVrEIL^qbaNyB9YAu3DspL-1Oh~4{e&EOZ8X7;V@OG4*)?D%w0zw&>5 zPZE_IEB}=oT_k%jIAWcCm*`*uLAWx*y^SG%EU#adHG1G{K&2D*&ept=W1{vzduqV}h{*Pn{8WB%j9cz7<;S77g zp(cCQOBB!*zYo9byfbtttH$b8rp*ly1FpZd*rR{W%ZK{pC#$h|3Lg`bdlI5H-2@qW z#S0UQcr;(g_lSBmt7tb`%2z0CYFQpdc7<;@g$j&Db>3AnH@Y#eB63y5NLIQv5flbT z>T=VKTPBuv;V9T~hW#v`Z|8##R?Ih+NBU=h?#hm$6q!o9P*jO(QZ2Zrn4#X5A!%sP% z=ePf|B~ny=u=S|@2{_w;U?s~paOz>0VTEKZS;SZVv8#_F`TYGMklxw93r`B5`De}? zlG1yetRf7q#%p@Z<(Ur#d3Xo8)b69CC%4yFk3{a7PQqu`tT(a>4*IOJLsF1D{tH@sTwScLwU29!m1`PlH?HRK4!a7#x>KdV zZm$ZtE1pT|I)#b1Fc}*%J-@?fns z17}y<)<~ULsWcGh#8%&Ae(JrRFD2RsK(EZR3(vY=3!!rFj#I4Qq%B_oi?Ox%#-rq6 z&+xn88-&+_uJ5w1qz`mg@!0(oiz|wZFkJibVf=gDq%jL|p!vU9tn@8Rmf7mKuUTr; zvcX%>9lQAH^S{-bckMPb=WabB9rRr=xnLZ-C^@ZoY#CZ-S68N8KQRnbxUOmZ$y5~% z)W8Go?f~g6ytQg@HplVzolbv9;t;P4JL)$+Y9f&ivP-(tOFK=u-P)D+hW@HBm-N!s}qG18QHZ zC$f{YUXVx#T$}Mbm7bYT1Lpsart^+w!+qPhy;qIetF68FCTOduQKR-Q>Wd%|o7&o% zwf8J)@4Z!Rq128ol#tk=M&I;z&U^B|-t>r{|x4Zbfl6IptTGH6!}5K zaB6MWV=u5IjOn?}$|H+feGFZ$y!2;K3yYEy|5n~_03~KwkdTl_W(CM zC7buK+jV^2#J8QUX*4IaS9!zxm}PzGM2r{jug@gMaxBWbpPTs(*H6h5c~wn1&{#Dltw}21JWcP-#8$CRo4c_Z z7&um=_=pbi->qG^v^8S#h|Ka=ImQBQ4QPnGJ?TOhC(YGl;xb(H>+Jl%pr*e24p{a4 z07K|JqKwq|R#^#!bf0>M>xWz&E$`mloZItM4!!m+Bi=Mud ztJr^@7W62B!G%wjhjEj8^)tRV>!_D&o3>^%tib6|#-I7?lq{f@Yc`Hq;lFi@mR#bK z_w;X{+o~x}*%zF1^lN`rWDb=6W|H30qjd=-pr^g~4m|2DMvkO6Sv8P@sD95^(T|Dr z-Q_9 z`%X^z(;_0%4*DMWX3vPWKAI-4?8x!%U*$Th82(U<<=O}7;`53`oOU7+j_yjssqDMj zPmu!Vn+pFn5~z#e;fc=}yCLZj{y1xDr9~TzJH$cSXJ=SgAGozjcu~x(P;@szAIaF} zTN2_=X_=OYJ*s;p#k9!iu)eS$7N)yRB^)hw0163=IIB)Imk>qMLHcO)7&A|%z5-vL zUG1y-c^Oh@~S)M@M-LkI&s4Cj4=JJ)*9{Tg1CQA{8*_|l%x z(l;P4z)KbzDuC}LGunIjF7FOsPR4s=6(F(b8YDN6s~ofh*>ReiYV#7OaYK_H-l5r}L9$yb>k4%yo}iWpr%oFc;pOQtbgK`UgjKcLO^p z;Xn&<_b(Cbh~&0Sp>D~CtG2&i1do{b-{9|dpmkzNI+XSB>HT=jSQ6X|VclKt`ErrS zN$Ayrr1&ODK$>4H9+s!iKLd z9OUx0RWmI(UFk7~;kh042#sM&=KW7l7!t7qe?iKUjDOhQQI$k0u#kCHI;+Ub6Y&Uo zdeGUTJu9Q2hs8=WQJ}dk^GgKvJnn`{e(}Vdtz&j$(HHl>CAmpuY`Tx7vqNcCbmyQ_ zO9wTbv#*7pkwYotARg{clJOS9^_YOMlHYeWT|P=Ta|I7^OY4TkwoFm8?-D5Zbo_}- zL}j@3)_Qbe+8PD3``A}CrB}C>8Z|uFfr1_050A8klkn*wYWtJU{P|$wwWJCH*DE({ zU;ezugT_`FdXv6%_DUiLV%puE5SO<7IpTim%Q-cLL;qYx~&?L8< zL}~pWim$Ypt>i7ZDIH=>f57deh8Wkx_y#F8o=X$(7fB*Z%kJpFJ)4bq_NGqLBn?Bk*pwL>qT^R?O(*}c z1hPgqBju{1`FcxtrIef0VNe24LDqfh$m!20d78)fY53~NI`vz=7!w_HEg;r^H>0E9 zu)*AzVga-i%3r|3mJ5R*e^J$020MeKy{(k&FJ9szKq)SZCP%;L`QDjOjO}rVG_VAiFMq8Yw zr$&|B(X#4|;+Gez`~`wxWetOIq)t5fR5el~71n3wM8?#C(67b@y5uDMJ2R&iT9(-S zQaPPLD@iT4eP-A?{7_jg-a`hvAcih>Iv7D?8g$~bvFw;!4CetYWL~m z(y7KN(K+Q+a%H)s(qo(d20h&EZCZQf2-S{STopTplDll70q8s{&5{DHSt9r=GNQB~ zvgv)I@v(*;s!2Hp%n5%nI@ozLNUeU-Ga~>|Q57I2mkUz}6q%~xrv)ROf)>$qMM2st zYcZ6lls=sC4?Q1j260W(XIPIW@;`{M<#I}rARL$H&BiCO|8SFZ@b1V(v1qP&_9@rZ z)IEIm9j%*)jrG`6J%#e`=HTq=wnE(M%of*%fP8*5P{`l|MjLkURQ-JQ3W?*(7=)qP zA|^P2^g<`N|FpK0eseoq8l)_t_!Ok$#yWLIlQrhnBE2m45bxEWzR2It7mmHW%My!> zR_L%c;-S#m9jsU{@0C9@%SRwu@Kisrsi|vui4}{IEBbuAss#sr^c!RI!<5WrHZOc6 z$$xD~J}2SBw+PqkYNC~K_dsm0F>}0H?QLxW*M2}Uu?2N@1KZ6LOGg!LvK9b6tofk0 znz8u>{GGJB1vRGPi37YAIvU4x~hn3!fm%V^4tJLbx#P5Ctd%y1!8lJ9315dFn z)#?z6f60|8Jm#&wCq@L<*vg;U@mvqFOGz4X{i+46K74(6wc51toU2?7$^a7HfkfKF z4PPkYd)|BN8@E)4bw*-$2sLE8x-q} zm$53PcLt#}#1^lLBWN$UH=oy$tXohV^#?CEGg6K_=3j~zlFCnKLh4K8$`AkeNY?q3T>1DVLC?qRI;otx$5k#hk735J=R?}1UDFnWt9 z7U@?hU1pAo@lQt@X@@1+E*+!J-qM0h=qRx}NRJ*=YA~~@u<4O6W;T`lkB$EZN#&lPtf$4{a^`=?hW+)JM??V?3rgLY<}%&>FkU@dsyHV zmhNYgF3TLD*ta-vjLI?9po)AaAsnjvm$;qWChGQ&%KcVBp^+}hv&@7K1V3u2;cEVm z`eXa8TSKsqTz+Ra?BanQK7A&~5~u3r(AOO;W*WisFnB^P+U$rO%io5R5q9WPL9T;U z9H6rZ>P)4nryb`ymu{VFG{f7_D^SrS_vVf(5$NiCV#r6|!fFfEix=SO|4E)T!ubyL zq!2u7ej4a+`HMAY|K&;G%~@1?mCDHT7E1(BAg;`|6btxGA$se*~letLfG z7BY_fvn|^u!I8<%sj(OauoVZm$(nP1F1L?GecZk%zZdyp>SQM+6`%9UNUfDFD6LfPNz4Sg48ENNXqXDgQ{FG! zXC?mQQWkE)zuPO0;TMo_&@;$9Qped1b8>?hvcEu zeCgtDDRqp-G3&y()qkMu-G7&4>5u;|$@iv(6uIS3a+UNYID9kqB^qUz4El1Hmm2CY ztVC~s`YD{Rx`Z%38GfAiRNWyZ^fS$?JD=LNuG=7tol3L4fo(+hcE%sEC-!wNCtce? z>0B_j(Yq6jJcf#we?K0EM2k1ZelA6pU$bBv<%aS5(`nrtuc~P7+a$liW>VAYIG8gR z)wX)+2s~V~tS#Q>v_YpCj&*p5w5B3l_Se>;BfolW4d45*jqmaRZkkh7Ev%i)s*F?c zpq0CKw4*q-r-`CJREfFU9pr?q`zW-2LuQ@Kf$_F4@Uw-tP}uuMzx{#0aG6E&e9vhI z(bn8g6SU+0f|b=-JvG{(SiR`6XMJ3_k8<;sgTu3DrZ-z3xZ^p?)etx)0UuvW{kk@9 zdbO{BHsV_|Zc{I>Oe&iYm!5`|l;$;&XNxpe^6twDD^Y&6mf1X~J!2May&H@o9rgFr zIeKxMbyaagjbM%&G3uALqhRQ7Xh4@qGARm}%2Qs=hB33xF#gr4BdomMpU$JVT>yg! zNt>rU13y)~Z0wQwSmiV*!4~@=(vNkBgt9`*Pagq@$?E7;Y@2#@GT3BLcj7re^J z4LE!@$p5og{Gmu?u})Sy7igqE5&LOF?RFMTRg`=6wdU{sht1vxM4foykActp9F#qQ zvszT^x18k(F@)6a1~QtzqvzJF!anzfQ>9a`=H#HL7S71fyKR`5b-nWwi;}fwQbF|lV~Cq=A~iO^43}*g+`U2z@3R$bCUV~TdrvcE>6!Pr1l3lNRp;?n zR|#*trDN)a?yZF~wWq}>;T24Koh@xxdyT=p4|2y6*xzJhS9VRXl-hvn$=Ak)y?g>O zdzHI(ix-ODVoymokrCZDR&iW1ZKEc8>WGRQ(E-BC$P~GEKg(j}))q4`FFvOOaaLTR zq?vO+Rzu2@HEp?nd+Be}a@TMo7f0R}!m+Su!o-xX$Pa^QpjppeJIu}ruHYE=aKFsc z2d*u(&}O$gtYTwzHoCf0zlAkk=F&c?Nazc>C((Z}(kl4r5SsM^e}xg(oilU6c=2?m z=K_`IA06kmPBwZUBOf7Ul^oVl*=g1ZnqXqttVjNJ%NcoOuG(@p9FO6-gxp<=H3)qt z|CLe%op^ry!w2vx)dxpEcNj2CTjrPpv7*`Hiz^QWPVAH0+eW$X&BC?E{1s)qc`zGZ zbkKz#%cR+0Klwa}V%M{OS0Z7m^(*j*1&rMdo@tlqqTEz240@%?e_=rx+o$-kU-!zc2v#TphW~S!D6}pd$lFCq7>HbarVy*#F zU@u`LPVsiY?~Hrgj{x=FayH<_>C5{I7e$(a6KlU{vfF9V`YQ_k2ewaZZ+|KqacZ1l ze_|yx(pCatgCB-{?=L0_U0N?ibXzaw^@Yp4x$lod_SlQ(yh&A3nQpfwS+<(ph zf=8HTUOhW0%d^yT#UOo3HUIBkb{ge|Mqu5_)Y}46r-?F5=GB4*i7c;+Rp{AP(L=~^ zRsjNu>{(b|gWw>iN4EGWG#_4x$OlzBK=1!MYb#dhqE|=yRKF+!rHS$HJa|+UH#8|w z_+G~9KdA%ol{0CYSa$AL9_}x4q3tZlc(;9~K+fv{6CtRW|>imXCWZew^v4MV<8^dXj}5}v>YK{ zba!_Hz7DYlq&4gVSKXXMPN~9#p5U~l&K8s7XJVA556svrMYQKM+O-z5tNPa)*-;Z5Vrsa?S z?G`u6Jw&j>-{hlOf(XvEpGfWIN(Kh0ZT%$hftjqmdyr#Qn|Bv{ox8feygaBAsg~ba z<@y*xy6?hzrpDr5nZ)d8!W)zJcr6n|-+hm=w^umuMN0%G4aO^}`8Q<%EZHzsqhJ3| zPr&<6PjKb%kCSncmpArTNUPlnsQi6-iEB6)5p4?-ZUP>&eqBT<&%^MY$o!!-Yw0gYd3R<{-vai>aDx)C zsYGl#2;e9X2%l!&a*6=S<4@y&!I(<$QVJaCj2CgQL}M*`_ro1&VJdQIm1yVs#^nA9@wL1Kg+0UjB9u8ia0ecwwDq=xfX$1 z&l&I5__IjI6Z@vx?ym42_7UnMiJW`B)aDFz;5-t=}!_R5SPPxif#cOAQf zH>Aa|rnO2n>jfuC)Bx=uE1P1_N7KJ1)c*ml5HA@e+os-Ii0Uiz>g%G?G~4SEB`R2I zSB;27xwc8hTj?#3A{!svIsz1o)H^7`GaKJ?`FMsZ5aH z+uy8ycVsRdD4N<{@YoJ&_57={ZT-5gu12}PaI`7y@-lIPl(ZnzF^@zpxswqe!yaRe zvgGW^T$+;H6d6nY#TC==c-(%xD%Fd=K6ohsiTFbaxckROSZc%c9@J{27vaAl#^^-r zw$xrI_y3Z+3Ord7+fngbzXaj zVP3bSB;pEY?jFzn(8fxLeLQaAW#u81Zn*@FCx(QW{75D}k^S7wE$h(1KL&DNYayP9 zvvCx9$L*K$dL?^zYM4Zuz^xzc&zomb=trG&kX%jT{`lII zuMAYP)Pxl;k5Q$$E+m7$POT&4@DHRYcfa_va9V(Fi*Enq$#Bu{!$)#5!)_s^eVLw5yu zNj8r>D2D&ie2i!A;0>o8kYX~Y zqXEU)3XA%4WM$+H_FXsZfYB?wk0`@i3n#Nz3b^C-zdYk2;3}I8_8C|mgm4bLBRP89 zt4*!1#V>OX{33|BUVRdWLLLeBJG=`4JDdx-Jvh0zY~dH)NztCYh-?yE7DOnta{{+p zbF1X9;GH$)NQ7)Uz&G7}t-CDctK@)1mN~G1HrT$gpJKK3X`D>p=+4={8I~?Ib7wQ1 z?#n3iPtS0TjTvP>EVnHFL~*4=ov8-l3=+dl7b|R#5gmj(Bzxa1glmtmz(fsrf&6=( zk5Ej%5r_kJCMFc>IPVC>-aRun7yM~#W0N9~HgDdVC6st`SDumfptFLoZy)ySer4~< z_Yg^P!)6;m<_X^UL*DLb(^xxz8#?DR*3Aa8q7>Nj$G3_*4E6nu4#9YNpZ}6d=a;g} z1&lv4hyA1tl4pg;M2+%LEuHxc|9Y|DbdQ&jf&5fw_e z5<7@iHn}KqfA3_3dG;!x$05ct)_rDguiUb5clpR}6N}-5%p{*@@Bk7zSlS`)8j3mrT5w4uk9uu{#K+Qwjk>}s9} z91W0)v{U-vF~1k2n-#mo*^RfPTcGk+=tlNZ^~yMoZhDc=nOPD=GD*)sS+!keMw&k1 zV&B*0r~B56!d3rpLyhzUx!4`opi=%0<4v3kFamk_QMf<4Yw0uo(fqt3-fq;jmm9*_ zB1R2pJ-^_dM;Xp;$QBN|{k+J-g|4V8!7K-Dd3dZr&HZ-&_R4k^vPewg&PaWKNRg%K z&m393wM9r)NhWR*GXb>5KEDzU(_LFIR&6`4W)7^(eA;_Qn$p+OkRWH7b4$ofe$f}B zC&|>KKhdT458TR%Hm07o85ZM5b8j9qnUxoW4g_kt}TlgqT8CP%JaD;Jr93 zIYNV494K+sYiRk_;{dH9J@#?41>M5j28;)Id@hUyVO&%x*S3Fue^9Payrif5n8@9iH3<%)7|n2ENskA&P6x}93-E!*CV^XOR05#W4F1uH4F-U=5E zR5=XS1n0DObnRO|DAi>mzz6w>j6*A5&LV@X^Oe<~s9D|;4yA$37*i2}s&!)f#raX4 zOPOA)P@N;$T0t|7=u1ed!fo91!vblUHb#{PCkW&QH-C=u_3!9DI+$LkO21VeF$`m| z2w~|cuv@!7=JKJ5vMlP#TJ2P3>+HR4-(}0I^f^|v*LfQo`|lD~jQ{zce#+v-Kly~J zX`wMMeRq9Ii0}TvgH~Y>)kKXwMN8MqZ5a{9T;4sSwRn3dYFMeKsj8-i)M!0%$V2^F zHjDyYfkfs@jEV-g*7UgJ)h;N?I!w*yq&bbFEQSTF zuUk5o`obZ(PRdO~BupB+d*WlsK7=O7+}9>XKpZPpbn<8|QXTR_MtF3sILXya5=Txo z*6WT0UYXjJWPIuQN>HvAK95+$IyJ%BHR2%7l;G`&nw-t-$Bp)@F#y_`qoM{|N;11h zIwAKh<0U1vh{D*8M^};)Y~PE`k>MS!t7PMAK1U!DCMDa<87)fOl~~P%TAM!M4XHQQ zP1G)m(u5MS`rki!p$%SA;9?x|m~EAVO5=sZ#Q?=`QB97Xr|(OcWjq+r5VA6=WJG`o z)p*vy{iD=v`u7rbTfNZ0<#@rfp2v++xAL5M$EvHO4r6je{X>y=wfPKt`E(9l;OVaO zkfg^&nC+3l?mFvU2pntUK{&@_*sSsR?$X<)nbo}(ms&4hIepf%7-QD{h*^-HDUZYE z=69Y(fm{${Uxad}uAoTh5%NkJk=QrX6V%(-DBaTDeh~r&yVLb$)Tlw3|D!vzJZMro z_R6&<+5VFUMC88x{An#)wZmWZJOv77zxP(GIt;c&&%H})m&H7aV?O_gTn&!@Rz)md z@y)})1;w9;L%5v!Be#y$8}vZ8lgA3Rv_8lRqAZ&3@!$ zSoHr-<$iLSl9HrddU1e?;)zmBd4CE|;v>VqE4=W7u40yP)->3g;ZiF@y8Q#Utzv1f zo>y!0L)kC^ zEKvN}EnR^VRxGfY3>G50hPA-kk?`nyJgbuMo5>$}to`I@XQO$H`yIv3&FH+q1M@+4>-$ImNKYiF|4yRPmP+HS7 zCYXzz=o@*A<4O?nv|Q(+bC=%(OSWk)!b!?JVH$2s@Bu{CR)6C(dZa*oxd6TBTNyI;S4^~$Be z#+s2a++WdO$wnnit}edJ@{CtrP^$r1mkg866&3wzg%vvy9arTVFK}^RUP#Jf$fnco z%9u^lT$Gje*R&o6y76UeB6#*@JcdE5k^bC*T67UFz+l>%&|5I|{Gp&9i-KmVA&zY| zej&5&KMCGGF0MbOB=P!C7Q9Jf02l%RpKwnsp}2{krMg;qtI0Lh&pGBVuPi$mahWKT zdLoC?Z!bruI(4aE+1I%5D@UT}#_#X>QYAP!d+@%c_W9qx%rCcG^Mp{2X27!)u(x|SPkPHdF);-byd===DnQ#nBgpUWwC#leb+fXC|jRdUb~Sj2hr z*R0B&PlAzq~^JO|4!Gg(_%+J5J%>+1XQY z<|uDlxQ=vpcI1j%Pt5u4m52t@M=^B2CARXnVuym-|9~mqA)Yq8Iq9OrEDlqvjIIfI zp0-KY>ADKhy0S%g?=1pHh%DhWoAjQBxU7gv|K zBJwPt7I8b-Da`75RV5MidVm}ERcBj_vG>$(9ehKrVpYC^yqvUm<_5k@RL@7Lxz>gW zF;cBM7{TS2XI+mC-(G`D@A^X}HSj@dDeVmE zH%2D!LeBgIKkY5>?fX`EB)C_mTE~CdJN+GSKOxfh%onwuHh>LPk9XX$&r@c|$1Fi= zEk=PjYcF4*3A6=ah+y#uzP->2t=#P>Du3*8s~2xM#95z@kED0;cUn^)4}HSro&3_MhP`hy#5JUKKR#w#*iH6 z&vI6$albRii3L`hmG$NP)fL#ob4U;*`11SV*_k8(RJqo}!+{J4A@`BC?U`!#QfvFg zsh8532JjR1$<3(K*NvfV_Omz>oNBZt9KSp`v6@q_J#-Y!mu^@h{hx;X@lqXrHlz^U z^|w9vUsWYKhB={VKlrnX(nEQ(K&7*PZc7u|N%tylhcg&wX2rq?+Ox7Z>kl2tB26{qi@E)y(_VKDw#TV$ zph%5lDL=1o_u-CnMkvxacJ{hm_(`j?O^)?Pr1SU)tbV$JXA9J z`s+6Fm^Idf$@mXf(FG%GL9J1>q%bl6B$IEbwvf;f^%7mZv?aarKs=U$bE zh1qR{tFhsDlKy(B*>-Xa@KYUVp70JK8YQh`C53aEI#_-nfLq(E5iYE`6R*8Tg9^BL zc#?BuJf57c=z&lSHrB>%mYiRtcl*gCE64iDqXig*ETHw!Hk5^YY$HeEYE;@%m6X7fcm%?D*bK zHf!_J{=~`qog^b0+n|qGpyrm0kW{(P6mA=p1JDz?%R1waQG=~my_#K?zRmMbjzl)p zmS1iWZwtm;T_4c!!o6)a#Ju2gQMssyi=G|coilMz>Zypf!mI7pmKLRW=N%>6J0UkE zQVwT9IfoGwEVx2(98JHDnoPK4h(}sSMS1OSl0#@YKu)Kju^0fIe!)I`*;bbtD|aN( z$leACp3GLgO`IqFXu|w&E6sz^rvp$fukcwerC)PaW+)+FKm6Cpuam1hxN}`LW1yX*6*+I zWM57+BswGE=MYNaQ(sM}sw(Y-ROq5$LaK_ut#@gwijjpMpeI>?Wl+IfmYr3m6qhi~? z4c#peWGHI#`#kh#dom_G5%nWE7~hz6akzDi+NGH*4HV!%la^Q6vLGbV^b|eP+SuFs z>8qavNQJAFh5A8#JiY8ODxakUx)BHcRZda=b=DT}Em zo41}q6RQ^b!@jM~zF52Urxz>3Oxn3R-*2%f#03O$JWWPA1}xV4WuHKc0!T6R8b;oc z9xXbshLFj%ZW?GPiP_{bSIwGu*RfETyD24PagWJhLS090&~H9gT=-u!&-*cq>&Zgg z#8U2`IJN8_bp{4`^)IY|(Lwk>|H^D|pV7?mgEk#la6~-idg^s@-dd21)D)xZdIE(4 zp5+bVd*sPVuNPocR{osFbd|+chM*5E#yjQd;tcX5n#KFz6xWvL67U(rLxrlOoWI1BhYT3nZ#%*sDRGSSAu1A0~HW zF+7nJuytfyiq~#@C+2)63?NARZx}@#N~BEATNL?(J7T9G)e85USeIPd+0AmtJM0mM zYSA|OsNC9l5;&gVU3#QdCIjhIF!iX5gV3j8httf+v&y5bZs*9C)|5M=6-k)DCbH$~ zf-Q4teRJ3Eicj7`j6|oAhD+p1xIoI8`z34k3-EZSB+iJta-ew>n-*-&upR8`iaSYq z3de~jz-u8tTlcJw$U4tD(b4*9R~$YykXWfA@$tL-dDFJzrdkL0goByna0((c;Tdsr z-|~W=aCe)V#GwInhHz>GfV6j!Z_xdg z<*N@}z8+s8@-|}Tp?Y-HPybBokdA~R}&v*hpQC*Gn#yop84rg_?Cym5-u}?Ef((ZYhUfg zE<(08`Y|hGej#J(s?YD}d>c(IV{emRi=*Ri{!aJo_ug7}(?9B4q!xVGFh1mT z!S25E@~3#`77lj`^6OqhN@!kbzVq=SZ`Ge)G~Ha(DqFqZUV%94sVAl0W^(MpzVu{* za2{iajq}h;l()U=+zx;JEd_r@Ln>vJ$RyV%e#S|>GZ7G0YW;jTn(N^O|H_p>vw z^Mxi?l0d4V&|;?DPP$Oj+I;tr5Gxw67&JVEiMky9^7K)PlT|lS%bPNQ!?t{Ig${(n zQ8=u7!QzQ30~?DI7kI*8(v_N)zgb}VF|LjueDdy28)nH7A0%L!fV%4B>q6OPDYlq z*&^4Ivqv@aXK*9;X43z73U(#_QJr^0!VB|v)>pfREOGbsd3__8UCF~Go|*bVQaGx8VA`@^Fe zcmshTs!Kbn8){@iV!}qmJuopL0XB$2QG_IV8nUyou!RVY%ZA{x9M3FyRYhw1Tn>eI z4!F)w)FTDpXN)1d(iO~!d5vnqdyU$EnnKVY(EeI}`lAvSqxIsZ9HzG1kKh0D${*|a z-Y|eOfD^lj6Tgz~RG7PPKA?yQWE$^KS-9M0-CT{>!R}dC+-uC^aJvF~?RBnWw-KVQ zm?A-+r0C~!3k=8Q=FfqGdB=Hq6Eh7q33y(v^&qQKOY2Y9t8~A+(bO|SnGy=LL*DPA ztBgpjtk!U(G5LW4)wrpKH%~=>ne^)5Yqw{tqWlr}=bDr45UWHwD+I_L2sMHJSDO+I zQiDb6JbS@)MqxGi$ONN(($eIxFBS^(45fCMyzwUs{c5XwImhesazKP$+v~O5!ke|- z=C^pHY&>GvevcApsa|lkeHwj!L+gv7EY%R|*H-dxjSoGqd+cb^gwdomS>wrN>5}q4 zwb~=z#RG@zt7RIrh*hNWOuPa}vYvm#ZsHru|~VPEQ2{S z4deHp%ptIsZtm__-|?-=f8%UD>!A`KSI4oy=o)k%UwNB3eW;59tzr10(WLbh1&Ut9 z0oeMwfok}^S(D^(CK_VX*AB0Ji5!FO2#ijdw~Lh}y>atN(G80IUg}HHjL?_;h&#uZ zajY`6hejQ5B!gmRFezlWh8d2IrWp>jD>uOTv&zXAx|tuoHS9_ljP9_1ycsCBQvmoo zX*0YfAjKn{jKXJvnx%)O-B^>6niJ0g{1^H z(t@k?u)6M%u=Sg@nktSfMX?Pz|3V`dfyV-&eaO~?gjysNs_cDjfn5&GyxOMAZ6pT z@&ak%jrMQJx%0b>ko9-ZF>n00q4lG_!en8#;Q;Qyxgvd;G0tf@@( z9sJvVFSK#?`ay71&!)tu@P}!~mu%gxwGMC&xJ7R;IQR~Bqc{8|5u2OEq57JL)qtv7 z)F>}A2ye5j>QBV!=^JjZt|(AvqIglxpQnHus&}ViGuQ1Cl}PFiIU?WxWT%Qfr>47& zAv);R8-&zEXP6fg?}wEp%zahtQ`>KJwQo&XeCo-|)uzfoQ+h!v%ts&7ZR95hg8miD z0FFchphUXti+$~C)B1U+rSXZM!k!oppq%y`FW2Igp1>Z`k`JESJ9|;!eYz)_%)cLb zE{-#;otLIXxC6xw(&j%t?qPL54t94>Qy$8pfo9nEm6qBQYwmP*ei5w-M6|l+5niD@ zY?_?hzX&(E@S?*qqwGU@SsmC49c^*`UkiY1##DHZnw#oG7K$pp$bcnb zX@p|VWszQ$yG#PFMR!6jVKv0jme2wfb_^mz*M2Rj$@=qn3z?+vp({awqlFkOn z?qt0z5*k4HTFn^=d?s*3fmWDJ#z#S!2>jmJysBgi`e4E|AmEvtLuh);g1TmIOx*74 z>zAdu=g}p~4wZeM0UqnxG>Hwuzq?U5aE9HPdP21hs7IZCE#${gDKjSa{&z)KM_v|y(L^|wdM%`mHfCXaO_L&LO6J9N;fcbUjkKd{IU!T|VxZ5w`O^6ol3KPLn-1mw`PqGqXF zT&^?`4!YOme|}qw=$!hn_}>aqC$oFO*v6!%TRot@|49p=gyQ^(l(yfIZJ2GCSu3EV zm0OQ1 z4xl0{qn~dc_gK!HqWFyYd-Qz+wSRy_EbTI|s53CY9@nV{Ttbe`T4ZF7)N=m%F*$6m zoXrsE_cLE+Bv`3IPpd_ztL7H{>aK)Ffb$cUE(4F7SJ9cKU#WN{ST`{MP-__fhPc#K zeoO0@UU)h_9loHoA!n>@t)XY>K(42w5ojm6nt08Kvm6Ay46wBB;rX3;)5NYdd}x@t z^M`itr3&OvYN&h-{tI`3l5tekiZhd$k~Br3 zKL*5l@x_;7U9`HNAD+F~A7iTXZZz!MR|9KJvfcNi5h@>>@buT6*A^<0TyYdMPY7Dp z3dXAmQty|}cUu;UQHo1uDin`D^%Q-`%6MuTYE^9@hXL{yx3f?EJ4Zx=^q3&!Pn zK7SHvA)lzn2M2a(|1MizU_XPg5KiS?36jIjX7b)n&H>hmS}}zISIOD({@>Uc!*rGL z*s;f3W)b+|_7i)U;F(FD)lh$sbKfvD^Q22TZH){fhg*m(Tajejd=r0ZEqC?Yk<>YSi~**;9h_tik1xFX6CXPj z+|Yi4ec9B`&G&P;u|h>X%_v>)ouW<0pl-v1Qt7E4L2gK4P;-zLGsAw1e>| zaZ1QwZFNCtc%oWy7S8drUuR9l*%SRZNQ+&sVs)i7Smp0p%Q-DSYoE)D5JvtWOPL@v zVVXPD)vUZo(OM*5kcN_-LhzH(gK&xWxvucL_}_aH`wI^*HxQ1L2x*Is%7<@EhZ>yp$a zlCm_foEe>Y-{B-ocnyEFCEMaddXo`|z4lz$SsLF=;Ctu4W?&n(Tn{KoICHann)?)U z%H=Qx2qi7!am8ViD0F3RXnW??0G0vj98B{pHI{#uNBdL`*b1BPA)N9U`7 z5}!Li$?1`iyt0=KmF9jS(u(^_^?(kbhELp>ZWpp|EYfqKeTyYNjlLAJSzK6Hj|%2X zb5`rv`u%SBSkiKWjcxK~qk>63YgdO?=lBXrN_NB%kUthWBc0Lo7Hy#K45fUeAY;HUj%wQt(E-xh;ql?qP zSJHXzbF`$f-5GKqZa?wGKMze5CAKA+f8}{HQ8tW}V zg0S(UIrNWxdEwj=XlyAlc;4Nrd|P{w-rrsXnTOs4QDF@e??Rix&2|rr?e?1%Raqbt zHmzFQQfqL5C?Pq2Bpjs&9Ki zk9D^Qt#>uy)6~y7((Z?<;nj3De`c!)uaK)~uAvMMf>gA)m!%T#v_bn1DmjkYTRj;> zfKnSoxir?$IgvS3!}JNjj?EzqT)B%&No4_Sa;KTh3R~kVd@JPpY2D3Dw8$i2_OSsB z{N7S-UJoZdZ~L=tZT-~2^tWi5S|Ygi36#MO^W!(e8}E)obk|nao77qVfI&?hfoF+W za2bs5+R)D>T+F1SMm&c(Kwslhx2x89Bzsl7)+;e%Fwq|t0C->TRh`eDYw^CRURe0h z5bON9+n9cJIty1C2>ZBnru6Fi%KHgv;JOi*Bv)Sa`w0OBOw>Ogr<0r5NXBPMgTpo< zU^t1Gwg2azV#sivNH)vNvj7QwAa%E$aA2gY=Q>0aNstD6hHn{-w)UFZr*&cC9sqN9 zlN;zGDSe*No|}yit`p5pHSrX|?jotIF{wwNu^SNesPbLYKM2&gV~uobwk= zW|d@p3-buBE_y~!Gam$N3O&|3TLS;~1`AjRUS387{_*W2U|7Ow@g+|E*(#Yj!ol{v zP0Luz$fP%>yU?*hxEdhAC>Pf z=6*Z0*BSCSaku)&idN#$NmG&9t#)pS6|j7>QsC9gX(hB@3qIgURp}h zbiG5304TOB&mYMyLUJMiv>}>A3=WwKi_Mt-eeG9Cc!X58b11HyQ>7yAF3iMg6B5eH z=vrXZ>woFgSijg_H{tEwvVS(we@A9N9kc6u4s-F8siGZ^spXX1Oi9#Z`LOTtaCNJJ znKIJe=L5%PNe z6{82epn=?S7(FhsGUxWR8c)=lGWpd>i{}BEf77z7Ojfr z>uriFa~mRB{~nf0t<*^lr8tXxQ)HnS{=k|(yvQ# zxy)@O#R?~yp_6ywF+HC?>=(v|3{MhmLk5C(s0bZoddo=R%K8(Mz*dT^O9uUu!fv0y zfWH^M4sgk%9OKBdu`gRiBa3W`46+~Yc0aKP|Mlqm%c%&62Ew`z3cIP)JBB|whqbFU ztd>*6-Fl+Rj<(dL zMt>TvYIvkwIO}v~?sId8JrCBHYX(srefP^9K)>xT~C{A9&;q% zfQcf!#Aa?< z7)r`~##z0(S;&#oIXQfYt_sRJgvG3O8H&H{ZsJ|hmod1%W9{wAPaaj0@|3_`G1|^t z9Jof(lwGPU=uasGoj{HZj%Q;VWZ8bo9&PNy`4Dr*0-jjaYT5(O3x#x?NXr(j_GV z`5Cv?UJ<<%61;ln;59ebIRiikAA0f3lg^5LO_NFPdhFy1NnK$E752P1J2K{}G$_pM zcINv^=x)&N)mB)>mEZ=N3gBpwr1KWpX`;ryepwqVUC}wL1U|cWA}_oqth z+8oPX=jinN8a}4ir2j9Ue^fcE^sW;o_MGgs)r;%wX_AKaTOVm6lS z5j&TDiGK2niwl_-pNP1FF7Cgryd;0~Mk>+W^9_O)w3MahAqh3|>nK}h5*^W*JmTl( za^fA}ev9^W_#Xb+=xqr~U!LssPgkG9!Irmg8pm@_Kk+}9Xi^*B%VB?0aS;7k5hPNA zmI^T|P^tA$(;^xmlh+5*a$sGVkelgMIB3gQeCg0vK&^lf%L2aYVqVCZX4B z9xQek7siw$?P+jrf3iLlqMP@EFyeOv?*aGqp9xaFR}mT^a5qmT_6iE1@98gT5D#F0 z_7DEfGK70rW%l#@p^(a_M-uyPNVqO+v`+!CafVsSJ21br)PpMrl3JKB*v7yu68FS_ z+vu(Z*gmxGrqPC<$rN}(9eZ@=1?R-PFHCH%l6UUg041gm(A-=4t@*^B(>s7Gfwt%T z-Pj$?KU5|qTn|2j2Er8$hP<-eHAeG;C-|9YtW${2kGBzHQLKU7Z>S7}2zpX(xO&x8 zOmVL?+)V$~E?6#4*yv@%H3TnM9Kb1q-+*o$7)OX%0)^|lux+k5Y5Ml#Rr z79IgQ+RunP+C#3K58|`wPkus+LD#8f@^5{-=i<`AkM*2sq)J#zOs$A(>~{ry8f>am z;_cYqU0j$EDb%`X>^M!|VQ%-`TeA6s*1^OZwnH_O%bef2u3;a@aAr1X0E$UBs27mK zQi6>cuYaQtTRLRh;8zuN{1iiIgLXVrOkjqU|9^I7nxhltJNfvY=JmbZ;$JYy(P8{k zW)0V~D_$q>-q_wadiN%leXXwgi?^lTK1dVE!C-{3rdX;9?V z!i##vN>lq;w_>C~yFz}WLtGce9DeY&_9p6Ggf#Kxy~~aF71~SvRHc8_>*Iraeax?w zC%GF<>Mp{~Z}4BheTalYQ(X#GI-bYq*hP9Z9ZPa|cyEiG%ElI_6P=xtXSyy75Hs|m@P!09q`fzV$?@pMGc$p9Mj)F68sng9RxXaRUPlfwy z$s8p#mD?ENo1~m(eI{^!ghei;pKi^;Y*(Cyqh+iaMov>bI|9oM6 zG7U6iUI~faO1=nq#tIADJ2ROWpMnE*rrNm+uOr#1(olR@`e{gHz_r!bO#tPDo?5?Z z*P4H+B@>0{`_G#^tKA&OtzejMTL2&fP~sPT+Tao60rH^!ovsZ>rL9NfDlmSmWJJsd zl0LErLn3PPzRP^tFds;LX^Xv2zODsjM1@kWG_fnuQv>+$HV)>~wgWzh=gO6deV~=i zcUv#(tCvi9XF9Y#9$V-NpGkhgD2#l^F*!SIfGN(Bw1l!OXU~tcVph|M!}&fq@>g-5 zyjNkyq6-!00O8H=e94bhSs}Y2+$jBF0N6UO>ST)^#EaJi*%3T*v(yTcim@$u`CYx| zgKSy4lm_*v=zA+j%1XOz3hq}g&A4x>{zCoxW+s=0RFBlM6aM6S$0?PRO|2!E&;tAY z8K{GaXtP#O3-y{Xm$dX9(xs9dKA`N}o{kX4+Txi`xNAn(6)5Q$Sjv@3R-|5l&3=ak zua$XOu89?-?+Q!>AO}O`j-I=?fsJX41j=+}g`zhGpl2D!w2CPSQo=|+`R{rZch4tin1Awwh7yCd{D`BNHQQY@ z*B=Xf_u_0JPstZk0po8#n;rzPd?#&|36(>xY3=!R>X|z$XK6_9 zEyA{_bo_^=J=NZo@Q!Xz)zs*~?(S(oTKw!j zI$f_X-`bSBV~5a#0e&Po4xTDOl_H0E=Z7)k6Pt|3)IjbHWZw=UD$I+KT%=MrfJPC} zD*8^uQ2%mc8$4f&XXY1vY{AI0$&%s7e?nt0JPg)_LA(8uJwt7Fk7dzENT?SAnBzs< z@<&{_Tn=BI9KtiDIzIWXUnDlbRDupUj-I>6sa|{UX`NH(He!ZX{QrW zL<1w4a;(fU?xNPj-kgDqz*O)4H{Aa05bdv%GI9{8hi7xc*sWH;aA^1xqD88ukt|cs zDNenDG0dcBDSH_T6`*FlgARozWs{VUqXGt#RUIeGZga1NO0qb2D&8vij8nI`oITnI zNiRG5ek4!w*?NM>V;1p+xC4H2BwUfbA<^YQ)2{J|qQxVia!)1Y=oCf=W6iV3j>Mf+ z1Ja3Y7e+xxLCgx$r=;#&(X}sR#Afxsv43dsx(pmB03ECKL{Ay?9Z7$5oOaA_Je@~7 zt0{TaenD;piWE02PXF^_%|PE5pK6ujzuP&H29TQu?5`~28^H^2TuyuUHn0yO!<0L& znTM!XJIk=ovHhSqWf1C&#ax)rpY&C-6+jSEU&zkz%-)NOh3?zQn}x6gR$+&nq}8^_ z`%#EQQYO#_*332^Wu1RY)MpD26DIbVndfts5I36X3ZDseYkRCAOXB+Rnd+%f(Mq9a z);FHt#H^HljUr0iTF|P}fb%Xol1sZhH`^)lQo%d$9I#xTv76W1N5UlwP=jC_v1x@C zgV$cHYp~e(BHapO)kXU)z@MD8F5l* z=GDRDt9{aa&S)z^-`H@T@WH&o*@;YCv-wWR?V4h)-1A&W;RK*ai1FQNewTb8J*v60 zmaSH*U0Vel`mp}+e{dOaP<24kLnvJy9~pKXS%BE$5MqZYunUHP zX5l?szTvN=sFz(0VdgGD;LbZvg^Sa(VVMm>dIRxaOgbWeF*S8s zHIgAg3oO;tEl`s3UoB(*;V*qS&B!_s<(_X()GeK8wx|<%U!OyqRXx9k@YXvvBO=-M zQ$IO?(O9tm>%o4 zUk!<42t5e)%ZCeV;0Ag-#sZQZIR~;+e5-iN!{?;kvezY|?9W7L+b4m7;{eXnlXw^f3cAan;TzCW#wy{lG%031hShu#3nntqyAaI2=a-1n$_m9)q9 zN|z<>esLDsk15>=IaeNvA^b6iU-$#Py&dC?csJ&~^OtUWuAXuHixtS#$uZGLHbFc) zBEU}@qu@t-kSHGN?&va96KNIk{%CP`bXR9c?-IYJ^6CV5&R5UKu}5xy-Wk9g@9e39 zwJ)`Ef&Tlm$5S^`3bBr>EryxWL_mI<_ntnd^=m};@wM9+873I^hR8KClHa{9sgly~ z0wU6k6E`zVOWf?U1v7AKFH2C08fw$5F;nT&9v;yKeW&+97)>6_Mv(b^lPN^dkx>wx zcKbFT(i}Mgw4BA4ek2#<&T0W>HzNCG%3zT8eN)J<4Y(GDHMuo;Mc-iqm$4&eh94yl z4+n8+W_-Ef0<6pXdgA^PFUo0eSOLm&CYn%c4QeQM^ty>;cm{H^FU`Ot7ya^6_b~K= zH3`#py}slAQ@H)Fli9cclOJaL3n;UuRM($?+>NtjG2_ag>kZ^?Qd>$TMC&Sx)Pn7{ z!J#2If7>cc1QC!ql8}52R{|pS@@#)L9fi7LH!1t|OKBJOLlzgmVo6w}pPm2W%053F zx!el6B7Hg6w}`)_Vy`Q-WO&;s*)xW2jdoCaxnQ4N!E8#bR-mo&O2#qWFx&4 zuANYAB~x$<*wM-lQYJnQ!ns_nwWT*WUAk-eOdU8oGvjW>Ba?}M-k5;+0@r)BfaG*q zHm#BsX;4K@tA+Zhbdf2vQGPU6Z4cSv^N79U+X^UyJf<22NLLEqU;28~B9vgNEX`#% zTfCraxY|*t*1pDVHE2|tM!s^N7u+1_&u#6dktMT@L6Qz2g*NS+4Vyg3*j|^qr&Ysa zHHQq^W&T!s6gE}uMDgLiaj3n0mpDZbzVF7a(<&z{y^rba48sETu&V>P)A*f?&ILV1 z4%NOJdI_5af}fiDq6Udg|9s@%)P3YM13xq`eQ_qeaTI9q{suCpq48DyP3-;aycJJi z)G5jbU)Im}$MvJ6uLF1kd@lYBbw^_t7lq`@zeVb~_U9Qh`aL|>y0m{!dHURaVgyEs z2QG^rgJx>B#fm;Y2Dr~AbBt+MWd6qm2%0;H9~ZTI zB}@@x;dBV8^hq1TO_rP9rg=k_z$)XXufOj&CF?Qn%E22KBkYP=?hWQz`lZozpTx5? zH2u3X{eVWj$0pQ>thWN(5qu-1-?FAtx>_(l;ebX(q487oXP!p1TL8#D>FBuOm^4h| z_CEWIZgIs^_qVod-;aFSry}YC_N`$7;yz!aWr)m(!RN)RWt2!E=*PJ~@V>Cz)Ki#a zq6d!O0&=l_m z`gR;Jl7Px?Sso5jRuThP5y)6`!r_+ydRR zDh+Zo#;e^Pd;xS8HO!`p69Cl%iRQqI=Ao||C&dx&M%o{1gda9pdcXAX{;4<g#W8%|wJfA$cYPn9T8JDZ0*y%7O0!UH z*+_*#se#YC^a=Z{md}DN2Usr`S+m-XM-`hCPvyG>katSK8d&q;G#|*^u_s+>$zXHP z$U$3k1nwF$8TZgT9NvZ8PUn>NyFN1M2KicNqguR*xU~GDH3gqJAw7wxt(H6Est*cU z4?E6rK^=~ReKD3>o12#e`hCfG^`!y{rnyqYjYCata(a!0t!JPWxUD3!S}bk=UXrE1 zoJk&M`p!Gh-4dGJ?*&6LAjg5>-u=Pk$Jdh)9ezizJ#oj*O$}Nf{98&8VxyV4-}>=n z#MrQL%ardmLyQHqjFb+{u?IBY{iSV>$DX+#NRUO=qlfSX5zR6R8vEieGqqzrufg zFYM~Tz;Y1O2aAy+{dIDJ4Z6aPhy;ZOoQ@($JM-y(#HLeuP7!WPC$`)_YDo=volhQ# zyLo+X3-k^RHZ7gQw^*)UT~03$KoE)bmbE!^FBFX8#dKke+gzB|lyuPgbN;sU8A!gN!H15x-(~LKawSLKoYb|lDsot`H|9R zqBroxPw%{Ka1Qdt2B=OZ0O{w&Ee{?%@9vJd?rex6swtEH1=y50;JhdY5tS@CBX?jE z7DovljartLmWP=;5c|Pc^A@V(W5Ek+RexOa=ic8ccqWX^6~Seu4L?Q{mxgTQPt!w#GL^<@g8=5CaiwW z)YJzyO`P?SstkF5R}W;vBW-I==UOZpm;sGAJ+Y_-IJWsnrrcLer{DJrZ0S!eEO~s^ zsxVudH5KS_ZSGu(V2qe{FWDjq{)(23N#h*%+KqkP&pfEh+P-R3JFfjBPILMpohj(s zV*c#ZQOfM}ez6iXsIs8PHr7iX>~-taY2w(|uN@u!*yHq+rJZh7Ay-Gr)yy>s9iQJ((k?bZ+Xujs@WWyc;F1CHj|Rssbk&If1A&L78RCQPe=4 zo6)G&548g4d#qP`&E=*(TN~!hD{9-$&R5Kxb`)%-gieM@6mOdfalCcZ)6E^tDU4p; z?+@Y!Pla<@_s&0=B|41Zs$EEWNK~U%Aj_4(opcawvSsw${E>$-=k%4k!;;d|?k#{>W-s|K7lp zv;wUU%l=#S;BS*#9(yQXV~Va|!|$e@a7KTsw;oqu0@Tx?H%vR&+gWb!oIF>q+Pn|W z((jIBckD}b97y^6U|_e@3vtnlDe!K^$fU!3=OhjSZ(9ZY^XRSB0LJ(W_V~G|@-Ooc z=6^EL;3NqHGXxcs{6IUeQ4ySkjU9$$mas|;`WKHVLSe) zQPOXWU49JFwfbn4sohfL+7h2yT>Yy=ihn?3063)Bt%o97zO(-Ujp|N)L=99M&ZyWJ z>IEynSX^$6T$Z`023@Vvso~oHOwJusHl1K@OuOo?HKg>8g;Wp@3>|Zo#%C#T$m=yTEGjbcyJ{SZ@{3S9g_oWbBKowG`Ph-GvTvFC zL-l_G#E*R~+#)~`-g>$GIq44@u7+BYk`W`NA$o>`g=DLoXvu7eWh8?VojYMjiXhzY zhO1qO?O;+G7>3=6YjBxoaYi&~1h=-ewb`bn9WFf2JB86!qr68$*9Oum&4f?6j(-`p zzMOc+E#9k(mffjrtfz}IimE~v#?#XF>%?7k9ITC;-dZcr29aC8I0b4<9%hhNu zomRO;49}S4B}wNYe$foNQ`|gqa#IN`m_ovxt!vKt#UuAsg*JSIkdW|p2-2_8ULIWL z&|k3*66GM9u8#BP^hK{43mN6l>OxD!+{8Tle`HM}E6aS|3T9_Mu0a-O30LGKV=-EB zoIW3Sqd3(3^5!_yzF*(~5i6TbITO+qW@ctR-efMQhirm|a)6bcP@cNB?i z5ZT5(GP^qLIawJ4mg!t9ldzsI*#kw|`_HF`*6-w)`DBu3;FPCGzcV^(8HE*NuGmX; zn!NvWIr0?%7hEN5iVYX*LyS0hy3xWuWcKGjqKnnnEJgY+{~b_^OD%bGTJ`NZ z)efwGhmpj|{vcB7sgrL*-t68W%6(4)?+Da6EX>4zvs`DU=;l@&!@< z@!sAF-iPV_$=GM!v&I@7rPi2=9Gv*OS%z)%!uNl;XJpKqRrdPt zU@)=G&CTE20Ah*%@uBL)h25fLD7dt(rnYj#pS#diF4Dh4Ttevd;McE@KB_8_b70(d zW8C-HxQhwP3%c_)q+^NTnjX^fv8Z`d7RIgIaH9L-8usuD1M&LQ?5!PH9OHGK*D3HM zv!OE8W^;S|7VI{{MA2?Dw#}cKMc#X}GKshMF8)AN=TknsXB-JHh46p5SQ3h(hxO)ok3Nnnv#mi^)G?geRBZhaIE|Jjx4pvI`>ORh z!wb!x==AR2O@#SQz22sFS+;f3ZOiXSaC#ZycR{Gr8t$Kz3i(4A1w>0yX}(yJTA*ptblN4 zIM`hT_tqc^cs=h8_-6m>bUbX77s(t_27TW>xvm*dj1r8$!==d-j0Hjw9jC)C^p-&v zM-56*Sv$aOo#Wktr1){XXReM>AQz zw2)pdOa;~k*lXPfTFFGR2ZC4qZii2)%!AF?#xlf+J>zmyZiehqa_{WS3y@2gPeZji zxT+fe^6?d?2`O*2!|l@q6G{c>+HJmIbC^Jw%fL&SQ?y3)fE(?zrQ5P*=_wiKi_<65 zam1|BCnt|DmmbSPz0i{@rY>y;mG>AF-14^lFm_nA`9aS($NCaFj5y$P-+Tp{rfY6r z)48MruM@O~Rh{aHF1t9FCe|EjKUAU-OiS)!={PG3zBZV+KN#F%)b*56hl)AatONxS zqchD4U->Hmqobz?H1s0E-szF*HM>}s=`>1wmg$8wnla61xou5~@)6z`EiYb(j9SJy1> zRq0O-3h>6x#)^v~WK}LiMk%;{rzBz7oNf<^w=ZLs^NkiZQI4dvsCz-Qhdd_AKuWK~ z;MY|aiq8ub)Xpe8dC22OR%ruG7FW6)R6M4#>-FI?c(uGZr&*Lj0mP1ZBF zFZN%x&Y;!mr!o;k7f`tc+&u_ziGbfZaoOFEBFwLSE5JO8BTCz3hi4-w zeg2hwpRCcRlzY3qUJH3`ae|z`Kqh|RnScGx<%&a{?`VGc`9<*EzC;fy9zNHp=Dew< zLasZmdyvZ1>{+AEi{;vy3a-Xi6fIe({3t<$PbxWr5C!?W0$CJ&DI@NEcJE$2a>c}hEjv9T zlWk{vtv8h`Hf}H;gNC@V>{A5q)85m@;T9MBOF`_}exD1bP=<^j4DyCcYkd5E@H8;4k84|cAyn|v7*~<|7>|bomawI=|m$k@Dd8S)V ze+ku2fnfjEJBC?aolQw}%zNhgHuvZAZ8&AxPhQ;$r@f9cHz*)k^eLdiy@S?%*Yayv z`zD0zT?q6&m&b_z$?hUm)45<*PxlCY$wVc7XBJ`WR^;s@M3XxoY|?1ZW^QkRFop_Iu+r3UZvd&!Z?20-5cLXH{uv%r^QohCsQWDm7J7+qm{*XG1EiBs#Ho zf-0=A*PqpE8v@;Q5)|Z%Ec_3z574KSdJAJ)=PximgNO!a^o`N2FdMWZN_Rt<+ic{K z3Pg;p;HJ&gTPtjQ$zJW}`*(fz@leD1+Fl%Xt4D}N7b&b)bH(*O#~cV`)-^h`NK&w; zdS&$$)l;OXeMvA^;}oXQC#|i6dUIG>Z(DW-50u42>=_^{V}bmQ=2>}vH%o=j$JEqR z|6S>GL<8uvc43}U6ct&*Puk~6cqosO1e@r0?kRe?x#x4K_bM-c=zj`~UGe7<8W5$z zdIbdne`Xw~5Rvx}Q`+?scudS>B&JhvkpbBVDSb*meF`wVt8D>UjJV7D!D=qn$@%eu z;$x${Za&{a3V#xMTDB}$cSZ0rmo;sOH&u?b1nHX`IT?<$juB}=RUb!{#f)goER@lz zr0Bz|)314|-#=$tL<^cX-=U=J*REKqp`Q2%X!1$UWvmD}F=}G}xM*=S_A-=W3cl#A z4p#bYn76sQ?J!BenzZY2Bb3rTrOWE*8bM}z&EDx3P(h{Z3;xY14@UtMMuOGP_hIi^ zUb>Kr0sSALB`<4Ox(=-V4*m-5iF7al^b^ggf~d)fj=%ruGiiFkUHVlAd3Nrl^3mxC z|La0piVyIyny6O)->ypkXSj|b5{_~LTX(dwq@lU5dADOYODu2v44|y4C1l>P;O9W( zCfzznGj?|YM4eYDGAn>ck7(R^F77fH9UI`OK08H*0?6fb+}SB?Yuv|gxtBEWH~N;( zGYb@2_mvO&Q?lj5_2SPpG%Zbu&`My2J{deC5wWjcZNvj~qs}zK^UN${6pu%L0yEOv|hz*{_*@|AZQ276|#~T!HFO;bb|6L;R zWt0>{qIg)Jzr#HV0DZ~E2XjBw z>M1OD!{bCdaJesL{ShxpRrXHeISj=&wmaZTnZWq8;Zqa!?^K~B1|N{KE^Qddr5;!n zBd7hlK`gWxIi}W^S*6VXslTdXW`feUFh_=B+B^eV_|4yFFBgIa61Uv2DEeq!c>hp( zq1nVv*%sQ}>`}hiR`$>;96zs47X&NjM7R71wV(7dyAs~l&3N837^Gag2VZyCSnUc+ z-x0sa8<-d3UaEc5s!JlWn{CgM@lPr_dEX<{5e^rtsk)n` zaOEHGWwmxnm@s0Usg3o@OPK#8d$#__&9Woh_g^X4Q5`I4@1^178*5!b`%S9fyPN}z zYw4IYv>JiTsTc_4f5EN2IBo2IiSXp|aI!EwPW$0ne87>gzx{!Ss3d$ci`Q z$PoR9h$JX(aJ#@Ytt$V;2xx=6hJSSN7!066(B7SsdMdQXpnYc03HMm{dfeag)++nG zIuyZ5Lc*=3L&hB`xP{%BkHgHh@y$%d;lUpJ>V1!ijagNaa4wNuDK_3WzGXD!Wza6x zCvDKiz_XTGuXC~Z>#ZUj>NV-3H_?0f7?%h4^uk2_ML#)71GPkrPRcYFp`uKyHoZw|A0}3P04m-znV3t%s;5{z}AM`<&G3u07y*Jc!V#UNU&T zj{3E($=5FP^8oPqcXh0yRIj6>g8)TN*znV4-_@bi`gP+S`PH3Db(M(9JiWI2qU}rw zUawrU+3{gd+sNB8Pu8&aTPh1zkG6-1phq4oLRe0HR4694u3w;%J4KQ#P_U3I|u` z0gc%~f~gIMow+t0>YUcXLVMWA6U)utYt$%~aF3*52=`inPy&MP4~n)(^$IWIoH@J` zLd@MEV!3q}^KaY@fb{QxVVGQ%|6^O(P}~~I{Vk|m=*Mig>_-Ruov>OQzDqjZCUdy= zPsIIKU?H+$fQH7}K-y&j~a-J3PI; zFVE+Iod1d3d7fdtPt(pnTZ{k!A4ky^{`274f7Z1U37R#H;wM7L5-RWZb8)tt@h4^} ztX<%B+JB4@pw^aE%U5p#pX}z!pZ?M-WG9r8rh6{H%ET0{@+G7V7zFQ>%JgcBtQ|l2 zW!iv5r|32u{DMWl8QhT%LUC{2yUi(Y+xX4Hx#ps(LGHfe3^DaDX+MOaSA}2u$ zYD}gU?h-1Idu}sipvk=^{J~43p-t>()ci?qR8lmvciF^=@l+^CwL8+19-Q zu((w!2bLk!%Qj<=0~z#bTiaHxP`|v6bw6~}Ibi-WU<_m4l9&17jQGef$uMA;IN@NX zI7Q^G;)pn)Xu?i8fv^7^pn_c)7HM9-sWFqC>u^R8nY}02er_1rXebcsI{y!VP{6M3 zN#89p>N=Dgf1t0bMsXC?oAz;X;e_t~<$Kd#`8~c3|3lr)T|LeIBsITAJd|DqRrsU6 zSlXfg3gOaV-Gz+ojmgWC>OH(HnuJ>Z-wI1$Ayo0j`&%-Z_j4IdOxJ^ zY)regy~$FnKuiP#%>1?$KDr;@B6J`rQsrS~=q*@&mKLQ=ReAg}6ziov?k&Nqe^sq5 zaHVHzy7)Uuz!XHx<}#5+kCD2r6;vCu$)8&DZ0!E0TOr_#A1X0BZItJ+k)!uNF2Hh| z6{Hn*bL+(k{q~LRa@D97^Yf{;>1#;(7?YcuyFQkuN~0D?E)Ph#kaeCGug|r$jOBHy zs!WuLAX9=+;nr|U=*&$1A&qz@-u_H1m-r)!kLZcFmX)+pm<8#6s=?lMpSxLYGWz$B#MMEUXldJBNw?~e6*f?{R8de-c*rg`YPkSi~Nj73O~@P zqlnY?+sP|o>cbm}Yx#?qM^st;d{jrtDP`sR4+R0NP*Wi0W;ZI+g82W7!EEpFhm7W^ zys9Zur?XkIqucdAlsxWMzK{@I864XK<-NwtPQP653J7>@;NaBY2(1n!V893$y%Q1!ufz_uhVOLb`4C z`baD;!Tlpg6the4*kjd+ZaJHz9&xq&&B7>Z*7p5jmq1z#IrR25vtqo{4qCboYzrNyzBhz z2u-jw)OkH`gYQ`pzfHUBj!_|--v_a2NlaY~v#zD$gFkgRx^OUyV5o{ReOgVFHrbT& z&AvVdZB_tjbTkjp4^3>UbsPfMu4TI5hFQ7eZmG#ie4>&1{A*N8d18tBb8iD{eZ7H; z%WTsg22yLN_*z6o&x9uT$IzaR*Z3-H8`Iq-hcX+N?gMnaf(+gQ6-skq}ZPG)+N zfNS+G{^T#21mv}!2PKhHaV#+f>LsH&=lv)j}>!2xv|({>1ye^rMOc~SS-6;7QYr)|O9J23j_ zq>{BlQ~i=)*;TIVe5XSmw@a!GTHT@eKV11H1nd$rdGYz#js_#>$$!uO4T!&U+P!Dl z+xjxkzJ!*xvPhi2Jx_ofJ&9JyAvjOkc&2#ip(%hxVO^|-FJb%b&clBuF%bD$4O(o)ha>Q)XT9+ zhdq^F%Z$CTYbMzv3XPt@R)5CFX#wdA)1=GGO9$#CmLU`PQTfdk$T1fgiu2p-jfCZ+ zTb7`_zIOA>qIN>9Bb$3SB|bI<^nGLWiQWCjTmTRymOf=;9t*w-UL^jPI?$&PjoyBo z^~~-2&88VL<*oa8E2V5(;=37+_%P-Ll&+BcY4oSe>7P*8*KOHuwh!ttD!mzR;NT$% z+rMkXCCPd}?$x*M=492WM1fe73W)2UP2o z08n87w4iZLJgZ=FW22YZzx7fx3n`FLtiAb|7+P|pxK?^v;%;Kqw+7Qg)O zopU(=2uN%6WbyaE*eg9lTJ^Xb6uR5U^g15-5@ z6m|uMG*>#NJ|UDcpGe)>-bW3NeSM_b6O-w-YDS6@(KwlOI&CCR5b0tp*p9!6R^RWt z;c~+xlc9W~P%&MA+vqU`k?U3F8`%wfFab>N0r<7UeTOV2GBkV3gP~-D=K0a8h zn~~8ASP%_MxY0l70k{t!!h#3y7&MLj`+^@tq74wIGQTQq-gBB&C4Z`wbEf0hWcjTW znFlmhY5c=MGo-86_7{%FV7;`gz%{ATn3mqz8^e>%s zqhhEE9Fxi1TLDJ&KY4EhoYllm1?__n|iq#bg+OX&5{L9R)tl94o^lAOalU~ zcuUp!=N*UXKvvFvQHQZ~+W2_6k~^RKg-G4$=QkPzb^ZQ-SgMN!23H$3O(LYO6NMBR ziWdm%wo6b;@Uz7kk%v!|k!QB5#;LTVFFD0s{qwiR%J)VFnT6I}{va z>C_f!yMP(`)97hpk0|a60`$PXr13TxdFV^37YlYY;(hTu)746M_5nE|SoaadgDymT zsC#Kr{8HDcLCH#X=*CEH;;BNuE`*{2J++wW%GmK!!o_E`**rb$z>)FsPD+bR?Xc?Q z2ZF#6B4@1CIB%;IB`vl;xCziW zL3it>3vYO}M(;Qq|J`dd7BHZQ_}I-YOJ$S1_Z}*pW%xsWXZK-d55H}M(3bcon|`;z zisicJHsO9n+qCP48cTDWuB`EDV`KhT7tZUZEmX)lNe^w1l!_|C|8Fzru|{-UhrZyQ z?0zw5Sx=j1H?MCXHH_$obA~UB!`$gh8jVKAJQ-39gJvjgcLlZ}E*#pM-7|utR({2Q zPZ`h8tVVgdu`;s8zuxG*68tn@tOz#E*RcLIRc?CMO0uGe6@-qWVu_w)Yk&yQv@3W; z^CrSVt6vHv^kddvQ#ZwVSY|&+@K_+JcO-BMq}~zV`+RfomE7Vt#+uBUJzvt_JRj&zwiB~lcdbB`RIfxoic)=92k>Sb zqzYsaAAR=&o+d$nUc_zMRvitOqvWL0_D4Mk-i2CfRGB9El{Tz@FEuRSF8=D8T7I`_ zQM{b8p3nU-wrsa~<%MR!ZRvu)eBF-9f2E(5bkaHyI3Kh1L3p=sxQNc; z6S^(axct)w!rEv5Zb#?oPY3Zxoi){I%yOE|a*Iz~SJ?ZdmiY@%N=3y4W9W6P_jm)u zOpiBzTw&KSNTNQNn*$KWFe~2fi`gHAC2p^uYmZ?<6%|J@EI$c;Cyf+{7(V>sqd>i* zpj8&nEW)2TD>$mrT@fl%eOso2Mo>N?f^9xTP+ZEMedcy2?v|_$4KuAK*5X7s_9rwZ zQ#|yPRLc7Jz~-=f8p^29ACvjCIhD$w)Hch7H23q?P&F+V^Rr+asX6L)tu&R-LP0Py z=(N}J>d4YE7QXP>ceW!K;ZMmt-qy6k+;qwUiF`S*wA9R!10gri?^^F76rp1HEUu;eseAiAUASoGpB>8DH9@YxWLsaej%R>u)As+uRS~h;olsEfVAP~ zn@&m5gHrJ=R%}oFK9GCg=-8%yGnj3KxBuiRrF;alQyW8qfB*0Hj>|K&GP@psE{3fd zQXT3;#qa$F5SK?tec8+-^u~K0rzRESz~|on zlgojIi#WDyITaJx&}O*%HwDwWou4QE5gj~Z)3}`uttM*nGlG(yMIC@rWCL92c=hXN zoB(WF_-GQm3*O$jtnjpRD7wH5yfA|1+5CE&U&F-QNVk5cTrtX?0|X*UvNcZ9WmZrv zV`P3E3dMKV>3`(?XQAK)(M(fC-tybu3F%afQXn%=M7U@7=>4C8Vly!_AwSz^Wn-yQ zo1QEMuESsSW{k>&I{)0t$hGN*&*0tdJPYeyVPB(T=?tVUYR)0Nyp{R1L?CW4P2v+A zd(ZsA;$=~0qdM+qeY1ye(=6f6S->qfi(rkc-gxQHBxbgqOgA{RB(U0`A?OqN=#lRB zrqsrBA+zbq4~$Y1?#(qKQc`rDyqjikgQV>8Zee=@pVUIEh#UDniD>l)Aj5x1P5ESH@}8P!P=L^5TBCuj zpLbXv-B=av^g29U%NDPuEx)4S$k@h&jTiEL$wA!W{Ub4nM26}7=5Xjp`tEG@$=>qQ zh}ubPz{d6;$9W-AzOeEezQITAi91iJ>X!Z=O=rOsXVW!nBv`QE?!gJ}?j*QFaCdi? z;10pv-F zr*pe{R<|K@f{;OAJ!jL!P}G%Ub|1z62JD9K{|(nkxPJd(|8N_F-2VM1Z?j{YGJI7Q z-~P=jycrWe!#)IE2L)A6mm$C2TntDTggE2==%O5A7VGSxbdOVe?4{rH#8^ZKYwD+wCkm}M4XxjjV2 zxjDR5BjCi`5m)wzw!3hlh#T_&Aenhbv_}9wV1x$8@(_mV)Adze68|^UjQqEpQ25_! zq8>MKvg0VDB`#s>SW^7f+(|)?i|?mS2$4aA;-uQqsa=0lI0K)6qxMnVCYp$w$7IH~ z4348p-;W~P@1)2&O~G13ZueW-)i{i~nILmi&oPY?g%Q3~)o!cZ z6K8tba}C;Kf&TJ>i~qkz0`tJl5zyH&lmhjmuq zrP?N=aF{5z2k^3=y;YfuVKel;DvRC5cGq883mwFH*@EE2U=rv2vfXDW#)RD)45ka5 zHK0fkiw9#@EplRUfcmBHF~IlE;X>Qnj^Jd$W}$YGby$bf)GL3F9PFZAWDWyD6r&6U zaR6CWde1~l2+V5P3rm9?kk@)C&wqQ5?4K3rX&rCDsgZUrL3KVXLU-ZJ&-G@HY@$uF z_Zp5X29W?K`)jV!igaHj^p4Pa=Wlih(h?V2a z<*9DjzM(t+eRU{L{*{FH_O2pl3m$c&YTzv?mv4ZN^yXf&(yb5W!PAdSys6Q6gqCu; zL;S@U%9Q7THGuHNw5sKZT5wnAbQu{m#%b-XJgxA_)ijNlA}9Z7${vf=kXU)z(qffj z+pwuI5F)y{p(2CE2@IztotEnj@pwEP48NA&4R@vd!#9eef`;0V{accJcZO*|8VtgL#e|wR6oZoE$LjuW*QTYSy&nVk>SS#Mx zKpjZ!$Y6Y8WOMA6oWPnpN?zN8Iz#eALHGkj1SPx%?Mhxf{8XK|EdX;0$FGdV+lY!kn1Z2PuqcgM5$#&6*Vzrn91iJ=S#kJzCzfwwpFn71#5 zw2h#DLgaK9hRI7hh&8bvCJX|MX)&&1MHI7F_8H~w=W%5utjaxt@HKDjhs3qq2l$(h z$FX^|WyVs_vP4U~sWteKH%K#(Q*6I@Q_*?)H$6&Jnc|LO08ym{=2%XLjybZT!^v3tRiUU(q)1s{E0p?-bkCPF1(||V{oZb!ntF*Izl;E5Kg>-is4^UAf z$f-T9&0&>+8T|Mb{k!)|Q*F82XmEPiHSbI3(=q>cn+Uij<64j|oo2wyb(APsgz~30 z7eDfXVA$XG0L|!e5t-D^Mt88y2z9%Bn|l-eTFK`%n$AoP=A6HD%T$cd(ssb0a0l1` z+}og{(RtMt{*!oSf~8XXQQ6aK`)-Cc+_B`+y){jHe+4x;tL1~0)`{0I>6LjhVtStG zDtJ#OypY9LJ8gr^-wU#*?_OeG;|ANE1+h7rId*6_fR%}cgEs-u(ja0Ff%uEt_|CB4 zUJ6KSO4Yh{|Emq(z{dX&4hxV2+S2BalOIIn>9^A^fO6Mc(66BLKMJi8i!j4_b^%^_ zBM*g79Szk;g$yeaag=d@>fDx4v}N-Zyapniy9RE@RF&%r!`OaX2!?|Phu_E#|Kd-4 ztxMkvN%L!yjq!Nxu7@AzXa_a}HuK&6>)Dxena_)IINEYZZn9U-*zj7 zXwh8>WF-3DfPMP>UYABQ|4JF}jg~eJqgAd5GIp%-?Qpb-*&cS!t*1a@0E{^ZK?(j| zM}VkR(DrTMg`-%xRISkee$}!l(XiW1#bl!1po8Hi-Sph-C*q}^4#kon>OSGPa%G11 zh_8=NQEAW>SB9_O8-Mbo{on}dT-KtkB$te;xC-PtNd#Z4yyaaH<=fNYX?YAK6~}K3 z%dhav_4h=~^aZuw%Ooe0l=nMG5b-#C9hw5;rC#+(h%4^lT7{e-*XRBicqDv9Su$-f zrfNAaPc+2JQ_|@7a)%>CX8@syoJdX#25Zvjo7%Noi|$%{T`eg2!i6yA3}f$Ddb^j> ztJN70pKV4qS<52{bJD};y@_?T`X;8`lb3Mo0;^ZpA@fy?cxhwUbgN&UBE29cpRxed z?uKzTs=(y=B}61tnP9+MdFt?vg?wGFp?~39!=;a$TDur8<$tg1zdEA3$j}@c%D7s^ zu3s~}6ra}v=PwfpA?<)jG5VG?zh`yveZ^P7n z-uWgpDzuY+H;REKN-_QR9zX-{)rVy@b4*gNr9zy5<9^Xy)DRgNj@DIiD33cj&4&pO zJzc%1WYn&7sfTy@2D3w)`{3JPA9^}z%eLJJD?90`{eemNZqK^y<5xzh(Ii2%#DqKI zT96}PKBMITfp8;8{Y!i>t6n=b&^IRfTtIgadSjcfAH!_e$&?s?C(GY%Y$K343JI;# zANpA4xBtpxCgZ^mY5JO|c2&k-rZu+}`E7rdeY@#>8VpAuLg?`s^!c|Ap{r%_8FTb|C%xQ_Gw+Q{ zriqlG_=Zmd-fnn|b=$@>ySwGeWYY!fGrNv^Bq(lzC_lC>+NZ-IIk`#5Mw%`kz4XgD zg|^X^PSDL<8$e?F;Mo=n6_s-AGNLlzyR(SUKMlBrjQhXH@tsF+>ZRhMk2fn z)uN0yZZA(gr%vlKS2MpJ5u&*KNOfJ=XAe5rw5{*qz7J#ZE5s^<769_|=Z#KU&Ge&1 z7^UwwupHVU1bRn%$CC^@U^?c7I$~w_Jr?Le$6SFz9j1*H5oL;mf?dS}lv_IV)FEQUQlM@usTGRIwAZaL!NX{p-Od(*M{bl1(Oc z_S-byF8>J39m{snm#L@dQS09~UzPnMn9no9Ji1u|LqjUugGEH-x372;*!0Qxrm~!E zN3mtSmgbM}1EW{ACNi2%cIw~O>c7FspBTn}>;TA*H*z)5z|KbrNo+tdV%ftLSNxy(^IW4uZ>2BbPU^98{K#>b} zgR<5`2W8bfWB?#1s8?dPBhFQYAqt;DpHMuy&TSD$h?z% zp1Yc+PQhJ=s^0tB3u>XIqVnoKKen=I1zFS{CYsY)a?qN&FG?-_7i?59uR^MLjrK6P_Ro*tEAJJK~{VC_8X;3~(ck~L#Bbc>#VS_&t|*`&x1aSF z9%LG>8XNA4iJFm7(7c+X3ZqjV7wcUfuY^6>b()xyJ=&5OBRJFc?US9nG#A4RM=mTs zPr6pmH>$5{IMps#mz3GtKr3KvZ@3AmTR#?PKpmyPeSdIyK6BsmuvQxcS9*(lc1D7T z9_f)fPHn+!p-K%48lj>n^vQz8sE%B=yFn0-J=jOjn5?O48JS~Z46_^Zmu2G9fY6cK z9X5tsh@7UMrY^L3wf6mn6bfmaE(S^D7T;6zDu11$0wTqF8ql96Gn`@gHWmZ~x;_nM zj>Vlkj;AuhjXx=Vp-s$wg`)Fs zBD_8b(gyMSJNh6BCqjc`G;g`jp=(p%RkrU#nq#fOMp)-8Y(lxal_jqL{Gt) zp;Q5T{P7g)*f>3-zAn{+86nEepLMg{S_2*pp|}z*dCHE?1lqM5rtPJ+l@|eW)GBL@ z8%>2MXr$xnme1*6P+0jiKM9@Gkja}CLt)g$x|#CG{M`XM#MeKHFR zfP&c_rIPnoOVqYR-ivjNOLa!x|Ku2q4AX(I?~rHTX@+d(BP0ZLPex0sPi(*{1?M1} zb%Juy5B`0Vqd#`G>*&!m@#PrzM%nj1??G?S3L(8e8Dk4(zP0g;k@k zeLB?&*w-3=d-L_IG3@hTiGB8~)H8r(WV_17|9MuvVTy31Ajh?cdpZP*wq1~FcB`rwSy`j>Gbo(;2;(I)Y{_;T|7xl;x=Oz{vm!$C6%H^E3AO( zX571vE1n@zJKHY1HjGAB=oWISGmRriyfwS-#7!!_V-#tN@qa!Un1d|)+`3cwd+DIV zqGfHSI9&*{^JUC&$xKa&3C7OrXFVdr9;ku`y?+@#xNbwr20@bq;aA`o8jz-?jHgIA1u56$zyyXM9ZNqdqyGFf?zjOYR!H z`c7{;5Zyff1Q3D8SZfBk--wT1sLbqTuKNbMDj4&PgHECQyUoi+ZL6FH6(PpNS(v!@ z8W!>7P#LuU7LIbrJG03LeR?2T1}`+ zp;NkE*h#vEyw|OMRk1Tv@ur4%VNH%YF=^aDufV8PNTnA>8ic-FZNMU+sT=y=EtY@5 zd!&{{s55>RJ z=71l>EUXc_iP}9Totc$I&{#)JINGrmki35X*$_AA*{V!Knh3hAz4#qDMdN4+!_%1$ zd5B#rkkiIu^`}34OP~4OU+WpAHp0l8_N7mI!lSJ)M>O7rSbCM+;ZZQ))UmKTAl7|( zJJTsdlzT?qC6gZ3z0_37^WplhIMD%ay+bW-wVRryiDDHfgT5HivAhB~r*<3=I*QLi ztmb+bg1+BWnVDz36vU7%YhBQceU&m^`%+r?6UXJ}1$6tHz;^owTd40@^Qu^0{ryGA zyU9(EkT-m9T3i@nrF?!(_5)=joYJr)b!~*9j z&c%_)*wOrT7oD3x2MuwLOFb6qS}WyYm)vsflyZIzE@g+A{ROl)gW{|q64sH-waqMW z%kZ*R>1Kp`ePC*k&sq2J@##-J%h{YwCgq*k%n$^g$|-vWSTH(|-DB9%TNR z(rt6tSejdG?NMd88>o}7vW)I`EAnQ(S)HkK&@9tiw>6!x71*r(>0Iu*ES!Tii*%q@ zk%%?MHKGS$Z_C^2cao@!io^^l^%*auB}bQ-wOiEAhT(D6Dnl7FmvBPxhc`Mn-d}SPt`7Lf!b!jXmnM=b?}O zP-;1MrcOA{AUHs!sSbyLTDX+cu(PwCY&#OymMf{K?x5G~d|P1eLvjmn^SS$8TX!t< zUoQOd$fmpt;Wr2wDBJx2=E}EfYN=1Q1M1>_nd2%{eKNvMH-I?5GOaIRYyZVc&Vi~o zhfnGk(F^fA)Ienj+`+&9-eCVach>)tF?->nk7ipHgtPRxbO<-}YsD#8G!5Z@Hgh0^ zb*~^F!6pjuxF2^DaIFvUXgC$;jfyhoPYHJ#U?mVpjc~e-^vqt=WM2Gm7eJU4DqXt> zGKcm~!!!WjXD9qYa+YW?(S__Xn{N1>P8pdv;5a{f&* z@(A(GKV}Y44sqxgzijz`h3pGJTqs?N&Ih9fEF%`*$i|z?#V0~s-tlXJ{K*{G4_*ZK zf-!Gf5&~ZM`@Ycb`(9k=b0TM9>rH1QMe|^I!EP2 z;_mco7mA!6O9~t2lX9(nV_kb7&#nkf+nZwB@!vk!O4qFVXRW`j536(+Ij_}J4x|??TTqM zNl#smFxt=FZvR#~LYh>WfY{)w@ND{-e^(%w@DZtvp`_6hFY&)P$}P;NpIe=I#@xni z3iNh_U}M#c^3F@j#n!aG*TjF@PvM=e+}iX31}}hYgL~WN@gG>Qg3gg-*HUrB%WbCP zH@>;;o*O$HPjo$;5_lhM|Jn3MKOJ1v+`wW{ zD)=_2zU-P?uea#bi`DCH(|YSO&<%TY)rk1x&)0Lo36<1)3!cpcJRYa`rxB78EI@~w z_II9(Ca9tLDnOdC94Du%Tk`vbCj7NogOo9g=9qh*+r9hEd;*S(A8CL6HS`i`eolsw z^clMGVS+NkIn3C_j;nl;>#e*(o@N<;h|N}%4*>q#0DL!D|J#{FHYy#9ofu=!r!77; z_-y3ZZ-CGw8uJoK42VW=t7gJ;-x&a2m38eT@i3}8Yt^W?MPR@4BQPT6si+jwRl;#R zy3gx0JVZ16;5z~I3dHgZ)?x@To$tQEGF=qd^F=rD#m}JsBJxe<5;(6t&*kUU z9swNc!ZrZ~YHx%2%E1`Yx5okbnUJ9NnM8oC(M_2`$jkj1c)i2-K`rQ)xzNUjzqTPW zjvSoI6zVC#MHun$#EOWoPYaZXb5CU9G~H3JZYM+luR0IZ%Fx>1i0dpNM5U)1`8}ww zkJY3xj+0K`6MI+s+gav8e_aFhke@6I*D9N{bQF@pxad6(IK*A@-W8;akUhtCd4*>Q zHrkT#X6JrXgD9mfCdH2=?AiCp0Z6e_9^E7lZ7>`eg=cvy!MH{Uzhl`x5KPC8cS6k^ z;6~!8$imzeJcYUWbtQ09K!43ex)jR(Ua~i2FU`MOmF)j>R$s0gIjgzz`qwA}JpX$k z4>UP6$+OG8QxfwFAfRs*_qg8B+I1IQ-psUqxV!jXN2~Tqe16=`Eo6Xa$m1Ni7L+|t zPUU;Yc7BX9zDHN{g#79d81B*$fB*95q4%NZiQj)Sxo&yq88YZD{ddUP&xH~}23=O% zL_Rwf{mvH5FAc~>&|%$=ID#9(^Q$qP>J;st0V-quD@zx+kCH-;P#}1QYx{~zJ6|<6 zdCUF|wOV@w7Nq^Px$6z$X8r)u1zVZMxvpFEGiSaK_{;`JUzZ;R?UqfsqAL+sQM1oQ zGRngd{A<8^3h4DO3)e^6!LYdyB~P!%XYqtN+hsf?$&b-)&l&-&NntbXT*!p5!9LoB-GWc<`W*j950h&X_l5+A*pBo?`1rE^E9 zwNuP%Qa5!njdV@MMSD=`i9>9TFoc_%(3YOLs0E=9xd2MxrRKL3-qh-e>?efil$J#V zYODpt{rVLF#V`Aq?deg$nD&<0{0U;97MOg23JB%e0jj_1=2<|YcQla2j^iv~#zSt` zH{7Mp9d_!|i8_S|dw&e;xzZQ;ci5q^90`GdxBoC|ym31JGtado{%4$1HV)H8#kG<` zCXeq%Sq3V)xp0Ht4f|hWj{KZg$GvT#ohBa@cv*7+HQuB15I>T~=fJ4xf_ea_%}%WL z6mxdKxo;2~&AOs4opQH-Y!|Xt%NYZ^6`_6Li=x^NAfMgBlxpSk~(hj^Vwgh09 zj3NtpjT+?+wI6+yeRB%&tV#iL4=7^(#H^7%B@~bx)$3uoS)mj>RR&zTAV@z=T){qUz7Tv6j=wNi^q<2S8~R_ z*hSRsBLSyC{@9(?_Gk#cW^H6tDOIb+3%~4#?Rh)N{b$?^76=5`JeTEx;D5290;z8e zkdYW|vb75(x3xzZ{Eib$oG?)7s%aejSag2!XttAWbY9KiyxXQuJ97b5WmE0E*UM<8 zDQ9^Hzf7R|;!_uawo*E1ArQRj{Nt!L?6CXnu268bQI3%tZQVxi>-=(pK+t{c@pS&# zVI_!qo4D~ndFp}+>wz`pI{014x9a8L>|&$WUqEoxH_g<4mM_bq< z#dsyyaVBUkcySNoG-L3`+?zAQ`8V%ec70+tjl^0kTM(qSY6Hq|YY6c#Qg?nRaR5wl z60Nc{dg9r;@TLZIZcldJZe~TisZQ@b0u>dbtf^^^=PNmB@D<3ez8zzv@ypVjJgY~J zsVf@5JY)KWnSb2Br!vBkGOW8sUEir9JgCPjWe$2RZf{-d8xxyv~s6>&F?Y;U!+6PX4 z8@E6`N`@GDi9B^ph_AKaMx+ZZ4~AF3$K#qA8e_R{;{3>5xWg68vxmG|F#DocuDIT= z;unVJ$}XA_akkaWHa%rsaw;fo)2hp()kdKFKEVD^C0|3J)cZUUz%_T5?eTCCe}BHQ+~YoR06}ilMr6Eyw0o8*xTyckivLFSpkAh0GW&~Log68+V2HA! z&Ze_-t;V|fgn+2ID#7%|{KWH8;D8n-f27mGD*L3YpDxXMNgTNdDpeE{^S7!hL;Kj6 z_JNS+4S0EjiZYeHw0u{=Nh&mgWjP-lu-pBR<9o5aJ$4jnBl;)5O5jdV$PC^z5nc-nXpp~~EWnM#%qNEIJ<#<4~1U|Gqk(OG~c^ezo znlSe2^Q%g+E&gyqjNOOV21m|meVpUyS*!0BfqT5m_jbfswb^Gz%^y@VUE1#?u4TNl-|3&@kBhx&^nar z1vfC*qKm#t>8G(Sqv@vz*AjQB8`p84#It_c=ce2lawN}dUh4WT&4dZ!bANXhOv+oe zWRqxd%%Mxj!Y?`9u967+a%d%A>A2PVM)PkqdnV7zX0B`-*Cl_&Yzr3y~rMkOQ(FLPrX*rJ2S5sYM)tKzp9rW1l~?jWmA*gZ}QUazV<1Q6Eub3usn zTi_8BqMv8nVv>T`S0jmFJW~}r_++-?M#R?NWyX@LFEv*(81}Y1J~;dLk3`htU8y|p zJ-t`OV9#0vAAh%8Y4F77j)=A8t6cfydv5L*A%niKx1Qjn6`rm?w6sd>F=8-Jw6h`Q zSsyV*NI!x;K`!=3f!IyoUcF7^`t2u=%3JoFuD&n?PyBeiGSTD(_jx>w`tiTb$6x{s zJdOcv?5IT><%C_^XDWvBY4pSg$}w0!l}|%{7}9{VdwTGjzdg3Tj7E*C`6kfap*3oo zZgk>3nc|?;^B||?k?+jsY^|dx>vqbjPyTR*-VKvo_ zKdrF?)p-)Z)KPxjWDTEX4Mu@)i6AxA-&I@x&9MOA13?|K)=m$gQoAtrXME8He^>-B zywP_ND~<9I%dpw7~K?6i1uJur>RpLGFJP-Ctd0d z*SM(0%FnJm8w#Ew$3#!^+w`I(XpO+QPLJ$GADx_vz?K^= zht@YTR1L@9IESuByzSO~kH1w=I4?+NI3k)f_cBG z%A;rhDb#p zWNk%eS8ZA*iy&hSGYKh>OM#6A`( zR7J%R`R0ykpJ3A`NR6~A#5ZNii(F%ikv7leO|^tC)eO1NNpGNbV~#`@d>5J=81@W;#*{X`NAzXguV$6?7wE4nTw`;WWJ5_tdL(ieRU#3 zQcl^D0SIy;-Eu&eNTHEayI>cc(GiCR4qZp{`WdlPMWbG5m^92MfU5Ow#axQK6B$e{(C-N#jja+NDAb@FwygTIxRFh zzxx5%A2O5mq>#?Kt5hum`W$|D8!JDPU5v?kL6pva7wS{C#>NF;+u5^E`ZBjhXhZj=YJ;3+|Oq^QgwoooCON>^jfNE)PYV_FNAz5`4$mmp>(6( zYyo1%aBxq=7hBMM=uTws2%V%G2MboZ69)|~Z*oCJ-GSgdEk&4z)c!`((JDw70_!`_ zkC676mKUjfdrkP$mr}DknmLcTKe1|u9@j-X7PLe{%bR_|)p#liMOOg?kN~<(x;9@orlsU_ zt=fsn-N7EOJC;NNrO<%GGy3-hx`4`EDWyi?vYoRt5}c1ja0vwmi1bY|@~@J{&V(-+*9 zJ7}cqdeMEOhzudaMku^93PIX|2FH9d?OJ6s%9`Fd$Gtu;T@eUY3tY}B5&~-mR_dY@ z%o#E*SK@&f6K+jgQmAE}#)@y?p>BJ@xVX0+Bp2IJ4uYS)2S5q?BfSUWZ^?K3wy?zs znpOx&E*JQj1M88__K`xy4kEg`5Rjs7ouY}*b8e)aKPUVTO|y*}o`P69!{Mi|j3A|o z`G>3L_ubvyZzT;AMvmvpmdO_)d3m3{lZW*8JXXA+BzHe|+YLsr|~l5tzR5}NGy^t zxdIydg6TeR=X3uG?pd-~t#LgK+P*>D&gpa(%{1w^It1DebHZ zhRQTC%+$^8YKDTl@sv_z?w2nDN{B>27?%KLoOwWP4Pk*8tk+ zSXQmMBk(WXx|r zP#pH8Ys{|m=^)$jzyu{kPY{Y}D1@eeq=4&7x!M916Tz4L)79qTt=9t{xEB83x(Vxm zpC6c_0k+vjW*C0#*9R;L0|GyKAf5Qv6-# z3DFPuetmTQ)~#K&TY!Kg+dnh*KemOj5?}P<3LFgXP-}h_fAi)tY)z-=wSBzIWm-Al zJYC0YwYZVB4|xA~dU|?&5%}?9&Nt%E?5GqGA(VEeF5*%$Pc{Tjrps`nf2McQx!;Y- z5z~ngO!l#JdpYeq^71q$z3?a@b;qMm_|%aE8lmgr^z_9MT07!otNoV!6til~g1RBu z8h5PbJ5+Qs{*{pEjHe)69H=vh4ed~TG}owh+Qsr-Jn;3@RkPUk>p%TF9$l-iFq#DN zmuf59o^#~yGG$Vtv&k7Vj##Hl#RNQ0DHcXl`wz2 zj&EjxIDsvF?~hq8BJ*)gbvfGx`btG}U4%vC9#9{!%b zm!N1!6T86aAp%qTAYVe31-mAHTanxmx94Sj)YK>UGog2Rlxy@sb#2iH3%Y4v6GJ#K zg0(1_SMiIAtfWoNMKmlPvi)Ag%pcro)9Gu+1juO@SF9w==X85CCnh;z2@hY@kh*V- z=*;`{d%EsfV9m<7QC*X&O-@}=+M^8;ojR>LBE4XF1RO*-QF)A|#C6Oj6FG;GBpBz> zzgTh2%B@eb8B~Dye*5B^bi+x+1T5KGk-diWm1Th@) z*0qB!pr$rmrmd6;U0PL?bS(@LfC65y6b6z%5me5j1U%1)gY|{~S#c*6#YS8bqwVYv zElim|vn^ck15F=#HifN67k%{A=Xnpgs-D3;6G&7CkZAnPWr(!$^13zSqVx#WV8y1? zfySxXY(^!aQLNBpWT?#HoUdh!rT=aVBETLclIyb>*K;QrB>=q$Y**N6mKeg=Fo8GQ zdre?>B@>yp1@l5^(Dk{v#s9~aF2LNkwf2cH4rXM|in)H5bUiK>m2;cNZv@+JtMuf3?)DHWAV{;j<^suO;FR{10o8U62RJyXhKR9AQPEV)|7&X!AODvi#DadP-RQbU60O7$nbz2w*I zDQWxG&5A`ZV+6w`sCaM@DR0J$`{BlmgewsD!v5kx1r2XLSc%Bq#|3L{AhtI{OJx@`M zZMqImW1qn?{lc)e-nf2jBx^ixe3=A$5dG-%afSSEikA|iuJ7sUzL|9L#%9h0&eXkx zr|eqh`K0jP$dNRS@TTV`m?vT6U(w3`lWd0{k;=6#BAtGif2#L5k##^AV|yioujO$e z<{k^+=Tu1gE1^BK2f7yZl_l$yAMVsb7c2!4(Pv09QFvyTH0oIWM3eTrWkd{wk zoWI>+rn+{VM5)g<{`etN@|>DPgHBKg>U;F^QIpYQD|aV;&t%|nZwwL^Oj3Q4j{QF0YU~5okIdLSg4jPxkcs-&}~A)Zo%^pnxVIQ*T~&9oJ2H zGq=UT?a|j3EfSCNMeQElj&73YxExU2dG|@F9?!2H7>265;|vp*OWzR!{-Gy^P+Mn7 z04ed!TdG-fIB7o+PA7vdRdI)j_M4Z)bJ6B|LKio1S#vk&T3*@LmnqTUH z==w=5Hs`jDL=?x^rg33H z`(N3bh~h#8;kyGreXoT|o`Z> zF0eEYuZXzs;x1U$oS?|Bk)Ia;)%y>h0lYC)nV#Z;l zIR{V=u^=3KaxFV>!BpJvY5xKO?lxJ{5w@&b$G7_4?z6R=N!X_tK2#Cye$ysibOw>9 zlU1Hq%jR5^c|^?;%5dl#~1r! zyoC^0KZ#;T(EI;6Y`_s@l2A5dIkA&HBWCc#IZ>ed*F2q^c&SYxGH|IC^P9V)1)we# zS{8cLLCE@pWEAT_(@tgpsN|_m?VOaBf$wR4`*Wi4&YhPYF96LUfyo~4k>ZcRu|b$V zQS@nv6?*PX3iPTfNnXvFAe)iea_P{f)KUA@S&@c?fB9L@+ufTA6S)!V{`rond|wU^_q-(aIc-){N4(P?DapmGk-QAzpLeYYYjzCL=LB+wcV5IA zB}BQfxc=aYT(#t89vfsT1N^wmi)-~NAF&u7d*Ys5@WZ)$sSHHdNI+s zmyJo3Ip8=MJ&!k;*fSWEUNZae=nL$0tj6l&IB*COa-h=aiCSgVfnBtbdq%6QhaoCv zXWyHl(a5+2^lU0;(29&+ytRar`-VuPk~qZqlJcylT?TnmHbfu#;yjGx&obRQvT~7a z_4>c5#ZC-cc}st*9X{Q!EV{7$S;F!}G1=woZM+kfYH`!IBLlW%wc_ACuHa+q*jOeU z8~uZ|%R)7tOTdP%^RB;5&Y?q!ceRsXr70;$U_JZFt(!4{-pK1$9p__gZQTK-Vj$XC zqH{QI8QSrd6Wd^AN%`%%$X}FkX%S<0ndIg|HPmO#KJDJj(&vg`x|z>G>u~MNA$LF& zDolJh`dIQ4@R`RW;*ysjf8%O5UezL0@Va3^00<}|c``Bf^D7GCb8eK!9vKAE&T~f$hYq1V()K*^;ucLaTB)fw~<^~2{1=GR?Wc7h2 z^ySIZ0VTSvnQOj6P1VzA2p+n+hW4h-0X&0u+|KmYuuJ!`)Sc+w9t_yWYYt)e(<@4z z7hd4K4Q^6-)!+i3F9?)Bi zsIr`?2uB?;zVDYtx@Ka_d&;?UFb3>vl0)5uyeMX|h)83-<+EaslFjixE+LTlk;58Y zvxGqnn}1IE5BduGd(-`9tyQg68q`;fA&VSlzv4D)r|95+$*Yor5cjF@s1;oTe^?8A z*UK;7tfQ@Cz`S6?2v^d?h@jG#YWObMBA6+BEMsdjo$ty?Nz0rWSHOKOi=8^v7Pq3y zx4yiwt1s!j3uX#Vq9`kNbKY;1N)nv$zRl%3TP{U+X# z-N5Tc7o6nyobnnSxxJ9h!yVO5Ss{nKX@WV&>WFf4zCC$dUzPw+YLRNk;mk`Dq&qu5 zmbu%)6FhRy{o^m)HA>c20VdW&-uERMR)>e(mmPr_#j=Z?mJVn!Yz@4EMTXkfU))7BXLn_&i$$(-jm?h`lk zL1%6t-Wat+REnuhK88G-4`wa@2adI{NC*ZnY9OBertN2Cct^?IC2n+)-&>KMoeL}m z0meRKYig0C)oeSP$9%>2>VSsWkHq(ratY}GX<0)l7OX!a4sQQ$zfWf6gXOR6XRy=x zkHz^JG}upY@utr!a)+9(SNJ2XKVA&lV-#yPSLtN6H)Y)mSUGvMGx9bKGIDZkOrZb+ zMjEI`IZmI?DCozzqNd&{%KrORS)*O7KS{0eH>IY1_B=d{xvs*zC{1pNvh!^3+Z4^7 zRs;)ZiEQP)dBn9JOvl^juQOLWw`lQHC(~V+)ni((F$)r}>VI^MVXk{*EB;#F)Xf`7 z@A~F369!=bH*e8>Spl<(JJ?qty4=#HV|!3f+n20=%$3qTSYN*Re-x*#a-}BHNVQG8x zXB5UL){EeEbPM8E$w0OyV7&cbI+XiIgOT4AY60D?7L0c>5~+KI|KFs8?k+ zvuC!o+V~jl7+EzA2=~H>HAeN)Y&Uq+mzZi)Q{!^TjzeB%w6O)iTC6#unVU&rE%tE| zl6v3J4V>ke#0cwRe0%*;IYk9UoU$?+AfyZ^Y-a~UUyFbPK{*Aib99#no^z}9=7@HQ zJ2l4I$DfyY{*AYdD0kwcQndHGu|$&Z-E|{Sk5izwI+43gMT_FY^A8?)B(1B(^JR4% z#P+gI-9_(#P|j1-slcw@(Z|0ePrzNKa|VVd{vKsVLR@7|&HkN;F95Rh z-$IvHp#6H554TX|bN6NHjB)Y*q;$Q8b1-{FWhV8HgX*X)s7JcHIY;a8(}ivvR^yJ%qYJv3m=GKBu`8 zX0*We?CreXgaj@!#$Ag^Fh;%*BcKR@*HOhQFwD+3w)&H&^C{h2&CX98T8urk)U0ds z(4`^q3`Be?| zHST#Pl|PT3BhD{l#g&M8mQ^Gz2&-L5>$mrHRmGlRJ}%Ra55CVCe~?2UDIxOh-`!L8 z&*P0wODZcvd*s{eZQ~MO{8wPr6<*uw#Up3XO|r&iJDT*E(=}()@!E~0o3oe4w_X1g zH_OO)s-3PHG6zl~`sxB*y>3dS>^2fo1B%Z#NXd?Tn;O^Y(LY`8ZH5(lA(%fQp6~hs zL|A(6mUNddGmGmj)xSu2M+iK$E*lW#)Toaf+O+n_RaeUp#x0SqYlHA509g@4dFFtb zPc`S$Ss{Yh2S2eAiZe1`nKV~emy4D={+#7(N72tWs<%Y&xY|YIGt+re8I8 z`VRHyMS>EfZeK=644va+K1OcxTeLv$sXQdYFY)O>dWN2Neu8hF4k?F0Pv((4xZBw# zjZq_&{Lg8IBt&Fgzmis1gxEQ5U_W_dQNhrbC`w;;A4YTzk^q5h+!9dLzf1GIdIWvC zj&5t44!X|SjqiOFSG~8~Ti}lLFW#V5nSN1bqf+>D6ogkR{O!!`#}g!>b5G{Xu-AuQ zCN`-1rZl;kB@|2d6mUzOFJAT!K&)xkjB~KGO+$H@_YF;|Q&C?_MzvHv+C~3yEYFfN zzH@Qs0o>KoG~{7o1W*=~37^T(Ff_A_eM>-~^{o;G5p}m;1SQt@kguS@XlJb7sxib0&NC zK6{>dwm)b@vJLxn2JD=8d*Fx`m*Z(8bD`1lVRgsg*0ND3+Mh{>R4|^5+{pqA7O-O6 zto;Q=ZTDc7(xz~zmEs+ICfQaphnnl_&#%(uir#S+Y$rGUcsfge8hSk=ixoPrS@oU* zPXh;wsw8$Q-rPgQv$J7vZLEc{&FICaWN#^V!G-IYXuI0YmkBou3<`teBU@X=oO>6k zG;6^Oa3H$AB0$VJ5ocvrcz;T$90pdmomuH;1v)1@?Miym(R!u)1DKq>w63_xULGZv z#o6HZ=i0o7b8U8R!|0LV*>yYK&5q03DV z%A23#2VU%vxL&ok@BdtI3L9Ce>O|Xr7F2y@L#e_cG%~f)Lf~=yXvgcja#xtZTSV*i$i zQg}oVtbf@NvgKB+eRnpn`m5iC!WnLA63&0L_}u!aQS<8c)$Ox@m>!|lrTX^8>qQ%N z(%=BONMm=V4Z6ke(tc%ge|{eie#w+l5P!RdOWZd z@Q=;pr|Uzq_<#q}ejD{eNVXvZRDNvT0!0xiNo9}0r(jB`r$k_DduU;{QosW(@f!25 zsy`;P!@V@7@3p4S60lTP(aAsoH}%j{6IDyuSljy<14!>#CjrTy`Wk;cEoZ&Ag{v)? zzMs?~G*4VxE{aP9RP-M6phKY*^@AD2JRFfsv~G22*s!rux`!5T`w+vCJ((2B(HqJ@ z%R*b{!gu8BbLxGU9cKrhTjcH}3gt!EwU3UIFEc}L>dWYTTJf>ZsUWi0=On)#$M2TR z&ma(pG!)lkiydHRzj~US*RM*?x%mQDr);Ic*2d-y%EBMO+e-wU+SNM|DAtsc@AyuxpM zf=)jB6r*^f-*omh-CHSi*4x~Z@`vnMW4?uo;z=(drXM5qRnfRD4m9Bsf?%xjXnlHu ziuHE3K+v;H(My$DCz0wlhYM|C_R<=M{8C~3!M3~eOh)=vQgw!QoXXrNg)hKmJ?3B_+TO#+2^G1xL9tE0U(XK3z zIDF2S$+r;(?W;YvRdIZ@^h!fEIQ9fC21&_;Hbg(oXSn%Fw4;IeDG|4;MctW$Az#t{ zoIj=4u9X-^)`D{K@LDQj)DpD*Sf`0cWmsI)Jg4b_PDF<7wgXHF8F9y{%2kMcSo!|_ zyLX~_z0b+IlHurIRKg>bJdgFBXp`y?)gzue&h%_k`20a%SS9OLbtMwuGrc9#`?6?9}iPNx#F?G-iOUcAKDYzo({{TBK?#QGqg zM`qx{fj)EETT0TWwyK#|dytUU@7h~pCJWjBTefGv^ZQW_6BE<@kpFQzr@OqcByFeD zbu^aSi{JvOnW=6#tV=;&?x&5*8a#sb++FGeuOA-qLKV`Fuxh+hXu5Gx!YTjk(QCd9e!29nkTbYCahP4I0bHDtJK%N zkLL^JO8c!M+Yiv9cO_lv_0Skvd4EPUG2`Fr-$aGyNEtHjj$-5D(*DHUFHE8Z`NLkm z$kZlNaFA`cR9_KlZdr2c2;K-_j&>XNiM}8(IMHu|^nF&ZwjDRw#a%w064RSAM!8ZO zl0*I^1&bp1s=hs+2g%s1AqhoX!X3Ur^kM|cZ{M*~r~$FfEX^OBKgjiSoMwuB@C26T zh-j;R((!dPva!&JM>f&snsk>9YQT^2#wT4T)qMhJE-y`M7G_W>)OH$BEZxas-i0}A zOi@@&r05?`A7N#bJPDEEeDxkhAJ90pa44PXbxT`){S2fty6)MzXB7W7l%gc0F&#Q< zkoY}VVUTDdNGudH#GozaXQkOvBZqc;;KAY2ED}vqIQ}XL9?+@O%#XsAsGeKkA*fCy zJ9A*UJAoao`lSwG%tqdJ-ru)z5mZ zmxa(Orx*3lbXTXfP#MkYo>Po0Y9nWFjj;?sn`XAq{Csutn}YCM8_`x2aDRSwDjp_> zM+;sUBW)qEI25H^)#ZyahbZz{@{u^nO+9d1`V~RloJe)}-lz=dTH59#F+YyhX!;Sx z98!%1;m6EUL&pp3J*I5OZub)|1=~-ACnP)r=BBRwL}#?phZW_8%Z zm%gk|Yk=)XbDa@MrjKfuOD!Ea!wjZfmeqZNh_?)T%8bu6+hn0v3$6lI;pTiK#^1jE z++$wgmaVJut+y+GGOYoN58RZLeBl3fi?JxHDE)wk*=iymIc{>ku~lt<#I!+AK1+wi zHQ1;uU6aCAy@ki{%&Yvv`NavmtBV4&cwEp$UQnJ=2GiC;Jc}p#bE$|5?+9zjQ@8m| z6C14l7DGvU^r#9S`b^W_O9b+sb*Z8S`B;Xz_mqKw&Xvjf%{Px{=`}Y@JkLjXV-&S* zPW%YAC~Wn#rLN@tNi3yr%#2WlR=N|Q^cm%lS^x7qF@n;?LPljZ9 zb86%MipWFagE?4%1Oz`W8UuzYG#tY@+5$NT$5w;0o!7&I6x%z(Lhjfi?ijF|L8BUl zZBg`5t%+TdxRgPcb-8i!DaY`1rq0ke_t=iT69&X2_(WG|EtB*Rrs};gr#s%|M`QeQhuz=m@K<569E>@juM+3V<}?(M+X5K-CwtaII?HS6G9sV~y|eVe=MszeS`J49K@IPs$I0HBq%SyOWf64z_?EOuHQ%>qU8{0HoB3%26~sb?Qa5vZ8J zG&lL9FY)dsFfz9_DHA1$pq>^^mk|md5-q+vK~J_`K5k8`mTO|AW{{=L5ETXNfe-=P zQs8?a*)6vu9kwj1n8thmz_$s!$@*rk9U{~ev%!^n-r8tg(^&anL?-D^4zn}c5_R+- zJAQx$VjL4w#su9R)Qt+zA`*!KacFo_W*DdpR*y4sa&qiN=s3;&&E6Ra7U1@)MV8sBYAASa~X z9M}Bp#e5TUmcBlvp7LnHB2H^6yid#KWR!h&JOO=&e;D(IHSk?gh+GShNqoYTH81D^cKgiHT>Yn1bfyA<7gPG<2IJj}{%aR! z!gz^YHWYbWD+hF|zt!?OaZ5$Ka5vkLMv95|($r)>ZdY|)fCuv_`lF#AaHu2_1ds(; zY~?g3ykQx4(5s+ce^*L&>syDcWAcwY+Fy!aZgKmFJYcEp;4Z6w$Uo;#o9H_ zmXbCdRUUBQic*A)u2CN6GpwtEABJeE+df#!Qmb*NIijc1f32Ei;C5lE1Mpmmg?8I` zXZ1@)v$cmQ44(FW4}0`-#=Zft%_p#oI_r;@f=z5`H24G)8O_QY!<5G*gJzt;)u;sP zh^fUzOqA-=qF+nnJ{aW&-T%(MZ)x{!U`yo1V7KCmBWyEAETf^(*s3YY>ktt!KDS)d zV$*oQz}dz&fSPb^5zk@?lV;j_X=F%rxC0E9)x$U;o;pph+QP3^y0p~>&ux9C1z%`r z3`25qnZF1K#yCCD^8xb^?z8uKwcL{QgVxU_z_ea6lfOn-sHZ?rfHF|%+Nc(=Mj|Nk zCu}7?*P^xL6i-ah^w%X+9qsrb1_Bw*#xC+oAvT%Bn;M&6nso&16m zQoqjleXw$xca5<`(0$vi5&o&MbSNJo-nk|UvE{9|n1rQjhKbvDvsb1N6BCn68u`ej z39-s0W8_HF>k1pd0Q5!3`!KJ6HN3Sl74k?(+o-q|9R!5BsAY+?L3%rA)~^3xA9qI7 zUGry+G1m;sC+h#2aV8%Nw{(ezz$Sei&nUC#)x1+mVQwh}K3cZAIaEK$j&&t!cnXSc z64deAaa~;(WkNB18HqEBj0c-@`}bYj2GM+gJ4;-ZTH9p$6Fpx#dxDjm+i%A2F^$Qk zzvoI;otLPX-dtigO*6yqZmZ|NLg+FWLRa{rvCwAhr9<7+_HN9D(@vP$(lju3Hw0tO zf9e!&SdN8>{`gU^z^7^cBFm#~q+ocRB`B;+Sw95si@c}vZ0pgQ;TP>l>iSH|^*n{d zOyp>H3ce@Mla?D=k=n8R2&L6^&q8dy3H5YaMh8^a0FFw01$I@lJgGWCb~RN%>PV5( zrJgHUI9xs@&1@orJpZ2QF8%lb1v}eC5p_?!`641(-Qrhd!owIPO?vA^iAWD&%t&&F zN{^uc-1;*udlaV!Wz>Zh$4Xcw``|w@x47t#vboBcu(z~>=ak9yTCfbz+I-4gp-0s}UsjK97!aFl5djSPT)X5cpPwZ1>TJ1Q%1GvOTTvK^nl&l;taJ&nE3C=7 z90`N2(m*qe9#rIF2RxKj5`lmaegzZ&cu0qe0E|IG6av6u`P$|C$v)NS7XRls9*DA~ zleM7lDL84Jb9bU9#4qc?3ILkb1YnRxVH0laQQDqh{K;@frgilAwS5Z;w)D82>Ad$m zyqGbiQ7Mka2|*XZIp}RxBF*iQ35wCTBP8Wiqr+tDm7acFjl)W-^vYw74a`r34bZV( zo)vb1JP>j^nY+2wiiwL~ff&BBB9Rbyyx_)-w>hk1X}yVKkW9(#JYe-@lBJ$1mXfku zZZ|u0;)8PVdcW%4gJY@m`P_4J^OG3C4pPLMJ9EYN=EjjO%kh!;=XZSIo_jQE*JW-o3xIHCc8;6*K? zVNcLnIWN5)6Imy$$ND3OWug&RPa({@WY&a!b_W7C844fv5!5i(Sc;G%IiDbk1#nBf zh(O?@RzJMwNS=dB6XA=G{?o-{7ng&BB9RQTXz0HII`{6^r)sK(w4(}+x1{m(aY;<) zqK%3eS^`A1K)nH;c%es`57N{%?}FZbB(Qa ze;qoRVhw}%)jFsL?Skd=aEa;Eg$frlNqV4oa?P$gm?PZ-FG>DFMsWktS{ilys!Cj_ zJ3`}yivO({6L(Go))7I7=ym4R)*mS@yhOPma;|?NCtZM6XjykIBJtfOk~o}4AQ^Qw zbNcBYS7IOXED+ax>wZ)tpFo^|KI>PEyM=cF=y1~hCTLtGC4C(8THaDbvW~*JT+de! zuM#MBtGJk5;u}a!)~*46y^S$)B&~FibylB&i!2|?@C6Dxzals&B04BN*W^nlS5f+6 z-LdSobZ!^5G20PqY234K%9f$+ELJ4~F6JfO{?+BlJwXi80kY4Lr6^_fWBPP5FMwAR zhS>$&zm%b);zIPANCiZ|HF0PmAg-SM1ZyCK{E^n`;AJJQ57EcVGai^%a%_02+gryo)4gE zzVh^?Uk!i2ur*Tr8MuW|(pITuh=kloP>lG}gNoOouX366mbm+r->-?4{%iR8;na|} zjEKj#L~IcNLWy>)s@>xi9kYw(IYPOcmrlx6qfhGZ*{Y3;XKnY`e>!^HsFknxPESuwkfi>6L4zI3O|A-b3Vkl|j9e2;DKF`y z*!={m5`G*L#}@}4n+d^SMZL{8-;>U|J2syE04IHy7rOhj$Ke49eC^U!h4gpxM{R${ zpt7anOiZ6$E!HTqRdb-Wl^o!`asLWr1iQVdgtSYd+k$U&xZOfcU5)jhN)?FeqeHt$C7xv3+d0)q8D`{+$P1fS%Iu8ke+oRik2}0%=)bP}FLo z3=XHN_6~ct2_2SkkK~7HP@UZbLdk6CH}w-En(7D91Kx@1fasYCP+!D}&Dr?-=C+-e zL>w@CkR#?>wpnbI7dI_K7tFnGxVP{SUH30T9@h4irpe8MoR7l3ZQ9RwL;x|4O?*C% zH);V4O*ec@<-<)wHs1dLjZA9|mv_vt3$IP-t3Lo`O?&Tkttbgu0UW#gQ%CGFXTpEj8AHp65DgI8W8;bXNp$OWCmGivo73B^5J$6k^6AT+P%v067f8issjfYL zwQiNn6?`bLNymv?3N@Ccp6ZI3sq>KzlWexpp5AJV3SyJPAVEicyhP=Z`{J=xN8nMK z2L9f90(Dapq>NHy_$CcS9)-V)^mGCVNxl(?r=up@icwBc@029#nps6gcZ*$FHnjNo z9xwalyHCm~4ZDtLfkX%8lLqiD*c0+Qi_gF0goG8{d{Q_7_@SE%j8SH(g47S-$mznb ztZ!ngRzVHNX7tfEi@|aq-PCUWSV!~4p;Q2I7(-)iv|{&qD?K}#vEPfLDKZ-hIfMt= zGr97)FbSo#L|d%&XcN1>aiS|EWYO=IK&Kwgf2)|$eh{Ma%xWHtZ z)+eT#IVr%@Cp)}c$wjwmYt{R^$(y137aTo41lA@>-O84Tk!&IlGE(^wj|=`kEVVlU z3UZ>6kS3RWD-=qAP!AcapJ%OJ&HO8~_;OskSz2oGt*Tx^z{m`!-Fz3h){RN}v%8vR z;E#OKW8rtfr-eI5r?@gPaa3eq`znJElN=dnJD(qvL(OW^fJseOo2n~LYWZoUO;#Au z0j&|REt=)`XFs1hEsWyJO>6n;e_5KJ5%}Uhx(d>!{sGk<^K08XLj_{*)KZpX4MPLi z*iBmYj3e6HLt`tCtz4eH?*JNvX#C!mbA_p3-`%Qo`7va%tJ{;L<0jC)UyeM( zC5T?%U!nW6z4mg1|I(z70~R^M{A=I@6U3MIEJ?(mn#6ZSs-^8$R5qH@?`}wUo6O$` z1US9pQ3u$Q5Oc<&t1kZwxHwp6r~v$h@KczZ@S9z|OH^u5{v?~}7m*nC%2J>ICjt{7tP;?$s#34F z%s)Il`HFbXrozM%T(y36)VH&P+h@ltNJ#WzJ;MpJ9O^bzW%_F1_er)@uOOoK|SLx>%TYDfT+< zZ55VxgK#(;KP#0A`nykBQrQi~zbZ8HWH-5R{jvO}=IS+|PX%d6hdqdlPjS(M&_~kS z?{(FEFxb#l4orLd8(>3k#K7Rl&)ULAY<<_*dFNEvk6Y`;BIM^fr}#0_rCot^Splv9 z(W*@1bD6cWFK8)(4e{RVv9(ig}dR?(8QnVUKOW>WK-NXHzQdS8rqBd@nU$NT=8o7{i5+`XZ znAJptmxzW}o))|(;C?CI$qnX_J}@LJ5H{b)361OaqE9U_A@|3pf71c^l7gr-ts)fQ zYpTCXkBeeao)4tI?354|uEW<_mJ74nkg;L$JnOgHnDOs-4I&?q2ys?sLG;?5s0O1x zUKQ}T%;Ud@g41gWLo#r1+}=?#`yUAHs#hGa1E>$-#p)4dsbG4tyN^&SMGePIn?goT z_TjBIsECCB3!#pD&yldd2X~3l9VSw;!{XeFk&apA3#zU5DoTQ2OU|2#G`dzVDsR+= z0RfBGJ^6u@qAx+=^n&s$ha8gmyhDV#Wy9*<2sJ9-&RWc=a5lj+k~NdWO9hG2K<-!I|L|qEkNsM zo9aJ@jA|GnMV`ksYFSaO@!#SH$fM#If?q$;pccRX7sdcBR)l ziT^ngPeb+RfbwCso&N%Idlg+30H7+43jhAre=*Qa!_*T1py~Rbk@UJ2*#ZDaYfUv3 zV?Rp_0odp>`}+R3Si*ig4tG<5Y&M2CJk5X1{h8bAhk`2oS$c?`TBQ-79qF>cQd~gye!sZ?pa140F^EVZiY`W z$NN<;<+m~%%dg61r>`@dDZP~c|3zHDfX-;q^0^gXg26-4Ko+3&xz>&zFQrxza06sEu!_=h}xbJm>POa(XhL=@kiN~7{@IQZ+7k`-{ZBVFi!hgX((S@_7_>X>iT-6rlvaCrt!l#@dDXj^)yYB zHA`}LT=%hUQwceykN`tWg*xrS(MaWC;Q~(4ZNA6$4a=@UOamoFmqC!d-waMN@F+Pz%*UNJejdPzkwZ)YEuo2w*sz1E=M)q!5{G2V!X z<XJ?{KjDxoyq zs{3Dz)#v~_8GJ&E2l#|zB+ZukvR2blSb?Efy6FxE3Va1X#^Q4Kwc;c<&JC;mn{U6e zUTF(D|4o=;M0BjM*0l_0H`MUO&HlL3%*^4aTiTAr?(mcZ*ftj43D9u+%gHtLu@lmY-na!|-Q!on|Bn<>HPvD^4W@AsdvrvoQH z>IV*ri*y5btv{*Qjq&Zs8hb9(Q%CLXNn^lD1a0Uzqt7bdT|T%s*1|ksDs{h_9V}}f zNyF~(%I?a^?*f2j8wFeo%0@?1VcUt9N(H55>;EToZc@d2(8q|iNO>!;|U^_ftl1`2yzqF&vV7ShL zp>ssYyyG(dNJj5^`;OlAppDP|n9%&(T)p$r!Eh`EkV$A2|4o;5-g#K96iD`YkbfxE zed>|lt<-mb=W(Qo2Nxx^>bZf9s;e=NPP5FVHW#pS8k17%E~#7oIf~yylrPXU3;zoCuh=*G%@tQbhIAk&~4#- z{iZkjtrE{6zq(kXR2*hzV-MY}R#6{50Pu>-mlCkeer939IptyCj9x5T73{(Y>{uapCB-Ts z_(SZKuc+HC>)}>_J3>NirgLEOF4Qjc?FzsTC$H4#FCrLvN9astj53l!!IShA|LaKZ z{{8#^jN3}JXV15a#crV<6 zG(}0oN2B`sp%YTY6QBuku&RrJ*)2JyO_+3TO^b_}{Iqj0?p~nXDl&}7g>A8bZcZa_ z&YL5Vr+sFa_8Lg72T{@9^1^xf;>C#C@sHf){i++^fsgttrQt&miz4mc0m?*T2y*k%^{7wtp<{rqDa<}G(Stz7iiTQG`!)q zk~JVh^!T8{_=-M{yThSM!E)eLD{sRd8(&3logf*%e)Jh@@R3I-xI&sqU6RmchQj+XNk8-Ow&_NT8`{Go3ls9H{@Ss z&YNJ8Oxj0s8qa7&Ii&Xc61cF~2IOK+z%G9vj%@iO^KcfSA9=zB+m3sY@FQ177pG0D zh#zgJD7}aa*_mIq9*l0mjuk>Gi;MmDboFNYF4Nvy*l^`-xF0IfSdZIfx?p`T9+Ip4*h|EX4E&pS55wz$KP54{=-?#PTi=3Yd-CoM^ zmvh6c#PgbL8Hy8jD99fj?9*$(cm6qD+n#%7OYw+#zXW`NoclLBq9SY$^tziC9#`5` z(HwfcZ++$t-+n$aXg*LXfghk%9CRwrRJ`C1Wd=a!w@ntyQwiK~zbX2F9y=3M0)Mu6 zW3o1E#?-{YadWWs9n^By-+bMs5L35>oL(Xvjm&p%)3Z;cTmB_;bFak?A0AHfW%cNT>A@>Ow@`~78nFcIIvR<*K7 zF6bO1rA692GvV&@#LQmsWrA{cVtekxR+`_nz}lmR#(utnMfDV28j<_oEtCb1# zu`xq2^NVpy4)FV+1{37H@nHkI<`i}2I7e-?rG0;E0hI^4Amaou5q zEzu8V-F6Lqg`FR^ z&73Q#PWglx?z314#CdbuE8zPV;3rQUX_l*I8)oGXiS`AN$@7$* zuL(OMFRVU9Mb=cDl_81h`e3)!1Zl;y6@D}GXMs1H_WyPiSu@klX5oMyYNz!y=U$Rw z;N07f&+X$5WB2E}C!&Tp9@eB^iDiaoffZalBY%M01ARg!&~!FIPGJDDJAS{EN$*P~ z78}t^u5bZ!Z}W~O70EwPM2rWdo+=y&SgYtR*x(fy^?MiCjj+Yci0Wg1$RCTgfO|EV zu|*`wv1Nf1hBDLz~OD!S9myUoQu(ki$i6@9OyF~|CfM3?{Ya(szR zu{<5^a&4^gbHtoiw6PARv|F@YeUmFyKl0c?Npjl184!EM>|t_4FYg~Tr?i#eFYgIm zpkd#eJvLhR*~KKEHnGV2`}D*<2M0k1p!&KqsDAgB)0;dWu<-q)({X?rD!9x*nPp`y z{Hc~ZDmhBJog(?ga|f*-KSvdE>bpYxTn7LsMwtDzqjtfsJ<+6xrQMg zqmN#lx^~eCfDgmopOs7=*5C3tsJcXK*4v_ zB2M8%UGy$Bx^ghx6Y2AUr>e#DqtKZ5nt*tfkPUe`~(XvOOP(7%<&1ljC;DzSS+$1$;?q54iVO zIAZ)z+&gi4`(pY?f*FUVMy1AB*Nw6+cUSMX3W`&1=S7%U~YG5~${QuT_u`C_~v4yO{1XHmRNFkLaY1p$dDl zrnSFopgw2#T>nj0sqze61KG#2hBvoZ_B=TBBTd1Fhw%HT`{mND?O&8$Y{AVd=3+g@C@C3I>4(eY&=bRgq*I=K#ccoUa4D?a_4(YC`WbSgUnRz@qBB~(rtJEZVipJwQ1PSd7t=E8!? z^85Piz(z@c>`dXWAz>v~?CGH-ZdBw7@P>vlt+&(i?xi>*S5HHPrJ5<}TWxgTdmV&HG`;L&92SjOG z*4jCFE$IQegK)8ksdw|u5yv$$0jFr~-gq&l?q3H2Wlm1RLwZAVPY&E0&OhCywu|9Z z3>}N1(qxr55~jef9p%4CmB-8z@eQ*F zU*VXwo+K$r>95VeXQZD28>JdP5Q*qScC}(@jOb?j+j#d8E+h48>_ES3`w6 z2j5qEsAb1%BKQ0Lbv1uqsXA6=<&t_I2_1e;@#Bw3&^fp^`@4VUOGWINcD;w=Vmrng z3|-HAV4|_{$hN^?EAayTI`opKh84bua2Go@6)9kX&(tXrYiGrw0&^?^{>e-!2Q(Kz zogJ#jP(ik_O)tnl$5?ElmV#GL^VQ#2j~5h4Q>lbhE1@)jXt}~+MLAs5aM#&ct**}Z z`Q5oceaBa)je<0kRaDr_9%$j^zq$t-Zri}>C5|;6YRyN32lM^Kcg?`~m}~`aLo048 zKk(J4D(!4Itx}ZAPNbS9o!hU0)`uwH1^37{0u^|=d|&B3W0KJknb-5TVZ-ny)^%yC z%X$6&b_b^|iqU41FX;9M!1%mIfNreb9BQL=h^+LqM%@Yekz=}8Q{D$7NHHLXZOWU! z&A~V?CnpynbKommWZf~W5B>lR^i$-p2>-RS!qT+i zYneM;Jdorc;*udxhRIx4?0U)PLv!#c>6uwrTh~mWdH322ko^PA8Ndr zJ&R&%>8uoqKNe%!W`A+H9=Dg1V4@=oz9LVMI9u(COo2;?rh}5WR@AploE`QI{c|Ip zZMW2mp4YPD@{m@LtG4xed=uD4p3Cgp*MIF$AMZpC36T+nL&wEKuVdyD2IE1{(>AM4t>qoxShyq)=5>g0ag9@2ji zlfwMZD=RVP9=fT>iT*sk+*s|Lz_WVVQ9aJzaAgqxMWVid&c!&FGr}yxFQ0=0D zxyzRdUdxWiuYT{a*_3mNMg&+&SnJvqpuhZyz->yj#-`H1#A! z=wz3s-Fd0O3hx)nY`W*YPvFh@M&JP?je{yT$&2l{0>6oc`bY~iAv5;aLuw=!MXzJEWS`B&Z!%X|9t!xI_{ zHlI7!-`Jb;ON4>7G5xF6$$t+n-TUww+yo0O>F`MeeCnXWNhE@o4oy@eCBL{Hr_pt9iqejHNX}2eKP?W48IgSB>A<+eh?r zl-Pwlt)?!JH%EishR0m+22w_wB&n~numI@5FKD4N8*_%(QO}&5AL9jPufDzc6VAun z>P+v*(i-RS=mi{8rz*mL+CvySeTxh5o^rLCEfwL4PXqaH2*Q;ON_pqbjMN0rHw33o z{)QCYhi!X@ST;~`3El~|qG1uceo==oXV*r5tLhh@*lZO#wg_L%-8DX7B++Olxl10S zJYrW9kRY}l5YGd;9i@5nD-Pr|V{Tf*5vr4m!4G?8q%<@%)FuBa?aVAq`s#8d0`ikc zYiRWvbU9ywn!q78E$hDgp=|*YT>9O-&*S|`Jlq1kn6$Tmg8$B6xC`!G{iQmvad5wN zvG3RjhIB_*cc$J?b+$>;&($syTBH9q`{rpKhoO}&C`zh$gL;(Nr5mMv2gxl<(JUYB z#=LG-(Dx5(#5bw5$*o>FQ(E*9=8>)XRE*_uu^~|2(~gplKPT(PjY)#3NdT64!YG8( zch9&;kST#m14~_S811A0i40DoM_lyXMn*=7LEi=s@3<;m{VWp_o?ja>8(1fZAasoQ zPECX^N434XZ-v)=-T7l#zVNngz3@=VoEFmsx{>MV#X0O7x^Mn)A_=Y)S;xP71Zv)t zF7%17t*Wx4qSCH+b7bjgvojH1?7;Yrr>4T4YDQF6<@;=Oes`)Fguixi(O4a%b;OXk zi(XXMewac2`HLvk3O7t?`KIZ0CTgLt$DC3QVP*ac0htYXgUGe*Lq4l1G)6@)Iwe~H z2fk4~G<@1W$qiPelyHj-au^uWKs?$seP8jMwByFDFIbj}_rVoE%gx(|_Oip(0k{wE zJ6$Z0k8#gZkuk>{GJ_j|e=|O*nD74d*!j&GwBGYGcz-&$gfK}w2hB{w#vA6h)4(j# zOY8ZD_Kra4Y~oUgWhlPTvUergn?3u)A?e-C%JYe?H-g+LZqnief6_;%3%vdZoz&)0WDPsd86v@uEEXU| z>oaY+B!;Mde5LH6@0Id5tAb%#cLn@WS4J?4y`^v_FhJ|N@}H7dLMWd^4+y)fR$pcYF_~OTMR0DbZdz| zWH*A2Mr7DpWLO!Cpa>F$kC@-zN`f-jFY5>I8m$G5{xu)Co@Q%uv|t11?AjthF1viw z6ZNfGNuW=0@j2i1^=u$!_3c#-jwO4IhZcWN{DCzGVL}x`jcDFy`}tDVZFk>uU$#r_d}oo5b7dF$iZ5!mF022xa8Xvo zF+&=uu_R**xe!9ilVzx4)c{&LJo%U8oS~1?xL@DeKMU~%OTgHHe+&ctT-wTP-?ja7 z&rAnXjIJ&DjL&ybp*ZJiYnz=|=UJ8ZKF-F-^_2>g?8Z~PiyRc@Zx%nB({J})q;4?@ zv!-W`$gxXSRpI|@cNdl6KlSk|xL;5`kys=4G}rb;^=r|yjiSMOywBR#^a{qJOY)Mu zX>OZqRBHg84J}mFFo(gvpcMBtd}S$5*BwdTRu5CB4|$97vwP6_lFXkowq6xbK2}#7 zecr8;h2ysay0v{=n>~~G{c{C~Y95z}6dkwhLB&PiffDa7c$K?4&!DlqsT1=C(V)yH zFCW-{6Xp;5-YE0jDlh$k+@}}cew+Wg`^UT6#XL_HRuI&G*HmUL`CEk7Ups!2d6L%J z0z)4{Kg;2qx9m3eT;h(6f{eGwcEHzv_ih;ANvv7Y!?juN>)cazhM+gkO)%0`7p?Hy zwn9Hiti#~22^rR{==_lK&U+pCcqh4Z1RTAUUmWNhGFf1nI_zevG#J22aHxY6tTG46 zUKc{q&K@6WE}Exb$3ng@biUJJK;eSXo0u{(ohgm}d5XCE158HPBb?sXkCIiB zSn1~B5Fiu(HXDE4V3YXRuZi;8kLLR8vYQN#ru&Dmhw1$Z<@j%Q_QCEkCy^Cw_A}g@ zUvehezQ1Ba-K-Q(dayJ%M~XdJl)F>RNSpKAggYvr_s8^E$2Xtre0_gT1TqJ3!S~3*dz|`bv_dz$3wu^j{}%= zM*|g0lUn|^+nzqyq`3D&4Qbu!z+CQWojcvy+DH5a$mVrwa%9m_Paxi{+IT}VXAo{2 zP+LY}V^O}%lwy(g6PqL#VDW2XOlMv-M9I$rJ3jv{#r&Z~;^_*%S7dA9<^4n=_ZR7C z%Riqxyc=aIWlk7h0o9a>)~eGEfm`F-sQ%XEbUx6YO`D|^YEA7Di zr#}lE(r0;EE^SRTtFQKBY{wWP?2_`Xu8u6|37W;`6THa^e@~ zkx{PmqIqi9#cQW%YLd-W9`vp{QunuASZ%kekGBVj^j;~xVRI&O7pT}YksabITfmS= zh#u!3Zhym`T-7fZt^1nExsEn@X}9T!u^a(Ufj!Y*cvE0TvQRf@3{ZEA|PdL z{x~hgmFEgP@i9~ft)GANBhg6s1Hs8-u;74w5E9`N^Jl55KRe0CWnY`K>#Kgxp+A8P z8v)xL+#g2-E!{6)Jo78*l%eo&oM_2M_TNS7z$NXph75Gy3o$xEvS!Vs@nv~u%)d{? zQFAn6z$mOeYKXSCvve%k1750wpmP^fQZ)Q(7+hWp`^b&JM2j1RV?i@@i zcuQfcX4%KUYW?TOT@rV#J7WyZkddbT)m4_F4h=N2v(fMPr{Zxpqa82rvF5X7Mx_wE zp8x_P!d;n8WyD0f;VfHwmD_gHb1{?G&^~TibClhf8`D2>xjj?VhK^pct-y^*&sE%< zLh4IIEQZZC#NEFANnrIhOkGz-wXtyh2y=SHVC0{g)^lwG`km_16YgokG$H%y3a5Xv z_@(CKY<#%KxQVqvlwk+?mgGl$|K{3a%vpp^sAfeY8?Eg6<8cHI9%sCh&iA}wN}^(c ze&i%#hh`@;11p0~@q3C*mx-1OCAUQwJALeK3zf?ygEf?lvLMQ@Z+&Gs(gC+P9>{GRa=+WM`Is5qI*S`LK(ZWoP?^ z`E$Ei$8FccNPqUcP#0)GR*1fz`{ZA}T=`*dVNS1#!QNxL!GGJ;tnep1@`c?c3O*nG zXKpVUm9O^^q82CV1Rii&H|$GXIcX1cqHrr1nTvmaq_VfWvvh$>N(N}!t~idIy1I1t zd70pu`reo1uZDZbr4Rkvw##pDY$T-(3EPY~#}57^>7DJJ_4**s{*co`SpWSB9PP`i zYU#Pi@9jUxE#5+dsnsm|zpoo_&N-tibzVdP$vfq2OnJ^8ie}sjmmR*3cN~j|A4~qh zvH4M$8NhI%%la`p&*w9wTOsNVwfS5s?(^pl(7om?W>rz^ouqL)3*YL*pE{pe!7LLQ z{;Ts{I%V7`a!Z`El=?pe{**pYw5Z1`{6|M6AluY>q(U=SHYuewT16~-qOx0wE~rGt zDFmfe%E3kJ`7{u?fG-?lQTEES9KJ(c97n|a5Euk||h8k{A z+s@s9bG<-F#PDb^@?RNStpM&P9g6hxx1AC~8QZh3hqx1o5#arv|L(of**E_QU+@R) zJ%~M49XW)_hIL?OcB1lh4kEij--su~mRZo%IMns}c{}BS*nyFMauaBv(w;UwcnO|P zSS9|$Xd|aEOX^h+jLdw#&6i=2IkD9@Gx%IOy=}c@G}h=&N*1aMa$Lv#+5WrC}><23yOnZrn~Y~30IibX>nbBJ$cgkVlA-QY!7evdBK|2KlbDa(DLu1 z&yk#)zgN!4CsIcyrP>5YYHsk%27 z9=vz)P&gC{BD}8A2UEG-sMLt41?LNP5z~%@VB;ccc-aM36V%NHTvBFOIQ;6@=-VK+_3?KOXfX}qX`e@K1 zfcIy&U;c9i+tu*JTIV_yk4wN&Jkky=-n6LeCg%3rGCsOKad6ho_LPY40IJWIm>s1= zJpFpyt(fZapcgR^-3esmsy;ce^@ety_YwxCpxc9bdSJOkFG8i9MZbdK@9?k9H>-6# zx*Ks7*GW(!K=~?rSu_v}483GVgwj7#Bs++JM0(V>ldN^S&~R}=Fm<5#pU1C zg2JJkOQG65kz72n>u}HiV>6DQTI=X~<~S?M)J(#u52OG0u{KD;o|e6p);xjMjiKS4 zT;6GLUnFf?k-iPkG2{(H47oVy&1R`w^XGz-k>JsuH&RZ=1KvW}{v&2EkPLiO^7#1e z)S{?}u%1)+yDrnj+!yRLOMoIL(fK>Yvnjp5*e>{o5qvyWy*;JUV!TIk@uwv4!wTMJ z*=?DQR}oITC#NmQIuL4EmiM;t7un9sBwZfQarJgLP$;SL38Z@Bcnk4|I*6Gj8_aNr zvJ>|M;?p6KgX5by49X>}=xi~F@s7bRRG}id?agfy2>%5PD&k3aIU+->#YfEJEl0P_ z&qJr1+xE%&{9pR1bd_qK%H~H!?&^T%Nulx+!dhpJyF%94s%neqeKLCPe`Vw%Uc;fg z_(vBW6x3;ti|i!Qlu@A4b@6mH|Gg7Qv*x;7L>7R>^s@^im??*HQQ<4U;%<%q$h*8W~8gL_5L=#S=rO7&+Q5f7%^FX`Oa*5d`q3fpPbK1jkqe(sbxxBX-S$cpw=HhU@IN%yj3ekChteq z82|20oF_l^mkl#h#jr%HTOWXLmH4;7Jgng`YKg11Ar^Ya@#~Bst{F{EdT8fWOJlN!a`2&6zL2w_C38|JI(}9f&r?G@ zS%R)G7D>Aw4pi65hM$&4*ctn>v8I=N0a`wK1r}ifUHbn=7_!sYPK`*l?v)IcLq6_~ zyT6!sIAP*TN@nmcTdCVZNgBNye;ED`)T_HaF#^M zZTM#^vJ9!Du}0We2VWZmqSNiQEPF27#SX*wOyBY`1x^GDlW2W0ijf*frB(jRGKIP` zdh#mykkeS?0*R5~m4UJmeuGf%57-lC9=igbcI0OLwl3ENR0x6o(%`op3Z`h0!+553kWwiSse0-X7GMwfC!>*JoDC*IgubavYCbokn{{BzU9~QH2 zh9F59;Jcv?fH+BpevxLn>RPF~Rex$U^X*nQsB8&C<(TYz7<&he=o0dzi>=xBZ&beG z7Z$j(p7II!mPfk6Cl)wTUQz7U%JV{m>^jOOF-P;~xg4JnBW1RP%wU(|rE2XDwTiMJB`&u@xK z%4$mjl2u{5ofFH~n^1MVG=gaAN-2)AeGu`M*y-AF<35~LXmjKRVhss+;cdb2KDtI| z#Un<9y#*9WvsMVnbP5$Ik%z` znL^FJ4lUp&%ikau1StV?Nwb!b3{kCgAEbr~#6sn1D)o-E@4fxyiQc4Epg?F4a}Oh6!L^N%ncX>{D504?T0omQmWHPugP*n^^Q|K)7@=sZ(Pq&z(Y= zWjHK*)(CXGDNcO<@DKt%m#5jNxV|1%6`bJL{B{!YzC?(+6J7ix&Q;RAep8S*R)~i^ zv+$qAK&-IYe}d1uT#pncsn9IWix*!YxRU&{1rgg-1*irIoOUZdyoFT0&A!@>r%Uw% zRw>D?$0$_jy2suMkWeF=MQzJDr@!;DOXZTe05(mJ|U{Y=HN+2`wYYFWV`(ony+-vs;M z_?X~p7GfynUM9)R%>eiqCO*s-Mm;U;O1b+KM^Y1_NceKo<9i*5EL~<@)xk{@!)Li% zKljURQy#zjKK}do=R_2bCzx7;w#Du2-X1z;u+=F3P|glpaB+%c{9{7jJ0eO?>kRuU z6gB%s+ujW!A^Jr4w{>v{R0W6K?3O!&<~0s2B)(_H+oI7*WBOyaKzyR!-F=mP!*Aj&TYY$XE`}*@uY#Q z@wTLCgJ$goYNJO=(qE4=ZZF^!o`uQrw;iMT#SfkLHY@$^$Q{}P-vE3WxH6PCVHPW3 z> zO%vX411s4oNmUB=8k1IA&Nx#G(-vi(Y7wHc+q*jd9z1WDF#?_P2y5cL$+vdWT^rybo6hHM0Hm<(AGZ^=n6=^aqA4zIXgiP!Lf zG5%+J6Hv>@(@V{=2LrzqlRu1e?-E+`0EfX)KAI9aas^jfhseOGN!-iujLSehpp{Uj z4Nw;mN(D7GF|+&Ez})&DZ(ZBaeqKiE8g?~PWs~U5!T|C*#&tNHmVQj-ag!bVX5$}| z4p$(ty4Inh)5qxy5?!Btr|O(|mikAGwT60cHCUKfaVXP)vJ)4fR`}w~!5pU%4s0NQ zz|$($L26lV#8GS%#;=k^CTbea@}l@Oo{841s#05azokkdQex8xB#8@#{aL=hM(urP zh0wL^gl$K-g^C}7iOI8$%e%B0m+it8n!Z*|SKyn98wWu)mtyezi+%+q3$(hV{;4YK z(P`V7$o0c&%tm?hVoI*twBZk&j4+6SK3m zZHAk(ob4ZVCa3wQOMD9&YHS{P;XhpemiM$@QbhSy<6P!QW8xBtQsdDYMDb%0uu;SD z7$90h!cE(qIM& z&cRUF-HT=<_Hd{jvxjQmKgM z;VR;0s7y%Sr`L3$m!0_m(3Uh~&<>sSl89XHY3} z6XEkaE4R%r|JIJvzLD+}fn+lphBspQ)CnJ&30RQ~!r`(5w&A9B7JS1B6;ax;dY!!> zorb#_B06CSuucrFeFy^~R?d0@5YA=u`Slaj%YU~}A-gbX91b>&p+r*Qa22{ONwXXw zZ?5?OC&1JXQ z6!mpz!Tt|mi;OLcdhz1<;f0^;HedgiAn60tQa;FD*xo=(DW3C*zesbqL~Y0i!;3%U zyr15|Xfmu;nelb`o3}eaAP)Cb_FlmfO8sV}cl^gM-viBs;GGka>()<>+}qu{ zIIGPcZoh`?Jkh*#+QMrnJC;d$_aYv+f5bSts*)f`38J;wlrIfdD?ialW_!T)$Uv{% zDwW^+^Uz5WBhpdb1+DzXyE{aH>2xT2IgniVl?F#DQR zBEUN`G+Ki+QH?ICern2@FeaHv3Mjk+-KkQ8#z?rM4aY_hlgA$9l29wao5Mwh+!dg3 zoIR9eW|q`^xFavkTU}=F8+&6=+>AOf^eg@ENJGi3qIg^QX=u@D92fb#_%|$rJ?-5y zJ;@2GsA3~=keF1Y`3Z}@>5g~n_PvrE^w9#ZdPs3$;+eyJDtVfJ`$u+`J=%h4YX8n1 zkuoWAnX6QF8_}FS!AG24d4q!q?2 z;RZ@P8l!zJ{tJG=QI!VZWsJ&lZ&>eQF%z+@c7#_9EL$ig`NPcHLDXOsDPV{GdnoU# z{_)XUwy1WSqCo1EgB>NfK0JG{kAktAR3N`ySc5%JBHd!Ynxv#dJ3VBM?1|4~=tpLa z-@Mivm!fJ-Rt#zF1sySx}L&yl33#rLp`as z1QgXU_9!iuv=-u3G0UWvK1VOM=`%3tzVFrd9~2>^eE^kWC9*CGoS7EM8?Suvi636i zItsWS(6Y;Y7T8Zq9mn6I8E83Z9z>(j?<7ROR^bJom8{!m@Y&0*Ti^eZwE|xIrOU3g zL>srpkv_PY;9k!1&-qwWsC?)d8J|t}M29!UGqImM4pb;5Ew756nA7pN`=&e*2 zanJgi;tia?!tuX#_|3$EQL8sKIS-RtEfZq1&MK%AuWHj52Ou-Kwz$f81EuBZ&AEcTWTlRA*flg0}~8cpt{S)sRcu3}lbWFxFnaZ^0x-@0zEdek3S$6NQVY zcy2ZuNq@Rw^{uF7rjELej&hyOfbB*parjlvT@B$MSH=$sY9gO9`Lv&hP`ZiRFKWYu zfgM@y{TItHB!|l}5x~b21zaEpe}zzHWp%~K#|19RhNWG!B~4}iIe8$h#|1bL{v^<& z@qjEZrac)X7Z?6$vdu;O<(E)X?p3Wy54sL`MJiH4+3M%hLtd>JgMz&n^@N!hRDNaE z8!-{Wv2Xd!u09~hJK8T5LpUyLr0_54kacRr%=SLaL8Qe=+v+s33zo8;Abn+~gMT&^ zfoltMm;nb&u1 zGLzARaDE4v6&%Jq z-bt=ZHHBiWDI005wAn2oF>~4$Cd;)Qs>FC)p8p*Fr|J<$Q_uNQvgqwI?%&Q=)pKW6 zblzzG`vDg9GYaH0-sz~v;8T3dgXyVlW@rpkB=;BBgcOutU@%&`V)6#z!^Uy=f>`CV?htq@< zgAF_S*o_!uCCMm2nK)qVzv=ZEp+;nz^T5+!z6bz(rJ4M@o(Ild1Zu)gGnZkmuC^zq zXE!fM0tD;Jyt}I_ z^pW@pX26@(PaA@4B7~~&g0;W3Kjlk|d0Mh=GCoXS{C$VDo?=fY|G+2u?eC13KilX- z^{kF;WncGxokyn}Z)?Q3Uw#T52(V7xzzn|snVxPKa49F(U$7_HAN@3Kc#(;n?KLw< zQ}^q_ACloYbu;t5l(_S9!HhPd{ZPnF8x49ZM-*3vxNv=ZtiIl)!}Ip)tB`O>QxIC6 z)88U+MNBZWGw2Q~PUR%YlKE=n?+^XQaR_k8bspgKY3R)!K*rv@_LN(gfwq-nk^0f` zAdakA%{du$_bn+do01L^O%*om($itb^f?aIz;|V4?%60Q%0@+uOh(_foHxy7@>r9_ zZA9ze@c%xTg{(QuN&jj3K}r`c^aEL+C?=K|&F zxG{^i<{GYJb6(@jrZ!IJr)1KH(9md?uee3h54%V7eIX-z)d0BnMxTiItPOA`JLxN0;%X>}K?3pPl z4Npf2?;e5u*;|R5JkHe2O6R{yQ4X29E~d@22mvw!HckY>$Pd@k3V_!FQOL{W>0`_~ z&F)~IfqbW?alexdR$V-}qO(mBbYMrk>{+*Fxw-Y7E3FupcGYn8Lm@P^OGTB(4!*() zdhzM;wfqo&suC&z2bzjVL+ zCsB!e;A=Qt81V6zh|GE^;$qI+2NFf8e+CcH1g@b%ZVz5?q|V^|53`&l6`n#99*Ez4 zeNIibdUOGw0EwMntFeWru|LS>Td~tO+@$gm|1^M`qYYXiyN;X-qJ>{H;F+KPCnOk; zluBgizS0zICzl#-B|m23wztl*4c;Nw={Pa?MSM=#!2-dX9I8mwh}f~VKD1Ndy!I|A znu&YHJz$-A=sn$SydV4bQA&1z==y(eXznY{p4n%jhxeyM;SWt8+uJU5kegGgxrYyLZ^0aHGXpt{(YH3E?~7(mn~y5 z3A!}je#tpy_mnY0B`7q7Sof+sAvDlpz3ttRMy0ZjCe5o4J)2H3ggbpsFgRJMli3m( z4rH@3OoMapiCONe2@-M8AQERp=R3DxfO8Hw$H7Y9uvi+fKtj;B|T$W-tKd zXspfrxQ*gzVO+S)KQ;~-j4ICg2+jzuVpHloC0`S@Zk_maNxxvmSkr1^a`v72^^#n z=>7VTak|@_6iMMdTo0VG$T|{#{~SIM6@j?Bp3X$7P{H#0+Cib=MfrqTBBXZA1z(q8 z97>PMn$trEmS%j-x}i& ztnB9=>TKkg?<5_sStTq#)ss9%?rQ98xUf;C{5K`yU3)KLI&+e)vQZ(h?K6ZX+Sf>C~eUAA>;G$+C;g?gZ z5y>P676b+F-8c@&vxVeY!GudSNZ#wn5R)poX<>iy-&es315{(zxYoF=570O@o zqN~KeA|8&@6*X}x_Gt~g-KSbhd&v9e2QAr^!@txOA&u443X5k!vE-pjZ%RGO7L;uiq6 z5p_^Dtj(if-+#9?|7>x&lwn-2t@^dnsgjXW8W3n~a4EsN$Rz}uQ^=o#8*gca`JJ7# zm=?{vF261J$-mbi%OppkC+td01N-$!OG@=r3xnV%-L_2b*q&bZ8<{+`Ffq>G`Vs6#bDtW-e>GTwUYqYGqIXF{l8lI zovzOChfU0&_aW2WpEDxGEYCi>yxLM2C=D()dZRKm`s^#5ufn{1YTJv`kD*mED#`-cI>!H(bn*FHcGuJ!Z1X-`47M-=_;H-A9q6bB z%!`JAyFhoH|COyHCoDcVoOj9m-<`(LYM? z@*<2Ka35K=MbRcDFfUkkQu0=Zsl3A{YR33MI@H?D~F3SY)4Jm#_%IWUuG zY5+^YAI?~9FJbAdd*96C8I4$-M~+>{^vwVYzshx}c2TdHm1kVXIf#&;P$Wu(-YOG% z@j=$%LaYzx;Z%I`igxJ(7GT|V*|5`5?~|dDm^oniTa>}!pnV6hcM+I>oQa`urtR;H z*p6mFA;m@rV(`fBn4LWHPW$|G-)QHS-enUvF5n7$-cHWmWoHiEYiEz%XBSR9Xm_4` z*zP|4i1@Bk58EBbAF$Jh?yse0;ZO2bJCppFg6cq&jl&d|+*$|mVlK1t zk;<;?T<{p~bq`H9?%pJHoEDPmWfEnVnN!)_wk3C|{np_A(+~idJ=HXW;01&QX3f0l zMgO{R=+H)SgLC%8m)qO#{Z9M+=fBs!X!bAL+k1b}-qQaL``oQ>vo~#gtG!|4TkH+% z-(qjv`c`}6&bQcGdVkj5G4mJf%g_EV_DA3N_w7yZ{!@1Bo(FAvWyAVwTL3YbAl`J| zp(JoIBlj^oODA|WGdp;9c`x0EuIV^zw2`(mo1DJ%hn_Dcg$~2HOB^%cyssrQ>(;d< zy~L=8)K~*ECC6R*Mf8DLNAZDFW!Mz5nG?1`5%1ET=4T%Lo!FqmO|y1WFL_xXBwhTU z!sDATVKc<{ut`c+L2%Uu?K4bK_zFQ+dMl|R&&>+=pBm)s8+m82UkF?&{2?r0LQ89~ z26^fMY8tz{ID5UjY-;q4HnIB#8|#C&-(*wvW*gahjje6pZL1^q+ScU5wmNs-R*syq z)#JzQ>h!j)VRl_zSh0;;Yqq(#4iInJE&&W6?`Sr5-ic-PuGqnAoOuc01Tkb^I@%;q zyX1S;-gf5}Sk-Umz?B@t4{h+DY17w=XYue0*yPG5HGR}WCe<^x+T>=m zIvAU1z8uoK6{h6%EmY-!GgOnRU?7u8%%!g?pfEOU=ONthqMJqhdSdwwFUy6@*|xMd z@{1%f#vBT4a+jq{P}Pi~pnV6hcSv-LI!p7f%skt)xPWs|*e>)}GMwYp#%>&w<#o3j4uh;6Q{+4}N|tuLG-iJ44e19 zq>L4vj7|DTQY$<4l2?Nsg1s3jtzx9wuUwroP!*7>ApUSTOo`JbKkt;vbvQ^meUV>? z`EX>Nlwvu|4rBT3K?r^nwyrazh(P7!)dy37vn?-%VmfY~9@|BwM*b`Z|8 z&%oI5Y%^0G$9(EB=#ic?9cRKF0C;nAL(A@oKF;X&uC1@$!fdr@y^RR~bKExh^Rp`e z@e)7`UL}|bV)D|4ZLe-(76yo87A`Zeo=^k0x*vAd{czkD?`Z#Mi)LfC$t6F0QgpU6 zxU`#$7ZgAKF5xU`zy|Z76+d-FJqL1vv2ggZOsdk;;4bOY#z~JMYRcT8D%I->sX#Ce zqmfC_wcqqtb&}Flkxsd!vad+yt-_h}u9M2*CCX$wN*x1iRTaL{ULRUb`I@@+KGXgJ zxO_||PajAfl*5?4D8-4O=&H@KHXb%uc>0?g<_x&n^r7|jscC% z_LUIw=#$M&>QpOTv}Y$xJZ}k@!(a87iVxZG-nUPkiNX2qhRo2rRN5Ib%cwkMw=LTF zZ7SOb+Ft>}(NvJygu6R!>o-tCy zLx}2D<^JTX10cDu84wa>eWX45paMaPbAu6^$9&?H+2mH(x}YTXNlhl8$tw=%&2@lyb;Gv!R?}84slm|wNi~=t z=B!Kr2beYc=1fekK~0^YO-Ue!J&1C^k~wztwZZU{>UcdviEbk^Mc=J-Z4=%OAOAp9ySA z`dZ2E8YbFj0Ou0Aq3j^XZuG8<(CL+q9&R2}1GumS2GmIq?_z1orS#^49iBU76EN1b{q-S#|@!#XT@U%o&;bCZ@X0)iwRg7BYdnjr(hYc$>>= zg10QAeKvOBLgFH#i%QJ_Qn8lS$$m_JTzg4_IwTKQj|AuoCP~)Zh(h%s*RG--QIsq7 z)byF`(6i+kl1-x){E$|be(xSv{9#N#ZvbsbPRyWe{UZosk}=YguO`aZUn6s_SC z{tFFjv`GQ()?j*<#ze1^lr{)0Qqh599<$fpqO5MnrJUje+mz5aIvHXgiKYb_W;3*s9cby2ZO~e4owXGYrzP=2*kC}MNMz%)e z=Zw3#2_REe>@iS$L1a)3GY&j?^{2wboL93ZX-b?HM=+TeT| zUFXYYS5k)zSEV>{KbcmCq<3<4T0%{#Q&dknLS}wlE^~^nt^_*2r2pVO0I@2Jdg03< z!*sHSO!!(%f@D|IWIv=ksrb8rpi@Ur{9B0IM1OAyr)dA^Z~o+0JTW&p^}g(>+-equ zPfwsVqq?256_=ja$o6HZ=kd*7f>##;#Q+{GqY0e#jU`)JT(D!)XRwr>!feaYiF}mj zl6PZkQ4hEX>fZJQcwEb7EuX=heYXJKEzHPbf*9c4+Va^rXJjz|ocF{6uT}$)`A{pD z%n4$#>w_o(E5=~u54cgUA6QYO9j->_hSG(U@;1|Lq{^UM(_JXz%8J86~&4Bd(}N> zek9C&r+o#m2vbV^o+aU{K15IY?8@GBufI6RT{@UCdy#1q*aR`ZI+XXu1TgGvfav(f$N z^-?kpAb~fx*KB$1ik+Oj+h#|P*hFu__?1BcO83S5`5k~5%w_jTf7Hfz_+8Z#ZH5TuNyE|oGl{4HPBpKbQA z`)G$x7a}P9FADGYT(dd;ezyWa)X6bSC`CDBLT^!>6RN7D(aqgMpEcq4l+ZoHK;9|p zKb!^cM*xwa6u}cV^+157~1W+yy#&`XFWCBzVvIu0(zyaO@U;-N8b*7D_G=aGm< zy3?PkWaS%7@&45iP;~2lk~e{!?I*;0PY`?(1fbivJO2ja83%Chh0o-R| zE}{EaFY}4?20*m3e#>U3=K$jS0pfX#iBZh5*cX@5D94#|b9)u{&HP8<0P)TUKsSvg zHD~NCpMmu>I%eN(NX^C$;vLM+0xy6}xt$=^MFMsAQTNWW_4?xiGiPA#mk+(V<3?S= zE`p)~4dy?^=5n(3CzCYzU3EVU0-=D8!ORK2$^>U&*_59lPQ4o|wvt?zN*Q*>TawIu zf!QYhA`3rl^~ImZ|1`*R?Bzwwb&*3Rhe(kHh+ygkyp%aNkg6CtccEc7Ww0sIJrXHZ>jH=leOqnw=A7<$b52$aW zzk;Rp8U|obGxBX8Vv%#S#sEKb%pYbY_;Myqn|TG8kU1)4r!R8SUuNU5$=V-f_!!Js z0xj)e~BE=(7DKjM>emXW2UePz`3+^$i}J5&0OS9yX-_2jCJQlG}Vb#q!Sj z_L6jLceiXAGwZ_Ib^Q$K;n@>*Wa_+)k4$Ly`u(eI0FPgenAn}w z{jA>i1#mg*ZeteqWivn65gfqfXQUm(zD(zRuS>KWyoG&i?XF_LwT4(jJWF5=cBmZa z{D;{5XWIf$GUK5afB0Ci#8U^8ie8sv8M^A+N*~Bku9Tr2I?K|ZfKOT1Ngppt{5Pgw z@aA26)BU@+#R>4D@JKvy;`e^(D#TMuN^tQ!x+p|I(!p{n>%*aujcAqY62{_gZ%kjC z7z#p{?JsTicYal!TN6(dI6>^7rKF$0qVD&@iV@(j_5Lqp{dGe!m(ZN0-5$}bcWwF8 zwzRftJGO1@42{#13hIO9`EfGsl6hK_6hCzK5%~oYKd)q9i+I zXmcOR1t$Qt-zr~v*n4|6rsc$idPjXVxDTC{oyGx_J-o@jiM?Vqfz7x7=f9d?0v1j-#q9g)UFZC?ZM4f}& zS%Br>PYwVuH_P}(F&)T$R+&o>`)tgITI<^@cIoDmwzR%xhvsH&0?X)`9%fc{31>pq z%jNVAFAQ7-unZq;t@sR&8F->UYh(Q>J*D2>0tn+X(GFlNu>nZ3J`qOXLU*u|9mu*r z*KExF@HqC8#;rE^i$P6*@xR{lepo=LK}pck$Nb1mA8q^<;P7zei+t5VKXv+pQ&$_3 ztFqnlB`1AVUda#Utb6o?**iaX*WQ3-Gyi3l?}r=e+JHgW35P+NBrRNcs=)=2%&B~( zhKz$sZpT-dd+5mg*1D0yjatWviG~*X{DlT;F7qBu`FUlqp?5*3|X=Tg+Mii^LZ=U%z^ z=KuF!`$b$fhl9|C`%7bE+wdAskCdu(QM-llppx*ztj!TqsbFjon@KgNu#Pi<{2>wcGw9_800 zMh;nTXB40XDEXf9CIHD_@R04`EZ z6$eb|V)l&2KP^}ZEP>u=GKyJ;~tmQkKulJ5+EMqe+C!W0ZJ{avCsG^9{)*N*qm`g z%9ieO5OI)pfh#)(^fAoBHCQyr$(h4gZ~{^H&6!ul6@yHmCa{$o@hnr9XPfH0jOG3^ zk2W8`z4>#@KJVdOo8>=Kk9PVoa>Gt{?#YH49xPx`QMj-XczN3M6jM;I?5IjZL&GC& z##oV*4n_GvA-g-|5D>d<|0zz;-pe3Z0Bv+J2YyJ81H6>#b?dY_E})YJSC0K{U?-UhWJ>c{>zaX-vYZt-CiV|*)U(&lY^ z7wbYb1^bE_nM_dgi8N>N2E=F$m(N;4^XYlh<|Gd81nwZ_!yn!c^WIS);p|G_K#m1y z3XmwfOh5M#Or5~ZI+&B?B`dpC9&MpNWyZ2SlT&8*-iuim%jL62a9~k}jICZG3I(d( zpbvezwc=)`;^cV_H{g0UR!R(m0^E97&<~r#PVw-GSvY+a4RGx%p$mtP^bjg~+<_Rt zgHKWqy~55VHP0kK;9Z>E+}L~(j{HCezx2=Z!-HSzU$c?1qk7o%;a_~pUi10)*z7Do zh^6#|?uT=vfY>I@#;nuZwbfq*kQeoK6K#GdWO8KArZ5|GHs{PLAfwz4meL$B`Gnj3 zSW3gGAHLIZ?IpG#2YPY>CTH2BCmqNIykO0;lnKI+HRx0i5a>xN~U;p&jpb?^mYgsi7J^ zO8F})KE^|G2&GSTPH)rNf^-?wb#(9(e%E|b%ihfE*;sD^Gx1@}Y}lMGPhEL~(BgH&!O zrv=i=u4VC~4FBcH>GJ^YYs~IBiQ5ab!`sZpR>wjSNTsROSEO)5FNXm8XCwZFDw)^7 zo%pZ&JoV-J9J%s^o~NIxZ-T;KDDpMr$mttm8VUesAGyR*iV{+Q2vT($~)$pjZ<0*u_%YrAmx#j%g{D@GqA_o@AY`H46r(6(AD_xWp`2arHL-xOCoH@+@{Ou9aS_ z;sQRN-Xz*dIRq-7$|P0g=pJ+~)aHYG;0|R^?KvY3RxP91y8+mojrrvTp8)~bxG5dc z4BaM{u9v`+ESC?nMiJ#b@%rX9>y6I?#5?x%<1b< z_KDdxe(Pz`Hnw9XMtk``k0wT^aWU}wVhsdj`sIKelvP$#gSQZEia3Lc6PREwqxm`M z1Y#|v6O`oC=_d%u^hKT+_0_;tIr>5$iYvSY@ z9p%Db>OBHfy@=lD*@CXwm%t|Tev-M7?=POI=3|t(#AU><=sY<(J>lnlG2z{_wT)M7 zbm{~=JGP1S+T-tk!5(_Uoi;f>4aoWZFh90|Aq!^Lv5qczi+GQ{u?rCIEMwUZ5bHD4 zxG&~gRCWY4;3iR|Aq!$Vo!oAy02fjiNM;j4my8?|zpX^TCBOxRAZmj8K+SBxX zru_#nsp=KI6~qC+UX*lQAf*g;KbSeKGspPtfLjxDIQC%&xWu5>ZUw!qjW zV^)SDpN_C|nCinUr)?xatX>|`z3&cKfFnmN(19D)>k=wJ!m zrEWL5oo^xW`@jxjoN6wc;nN2=6psg1oPm|+*KrbM>J2d`CD~_TLWuXm^ewMEho$sM z0eEv~!=8Ekl3lp}v`vo9#HX}ok;xMNYVRfIk*wdXEnCBqdI87cpV}hxLm#*#1c-r% zDAlC`(hNeEFGwnVp$kO8>U$-(PovR)@|Gl@~^ zT&`~e#OnYt-)_oW-XHphJ`SPg$*8A8aH_o#%pCb#by+(=%;zsyk_-3(fP26Tyic zT$Y8*a`Ywex;e@22pPn7$i<4NfJ>7Va9PT?XrOc7X#W9>0Z|B@s4H{!WL$QA`5eBO zY30i}xIUAvx!QF(-vf{Es99^|fKV}+!+(L|E-nZN^!#6GjTmW|I zCI7$%?>6}Ep+HozYK7G4r!OgVT_n+>J5-!fZ# z(QFe^;{h?wyrpYErJi8fq=-vk(*j{q>V8cZCtwTUlY^vod?eL>a1UG&21tw0L-}Iw zC2$D_U3TOB-ppf;V&ohZ#qTG&ob2#>IVX>CFPw$@XpTS3Vx6mN&)CT1F#(tviz_#6 z>Bfegz2h|Enul#>#6N1uuH+v1^3o(9zzus_sT0PVwuHU%eGy&76!SK=sQ{LgI;7Of zmX9*42p^eWbVzU(8G6pPeDJ0BlDl~kC(w`K-j^R~$+qTkvhVrww(__U(K%vFPA5&( z=uLF@+6@5r(<8RYk4Tcdi1Ev1)C+~5Rf(u~nId)HMPb!RofN~T#7U5yp(8t8HR(_e zX5fZyE?#R+3<g#8&_c zRaDwoH#(e5E%A!fe{}$f^zrSW0!GfF1ZTyXiEF06viVedhRa&MVkg=S&w;e$JP7Di z#n|AFABSAI>JO+kaqTME+CTujTxd1r==Hn;K2jAU#p!p-91{GDWxS-NO$nA+`O@E| z^-X@(eRvRzQ?$Qy_V_8TBc=QB*6`3Puk!Ng=`$qGpk`%&TN3Oa)?l97S*9-U)c7?Z zK$+wB!u+a>e?Hpph5MR?d*eqC<p-@v2Z3{#-0}8X}60cAkqyi0&uj}GT@1UR(y1#uxU88wEaNocdwrv*IAZxC+p@c==q## zNPWz@Snu_w0bf4U!W}WDimR7z+Wg^Jo1XHYqvieZbk9GfmGES}-mVW7eSp4oIEmST@U_v840`6*ZMwrXF>(Ri(~4UdwDp?F-Jstm)#Fo1goy zzyCLnhq>?M<9Z)ye9RusUgDMzm8OBf-c5#2>z{~&3F2HnOAk;dJ9tQGCw2WfH#&fM zKkN^)+@}Xl{p;4(EbPB*xrz~b^XiJ7JaY^Ke;m13N{{5PczCI7jZ^L`FE)8xWS{x@ zBR{&I?-1)Fn7SlCIb-2y`9P({j0Gr_1150OSM=HseGJVU<3$ujN_|oggjBonx3f7S z;BNB67pxyt@<}w54<=~yfmQlLEw&8T$x)>%^rcKnAJy7Vq8%K~buLP9Q0CM$K0Y>c z@zdM)hPm&A)3d)c;@?(iksJY3AMD_qadXhe%&Q@#%ecoIPNHP9MVkGap7VHn-8Vd z7CUXE(PbRAX59d<7Fs0e<@(&AbV*h@YDv=!rz*aOvK(aYOOh&NGJP7E<(H03NjyRd5qiCodt9-&vmlD@#FcP#~C&|^-n`%(=lUl5I zAZ3Fa(I&O2BG?*dSqA!^a&QQY9abWBitzD?^_c3&9l7MScbC&F<01r16Ip9Y^4*J;WXwg?Sj zTePXT-2dXR6VUATDe5H=r1dc_Zm4i=8H@jXtP}OuZAjLKGuUmFPn?uGCAvZ;cB8uL zSWu<5XwSY$l`QpzudYA!mfS-JGw^360ZhHeK^@!yuI4u6lviHX2XaLikvO{S>qa5<$vsnY8**@g0f)YNXAYL(NHV3x_Y(U<+wrP2*ULPG#xp4F-3z0>D*gv_I`(0UEv9+}=-4E-%8o_?j zX5y=dzDLjHj{QZQ6tlA0J(#?FG&v*(T`3U(*~J;eSj1BevrVio>%@j*mA|7f$J==Y z;fTK7!2NFd0Zww4m`?C=$&6xIuVmy)rkzZx^&qvk_R*1f!E)6(B-%W6BtOk^l``<9 zEtd=`!9z~Nv4qyysr$=&kApfvDtH0V&WPtHvG}Ww0dz59KGTvKf4&41uoFDow?Lh_ zPRu2M2~wYfIjb_x{jOsfy@pws|Jv9=%%{@}i_11XHExsB)2I`7&;T;OwKU25Vc7g% zOhg5N%H8G@Ztb5VN%eQA<4SW+=76Guh+W6j+oq#oaXOUC#Hmp#d6ICyyFFrC-M6ff zlKIjJULF!DC1W8=E-CejDI_bOD0KNdR9umhBs1(*ec-euqn#}ud5CE^me8GE5~$!4 zc-4z;J9r3SXN?eYE}uC&5DX~OEK!|UC1(`BD0uDMI-otFSsnSla~3Ahd>QTKeJQ=H zf6Pr?@880+wY_Oei)%J_WX5_E{!0_%Rok)7f*hws!0N+PRUbJEt$y*SGK6OKa-yndJct@ zqB=H!<>yeKOp2JUnWV70tbUP8RWiMtUGps^&ckeN=I~1n{IbJ3>f;ih?~m}8E!S;q zdc;ngKV);qrfhO<(x%3zu?#(AV*oRMos$1)kH^e^+@(VY(O zmSy(P?E>_pl1ZE%9-SQc+gL;IaamjuQ?(za@UZ};ccJ?`dghWcFXPGSD=`RB`l@>N zNEry)fTWB7|eVkO^Rdd=xgn956nGeT?te9gj}ig-7S@ z?0vI#_%r}KGjFq_^O%t_lVd48(j$-)xDI5^&DoTsz)nqm3>9_lB>Iy{-MY9>`apDt z>h(u#hTmF($;;jjfUEo7q^z5aZb|TpDe8FTPhIgKso@u8JZ!ZsPHUk$C;VyGe(J5f zU;(tQGoAvm9`{?< z$v)i1Qh18jEJT>g-)2@)G6f{Bmj%4xqpk}UNgCKukHb!F5iHqMmvm zB;{8=#_N4b<}gYhDBHJ}I`5n9BMk|FN!4kQnzjShdzQ?Z(P!HR#EqWJt*D#@mzk&8 zE?BQP%f9O-=IkHbAb9;wnBe8|n&4iyO@NqhDUAZelT#x$cN_!%P~XnpGi$GU^$EN0 zwI}TE2anmg3&-rl+)4e;v_P!isUd3pbJsi>+*_9h`AA)V9D=A7L!j77swAi`M@f}F z0(e3IMsMMe^`8JM;%Q-5@yq!tM`qWs0_sYtm=wB1=%u@pLeIF&&}CP8X?xmqP^W-Q zc87Bdm>pdvH`MD`iw>6175T>`qU$7mY{6zv%Z&{5W&&5XE}6kf3Lmz9e+#{wsg!ZT zv0=9F2PPDz()QVx1|?@&uXkr;3%W0(Juhcr|FJs$JPv2(Uazm8a-E$Yx0%^VJ8|}~ zox6tsK5chjIBj>FJZ&duPuS$xB$nKK$TbEG1Hk-%@}SefwuLH+Ls6SuEz}%k#4{lS zlv%!PDp^+mI>hI0QHcMSS6wX&9Caml3zHxR0XfT%a+gU7ya>BejG(R$dN-vwqOGM& zFxybtkv`<+v8h}Y>$cM!2QzR*1VR#f&7}h=0Hhw5n-(@TyAPs+SJaw0qRet%j2FoS zFFlRKz9UEgbB5i;49g{NzWu}dUOv3)+lFmn7UtVZ`iI_I{BL|cEUCwAd}6|8kIdMS zbMtoU?qhcT%vn2k6l!tsibBM zat5P=e)f;P76_l}1go!e;6qQpe3Yd0)pp9{$gj(n7%BCzOJ3M&M{uhiQb%uhiL5(o_R?gJ zDuz1vkx6}gvd3jKzoq0cJ}{%7v+yQ=f@gipHWs&SW4Vvn373H#{`?Tef^@+g5J$ZEJnR zCTFJX&>d5D@^$le_VbR|@jH*(836dq+#NPMIisbt{{%+v`7=|=D#rn0J0n1M35CLo zTdVd=pcA^f8SMS#53i>36Ih$!tca%}yIOT6gR~#$S!b=6x1eZKggk+k53@?JO3jGjKb zN1P{tV0MVMnIO$qJC@`b^!e8m@xs3J!48bT9^VFvc5^?}7~?Fwy0L7lH@ED@%Uibi z%8qTW0_tP_QOXej;@E?ecJ?iY?C9y^c6#;>J2`dQCdMW-3oD^RrB$V4DnVcRQ-W%D zDr{#dQ_G+PfBO0DBOlNswvHLNX$Z*Q@>aY{+7JE7q)J!yVV68o+DXt^SLW7vHHgU) zsZ)}|7Lz)9nwg(7uwp40*hAS-!$Cs;U;<=sx0Kn0!T10NUvh*_P-%u{4mO%SrNfF5 zOP?pupaezT6m>kc)LruoFVpugF`yp3m+MYt@BtS8ZOZ!2imflN+2Z95yZQX4tz5+{ zyasq5di?lnChX|L^LF&e2|F`&0ZVEAst1rjtu;)$@wFgPlvaN40g$$p@H6 z%M1-6I94&IsJD1hCpTx&=VGn_`!UH{o|p>P>7~waHm=MQO6k zJgy^br<^$alFIgT=7mr3?3!TtC@IorPUcrEJBamZ9|Q7g=4mYP6ye)bf445SV~`%K z&;F3ASiP^Lj=AqN1OQI*u4(QqD@IQ$icJGd_e;Q2W(00v#C$AYmLd81VI=p{rl>he zlBhMgT)uM|&7Sk6G>NtLu^&YH{1wY(TUi4yt=jUH4ZHG*4gJ)N07V8sj@&h3M_xZ+ zhfg2HER6f%@pCpY!v7iEX%o!i@tqawWVR`CyJbri2xOm$s3XW92tDe*+%DSPfs%QY zIlz-(Yqp{<8Mf-qygCN%0*kvUKGp}>${EDmXLrBgJ-|&rxhm6bv&zs%le!cS*W?$} zgZF{kgieX^f(~PsHG{?%ug0t{LBQ|^YlpQ;C z!p@J~W2eVYW9QwycbXrDx2GcbOHoQBD7_ReMMddvl>wdLe{hJtX_eYl`Apo5MAHxn4;*xX%}CZMali{A$G>W`@jPzM-uxj zdybmx9&P+dK8wU$iw%L?l%k7H*PNOM6hcR2mn0vBvFFaNisK*4Vc5!KC&*qK=?A6pwNRSWM(d(g6!gkcVm0S7S?X)Uz4uh z1c)OoyDDb)s2v1zHmG9y1U_>5Nhv{l%8`&Sf0iTFl713(uyUz}U32k8T~tNs56(JB zsn+$WJ1Vk%@gB?%a)ejpaj7DzET7Cx38Oq`OxImdp_=TJT2&MO z=%$H{1h!ryUix^_h>d9}T}3gP`vCFg_L?oN-msesS8eI)OL zqxa`=+lz_Ure6yXADe;C>uFKbNY|MH$*!qGdnj_16J_EW)}k52j!Z|?3R7(!2lC4->f5>hd_xMO5_vBU-y)-nm?*L{4I(^iT0@$b{wV?xQ z=#WyWW6+fkbyTA_wHm}Oxy>j@Dsm*TQ5_k_X`>p#i5kDiz zEpObi8wByS>$ZGx(Y9}G*~&9!*DqmwVStTbDZL9Ge;9?L{AVOop6!rKqb63uy0Ws$ zP8a_r)oDJo;<1V&P~AEt*MOj|t_~JR(npX-ZVN=2Q~9KK?2NbSfzT%N=nGlOhfgx? zWcus8kcAnmE>3yqC0l9T-GOp z0GDtIBiqu%)5>~z_Suo+@Nov^$0q%{mE9s)MjS0NdJ?)ik5aw{>?A!M4r4F`{H!n*!&SCtx~2N$@Qke6^SoRS zapgrc|Fge-U4yeQ8c}MCHgEMY^S{*d zcj3JOZGuaO9_AoooYb_r(HYALmOO^Deui&n@$AFFK2cBbDp2iY7uO@+r>kx=0LJvXqS32w?jiV0S^m+ zN#2{;kqu#Z$@ZS*&&cX(3$rYxvn*_tS0`&og7^t3DFeuJV)&}8Q+iw{3HVWe`#F<; zgp$slK3?h2Pr!IaUtcv`*<7&2wHvmuaKjca-L%zLHtp8OcJ1;@W{Znv8z_*g*F99# z*P?7@(tsoly72Q!^O;e8UzwI)>ino+(O|MnFO=VK)RNYdTP#piv#bVw#=xqR3_s)L zl%-zhQzu1k)=}4;=e~|5wQ@-*>paR1mon)i@$hTAkoVQF0qH&#!O*?~*!$QA3#sWZ z@4W<)wh?q6haJjb#Jd%Y5#s|9oD{kXZka%GofbQSR-}p;kAwuo8y)`BxBTbGoBkD`v1*`R5T ztCd|7|3wPH%O53ZYD$Tgvg0(GY5Osc@e5KsNno|3%jr*mXD%gy9lCPrSe6YRZJjsz zD8Xfa;S)!0DaTl_a+6Yza;bN@luNtvYkx5J(!mEg3S|RYV@_w16kv?r%_X!b`~s|0 z_g6(LN+b8;pih7E{MfkwBRpI-J7q@Jl;t=IFj`TN{}+i*q}3{nm-6S?Njgb^WOFFu;34oeiU^q}dyNv@%YK zKOQ{)c!rCJ?jn3Xky2`#=qvjz zYD0s{1nEih*sjgDu9V&`QWkAIpj=@f$ge1uk5iHp5Rd}_gIF%N8BcD-)0g#7RxCU6 zsV8UoRvu;KmNJo7%8|M;IYCr1k23OVUz_x|Ua5SMTujZxYpUF$S`G5X;N49O(}e#QR*fkF$Ax!69nFA0^78j_r{RTkS8~ zI%eVZ4crGW-?G)4i?()g#q2lNG5DMICeb4zN`~{yNhn)e~FQg2g_wM zLCLNqp{3!KDOJqRoaZ=s`A88t{CJpoCrZk~$=nihB(E*@TA~ej!3gj( z)*16W=JWH>xK#A~AAK`}If;2Lse4#k_eVBuZFkYO`m46JxnvuwS8Q$hx@}-4W?ciR z4)~6pLT8xoLLb9HaMq1mSC7|ap{p%W@(9#GSK4(m3vCvFJ75sNLN74_5nOD>m_w#N z^C1fksE2Hoqhu`dOBpgnrBiCGRGekRQHT6duMRWg!4#6UPtJ-|@ZcdmegD80PxBUlwrJ0bS1O6cAsgG1nY4)&tZ477|9&3o)t+d5Comx z>egRh# zQ-}K{oZr>Y&vF(9fccgZKukch6bDvl$k?&<-4*?BCH_0V{tiIA zab0BxlJ8bB2jdj@6l~78{6d0CMn8CZl^kXz;0?csUa-I%1eNDvA!gOW@FxiBfnV&9 zyr(U@PmZ|q!&bSBrJoeCuA?rq$CnbqHz7X*mwk~cpP2i|&PtMf@D#d5bswn@t6r6c zP08tWs7xm1z?1YO-uJqf+dSjdnUAOgD~X!>9SjkXz(#)#kRHJ)Eklg>Na8;)h4_D`;T;ZJVm1#2Iq%%vSN%hb80uJln> zImMSu3SX=4tSjOz9%32_0Ds0lVlcp|ZAq?%VKokQp9=D*Z!_#g2{P*baxj)k3we%f zDo-OSa!7J!b(V7+$`q|wyO9;60bl+N;ClMzxBZTXxWrVTN}_c{3B1+`WQ5<#Jvn#BP~f5uD) zeKGWr#5~TZdLoS_G&AXR%u)KAOdjFC2H&>zoi)@Em9zeen0pxapfh|!mz579l?|P( zg5C7nZOSl?c5BA3_bHuaz|hyQ!Y8eyb7U3cyi@wDtO@ze68s$-gQ%E9O|2b3oYIFZXlQ2*9XVfK7mN%RkiN_r;Eibz8HI-Obyc z47QJbqQOVocLK_z_xhcv#nDARl`QMzIZluWGR$q=_oQ1lJ@fhsHc)gv2&#$&%4GUd zW-RsKR#{5anX&r8S2W6Fp%-6pQpQ!TDl4K4f2oHeb#U%K?ZSJgbkI=H{sS0PcM0|8 zKCp>saD|qXTIMr{TEpq#nQ3a{@UHjiL{HNlUL%1KV538ld6^q=+RexZ#XccMai7fZ zDKW=Oprin;Qlf2)_%+=B>g#)TH9`Jlx`|QHLoF{vzO9JuEOqgp!+1|L#QLI^ydpq) zSF(TbLj3x5MdV+P9VbZYL0^0wz-FxFqpbYt%Xl7cU5DZ%mP@;ir9WiWuLWNCYcBOB zCsn@EmYViB_LqhNz)3kUg$4B!2U62vKF%`eF^@JmP6^%gtDwm1Ya&jJJ9{Q&bPXIn znBB*=Wfoy6q7M~%juYQf@;7u?j{}&6RjcN*rzN_p_r;K}_IQpn?s zsYojyuVRLRI+Z7#8xj@o+0D%nTjjqMg^R6S;D81|d00h;E(z8lr+Jm&zO-Y}5$pj!+10E5{1Ynfl1{Ep;aXGaE%)q<#cZI8R%42@d zwnuyx?jCoNyxIwgS()cP)hDLkW2!&NuP{&;%k0LgNp+*_CH`UvfhwQb;x<+ke1uMe zDFLVgy3`pDyA|)0%b5IWhhEF9GdXifvNJ|s#IuZ!E#iuWUbu?4a-x1uXsBcEI}HVZ z%K$>}>>W%&idEeQ)dz9T#7u~IoHdGoN^Fx*B66bysL9M1m%5r|m7Db=Qh-$F({Mip zH9lo#F@4Q2E&?h+Agij-nGd;v#WdYDrOlis#{K!eM2sm;AA6&TCD7%gS}JL3lcplj zvTdMiS6q^~e=bKCSPjz>Bpm2q9ct)e*1^0=*7>zwayvFzZApJ{f=&66SF`p>qRxD( z;a4m<%G1Zg&*N6CmKCX+hKPm&zXWg+p5gc$y&8*av&C=XD zH=vM>3Itx+kQ~^qfqaimHVN5KeHragEh9tV9YebaWW?x;Wwh^wANm-LZ#1>rnYB0f z`8Bn3Nwl;}Ssw;DXyZL*VRO=`&;DRM6)28f_ci+&^z602QnzbhO zT7W~niNA7bY!ki8_B3qLL*YGLm-VRI4m0MY=DMTMy&~EuLMuE?EVL}Ghf@N&lm11C zMjK$NhglgTXbIf_F!sR{5xb_QZ9~lVvh7IBwtiqG=0_M#Zq*LtqJNa5kjK40ykuI` zKK-&po`OP)n>eBgl!%xPk4(GLDOI-CGoCpSS5D2Ot`Drdq&imbtLCJRKXWr*?FwB? z>e@jabKhy-0i5q5wMb*K=_(GdwCLAt5{?|SDI4-RM&AI6WQPEE=sR@?Ihf)P`H%!Z zcM+qMer{Mx!bn?J8>U|<6fDIoMd0{7Fm52lEbsf3Cfi#R6}5@Y(BAh_W^=d7z{Y*t zMwG_`;yy^_q85Hy?m*Orz>YzZ^4x(<|*#D&8$51}*YYn!^t(3g7Jq|ghXBi<^P zzKYYA{yJXAYOdpTo{l{CSH+ZH`McyjcJO6}ilPb8S?V|Ro_7?9JxUQWsEG%`kpq-O zEp6AG+?Ua+gz8RTlU-C$igOHooj;McNJ^ z*6TB9s}m|}LJ9RMuk>BEgSByAycnux>HOo@Azyp}YPjTsAkn0LjlOu8rK&mLnLtVK zRZpeUF1{+304g>ssaS33_`7B0CsjFhy(JFP5l2oboAIu%wuhMZ9l-h?EtP8Qa-g#F z)PX@BrZfCt&X$Vk%;-;Q=JF+=6n}wMY(0mPw$GSg|5Jtjkf|v}kcB4J7iI&5oSt$Y z(lx{R+e9Qr{E0NP_?c*znt_o|J#zS6 zW?xdcNmazm(6s@Rj^z`jcUk(pTyU zz4#&a(!rM*3b6q>0pP_`0vJB`TUL$VgGMW_NNRTMElC_?3*(_g`DZY@ZpZ>@r>3Gt| zyx>wkZ3q#S%&p3le3~H((XQ*SscY{u?K^-;KGc%@Geg}@<$bSCUQLn2SffTIb~Q9iJxfSMk3Es_ew zAcknqlg`3ec{v0U$|S`#(8EK4YUCkEkf2z~V9k`8aU+*y(+}2tEnh4u$*q$wpvSNu zFE7&1@Oarg-WJiteQ`vo3Edppxd$b z4fFuh?Z7Bt1S_AExuhz$uA?rOKIuudkNMO|=?|{!mR{HQnYcsIokK%I0ATiH4yu?h zVql2sPLv*wuFfi=a}&%yJC-a^_{G?E&IWNo80jxU0$@u+msKE871#*4k)g~;@oyxB zf&KG+Sp8@JY6)FFd)b?=OG{JahGtR$sR>3TI=xj0R{K;qgy1V~)C6GVyq#`J*Rhp? z`r`o<_f%$Ix3HtkZdx|VeEs}vf|zxA*+G;wB!azrqAx0PTR~|esM&p9+U=(Fi2f_Y z)hiy;ZWvci_()-7UDUV0EAccs!Ix#bpiQ7C)?xXXPc!TmMV^>c+g&DgWm4p*KSRGQ zC)GMh_QBgoh2p%miGv8j2U+xBcBIa5=p>#Euuh7WmKl@>TlaYy6ImBV zPPHzow8)DK3+Yo&W-KJAL@OUfRh@RRiu>R~OkkHrnVk8u?qtO(z4oVG`@~UKxiC;b z-%}>zU<%nJ+H!;pT?dr*ARb5uPoWF-vV#kuN2|`08akdLM_*9(N$!Enum5@9ur6pyiE^cQvl3wLE3fR@+Nuoqa|70|+sfgTv2JxYul-X{^C_>7X(xw5feWiT| zuv6VFq3;>X?9qsF6KQEQ!?KxA6C6#<2YQJ^Fe-%v0O_;Bk?!yafbvCv;ZMM&&0=Ee zp2N>vG+8 z;O%FJ%x%8Hfuse-+|}=0SM|Wpr8axq_XnFF>d1Rx)~7n#M7ug# z5G?e8^4NX`3&MRvt0`00Sk2HNf|uQ|ZU(DN6ihv1HPxquw8(!@o_Q71N3{k-`lZvK z4BL;1n~<3kx^9v+(FlK`^mYBBgC%rBeSTmAgiSrva!Hz` zfv3*&9&P0YlPEJIeL0iTFCRAU0i>D&*k?S90uc2HE9$ZtLp~)pEW|+6LGHuPm;3NS zoy-;MDPJ0yS(I>NVzjy^S+obj(=9PFJMy39bOI{%;-g;sDZ(csWfEhRU%9lwI-<0bXj5nt zHaNOV`(e2-8ztH#&RCb^JeYwS%5O8UW8!S6b8}V!HTS@f_|tb!DdA1_jl!{YjfYsz zh4czs^zlz=jH4Z@BcSAAY5*A|4A#WD1Y&8P>wlRIKjMDRt854_)5EdqDYYXJgu3a| zG>BYXG_u_dsVe$~E(a!E1g>i|6q0muzxpl#PJ+(*o_Pux+-TDfuX8A+R(8?%(7_DcA_23a(vf-g z!0LDfF!~^KNM=fd_f!ZSf4T0Imdo%ERK-_dDd`>LUe5;+1X3W0hT7(qK!o4n3xEnV zU`W=;OO#)fm_|@DlK^JE*Hn`qd-^HqU}hexU-Y;SMdZ#{WMLD#v};#)_0~}iV)dbi zBxMJ?!@1kCtdCu=z|W?@?v^POdMlp$r=VVes^r0!`ytik)e~uxs@NW8-AT2-rnGMt zA3_=e0JCT7p#hy87ot!atuxk;Jb~g)Z6XeF4rR9kCIkh6g_l6aSJ@9Y%pyCuQrC!8 zw%40}2P|~_H6PTVjV*0T>F{x2q7-Ag57zxN!JQ3oqQ%;!l@KogVe)Y?>Z6_m-G!I( zEeS1+zI*CP?33?*$qIs!<-3&bI^0Tyu{n)n=FS)hR((9Z0Up{)$sAJXrD(>$)TxrB zvz~}4o;HbgN2gipOX}FIdP%gac&luogC+E5AkMZNY+TB$R;mr1YhqZz%RteYjcf2J#d+|dzx?zu=$reMwhE<`(J_`5m0jbF`Enf}Phy!wf+ z1SP>2x)f6CT_)8MtU7LI*OC-^wx_#Kl}%seA7&Z?05?ye3*{I@@2UUFfCa%(2D5B9 zLY+B2X@}0u*!-Dkn>#&aqf-P%hN;JZCt%?87V#yyRyxZPpV~#A9I{$l=2+zANljLkg3WODoG#XaA&+2~E8+;rELi+4M6xo10Qa ztit#IS*WR^lqqctKX7=<=r2bUaBQPbaL5~O-7 zZBiA_Shwy%gM9l)Ljd5o@2flJcAXd03?6C(g`02sn)~f5|H7N>OTPWJ_V#anz>eKF z7rDrh7WsJT{al7((0kl9R+qMNTXr=Q>*13}q!FNuC;=NNyffC_v0|R%G3Jo4H;fj4 z(B*sDbLet-s~oW0W(Ab2gL--?)9)UZy!eWgW`L3?)2?LdnV0S)>5Nl^T+c5y(4eZI z>t&f+`;uUnG70?5sU*)c%~ri6`e|1)d^auusZhl8-Z%ZCqJV0BNNETF+&yDK=+)N4 z1rl_caf--!&NwqfAwsqv%CX|z; za}%SniMqY8V0!Z0a)(~ITvjnsQR_tJK-BG94MRYS91+f=RQf|or(`VbflPud`{~36 zmL;)3Z9|sDNcupjW~^>^#%glk!P`g``A}|7k}j1`!Rc0l{~E!)xr& zoip~j_uOS?9zJZx@0~@siIW5%&Prg4X5Y?wQKikl1g-pZ@E#UzhVGGO>ptj|P&A)n zzdio6t88WYi?cVKURcTW4W3kiH6?BMmX+=cd~IAe9(ZOySz z>KU4K=>>4=(^*+AnZ-nL5FN@m_o>0?Es;Ydo2 z6%e2dbrq$ZGbEctXXZ6RN+}$t6|o7~O(BIaR~w&;ntb?kOFJj70{5N&WCpQy^owq{<7!_OQYNAeKU5CFLOs6`?5enVwYfEdy+jvW6$ zznd@o=2biM=wbVV-}_p7!#A9_sS{&3;hvaVKQTD$0Fb*A7!72-T;msbST=H%7qhB> zC_iNb*(|Fvd-A+~#zZ;{%$(J+l3FGV#j)``FDo?xn>My=FEbVwV7aqJUYD~($S$>f zX{dm!B$gfLcY`Ys)HxCzpIQ&SkNgCXtk~-0R^FJ6 zxs{(~pehcj&n^?Znh~jc4l|TRzkFU#16J61@rZqR+;tu$Gu!0H?u27OTl0uGyK11x zh9Vi_dtk1)_{RbQ4gn+B2%vh=2J7R&@wsHaRF-jqjyC+GeSMW5FP1Jfgw7cm zx%xyEBtaVBbQyN$@Hq643qIP|pANZ2>GQUDd*l$&olvJ)<-8vb-b3WVvxT> zzE7zFh3bYJ$E~57l1%FADN`raz^YjFc6`a|gSY@>j`E?3pw#^&JESON*+=MEXDJ`C zLaOB89=J_0_9VeRV@2;}2UZ=Kvu_p?Veo(8$DgyG{KgL;wQpbix9+rK4^OBr&32mc zsxQy$#SU=jId}!z@B2#CWOgCR@kLMJ|bjP|?XUOux{>yS(G45NL^5xTUa+egz zk;eT(DjzHpasQN7Q2HVJ)T@vJL0;BLvI0`>s_0#gSPK3a{AdMW3Cdu1R642h7p8y= zbue{u*=MRZsRQg%S;)*S@zg1Uxd~T?xVM8DxJ~FOodmZEmBEZbNa8@&&?HzCb&quX zz3x4C*q8s+hi!Ch#D4XAF51E;`4k$j$WNVSSpK4oeek7$Xq*utJYnJ>Cry^#)YWPy_26`q_T*6Q`Y6LLGi$}I**0X^UqybQ zJeYyoq%($%I!yCPIq7>PUdkb{0Bu?$_WZA0vw!ogkK41qaLexgidj4M>T%DfylV)Wge&Pky1BFHp?WJm*;oJObjCTYW!5h zG6Fs7&yep67XDPHSFCueeCnUc2U)^Yf?1C^K(>wh---B~b-CA!SaPA%2T5?9o4}%v zhmpDTD=+LUTl}QZvz(->r7Q(0r3djBaxfjtz-?-El#jL?&b96*fP*!Qgby1oDQ8bk z*gL-KZhPcC$87EDw%vN1H-Cbe@|s$>Ff@28=w8v4jeFS(kTAxXZEz2uiGFB_RCqW~DXfa0Cved9WbW%Nx&#@tn6gJ|Hu z4PS;7*2YP@#-ubE_uB3RmmPv=S7nM`NvgMNqx^L)_1bpP-an|WFE2J3qhP#Mrq&0L zpQ3{qxS{w5-|8<6Mjw1+bXIgChNvr`2+7lUq2ce)9aFgI_wCx#tG2bqL_m0>^^*vqBcRlUYWxLDM=!0l3n68s3vP>VqmV`y1r62VM2E_!Y6Z0tu zxPWp>6v(!-Eu{o~k>6tFBUpN${qjzCRZR3*X zE5S=i@~}CBQS%IT1DN0noxktgEWhIgTYybJMt1r&lQPQLRaw-@9&hxBLid?ld&b7= z8cgg6Z@FtE^pFf}P>-UttNuzlbO@W;RmDVUQ&ybrRMM{f+!bfw@eSA0UqDVhnWFZQ zQV*ukad!RW^pirW$I=JNxMtVNb|X~ExX{oicf=J-Ie>2G-!IbG*T>peXiKkA@RPH56q2W$cgFOup4$oy$B@q`Fj zz#`Md_EVg3yuAX;zhixl`#-$k>mP8ocH~M9pfZ@can^x9#<|Z(bep-mHam^=L_Ek!QZ2Bv z+#V){zQICkeEm^cM->WlR*h>R~)2na5L(i84T&G5NG{ z$+E?lHaP1LMXW_#d!K0t0Gw+X5IaXbh)s5sYzRmn-Z9J27h6JrAi3+S=Ixsgt^l4^w_NbTRZ#pY4 z0LOAN37w|F9eRmrusTso7`TKF)x7YZR_v*Nx^B<^AG`L#4^G(50;7@1@&FG}!k1=Y zz1;7!DO;ncOXh07uJga^^Bz|pmvnCv$17{(?5_RBK75~$dg}=$0OiYY#yn5?s&_9X zNI9UAof@Eu(l3cpXopPLXHH5jDM_UWlrj^t7JCLp%f?yJQ&5B+8&VNb8cJGbY9Dqes!F zowJ?QNwT`E#tVw1*42}$a-4Z*`2Z{ZAhwmU1ciut+7VA(pwBpC^as(Ou`J_#(dM!* zwiSA*pOiXfaMrOWFYVgjqT2@cg@ypY*@WyEjwH$k#7@*T+%?!S>hV{B0I!SxWy@ZA zZ(jrT>c5<_%@_GQj~RugnKmtdMFjP+9iEe5Ei)PgYkbV?_%Zn4RC-cf zEV#r&;cS@U;v-|T%_q=&S0!dXwWZ4OL@JFMW;0s`sVQl<5-WnQxU0BSZZb|8w#-WJ z#s=Ai_Yhlo@IG*%KGtBmr{w@fhp~HnSd!8rM8YDN5>ye%Eq@e_4{P{khMtzG%!??b zmca1wm3vV=@-gnOrrxj#*zod&0+MC6C1C4&Vb{DpN{0v1>vmv!8MXi>!5l3bG-kYi zni0jiyo4{URf>Oc5s;xGT-kUTg7EB_W~D<(RZG>hgS{>Zw@K-zNFRvr|Mmc45&W_D z*aT5euqJm2zEW?rspMrD=A@kjz0AlY+M%YeZg1+D)6JCxmm)<8QU$zX4F~Nzfc+s* z^jOtd-qAU*xj`P8F9JiF10t)8-LQ$X9Qr&&LMJ}f7`goC+VWyQ zw6mVvYGzdqZO-KMIgj8fp?o3RO8}DVk&I{*IUOBoY=>SV*4RkOkVkGbDhSIM6(!q6%Jdd%QxJzqgYwf~;-rwpOr@smv>~B=2XMLEMrUzpNnHaR zDy2Wb;wu0lnZ5=VH-2fvuKbH}yZLWs?Z!{f+ty3|Wd`MkbeQ0kOWyb=+wu!Ucv0d$ zHN4t#hIJsrqa|@L+rbNp9#GN8Gt4^3(SFXhjHOf_C8N#pDUY&C>>Dz%$NoW%&#a!S z3m{1%bdWSQf_ca%@b9?`UYPXO1C+Y#@MTD@^kqC5G!+1D-BTu$(oYe-l&zeQTCP*p zKI%1-Qj(yToS^PLN}V;6=ua73;%V=pgC%q!T`aSsqO*KhI{Dzlu;#$kABH|9K;VD_ z3sA80?>er`)KMuaKI# z1H^*|47*12sFM_Q0;Sl?vENir_^4|pCbMq1PoC`A)c8*6Z%XMwMGYlqGf}-uIm|}$ z{a-ho(xAW63)eKrA9jMd#0JQ^?eY(@YbMna%>H6Mt&0#<`dlsKv4bUaAs_6Z7$_RX z8qnUM(vd*F=hAQ~KuE)uU?hn2%2}1RbFGuPXXypR{?Y|NKD<;vU%V*ntyB5jvOSui zBaQ~E4zT`#H{(1Gym&C>MUbUU340K=mdME*Nnr@u?vxOPOW;QRjeo=*yx;BO>rw>D zKn^`^I&#ok-2dj_PwwUyig=#yI;Q-zD}U;H;$Zez%MU6xSR!pwEkn<^%=EE+1BmBo zm}m%=(B5ae7zkYA`3%BNYNSA+Q^l>@e!odStp;3rp`1s+&_@%H02AvBt9b?3>e;)g z*XtI*^m9AW0xp{g%=%&xW$6*1%d%QgvDXuAXAJGpppaieM1cA-nUbT)XH$(f4YCS^ z>L==uk>ZXpvP|S1Ki;#WM_5CUVxeX#Hm!KdjMGL!{=+inwBDl!&#!Tr%nOaaXp?k# zqf{)xy&fZrj_N;rH28B-{JTRcxgMlL%O{^d>;{;Rmq) z>g+38$~jj>niwg4;MM?wgL#8;ThdRtyRb=FbW+$NNF7DkWgo$5w|udWLUoLj#U{WB z&ODWu5*)O=vn<&FnDXErxFUY@XV?1tMZ=wb3}hd8DP8BF=V^onTL6X4U(W*VD&ODybb$rbA4pDz_ zz!1c18>@Et+7&trGv+GGhCf7MY}`$SHT!;KA~-c^cGm^e(Ck!YqL3(6$%re5CMB2; z#3{3y*pqx-aDYsz{a~5g5L6M{)22!%rJ4ID(bsB2FvU1l9(R9}**kv2?497d{s*&( zV+fF{Jno0L14- znOqkAE}4Y_UM^lfLPi8$GU>?|Kbj*4lFU40fn`c^iS4>OJs^L{aVdgw_k|Ig1d!!- zujd8RnKG%wKs>U3eB8XwZHC+y^2o|a3hxT6iuVzOc1HS6@8ULwGYtIbsnOn; zv|*rq2QbFp_UihY^|v^rIJ^lI4yQJ!kJ|zZf`t!?@`Dv+=5&za)I^!atJ#$-z=Ban zeyAfd9DwwxKKKH>n#CyrCNDn*8!=p97-?RxbOB&pu%mt`9w!)GQ(5KVm2zfsP8YSj z+W*+U`(ayJy9S%Htk1MQm?%*f2PkZE8L-M}W@Qb0C~|ARQta@o+1Yba8)7~=^b}(H z!$-$D2Y-5Vvs*=>TFwpCS2~XSVWmj3cb`{*;H%0NYLTenZ5YW!9NN8weC}y zDu?<1V&U()3g_nLrY@=z<5PTIGc;@HeFyN&^u)^A#+t3KZ}Z9)L)ZtHhPi&K)dzP0 zXaGU_X!ry^dL4v}Qu7(Ok^X|7b>Zb@9Hi_LT^Q&iNCkG!Yko<{2fA$d{Y zD{}edS{DTB+(&|#o=W$4&o-9V?dbezTUuJu#c6bORQJJu>nHwS*gr>?k1!u>K10h_ zgEd^f#Dv0GT0RH6{|KJPC?CGpY--AVVuWHhE`wDjDfC+aFwc{y$}L<26S4+t?l0q| z%m802mwFsS%lDaVP=CX0@sm5YwY_NXo64@uLL5!@QGPc?P_8Kx@6rR>7M6X4)*G$GJfF@ zb7o#PJAUX6Te!7gITHPnkem{C@Y3|IhZP{`ObeE7v}SOA_)i zNcBFf7=^i7DLN$IniFuza4AO6h7PG&8S?1tuARqH+I{$ooHEme%<7Z_F^1E#JkyjT zWjsM7JL}0<&5=h^JY?=uWiuzZRTpCsPhZAqW_j8pW9a!woY5)g9(lt1U<~)W|HrMr zY~OtGZMN9I&XQUI&CJZ$!oq^hPo2VeU0wRuzxMM>3JwAJ$k|8w=CAxm_g*;n;L{81 zOC#@o)0f-(e(vY(W5523cHimy?9A9P+u7W)ovprPA5zSLiF;L5?REFP-rn`tyX|%NzQIl(KPz8T zBPi7L5T{96iHEHL&VdbquC?F(7-rPl+~H+0fuy3z6|-|M!=E6cBvB9PN=Q_abyRl+ zO>U3?2X5_;c1TezLofL$LGo2Ol)RN)*tuyhZGF-{xc;B*qwBv6;NFM?r`g$Ad(V5` zV{`L!_Too(?U6g*^>csopZ(!?M|j_;S~WrUI{twB|Ef)q9o#F>>5 zpGhI%^BGZI>lph%`aWCpZU;V zx3_-58|;1Wd!If2_~Xhxpx=8sb?TIT^;dtjUA%b7&W-$jd&8p-f9p4V&s)Dg!uw7> zqW70}KmYZQ{lXZ4@?U=YSM9{H6E;0HZ(9JU9$@i4QTK{`Q96hOI{^;-Uwh z6i(JM7o~ex43CUK=lwSQtb^=#%36SP8BJh!>Mgl!g_hdx_kDTW_};H1^4Kov8N;@D zx#gD;*9GXsQQNt>W=ALQw`K^sbY4+RCkETU%PSBcrnbFJ>jquvj9Odppi>0Js05 zBVN2uCfEf8=LAiHgTUpzs_uJ7;S<0Zbzsu(PmGZ*i99j8$nzb%QD4}(S8hEPlJ&?Y zFnyj)yODUY4&-X)4*%TLq>bNo&VJ>i@3nL1&)C(gS8Zhl>(m4KJtLlz>FH^E?6Jo% z`(CuW4}Gy6Ieh3B{>qR1q3?^7p`c-yf$d+u|9hT0d35Sut}NfO|N60Cu)8087&l}) zw$b15L5`QtR0JX50l*e80bq)2#&igHMA4WVnG-&OQy$kj3pY=mn-TyH%a;qk4TqNbc%zAbmaPAq_9+PY)ao_z2H``B~; z-d?=*Yc?@4Vb4DMtWx}~ApfYPzYlys|G$vVDOi(0@Y%Cx?Z}ZMSPhQYJ0ATOJ8^vS z$G`iZeC?l%B11!E+zbPK#hd@~yEeB*{{68-$EU}~XY9hx9X4~VZ=)-lw!^2+;Qo#S zS)W}6fOS126T}3y?m_u#z@^z5;B`G_YyyQRjrjsIfUgrtkv^|QFAt=px_rw`*i3Pc zOAm&J)QU<*lFJc5nGfZHo<0A(y?Ew|U0wXBJ#q2h+3f7JmeTntt@`7Z)DP&tjcU;9 z{DOGD%O}r#mtwYekG<~B_t^6K@&`Zp%=2IT+t2>(1tkp;HKS!n=&@J*KmWj~BWHhn zY;^qa?DQ;_kq_Fb)oDArF>PC$+x`|(-V1{`0r^`IaVP>X4-7A!6akbc3nz&=e5$M$ za{`_;0`Pt!Bd4XimfQ5lpX{U@4DO12wh{g+%Z2{{=O=4TGs{LH+anm=K8&YiPS0GB-8 zv%h@3%@m}!cHB0NGq zdFxsG*p;VkYHG%g%>%q6*X`7qX&al`wS|?-*6*#N$ad8v)zYH$JA;b?- z010SI5)zUSCtlvn?AngS0V1(4wRd-R=IwfC?VWX_*2zn~TFNIG1}AHxuA^DrB2=2% zHMMT?aDVtAH#uGY z{6XW{l-hAjgY1Czd;8Q&GitXw6!Uk&UDz)Nv&fH@nMApTUE%np&yuo?D>U&|YNHh@ zudYD2-Gx?lTGp2Itbknf%aUVi^82)stCWGVlzV-J`V2Kl3aeWWj$ZP0 zPV?n&n$CaGWICexpXFBscrPNec=~SmOkXO;9qrlFU z2`QUt?1|auDDq2d7t=)XYWWf_UGT5D?o?oJIjIWj~Gm$~R%sn)42df)z zwo$EoC7gu-c|`jBj!x!k6Ro&~8#cwh7n_Mq@hy(y9@H{4)P`{ed;UeYOj0E+7T6^( zAYVmMJjN2s;me`iXiml7c)SwJip&kMOa?^?lK7iLM!=mJP+MT^KG>q*f9lGt|AaIb z(E&J)Q5vWeEYh&6$KeU;`3n3E0h-|$qdy}y#^(m|96Vg1FB$SF`m=^;34;_I5r!V) zAo0arYl{)a@4YSZwlVF=UN;?fJKdL$J{`S2r}OYaAs`?iARr(hARr(hARr(hARr(h dAmG0T(O;;~lHa#i;uin_002ovPDHLkV1iMgPQL&E diff --git a/arkoala-arkts/trivial/user/src/ets/page1.ets b/arkoala-arkts/trivial/user/src/ets/page1.ets index 7d28ff27e..7495a440b 100644 --- a/arkoala-arkts/trivial/user/src/ets/page1.ets +++ b/arkoala-arkts/trivial/user/src/ets/page1.ets @@ -116,7 +116,7 @@ struct Page1 { console.log("#### Set Button onClick! #" + this.state) }) Image($r('app.media.startIcon')).width(60).height(60) - Image($rawfile('phone.png')).width(400) + Image($rawfile('koala.png')).width(400) Text("Set Button onClick! #" + this.state) .width(200).height(100) TestProvide() -- Gitee From e3d7018afdd880b321a7391d41bf64d07c119cd4 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 19 Feb 2025 11:30:33 +0000 Subject: [PATCH 09/31] !15 Fix clean:all task * Fix clean:all task --- arkoala-arkts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index bcae4f45d..7ce89e851 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -84,7 +84,7 @@ "trivial:node": "npm run build:user && npm run build:loader:node && npm run run:node:user", "shopping:all:node": "npm run compile:native:node-host && npm run build:arkoala && npm run build:shopping && npm run build:loader:node && npm run run:node:shopping", "shopping:node": "npm run build:user && npm run build:loader:node && npm run run:node:shopping", - "clean:shopping": "npm run clean:all --prefix shopping/user", + "clean:shopping": "npm run clean:all --prefix shopping", "trivial:all:node:ci": "npm run compile:native:node-host && npm run build:arkoala && npm run build:user && npm run build:loader:node && npm run run:node:ci", "arkoala:har-arm32": "npm run compile:native:hzvm-ohos-arm32 && npm run build:arkoala && npm run har-arm32 --prefix har", "arkoala:har-arm64": "npm run compile:native:hzvm-ohos-arm64 && npm run build:arkoala && npm run har-arm64 --prefix har", -- Gitee From 8097d1b0bacbefc2be2901e8b462f510807b6a57 Mon Sep 17 00:00:00 2001 From: Pozdeev Pavel Date: Wed, 19 Feb 2025 11:46:37 +0000 Subject: [PATCH 10/31] !16 ReturnInteropBuffer for CJ interop * init --- interop/src/cangjie/InteropTypes.cj | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index 1be75c021..993c8346e 100644 --- a/interop/src/cangjie/InteropTypes.cj +++ b/interop/src/cangjie/InteropTypes.cj @@ -21,4 +21,15 @@ public type KFloat = Float32 public type pointer = KPointer public type KInt = Int32 public type KStringPtr = String -public type ArrayBuffer = ArrayList \ No newline at end of file +public type ArrayBuffer = ArrayList +@C +public struct KInteropReturnBuffer { + public var length: Int32 + public var data: CPointer + public var dispose: CPointer, Int32) -> Unit>> + init (length: Int32, data: CPointer, dispose: CPointer, Int32) -> Unit>>) { + this.length = length + this.data = data + this.dispose = dispose + } +} \ No newline at end of file -- Gitee From dd4a0304c2f0bc188c24ee7b42e9bfb20ce49365 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 19 Feb 2025 11:47:49 +0000 Subject: [PATCH 11/31] !18 Verbose AOT commands * Verbose AOT commands --- incremental/tools/fast-arktsc/src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/incremental/tools/fast-arktsc/src/main.ts b/incremental/tools/fast-arktsc/src/main.ts index b9b066a0b..4d4a23199 100644 --- a/incremental/tools/fast-arktsc/src/main.ts +++ b/incremental/tools/fast-arktsc/src/main.ts @@ -195,6 +195,7 @@ function mainAot(abc: string) { `--paoc-output=${result}` ]) console.log(`AOT compile ${abc} to ${result}...`) + console.log(`Launch ${aot} ${args.join(" ")}`) const child = child_process.spawn(aot, args) child.stdout.on('data', (data) => { process.stdout.write(data); -- Gitee From 06b23d5a9ccf6fad365aa84fbef20e8cb6cc94bd Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Wed, 19 Feb 2025 11:54:22 +0000 Subject: [PATCH 12/31] !17 Generate with idlize 1.3.20 + PR 1591 --- arkoala-arkts/arkui/src/Application.ts | 2 +- arkoala-arkts/arkui/src/ArkComponentRoot.ts | 2 +- .../src/{generated => }/ComponentBase.ts | 0 arkoala-arkts/arkui/src/LazyForEach.ts | 2 +- .../src/{generated => }/NativePeerNode.ts | 0 .../arkui/src/{generated => }/PeerNode.ts | 2 +- arkoala-arkts/arkui/src/UserView.ts | 2 +- .../src/generated/ArkAbilityComponent.ts | 28 +- .../ArkAbilityComponentInterfaces.ts | 24 +- .../ArkAccessibilityHoverEventMaterialized.ts | 12 +- .../generated/ArkActionSheetMaterialized.ts | 25 +- .../generated/ArkAlertDialogMaterialized.ts | 25 +- .../arkui/src/generated/ArkAlphabetIndexer.ts | 29 +- .../generated/ArkAlphabetIndexerInterfaces.ts | 25 +- .../ArkAnimationExtenderMaterialized.ts | 25 +- .../arkui/src/generated/ArkAnimator.ts | 29 +- .../src/generated/ArkAnimatorInterfaces.ts | 25 +- .../ArkAppearSymbolEffectMaterialized.ts | 25 +- .../ArkBackgroundColorStyleMaterialized.ts | 27 +- arkoala-arkts/arkui/src/generated/ArkBadge.ts | 31 +- .../arkui/src/generated/ArkBadgeInterfaces.ts | 25 +- .../src/generated/ArkBaseEventMaterialized.ts | 11 +- .../ArkBaseGestureEventMaterialized.ts | 19 +- .../ArkBaselineOffsetStyleMaterialized.ts | 27 +- arkoala-arkts/arkui/src/generated/ArkBlank.ts | 26 +- .../arkui/src/generated/ArkBlankInterfaces.ts | 24 +- .../ArkBounceSymbolEffectMaterialized.ts | 25 +- .../arkui/src/generated/ArkButton.ts | 34 +- .../src/generated/ArkButtonInterfaces.ts | 24 +- .../arkui/src/generated/ArkCalendar.ts | 2 +- .../ArkCalendarControllerMaterialized.ts | 25 +- .../arkui/src/generated/ArkCalendarPicker.ts | 29 +- .../ArkCalendarPickerDialogMaterialized.ts | 25 +- .../generated/ArkCalendarPickerInterfaces.ts | 24 +- .../arkui/src/generated/ArkCanvas.ts | 32 +- .../ArkCanvasGradientMaterialized.ts | 25 +- .../src/generated/ArkCanvasInterfaces.ts | 24 +- .../generated/ArkCanvasPathMaterialized.ts | 25 +- .../generated/ArkCanvasPatternMaterialized.ts | 11 +- .../ArkCanvasRendererMaterialized.ts | 101 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 34 +- .../arkui/src/generated/ArkCheckbox.ts | 30 +- .../src/generated/ArkCheckboxInterfaces.ts | 26 +- .../arkui/src/generated/ArkCheckboxgroup.ts | 30 +- .../generated/ArkCheckboxgroupInterfaces.ts | 26 +- .../ArkChildrenMainSizeMaterialized.ts | 27 +- .../arkui/src/generated/ArkCircle.ts | 27 +- .../src/generated/ArkCircleInterfaces.ts | 23 +- .../generated/ArkClickEventMaterialized.ts | 12 +- ...ClientAuthenticationHandlerMaterialized.ts | 29 +- .../generated/ArkColorFilterMaterialized.ts | 27 +- .../arkui/src/generated/ArkColumn.ts | 28 +- .../src/generated/ArkColumnInterfaces.ts | 24 +- .../arkui/src/generated/ArkColumnSplit.ts | 27 +- .../src/generated/ArkColumnSplitInterfaces.ts | 24 +- .../arkui/src/generated/ArkCommon.ts | 62 +- .../arkui/src/generated/ArkComponent3d.ts | 26 +- .../src/generated/ArkComponent3dInterfaces.ts | 24 +- .../ArkConsoleMessageMaterialized.ts | 25 +- .../arkui/src/generated/ArkContainerSpan.ts | 2 +- .../generated/ArkContextMenuMaterialized.ts | 25 +- .../ArkControllerHandlerMaterialized.ts | 25 +- .../arkui/src/generated/ArkCounter.ts | 26 +- .../src/generated/ArkCounterInterfaces.ts | 24 +- .../generated/ArkCursorControlNamespace.ts | 53 + .../ArkCustomDialogControllerMaterialized.ts | 27 +- .../generated/ArkCustomSpanMaterialized.ts | 27 +- .../arkui/src/generated/ArkDataPanel.ts | 28 +- .../src/generated/ArkDataPanelInterfaces.ts | 24 +- .../ArkDataResubmissionHandlerMaterialized.ts | 25 +- .../arkui/src/generated/ArkDatePicker.ts | 28 +- .../ArkDatePickerDialogMaterialized.ts | 25 +- .../src/generated/ArkDatePickerInterfaces.ts | 25 +- .../ArkDecorationStyleMaterialized.ts | 27 +- .../src/generated/ArkDigitIndicatorBuilder.ts | 2 +- .../ArkDisappearSymbolEffectMaterialized.ts | 25 +- .../arkui/src/generated/ArkDivider.ts | 27 +- .../src/generated/ArkDividerInterfaces.ts | 25 +- .../src/generated/ArkDragEventMaterialized.ts | 15 +- .../generated/ArkDrawModifierMaterialized.ts | 25 +- .../generated/ArkDrawingCanvasMaterialized.ts | 27 +- .../ArkDrawingRenderingContextMaterialized.ts | 25 +- .../generated/ArkDynamicNodeMaterialized.ts | 25 +- .../ArkEditMenuOptionsMaterialized.ts | 11 +- .../arkui/src/generated/ArkEffectComponent.ts | 25 +- .../generated/ArkEffectComponentInterfaces.ts | 23 +- .../arkui/src/generated/ArkEllipse.ts | 27 +- .../src/generated/ArkEllipseInterfaces.ts | 23 +- .../src/generated/ArkEmbeddedComponent.ts | 29 +- .../ArkEmbeddedComponentInterfaces.ts | 25 +- .../generated/ArkEventEmulatorMaterialized.ts | 25 +- .../generated/ArkEventResultMaterialized.ts | 25 +- .../ArkEventTargetInfoMaterialized.ts | 25 +- .../ArkFileSelectorParamMaterialized.ts | 25 +- .../ArkFileSelectorResultMaterialized.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkFlex.ts | 27 +- .../arkui/src/generated/ArkFlexInterfaces.ts | 23 +- .../arkui/src/generated/ArkFlowItem.ts | 25 +- .../src/generated/ArkFlowItemInterfaces.ts | 23 +- .../src/generated/ArkFocusControlNamespace.ts | 42 + .../arkui/src/generated/ArkFolderStack.ts | 28 +- .../src/generated/ArkFolderStackInterfaces.ts | 24 +- .../arkui/src/generated/ArkFormComponent.ts | 30 +- .../generated/ArkFormComponentInterfaces.ts | 26 +- .../arkui/src/generated/ArkFormLink.ts | 27 +- .../src/generated/ArkFormLinkInterfaces.ts | 23 +- .../src/generated/ArkFrameNodeMaterialized.ts | 29 +- .../ArkFrictionMotionMaterialized.ts | 25 +- .../ArkFullScreenExitHandlerMaterialized.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkGauge.ts | 29 +- .../arkui/src/generated/ArkGaugeInterfaces.ts | 25 +- .../generated/ArkGestureEventMaterialized.ts | 19 +- .../ArkGestureModifierMaterialized.ts | 11 +- .../ArkGestureRecognizerMaterialized.ts | 25 +- .../generated/ArkGestureStyleMaterialized.ts | 25 +- ...eOhosArkuiComponentSnapshotMaterialized.ts | 25 +- ...OhosArkuiPerformanceMonitorMaterialized.ts | 25 +- ...ts => ArkGlobalScopecommonMaterialized.ts} | 87 +- ...=> ArkGlobalScopeinspectorMaterialized.ts} | 40 +- arkoala-arkts/arkui/src/generated/ArkGrid.ts | 34 +- .../arkui/src/generated/ArkGridCol.ts | 27 +- .../src/generated/ArkGridColInterfaces.ts | 23 +- .../arkui/src/generated/ArkGridContainer.ts | 24 +- .../generated/ArkGridContainerInterfaces.ts | 22 + .../arkui/src/generated/ArkGridInterfaces.ts | 26 +- .../arkui/src/generated/ArkGridItem.ts | 28 +- .../src/generated/ArkGridItemInterfaces.ts | 24 +- .../arkui/src/generated/ArkGridRow.ts | 29 +- .../src/generated/ArkGridRowInterfaces.ts | 26 +- ...ArkHierarchicalSymbolEffectMaterialized.ts | 25 +- .../generated/ArkHoverEventMaterialized.ts | 12 +- .../ArkHttpAuthHandlerMaterialized.ts | 25 +- .../arkui/src/generated/ArkHyperlink.ts | 27 +- .../src/generated/ArkHyperlinkInterfaces.ts | 23 +- .../src/generated/ArkICurveMaterialized.ts | 11 +- arkoala-arkts/arkui/src/generated/ArkImage.ts | 33 +- .../ArkImageAnalyzerControllerMaterialized.ts | 25 +- .../arkui/src/generated/ArkImageAnimator.ts | 29 +- .../generated/ArkImageAnimatorInterfaces.ts | 23 +- .../ArkImageAttachmentMaterialized.ts | 27 +- .../generated/ArkImageBitmapMaterialized.ts | 27 +- .../src/generated/ArkImageDataMaterialized.ts | 25 +- .../arkui/src/generated/ArkImageInterfaces.ts | 23 +- .../arkui/src/generated/ArkImageSpan.ts | 32 +- .../src/generated/ArkImageSpanInterfaces.ts | 26 +- ...ndicatorComponentControllerMaterialized.ts | 25 +- .../src/generated/ArkIndicatorcomponent.ts | 28 +- .../ArkIndicatorcomponentInterfaces.ts | 24 +- .../ArkIsolatedComponentInterfaces.ts | 23 +- .../generated/ArkJsGeolocationMaterialized.ts | 25 +- .../src/generated/ArkJsResultMaterialized.ts | 25 +- .../src/generated/ArkKeyEventMaterialized.ts | 11 +- .../generated/ArkLayoutManagerMaterialized.ts | 15 +- .../ArkLazyForEachOpsMaterialized.ts | 25 +- .../generated/ArkLengthMetricsMaterialized.ts | 25 +- .../ArkLetterSpacingStyleMaterialized.ts | 27 +- arkoala-arkts/arkui/src/generated/ArkLine.ts | 28 +- .../ArkLineHeightStyleMaterialized.ts | 27 +- .../arkui/src/generated/ArkLineInterfaces.ts | 24 +- .../ArkLinearGradientMaterialized.ts | 27 +- ...rkLinearIndicatorControllerMaterialized.ts | 25 +- .../arkui/src/generated/ArkLinearindicator.ts | 27 +- .../generated/ArkLinearindicatorInterfaces.ts | 23 +- arkoala-arkts/arkui/src/generated/ArkList.ts | 34 +- .../arkui/src/generated/ArkListInterfaces.ts | 26 +- .../arkui/src/generated/ArkListItem.ts | 32 +- .../arkui/src/generated/ArkListItemGroup.ts | 27 +- .../generated/ArkListItemGroupInterfaces.ts | 23 +- .../src/generated/ArkListItemInterfaces.ts | 25 +- .../generated/ArkListScrollerMaterialized.ts | 35 +- .../arkui/src/generated/ArkLoadingProgress.ts | 28 +- .../generated/ArkLoadingProgressInterfaces.ts | 24 +- .../arkui/src/generated/ArkLocationButton.ts | 13 +- .../generated/ArkLocationButtonInterfaces.ts | 5 +- .../ArkLongPressGestureEventMaterialized.ts | 14 +- .../arkui/src/generated/ArkMarquee.ts | 29 +- .../src/generated/ArkMarqueeInterfaces.ts | 25 +- .../src/generated/ArkMatrix2DMaterialized.ts | 29 +- .../generated/ArkMeasurableMaterialized.ts | 37 +- .../src/generated/ArkMediaCachedImage.ts | 27 +- .../ArkMediaCachedImageInterfaces.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkMenu.ts | 28 +- .../arkui/src/generated/ArkMenuInterfaces.ts | 24 +- .../arkui/src/generated/ArkMenuItem.ts | 29 +- .../arkui/src/generated/ArkMenuItemGroup.ts | 27 +- .../generated/ArkMenuItemGroupInterfaces.ts | 24 +- .../src/generated/ArkMenuItemInterfaces.ts | 25 +- .../generated/ArkMouseEventMaterialized.ts | 12 +- .../ArkMutableStyledStringMaterialized.ts | 29 +- .../arkui/src/generated/ArkNavDestination.ts | 33 +- .../ArkNavDestinationContextMaterialized.ts | 11 +- .../generated/ArkNavDestinationInterfaces.ts | 24 +- .../generated/ArkNavExtenderMaterialized.ts | 25 +- .../generated/ArkNavPathInfoMaterialized.ts | 25 +- .../generated/ArkNavPathStackMaterialized.ts | 57 +- .../arkui/src/generated/ArkNavRouter.ts | 32 +- .../src/generated/ArkNavRouterInterfaces.ts | 24 +- ...rkNavigationTransitionProxyMaterialized.ts | 11 +- .../arkui/src/generated/ArkNavigator.ts | 32 +- .../src/generated/ArkNavigatorInterfaces.ts | 24 +- .../arkui/src/generated/ArkNodeContainer.ts | 27 +- .../generated/ArkNodeContainerInterfaces.ts | 23 +- .../ArkOffscreenCanvasMaterialized.ts | 125 + ...eenCanvasRenderingContext2DMaterialized.ts | 106 + .../ArkPanGestureEventMaterialized.ts | 14 +- .../ArkPanGestureOptionsMaterialized.ts | 25 +- .../generated/ArkPanRecognizerMaterialized.ts | 28 +- arkoala-arkts/arkui/src/generated/ArkPanel.ts | 29 +- .../arkui/src/generated/ArkPanelInterfaces.ts | 25 +- .../ArkParagraphStyleMaterialized.ts | 25 +- .../arkui/src/generated/ArkPasteButton.ts | 13 +- .../src/generated/ArkPasteButtonInterfaces.ts | 5 +- arkoala-arkts/arkui/src/generated/ArkPath.ts | 27 +- .../src/generated/ArkPath2DMaterialized.ts | 25 +- .../arkui/src/generated/ArkPathInterfaces.ts | 23 +- .../arkui/src/generated/ArkPatternLock.ts | 29 +- .../ArkPatternLockControllerMaterialized.ts | 25 +- .../src/generated/ArkPatternLockInterfaces.ts | 24 +- .../ArkPermissionRequestMaterialized.ts | 25 +- .../ArkPinchGestureEventMaterialized.ts | 14 +- .../src/generated/ArkPixelMapMaterialized.ts | 49 +- .../generated/ArkPixelMapMockMaterialized.ts | 11 +- .../arkui/src/generated/ArkPluginComponent.ts | 28 +- .../generated/ArkPluginComponentInterfaces.ts | 24 +- .../arkui/src/generated/ArkPolygon.ts | 27 +- .../src/generated/ArkPolygonInterfaces.ts | 23 +- .../arkui/src/generated/ArkPolyline.ts | 27 +- .../src/generated/ArkPolylineInterfaces.ts | 23 +- .../src/generated/ArkProfilerNamespace.ts | 55 + .../arkui/src/generated/ArkProgress.ts | 28 +- .../src/generated/ArkProgressInterfaces.ts | 23 +- .../generated/ArkProgressMaskMaterialized.ts | 37 +- .../arkui/src/generated/ArkQrcode.ts | 27 +- .../src/generated/ArkQrcodeInterfaces.ts | 23 +- arkoala-arkts/arkui/src/generated/ArkRadio.ts | 28 +- .../arkui/src/generated/ArkRadioInterfaces.ts | 25 +- .../arkui/src/generated/ArkRating.ts | 28 +- .../src/generated/ArkRatingInterfaces.ts | 24 +- arkoala-arkts/arkui/src/generated/ArkRect.ts | 27 +- .../arkui/src/generated/ArkRectInterfaces.ts | 23 +- .../arkui/src/generated/ArkRefresh.ts | 28 +- .../src/generated/ArkRefreshInterfaces.ts | 25 +- .../src/generated/ArkRelativeContainer.ts | 31 +- .../ArkRelativeContainerInterfaces.ts | 25 +- .../arkui/src/generated/ArkRemoteWindow.ts | 27 +- .../generated/ArkRemoteWindowInterfaces.ts | 23 +- ...ArkRenderingContextSettingsMaterialized.ts | 25 +- .../ArkReplaceSymbolEffectMaterialized.ts | 25 +- .../arkui/src/generated/ArkRichEditor.ts | 34 +- ...ArkRichEditorBaseControllerMaterialized.ts | 32 +- .../ArkRichEditorControllerMaterialized.ts | 41 +- .../src/generated/ArkRichEditorInterfaces.ts | 23 +- ...ditorStyledStringControllerMaterialized.ts | 35 +- .../arkui/src/generated/ArkRichText.ts | 26 +- .../src/generated/ArkRichTextInterfaces.ts | 24 +- .../arkui/src/generated/ArkRootScene.ts | 27 +- .../src/generated/ArkRootSceneInterfaces.ts | 23 +- .../ArkRotationGestureEventMaterialized.ts | 14 +- arkoala-arkts/arkui/src/generated/ArkRow.ts | 28 +- .../arkui/src/generated/ArkRowInterfaces.ts | 24 +- .../arkui/src/generated/ArkRowSplit.ts | 25 +- .../src/generated/ArkRowSplitInterfaces.ts | 23 +- .../arkui/src/generated/ArkSaveButton.ts | 13 +- .../src/generated/ArkSaveButtonInterfaces.ts | 5 +- .../ArkScaleSymbolEffectMaterialized.ts | 25 +- .../arkui/src/generated/ArkScreen.ts | 25 +- .../ArkScreenCaptureHandlerMaterialized.ts | 25 +- .../src/generated/ArkScreenInterfaces.ts | 23 +- .../arkui/src/generated/ArkScroll.ts | 29 +- .../arkui/src/generated/ArkScrollBar.ts | 27 +- .../src/generated/ArkScrollBarInterfaces.ts | 24 +- .../src/generated/ArkScrollInterfaces.ts | 24 +- .../generated/ArkScrollMotionMaterialized.ts | 25 +- .../ArkScrollableTargetInfoMaterialized.ts | 25 +- .../src/generated/ArkScrollerMaterialized.ts | 33 +- .../arkui/src/generated/ArkSearch.ts | 35 +- .../ArkSearchControllerMaterialized.ts | 27 +- .../src/generated/ArkSearchInterfaces.ts | 27 +- .../src/generated/ArkSecurityComponent.ts | 2 +- .../arkui/src/generated/ArkSelect.ts | 29 +- .../src/generated/ArkSelectInterfaces.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkShape.ts | 31 +- .../arkui/src/generated/ArkShapeInterfaces.ts | 23 +- .../arkui/src/generated/ArkSidebar.ts | 41 +- .../src/generated/ArkSidebarInterfaces.ts | 23 +- .../arkui/src/generated/ArkSlider.ts | 29 +- .../src/generated/ArkSliderInterfaces.ts | 26 +- arkoala-arkts/arkui/src/generated/ArkSpan.ts | 27 +- .../arkui/src/generated/ArkSpanInterfaces.ts | 23 +- .../generated/ArkSpringMotionMaterialized.ts | 25 +- .../generated/ArkSpringPropMaterialized.ts | 25 +- .../ArkSslErrorHandlerMaterialized.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkStack.ts | 28 +- .../arkui/src/generated/ArkStackInterfaces.ts | 24 +- .../src/generated/ArkStaticComponents.ts | 2 +- .../arkui/src/generated/ArkStepper.ts | 26 +- .../src/generated/ArkStepperInterfaces.ts | 24 +- .../arkui/src/generated/ArkStepperItem.ts | 27 +- .../src/generated/ArkStepperItemInterfaces.ts | 23 +- .../ArkStyledStringControllerMaterialized.ts | 11 +- .../generated/ArkStyledStringMaterialized.ts | 27 +- .../generated/ArkSubmitEventMaterialized.ts | 11 +- .../ArkSwipeGestureEventMaterialized.ts | 14 +- .../arkui/src/generated/ArkSwiper.ts | 34 +- ...wiperContentTransitionProxyMaterialized.ts | 11 +- .../ArkSwiperControllerMaterialized.ts | 25 +- .../src/generated/ArkSwiperInterfaces.ts | 26 +- .../arkui/src/generated/ArkSymbolSpan.ts | 29 +- .../src/generated/ArkSymbolSpanInterfaces.ts | 25 +- .../arkui/src/generated/ArkSymbolglyph.ts | 32 +- .../src/generated/ArkSymbolglyphInterfaces.ts | 24 +- .../src/generated/ArkSystemOpsMaterialized.ts | 67 + .../arkui/src/generated/ArkTabContent.ts | 31 +- .../src/generated/ArkTabContentInterfaces.ts | 23 +- ...rkTabContentTransitionProxyMaterialized.ts | 11 +- arkoala-arkts/arkui/src/generated/ArkTabs.ts | 38 +- .../ArkTabsControllerMaterialized.ts | 25 +- .../arkui/src/generated/ArkTabsInterfaces.ts | 26 +- .../ArkTapGestureEventMaterialized.ts | 14 +- arkoala-arkts/arkui/src/generated/ArkText.ts | 38 +- .../arkui/src/generated/ArkTextArea.ts | 36 +- .../ArkTextAreaControllerMaterialized.ts | 27 +- .../src/generated/ArkTextAreaInterfaces.ts | 28 +- .../ArkTextBaseControllerMaterialized.ts | 11 +- .../arkui/src/generated/ArkTextClock.ts | 30 +- .../ArkTextClockControllerMaterialized.ts | 25 +- .../src/generated/ArkTextClockInterfaces.ts | 26 +- ...rkTextContentControllerBaseMaterialized.ts | 29 +- .../ArkTextControllerMaterialized.ts | 25 +- .../ArkTextEditControllerExMaterialized.ts | 15 +- .../arkui/src/generated/ArkTextInput.ts | 35 +- .../ArkTextInputControllerMaterialized.ts | 27 +- .../src/generated/ArkTextInputInterfaces.ts | 25 +- .../arkui/src/generated/ArkTextInterfaces.ts | 24 +- .../ArkTextMenuItemIdMaterialized.ts | 29 +- .../arkui/src/generated/ArkTextPicker.ts | 29 +- .../ArkTextPickerDialogMaterialized.ts | 25 +- .../src/generated/ArkTextPickerInterfaces.ts | 24 +- .../ArkTextShadowStyleMaterialized.ts | 32 +- .../ArkTextStyleStyledStringMaterialized.ts | 25 +- .../arkui/src/generated/ArkTextTimer.ts | 30 +- .../ArkTextTimerControllerMaterialized.ts | 25 +- .../src/generated/ArkTextTimerInterfaces.ts | 26 +- .../arkui/src/generated/ArkTimePicker.ts | 28 +- .../ArkTimePickerDialogMaterialized.ts | 25 +- .../src/generated/ArkTimePickerInterfaces.ts | 25 +- .../arkui/src/generated/ArkToggle.ts | 29 +- .../src/generated/ArkToggleInterfaces.ts | 24 +- .../generated/ArkTouchEventMaterialized.ts | 27 +- .../ArkTransitionEffectMaterialized.ts | 25 +- .../generated/ArkUICommonEventMaterialized.ts | 11 +- .../ArkUIExtensionProxyMaterialized.ts | 11 +- .../src/generated/ArkUiExtensionComponent.ts | 28 +- .../ArkUiExtensionComponentInterfaces.ts | 24 +- .../generated/ArkUnifiedDataMaterialized.ts | 25 +- .../arkui/src/generated/ArkUnitsInterfaces.ts | 10 +- .../src/generated/ArkUrlStyleMaterialized.ts | 27 +- arkoala-arkts/arkui/src/generated/ArkVideo.ts | 30 +- .../ArkVideoControllerMaterialized.ts | 29 +- .../arkui/src/generated/ArkVideoInterfaces.ts | 24 +- .../src/generated/ArkViewMaterialized.ts | 25 +- .../arkui/src/generated/ArkWaterFlow.ts | 34 +- .../src/generated/ArkWaterFlowInterfaces.ts | 26 +- .../ArkWaterFlowSectionsMaterialized.ts | 25 +- arkoala-arkts/arkui/src/generated/ArkWeb.ts | 34 +- .../ArkWebContextMenuParamMaterialized.ts | 25 +- .../ArkWebContextMenuResultMaterialized.ts | 25 +- .../generated/ArkWebControllerMaterialized.ts | 29 +- .../src/generated/ArkWebCookieMaterialized.ts | 25 +- .../arkui/src/generated/ArkWebInterfaces.ts | 22 +- .../ArkWebKeyboardControllerMaterialized.ts | 25 +- .../ArkWebResourceErrorMaterialized.ts | 25 +- .../ArkWebResourceRequestMaterialized.ts | 25 +- .../ArkWebResourceResponseMaterialized.ts | 29 +- .../ArkWebviewControllerMaterialized.ts | 29 +- .../arkui/src/generated/ArkWindowScene.ts | 26 +- .../src/generated/ArkWindowSceneInterfaces.ts | 24 +- .../ArkXComponentControllerMaterialized.ts | 29 +- .../arkui/src/generated/ArkXcomponent.ts | 35 +- .../src/generated/ArkXcomponentInterfaces.ts | 26 +- .../arkui/src/generated/GlobalScope.ts | 52 +- .../src/generated/SyntheticDeclarations.ts | 3 - .../arkts/ArkUIGeneratedNativeModule.ts | 117 +- .../src/generated/arkts/ArkUINativeModule.ts | 2 +- .../src/generated/arkts/TestNativeModule.ts | 2 +- .../arkui/src/generated/arkts/type_check.ts | 55 +- arkoala-arkts/arkui/src/generated/index.ts | 14 +- .../peers/ArkAbilityComponentPeer.ts | 33 +- .../generated/peers/ArkAlphabetIndexerPeer.ts | 92 +- .../src/generated/peers/ArkAnimatorPeer.ts | 34 +- .../arkui/src/generated/peers/ArkBadgePeer.ts | 32 +- .../arkui/src/generated/peers/ArkBlankPeer.ts | 43 +- .../src/generated/peers/ArkButtonPeer.ts | 51 +- .../src/generated/peers/ArkCalendarPeer.ts | 7 +- .../generated/peers/ArkCalendarPickerPeer.ts | 34 +- .../src/generated/peers/ArkCanvasPeer.ts | 33 +- .../src/generated/peers/ArkCheckboxPeer.ts | 46 +- .../generated/peers/ArkCheckboxgroupPeer.ts | 46 +- .../src/generated/peers/ArkCirclePeer.ts | 32 +- .../src/generated/peers/ArkColumnPeer.ts | 33 +- .../src/generated/peers/ArkColumnSplitPeer.ts | 32 +- .../src/generated/peers/ArkCommonPeer.ts | 267 +- .../src/generated/peers/ArkComponent3dPeer.ts | 48 +- .../generated/peers/ArkContainerSpanPeer.ts | 7 +- .../src/generated/peers/ArkCounterPeer.ts | 31 +- .../src/generated/peers/ArkDataPanelPeer.ts | 49 +- .../src/generated/peers/ArkDatePickerPeer.ts | 33 +- .../src/generated/peers/ArkDividerPeer.ts | 43 +- .../generated/peers/ArkEffectComponentPeer.ts | 30 +- .../src/generated/peers/ArkEllipsePeer.ts | 32 +- .../peers/ArkEmbeddedComponentPeer.ts | 34 +- .../arkui/src/generated/peers/ArkFlexPeer.ts | 32 +- .../src/generated/peers/ArkFlowItemPeer.ts | 30 +- .../src/generated/peers/ArkFolderStackPeer.ts | 33 +- .../generated/peers/ArkFormComponentPeer.ts | 35 +- .../src/generated/peers/ArkFormLinkPeer.ts | 32 +- .../arkui/src/generated/peers/ArkGaugePeer.ts | 52 +- .../src/generated/peers/ArkGridColPeer.ts | 44 +- .../generated/peers/ArkGridContainerPeer.ts | 29 +- .../src/generated/peers/ArkGridItemPeer.ts | 33 +- .../arkui/src/generated/peers/ArkGridPeer.ts | 47 +- .../src/generated/peers/ArkGridRowPeer.ts | 34 +- .../src/generated/peers/ArkHyperlinkPeer.ts | 46 +- .../generated/peers/ArkImageAnimatorPeer.ts | 34 +- .../arkui/src/generated/peers/ArkImagePeer.ts | 60 +- .../src/generated/peers/ArkImageSpanPeer.ts | 44 +- .../peers/ArkIndicatorcomponentPeer.ts | 33 +- .../arkui/src/generated/peers/ArkLinePeer.ts | 32 +- .../generated/peers/ArkLinearindicatorPeer.ts | 32 +- .../generated/peers/ArkListItemGroupPeer.ts | 32 +- .../src/generated/peers/ArkListItemPeer.ts | 37 +- .../arkui/src/generated/peers/ArkListPeer.ts | 43 +- .../generated/peers/ArkLoadingProgressPeer.ts | 39 +- .../generated/peers/ArkLocationButtonPeer.ts | 14 +- .../src/generated/peers/ArkMarqueePeer.ts | 48 +- .../peers/ArkMediaCachedImagePeer.ts | 39 +- .../generated/peers/ArkMenuItemGroupPeer.ts | 32 +- .../src/generated/peers/ArkMenuItemPeer.ts | 58 +- .../arkui/src/generated/peers/ArkMenuPeer.ts | 39 +- .../generated/peers/ArkNavDestinationPeer.ts | 52 +- .../src/generated/peers/ArkNavRouterPeer.ts | 33 +- .../src/generated/peers/ArkNavigatorPeer.ts | 33 +- .../generated/peers/ArkNodeContainerPeer.ts | 32 +- .../arkui/src/generated/peers/ArkPanelPeer.ts | 52 +- .../src/generated/peers/ArkPasteButtonPeer.ts | 14 +- .../arkui/src/generated/peers/ArkPathPeer.ts | 32 +- .../src/generated/peers/ArkPatternLockPeer.ts | 68 +- .../generated/peers/ArkPluginComponentPeer.ts | 33 +- .../src/generated/peers/ArkPolygonPeer.ts | 32 +- .../src/generated/peers/ArkPolylinePeer.ts | 32 +- .../src/generated/peers/ArkProgressPeer.ts | 43 +- .../src/generated/peers/ArkQrcodePeer.ts | 49 +- .../arkui/src/generated/peers/ArkRadioPeer.ts | 33 +- .../src/generated/peers/ArkRatingPeer.ts | 33 +- .../arkui/src/generated/peers/ArkRectPeer.ts | 50 +- .../src/generated/peers/ArkRefreshPeer.ts | 33 +- .../peers/ArkRelativeContainerPeer.ts | 32 +- .../generated/peers/ArkRemoteWindowPeer.ts | 32 +- .../src/generated/peers/ArkRichEditorPeer.ts | 52 +- .../src/generated/peers/ArkRichTextPeer.ts | 31 +- .../src/generated/peers/ArkRootScenePeer.ts | 32 +- .../arkui/src/generated/peers/ArkRowPeer.ts | 33 +- .../src/generated/peers/ArkRowSplitPeer.ts | 30 +- .../src/generated/peers/ArkSaveButtonPeer.ts | 14 +- .../src/generated/peers/ArkScreenPeer.ts | 30 +- .../src/generated/peers/ArkScrollBarPeer.ts | 32 +- .../src/generated/peers/ArkScrollPeer.ts | 46 +- .../src/generated/peers/ArkSearchPeer.ts | 82 +- .../peers/ArkSecurityComponentPeer.ts | 39 +- .../src/generated/peers/ArkSelectPeer.ts | 78 +- .../arkui/src/generated/peers/ArkShapePeer.ts | 68 +- .../src/generated/peers/ArkSidebarPeer.ts | 35 +- .../src/generated/peers/ArkSliderPeer.ts | 72 +- .../arkui/src/generated/peers/ArkSpanPeer.ts | 60 +- .../arkui/src/generated/peers/ArkStackPeer.ts | 33 +- .../peers/ArkStaticComponentsPeer.ts | 7 +- .../src/generated/peers/ArkStepperItemPeer.ts | 32 +- .../src/generated/peers/ArkStepperPeer.ts | 31 +- .../src/generated/peers/ArkSwiperPeer.ts | 58 +- .../src/generated/peers/ArkSymbolSpanPeer.ts | 50 +- .../src/generated/peers/ArkSymbolglyphPeer.ts | 49 +- .../src/generated/peers/ArkTabContentPeer.ts | 36 +- .../arkui/src/generated/peers/ArkTabsPeer.ts | 40 +- .../src/generated/peers/ArkTextAreaPeer.ts | 97 +- .../src/generated/peers/ArkTextClockPeer.ts | 50 +- .../src/generated/peers/ArkTextInputPeer.ts | 108 +- .../arkui/src/generated/peers/ArkTextPeer.ts | 109 +- .../src/generated/peers/ArkTextPickerPeer.ts | 41 +- .../src/generated/peers/ArkTextTimerPeer.ts | 48 +- .../src/generated/peers/ArkTimePickerPeer.ts | 33 +- .../src/generated/peers/ArkTogglePeer.ts | 46 +- .../peers/ArkUiExtensionComponentPeer.ts | 33 +- .../arkui/src/generated/peers/ArkVideoPeer.ts | 35 +- .../src/generated/peers/ArkWaterFlowPeer.ts | 39 +- .../arkui/src/generated/peers/ArkWebPeer.ts | 35 +- .../src/generated/peers/ArkWindowScenePeer.ts | 31 +- .../src/generated/peers/ArkXcomponentPeer.ts | 34 +- .../generated/peers/CallbackTransformer.ts | 2 +- .../arkui/src/generated/peers/Deserializer.ts | 5589 ++++++++------- .../arkui/src/generated/peers/Serializer.ts | 2417 ++++--- .../src/generated/shared/generated-utils.ts | 3 - .../arkui/src/generated/ts/type_check.ts | 2327 +++--- .../src/handwritten/ArkPageTransition.ts | 2 +- .../arkui/src/peers/ArkNavigationPeer.ts | 4 +- .../arkui/src/peers/ArkTestComponentPeer.ts | 5 +- arkoala-arkts/arkui/types/index-full.d.ts | 46 +- arkoala/arkui-types/index-full.d.ts | 48 +- .../arkui/src/ArkArkui-customInterfaces.ts | 6 +- .../arkui/src/ArkArkui-externalInterfaces.ts | 3 - arkoala/arkui/src/ArkComponentRoot.ts | 4 +- arkoala/arkui/src/ArkGesture.ts | 2 +- arkoala/arkui/src/ArkNavigation.ts | 10 +- arkoala/arkui/src/ArkState.ts | 1 - arkoala/arkui/src/ArkStructCommon.ts | 2 +- arkoala/arkui/src/CanvasPattern.ts | 2 +- arkoala/arkui/src/ComponentBase.ts | 4 +- arkoala/arkui/src/EnumsImpl.ts | 0 arkoala/arkui/src/LazyForEach.ts | 2 +- arkoala/arkui/src/NativeModuleRecorder.ts | 7 +- arkoala/arkui/src/StyledStringController.ts | 4 +- .../{ => generated}/ArkAbilityComponent.ts | 7 +- .../ArkAbilityComponentInterfaces.ts | 2 +- .../ArkAccessibilityHoverEventMaterialized.ts | 11 +- .../ArkActionSheetInterfaces.ts | 0 .../ArkActionSheetMaterialized.ts | 24 +- .../ArkAlertDialogInterfaces.ts | 0 .../ArkAlertDialogMaterialized.ts | 30 +- .../src/{ => generated}/ArkAlphabetIndexer.ts | 7 +- .../ArkAlphabetIndexerInterfaces.ts | 2 +- .../ArkAnimationExtenderInterfaces.ts | 0 .../ArkAnimationExtenderMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkAnimator.ts | 7 +- .../{ => generated}/ArkAnimatorInterfaces.ts | 2 +- .../ArkAppearSymbolEffectMaterialized.ts | 24 +- .../ArkArkuiCustomInterfaces.ts | 0 .../ArkArkuiExternalInterfaces.ts | 0 .../ArkBackgroundColorStyleMaterialized.ts | 26 +- arkoala/arkui/src/{ => generated}/ArkBadge.ts | 11 +- .../src/{ => generated}/ArkBadgeInterfaces.ts | 2 +- .../ArkBaseEventMaterialized.ts | 11 +- .../ArkBaseGestureEventMaterialized.ts | 18 +- .../ArkBaselineOffsetStyleMaterialized.ts | 26 +- arkoala/arkui/src/{ => generated}/ArkBlank.ts | 7 +- .../src/{ => generated}/ArkBlankInterfaces.ts | 2 +- .../ArkBottomTabBarStyleBuilder.ts | 0 .../ArkBounceSymbolEffectMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkButton.ts | 13 +- .../{ => generated}/ArkButtonInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkCalendar.ts | 5 +- .../ArkCalendarControllerMaterialized.ts | 24 +- .../{ => generated}/ArkCalendarInterfaces.ts | 0 .../src/{ => generated}/ArkCalendarPicker.ts | 7 +- .../ArkCalendarPickerDialogMaterialized.ts | 24 +- .../ArkCalendarPickerInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkCanvas.ts | 11 +- .../ArkCanvasGradientMaterialized.ts | 24 +- .../{ => generated}/ArkCanvasInterfaces.ts | 2 +- .../ArkCanvasPathMaterialized.ts | 24 +- .../ArkCanvasPatternMaterialized.ts | 10 +- .../ArkCanvasRendererMaterialized.ts | 106 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkCheckbox.ts | 7 +- .../{ => generated}/ArkCheckboxInterfaces.ts | 2 +- .../src/{ => generated}/ArkCheckboxgroup.ts | 7 +- .../ArkCheckboxgroupInterfaces.ts | 2 +- .../ArkChildrenMainSizeMaterialized.ts | 26 +- .../arkui/src/{ => generated}/ArkCircle.ts | 7 +- .../{ => generated}/ArkCircleInterfaces.ts | 2 +- .../ArkClickEventMaterialized.ts | 11 +- ...ClientAuthenticationHandlerMaterialized.ts | 28 +- .../ArkColorFilterMaterialized.ts | 26 +- .../arkui/src/{ => generated}/ArkColumn.ts | 7 +- .../{ => generated}/ArkColumnInterfaces.ts | 2 +- .../src/{ => generated}/ArkColumnSplit.ts | 7 +- .../ArkColumnSplitInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkCommon.ts | 67 +- .../{ => generated}/ArkCommonInterfaces.ts | 2 +- .../ArkCommonTsEtsApiInterfaces.ts | 0 .../src/{ => generated}/ArkComponent3d.ts | 7 +- .../ArkComponent3dInterfaces.ts | 2 +- .../ArkConsoleMessageMaterialized.ts | 24 +- .../src/{ => generated}/ArkContainerSpan.ts | 7 +- .../ArkContainerSpanInterfaces.ts | 2 +- .../ArkContentSlotInterfaces.ts | 0 .../ArkContextMenuMaterialized.ts | 24 +- .../ArkControllerHandlerMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkCounter.ts | 7 +- .../{ => generated}/ArkCounterInterfaces.ts | 2 +- .../generated/ArkCursorControlNamespace.ts | 53 + .../ArkCustomDialogControllerInterfaces.ts | 0 .../ArkCustomDialogControllerMaterialized.ts | 26 +- .../ArkCustomSpanMaterialized.ts | 26 +- .../arkui/src/{ => generated}/ArkDataPanel.ts | 7 +- .../{ => generated}/ArkDataPanelInterfaces.ts | 2 +- .../ArkDataResubmissionHandlerMaterialized.ts | 24 +- .../src/{ => generated}/ArkDatePicker.ts | 7 +- .../ArkDatePickerDialogMaterialized.ts | 24 +- .../ArkDatePickerInterfaces.ts | 2 +- .../ArkDecorationStyleMaterialized.ts | 26 +- .../ArkDigitIndicatorBuilder.ts | 0 .../ArkDisappearSymbolEffectMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkDivider.ts | 7 +- .../{ => generated}/ArkDividerInterfaces.ts | 2 +- .../{ => generated}/ArkDotIndicatorBuilder.ts | 0 .../ArkDragEventMaterialized.ts | 15 +- .../ArkDrawModifierMaterialized.ts | 24 +- .../ArkDrawingCanvasMaterialized.ts | 26 +- .../ArkDrawingRenderingContextMaterialized.ts | 24 +- .../ArkDynamicNodeMaterialized.ts | 24 +- .../ArkEditMenuOptionsMaterialized.ts | 10 +- .../src/{ => generated}/ArkEffectComponent.ts | 7 +- .../ArkEffectComponentInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkEllipse.ts | 7 +- .../{ => generated}/ArkEllipseInterfaces.ts | 2 +- .../{ => generated}/ArkEmbeddedComponent.ts | 7 +- .../ArkEmbeddedComponentInterfaces.ts | 2 +- .../src/{ => generated}/ArkEnumsInterfaces.ts | 0 .../ArkEventEmulatorMaterialized.ts | 24 +- .../ArkEventResultMaterialized.ts | 24 +- .../ArkEventTargetInfoMaterialized.ts | 24 +- .../ArkFileSelectorParamMaterialized.ts | 24 +- .../ArkFileSelectorResultMaterialized.ts | 24 +- arkoala/arkui/src/{ => generated}/ArkFlex.ts | 7 +- .../src/{ => generated}/ArkFlexInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkFlowItem.ts | 7 +- .../{ => generated}/ArkFlowItemInterfaces.ts | 2 +- .../src/generated/ArkFocusControlNamespace.ts | 42 + .../src/{ => generated}/ArkFocusInterfaces.ts | 0 .../src/{ => generated}/ArkFolderStack.ts | 7 +- .../ArkFolderStackInterfaces.ts | 2 +- .../src/{ => generated}/ArkFormComponent.ts | 7 +- .../ArkFormComponentInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkFormLink.ts | 7 +- .../{ => generated}/ArkFormLinkInterfaces.ts | 2 +- .../ArkFrameNodeMaterialized.ts | 28 +- .../ArkFrictionMotionMaterialized.ts | 24 +- .../ArkFullScreenExitHandlerMaterialized.ts | 24 +- arkoala/arkui/src/{ => generated}/ArkGauge.ts | 7 +- .../src/{ => generated}/ArkGaugeInterfaces.ts | 2 +- .../ArkGestureControlNamespace.ts | 0 .../ArkGestureEventMaterialized.ts | 18 +- .../{ => generated}/ArkGestureInterfaces.ts | 0 .../ArkGestureModifierMaterialized.ts | 10 +- .../ArkGestureRecognizerMaterialized.ts | 24 +- .../ArkGestureStyleMaterialized.ts | 25 +- ...eOhosArkuiComponentSnapshotMaterialized.ts | 24 +- ...OhosArkuiPerformanceMonitorMaterialized.ts | 24 +- .../ArkGlobalScopecommonMaterialized.ts} | 86 +- .../ArkGlobalScopeinspectorMaterialized.ts} | 38 +- arkoala/arkui/src/{ => generated}/ArkGrid.ts | 11 +- .../arkui/src/{ => generated}/ArkGridCol.ts | 7 +- .../{ => generated}/ArkGridColInterfaces.ts | 2 +- .../src/{ => generated}/ArkGridContainer.ts | 7 +- .../ArkGridContainerInterfaces.ts | 2 +- .../src/{ => generated}/ArkGridInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkGridItem.ts | 7 +- .../{ => generated}/ArkGridItemInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkGridRow.ts | 7 +- .../{ => generated}/ArkGridRowInterfaces.ts | 2 +- ...ArkHierarchicalSymbolEffectMaterialized.ts | 24 +- .../ArkHoverEventMaterialized.ts | 11 +- .../ArkHttpAuthHandlerMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkHyperlink.ts | 7 +- .../{ => generated}/ArkHyperlinkInterfaces.ts | 2 +- .../{ => generated}/ArkICurveMaterialized.ts | 10 +- arkoala/arkui/src/{ => generated}/ArkImage.ts | 13 +- .../ArkImageAnalyzerControllerMaterialized.ts | 24 +- .../src/{ => generated}/ArkImageAnimator.ts | 7 +- .../ArkImageAnimatorInterfaces.ts | 2 +- .../ArkImageAttachmentMaterialized.ts | 26 +- .../ArkImageBitmapMaterialized.ts | 26 +- .../ArkImageCommonInterfaces.ts | 0 .../ArkImageDataMaterialized.ts | 24 +- .../src/{ => generated}/ArkImageInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkImageSpan.ts | 7 +- .../{ => generated}/ArkImageSpanInterfaces.ts | 2 +- .../{ => generated}/ArkIndicatorBuilder.ts | 0 ...ndicatorComponentControllerMaterialized.ts | 24 +- .../{ => generated}/ArkIndicatorcomponent.ts | 7 +- .../ArkIndicatorcomponentInterfaces.ts | 2 +- .../ArkIsolatedComponentInterfaces.ts | 2 +- .../ArkJsGeolocationMaterialized.ts | 24 +- .../ArkJsResultMaterialized.ts | 24 +- .../ArkKeyEventMaterialized.ts | 10 +- .../ArkLayoutManagerMaterialized.ts | 14 +- .../ArkLazyForEachInterfaces.ts | 0 .../ArkLazyForEachOpsMaterialized.ts | 24 +- .../ArkLengthMetricsMaterialized.ts | 24 +- .../ArkLetterSpacingStyleMaterialized.ts | 26 +- arkoala/arkui/src/{ => generated}/ArkLine.ts | 7 +- .../ArkLineHeightStyleMaterialized.ts | 26 +- .../src/{ => generated}/ArkLineInterfaces.ts | 2 +- .../ArkLinearGradientMaterialized.ts | 26 +- ...rkLinearIndicatorControllerMaterialized.ts | 24 +- .../src/{ => generated}/ArkLinearindicator.ts | 7 +- .../ArkLinearindicatorInterfaces.ts | 2 +- arkoala/arkui/src/{ => generated}/ArkList.ts | 11 +- .../src/{ => generated}/ArkListInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkListItem.ts | 11 +- .../src/{ => generated}/ArkListItemGroup.ts | 7 +- .../ArkListItemGroupInterfaces.ts | 2 +- .../{ => generated}/ArkListItemInterfaces.ts | 2 +- .../ArkListScrollerMaterialized.ts | 28 +- .../src/{ => generated}/ArkLoadingProgress.ts | 7 +- .../ArkLoadingProgressInterfaces.ts | 2 +- .../src/{ => generated}/ArkLocationButton.ts | 9 +- .../ArkLocationButtonInterfaces.ts | 0 .../ArkLongPressGestureEventMaterialized.ts | 10 +- .../arkui/src/{ => generated}/ArkMarquee.ts | 7 +- .../{ => generated}/ArkMarqueeInterfaces.ts | 2 +- .../ArkMatrix2DMaterialized.ts | 28 +- .../ArkMeasurableMaterialized.ts | 37 +- .../{ => generated}/ArkMediaCachedImage.ts | 7 +- .../ArkMediaCachedImageInterfaces.ts | 2 +- arkoala/arkui/src/{ => generated}/ArkMenu.ts | 7 +- .../src/{ => generated}/ArkMenuInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkMenuItem.ts | 7 +- .../src/{ => generated}/ArkMenuItemGroup.ts | 7 +- .../ArkMenuItemGroupInterfaces.ts | 2 +- .../{ => generated}/ArkMenuItemInterfaces.ts | 2 +- .../ArkMouseEventMaterialized.ts | 11 +- .../ArkMutableStyledStringMaterialized.ts | 24 +- .../src/{ => generated}/ArkNavDestination.ts | 11 +- .../ArkNavDestinationContextMaterialized.ts | 10 +- .../ArkNavDestinationInterfaces.ts | 2 +- .../ArkNavExtenderMaterialized.ts | 24 +- .../ArkNavPathInfoMaterialized.ts | 24 +- .../ArkNavPathStackMaterialized.ts | 56 +- .../arkui/src/{ => generated}/ArkNavRouter.ts | 11 +- .../{ => generated}/ArkNavRouterInterfaces.ts | 2 +- .../ArkNavigationExtenderInterfaces.ts | 0 .../ArkNavigationInterfaces.ts | 2 +- ...rkNavigationTransitionProxyMaterialized.ts | 10 +- .../arkui/src/{ => generated}/ArkNavigator.ts | 11 +- .../{ => generated}/ArkNavigatorInterfaces.ts | 2 +- .../src/{ => generated}/ArkNodeContainer.ts | 7 +- .../ArkNodeContainerInterfaces.ts | 2 +- .../ArkOffscreenCanvasMaterialized.ts | 134 + ...eenCanvasRenderingContext2DMaterialized.ts | 106 + .../ArkPageTransitionInterfaces.ts | 0 .../ArkPanGestureEventMaterialized.ts | 10 +- .../ArkPanGestureOptionsMaterialized.ts | 24 +- .../ArkPanRecognizerMaterialized.ts | 24 +- arkoala/arkui/src/{ => generated}/ArkPanel.ts | 7 +- .../src/{ => generated}/ArkPanelInterfaces.ts | 2 +- .../ArkParagraphStyleMaterialized.ts | 24 +- .../{ => generated}/ArkParticleInterfaces.ts | 0 .../src/{ => generated}/ArkPasteButton.ts | 9 +- .../ArkPasteButtonInterfaces.ts | 0 arkoala/arkui/src/{ => generated}/ArkPath.ts | 7 +- .../{ => generated}/ArkPath2DMaterialized.ts | 24 +- .../src/{ => generated}/ArkPathInterfaces.ts | 2 +- .../src/{ => generated}/ArkPatternLock.ts | 7 +- .../ArkPatternLockControllerMaterialized.ts | 24 +- .../ArkPatternLockInterfaces.ts | 2 +- .../ArkPermissionRequestMaterialized.ts | 24 +- .../ArkPinchGestureEventMaterialized.ts | 10 +- .../ArkPixelMapMaterialized.ts | 48 +- .../ArkPixelMapMockMaterialized.ts | 10 +- .../src/{ => generated}/ArkPluginComponent.ts | 7 +- .../ArkPluginComponentInterfaces.ts | 2 +- .../src/{ => generated}/ArkPointInterfaces.ts | 0 .../arkui/src/{ => generated}/ArkPolygon.ts | 7 +- .../{ => generated}/ArkPolygonInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkPolyline.ts | 7 +- .../{ => generated}/ArkPolylineInterfaces.ts | 2 +- .../src/generated/ArkProfilerNamespace.ts | 55 + .../arkui/src/{ => generated}/ArkProgress.ts | 7 +- .../{ => generated}/ArkProgressInterfaces.ts | 2 +- .../ArkProgressMaskMaterialized.ts | 36 +- .../arkui/src/{ => generated}/ArkQrcode.ts | 7 +- .../{ => generated}/ArkQrcodeInterfaces.ts | 2 +- arkoala/arkui/src/{ => generated}/ArkRadio.ts | 7 +- .../src/{ => generated}/ArkRadioInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkRating.ts | 7 +- .../{ => generated}/ArkRatingInterfaces.ts | 2 +- .../ArkRawFileDescriptorInterfaces.ts | 0 arkoala/arkui/src/{ => generated}/ArkRect.ts | 7 +- .../src/{ => generated}/ArkRectInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkRefresh.ts | 7 +- .../{ => generated}/ArkRefreshInterfaces.ts | 2 +- .../{ => generated}/ArkRelativeContainer.ts | 11 +- .../ArkRelativeContainerInterfaces.ts | 2 +- .../src/{ => generated}/ArkRemoteWindow.ts | 7 +- .../ArkRemoteWindowInterfaces.ts | 2 +- ...ArkRenderingContextSettingsMaterialized.ts | 24 +- .../{ => generated}/ArkRepeatInterfaces.ts | 0 .../ArkReplaceSymbolEffectMaterialized.ts | 24 +- .../{ => generated}/ArkResourceInterfaces.ts | 0 .../src/{ => generated}/ArkRichEditor.ts | 11 +- ...ArkRichEditorBaseControllerMaterialized.ts | 28 +- .../ArkRichEditorControllerMaterialized.ts | 40 +- .../ArkRichEditorInterfaces.ts | 2 +- ...ditorStyledStringControllerMaterialized.ts | 26 +- .../arkui/src/{ => generated}/ArkRichText.ts | 7 +- .../{ => generated}/ArkRichTextInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkRootScene.ts | 7 +- .../{ => generated}/ArkRootSceneInterfaces.ts | 2 +- .../ArkRotationGestureEventMaterialized.ts | 10 +- arkoala/arkui/src/{ => generated}/ArkRow.ts | 7 +- .../src/{ => generated}/ArkRowInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkRowSplit.ts | 7 +- .../{ => generated}/ArkRowSplitInterfaces.ts | 2 +- .../src/{ => generated}/ArkSaveButton.ts | 9 +- .../ArkSaveButtonInterfaces.ts | 0 .../ArkScaleSymbolEffectMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkScreen.ts | 7 +- .../ArkScreenCaptureHandlerMaterialized.ts | 24 +- .../{ => generated}/ArkScreenInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkScroll.ts | 7 +- .../arkui/src/{ => generated}/ArkScrollBar.ts | 7 +- .../{ => generated}/ArkScrollBarInterfaces.ts | 2 +- .../{ => generated}/ArkScrollInterfaces.ts | 2 +- .../ArkScrollMotionMaterialized.ts | 24 +- .../ArkScrollableTargetInfoMaterialized.ts | 24 +- .../ArkScrollerMaterialized.ts | 32 +- .../arkui/src/{ => generated}/ArkSearch.ts | 11 +- .../ArkSearchControllerMaterialized.ts | 24 +- .../{ => generated}/ArkSearchInterfaces.ts | 2 +- .../{ => generated}/ArkSecurityComponent.ts | 5 +- .../ArkSecurityComponentInterfaces.ts | 0 .../arkui/src/{ => generated}/ArkSelect.ts | 7 +- .../{ => generated}/ArkSelectInterfaces.ts | 2 +- arkoala/arkui/src/{ => generated}/ArkShape.ts | 11 +- .../src/{ => generated}/ArkShapeInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkSidebar.ts | 19 +- .../{ => generated}/ArkSidebarInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkSlider.ts | 7 +- .../{ => generated}/ArkSliderInterfaces.ts | 2 +- arkoala/arkui/src/{ => generated}/ArkSpan.ts | 7 +- .../src/{ => generated}/ArkSpanInterfaces.ts | 2 +- .../ArkSpringMotionMaterialized.ts | 24 +- .../ArkSpringPropMaterialized.ts | 24 +- .../ArkSslErrorHandlerMaterialized.ts | 24 +- arkoala/arkui/src/{ => generated}/ArkStack.ts | 7 +- .../src/{ => generated}/ArkStackInterfaces.ts | 2 +- .../ArkStateManagementInterfaces.ts | 0 .../{ => generated}/ArkStaticComponents.ts | 5 +- .../ArkStaticComponentsInterfaces.ts | 0 .../{ => generated}/ArkStdlibInterfaces.ts | 0 .../arkui/src/{ => generated}/ArkStepper.ts | 7 +- .../{ => generated}/ArkStepperInterfaces.ts | 2 +- .../src/{ => generated}/ArkStepperItem.ts | 7 +- .../ArkStepperItemInterfaces.ts | 2 +- .../ArkStyledStringControllerMaterialized.ts | 10 +- .../ArkStyledStringInterfaces.ts | 0 .../ArkStyledStringMaterialized.ts | 26 +- .../ArkSubTabBarStyleBuilder.ts | 0 .../ArkSubmitEventMaterialized.ts | 10 +- .../ArkSwipeGestureEventMaterialized.ts | 10 +- .../arkui/src/{ => generated}/ArkSwiper.ts | 11 +- ...wiperContentTransitionProxyMaterialized.ts | 10 +- .../ArkSwiperControllerMaterialized.ts | 24 +- .../{ => generated}/ArkSwiperInterfaces.ts | 2 +- .../src/{ => generated}/ArkSymbolSpan.ts | 7 +- .../ArkSymbolSpanInterfaces.ts | 2 +- .../src/{ => generated}/ArkSymbolglyph.ts | 11 +- .../ArkSymbolglyphInterfaces.ts | 2 +- .../src/generated/ArkSystemOpsMaterialized.ts | 67 + .../src/{ => generated}/ArkTabContent.ts | 11 +- .../ArkTabContentInterfaces.ts | 2 +- ...rkTabContentTransitionProxyMaterialized.ts | 10 +- arkoala/arkui/src/{ => generated}/ArkTabs.ts | 15 +- .../ArkTabsControllerMaterialized.ts | 24 +- .../src/{ => generated}/ArkTabsInterfaces.ts | 2 +- .../ArkTapGestureEventMaterialized.ts | 10 +- arkoala/arkui/src/{ => generated}/ArkText.ts | 15 +- .../arkui/src/{ => generated}/ArkTextArea.ts | 11 +- .../ArkTextAreaControllerMaterialized.ts | 24 +- .../{ => generated}/ArkTextAreaInterfaces.ts | 2 +- .../ArkTextBaseControllerMaterialized.ts | 10 +- .../arkui/src/{ => generated}/ArkTextClock.ts | 7 +- .../ArkTextClockControllerMaterialized.ts | 24 +- .../{ => generated}/ArkTextClockInterfaces.ts | 2 +- .../ArkTextCommonInterfaces.ts | 0 ...rkTextContentControllerBaseMaterialized.ts | 28 +- .../ArkTextControllerMaterialized.ts | 24 +- .../ArkTextEditControllerExMaterialized.ts | 12 +- .../arkui/src/{ => generated}/ArkTextInput.ts | 11 +- .../ArkTextInputControllerMaterialized.ts | 24 +- .../{ => generated}/ArkTextInputInterfaces.ts | 2 +- .../src/{ => generated}/ArkTextInterfaces.ts | 2 +- .../ArkTextMenuItemIdMaterialized.ts | 28 +- .../src/{ => generated}/ArkTextPicker.ts | 7 +- .../ArkTextPickerDialogMaterialized.ts | 24 +- .../ArkTextPickerInterfaces.ts | 2 +- .../ArkTextShadowStyleMaterialized.ts | 33 +- .../ArkTextStyleStyledStringMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkTextTimer.ts | 7 +- .../ArkTextTimerControllerMaterialized.ts | 24 +- .../{ => generated}/ArkTextTimerInterfaces.ts | 2 +- .../src/{ => generated}/ArkTimePicker.ts | 7 +- .../ArkTimePickerDialogMaterialized.ts | 24 +- .../ArkTimePickerInterfaces.ts | 2 +- .../arkui/src/{ => generated}/ArkToggle.ts | 7 +- .../{ => generated}/ArkToggleInterfaces.ts | 2 +- .../ArkTouchEventMaterialized.ts | 25 +- .../ArkTransitionEffectMaterialized.ts | 24 +- .../ArkUICommonEventMaterialized.ts | 11 +- .../ArkUIExtensionProxyMaterialized.ts | 10 +- .../ArkUIGeneratedNativeModule.ts | 295 +- .../ArkUIGeneratedNativeModuleEmpty.ts | 291 +- .../ArkUiExtensionComponent.ts | 7 +- .../ArkUiExtensionComponentInterfaces.ts | 2 +- .../ArkUnifiedDataMaterialized.ts | 24 +- .../src/{ => generated}/ArkUnitsInterfaces.ts | 10 +- .../ArkUrlStyleMaterialized.ts | 26 +- arkoala/arkui/src/{ => generated}/ArkVideo.ts | 7 +- .../ArkVideoControllerMaterialized.ts | 28 +- .../src/{ => generated}/ArkVideoInterfaces.ts | 2 +- .../{ => generated}/ArkViewMaterialized.ts | 24 +- .../arkui/src/{ => generated}/ArkWaterFlow.ts | 11 +- .../{ => generated}/ArkWaterFlowInterfaces.ts | 2 +- .../ArkWaterFlowSectionsMaterialized.ts | 24 +- arkoala/arkui/src/{ => generated}/ArkWeb.ts | 11 +- .../ArkWebContextMenuParamMaterialized.ts | 24 +- .../ArkWebContextMenuResultMaterialized.ts | 24 +- .../ArkWebControllerMaterialized.ts | 28 +- .../ArkWebCookieMaterialized.ts | 24 +- .../src/{ => generated}/ArkWebInterfaces.ts | 2 +- .../ArkWebKeyboardControllerMaterialized.ts | 24 +- .../ArkWebResourceErrorMaterialized.ts | 24 +- .../ArkWebResourceRequestMaterialized.ts | 24 +- .../ArkWebResourceResponseMaterialized.ts | 30 +- .../ArkWebviewControllerMaterialized.ts | 28 +- .../src/{ => generated}/ArkWindowScene.ts | 7 +- .../ArkWindowSceneInterfaces.ts | 2 +- .../{ => generated}/ArkWithThemeInterfaces.ts | 0 .../ArkXComponentControllerMaterialized.ts | 28 +- .../src/{ => generated}/ArkXcomponent.ts | 13 +- .../ArkXcomponentInterfaces.ts | 2 +- arkoala/arkui/src/generated/EnumsImpl.ts | 2415 +++++++ .../arkui/src/{ => generated}/GlobalScope.ts | 49 +- .../{ => generated}/SyntheticDeclarations.ts | 3 - .../arkui/src/{ => generated}/peer_events.ts | 2 +- .../peers/ArkAbilityComponentPeer.ts | 12 +- .../peers/ArkAlphabetIndexerPeer.ts | 70 +- .../{ => generated}/peers/ArkAnimatorPeer.ts | 12 +- .../src/{ => generated}/peers/ArkBadgePeer.ts | 12 +- .../src/{ => generated}/peers/ArkBlankPeer.ts | 22 +- .../{ => generated}/peers/ArkButtonPeer.ts | 30 +- .../{ => generated}/peers/ArkCalendarPeer.ts | 10 +- .../peers/ArkCalendarPickerPeer.ts | 12 +- .../{ => generated}/peers/ArkCanvasPeer.ts | 12 +- .../{ => generated}/peers/ArkCheckboxPeer.ts | 24 +- .../peers/ArkCheckboxgroupPeer.ts | 24 +- .../{ => generated}/peers/ArkCirclePeer.ts | 12 +- .../{ => generated}/peers/ArkColumnPeer.ts | 12 +- .../peers/ArkColumnSplitPeer.ts | 12 +- .../{ => generated}/peers/ArkCommonPeer.ts | 306 +- .../peers/ArkComponent3dPeer.ts | 28 +- .../peers/ArkContainerSpanPeer.ts | 12 +- .../{ => generated}/peers/ArkCounterPeer.ts | 12 +- .../{ => generated}/peers/ArkDataPanelPeer.ts | 26 +- .../peers/ArkDatePickerPeer.ts | 12 +- .../{ => generated}/peers/ArkDividerPeer.ts | 22 +- .../peers/ArkEffectComponentPeer.ts | 12 +- .../{ => generated}/peers/ArkEllipsePeer.ts | 12 +- .../peers/ArkEmbeddedComponentPeer.ts | 12 +- .../src/{ => generated}/peers/ArkFlexPeer.ts | 12 +- .../{ => generated}/peers/ArkFlowItemPeer.ts | 12 +- .../peers/ArkFolderStackPeer.ts | 12 +- .../peers/ArkFormComponentPeer.ts | 12 +- .../{ => generated}/peers/ArkFormLinkPeer.ts | 12 +- .../src/{ => generated}/peers/ArkGaugePeer.ts | 28 +- .../{ => generated}/peers/ArkGridColPeer.ts | 24 +- .../peers/ArkGridContainerPeer.ts | 12 +- .../{ => generated}/peers/ArkGridItemPeer.ts | 12 +- .../src/{ => generated}/peers/ArkGridPeer.ts | 24 +- .../{ => generated}/peers/ArkGridRowPeer.ts | 12 +- .../{ => generated}/peers/ArkHyperlinkPeer.ts | 26 +- .../peers/ArkImageAnimatorPeer.ts | 12 +- .../src/{ => generated}/peers/ArkImagePeer.ts | 58 +- .../{ => generated}/peers/ArkImageSpanPeer.ts | 22 +- .../peers/ArkIndicatorcomponentPeer.ts | 12 +- .../src/{ => generated}/peers/ArkLinePeer.ts | 12 +- .../peers/ArkLinearindicatorPeer.ts | 12 +- .../peers/ArkListItemGroupPeer.ts | 12 +- .../{ => generated}/peers/ArkListItemPeer.ts | 16 +- .../src/{ => generated}/peers/ArkListPeer.ts | 20 +- .../peers/ArkLoadingProgressPeer.ts | 18 +- .../peers/ArkLocationButtonPeer.ts | 10 +- .../{ => generated}/peers/ArkMarqueePeer.ts | 26 +- .../peers/ArkMediaCachedImagePeer.ts | 24 +- .../peers/ArkMenuItemGroupPeer.ts | 12 +- .../{ => generated}/peers/ArkMenuItemPeer.ts | 38 +- .../src/{ => generated}/peers/ArkMenuPeer.ts | 18 +- .../peers/ArkNavDestinationPeer.ts | 40 +- .../{ => generated}/peers/ArkNavRouterPeer.ts | 12 +- .../{ => generated}/peers/ArkNavigatorPeer.ts | 12 +- .../peers/ArkNodeContainerPeer.ts | 12 +- .../src/{ => generated}/peers/ArkPanelPeer.ts | 30 +- .../peers/ArkPasteButtonPeer.ts | 10 +- .../src/{ => generated}/peers/ArkPathPeer.ts | 12 +- .../peers/ArkPatternLockPeer.ts | 46 +- .../peers/ArkPluginComponentPeer.ts | 12 +- .../{ => generated}/peers/ArkPolygonPeer.ts | 12 +- .../{ => generated}/peers/ArkPolylinePeer.ts | 12 +- .../{ => generated}/peers/ArkProgressPeer.ts | 22 +- .../{ => generated}/peers/ArkQrcodePeer.ts | 28 +- .../src/{ => generated}/peers/ArkRadioPeer.ts | 12 +- .../{ => generated}/peers/ArkRatingPeer.ts | 12 +- .../src/{ => generated}/peers/ArkRectPeer.ts | 32 +- .../{ => generated}/peers/ArkRefreshPeer.ts | 12 +- .../peers/ArkRelativeContainerPeer.ts | 12 +- .../peers/ArkRemoteWindowPeer.ts | 12 +- .../peers/ArkRichEditorPeer.ts | 28 +- .../{ => generated}/peers/ArkRichTextPeer.ts | 12 +- .../{ => generated}/peers/ArkRootScenePeer.ts | 12 +- .../src/{ => generated}/peers/ArkRowPeer.ts | 12 +- .../{ => generated}/peers/ArkRowSplitPeer.ts | 12 +- .../peers/ArkSaveButtonPeer.ts | 10 +- .../{ => generated}/peers/ArkScreenPeer.ts | 12 +- .../{ => generated}/peers/ArkScrollBarPeer.ts | 12 +- .../{ => generated}/peers/ArkScrollPeer.ts | 24 +- .../{ => generated}/peers/ArkSearchPeer.ts | 62 +- .../peers/ArkSecurityComponentPeer.ts | 42 +- .../{ => generated}/peers/ArkSelectPeer.ts | 56 +- .../src/{ => generated}/peers/ArkShapePeer.ts | 48 +- .../{ => generated}/peers/ArkSidebarPeer.ts | 12 +- .../{ => generated}/peers/ArkSliderPeer.ts | 48 +- .../src/{ => generated}/peers/ArkSpanPeer.ts | 42 +- .../src/{ => generated}/peers/ArkStackPeer.ts | 12 +- .../peers/ArkStaticComponentsPeer.ts | 10 +- .../peers/ArkStepperItemPeer.ts | 12 +- .../{ => generated}/peers/ArkStepperPeer.ts | 12 +- .../{ => generated}/peers/ArkSwiperPeer.ts | 34 +- .../peers/ArkSymbolSpanPeer.ts | 28 +- .../peers/ArkSymbolglyphPeer.ts | 28 +- .../peers/ArkTabContentPeer.ts | 18 +- .../src/{ => generated}/peers/ArkTabsPeer.ts | 18 +- .../{ => generated}/peers/ArkTextAreaPeer.ts | 72 +- .../{ => generated}/peers/ArkTextClockPeer.ts | 28 +- .../{ => generated}/peers/ArkTextInputPeer.ts | 84 +- .../src/{ => generated}/peers/ArkTextPeer.ts | 88 +- .../peers/ArkTextPickerPeer.ts | 20 +- .../{ => generated}/peers/ArkTextTimerPeer.ts | 28 +- .../peers/ArkTimePickerPeer.ts | 12 +- .../{ => generated}/peers/ArkTogglePeer.ts | 24 +- .../peers/ArkUiExtensionComponentPeer.ts | 12 +- .../src/{ => generated}/peers/ArkVideoPeer.ts | 12 +- .../{ => generated}/peers/ArkWaterFlowPeer.ts | 16 +- .../src/{ => generated}/peers/ArkWebPeer.ts | 14 +- .../peers/ArkWindowScenePeer.ts | 12 +- .../peers/ArkXcomponentPeer.ts | 12 +- .../peers/CallbackDeserializeCall.ts | 2 +- .../src/{ => generated}/peers/CallbackKind.ts | 0 .../peers/CallbackTransformer.ts | 2 +- .../src/{ => generated}/peers/Deserializer.ts | 5636 ++++++++------- .../src/{ => generated}/peers/Serializer.ts | 2492 ++++--- .../src/generated/shared/generated-utils.ts | 17 +- .../src/{ => generated}/use_properties.ts | 2 - .../arkui/src/handwritten/ArkNavPathStack.ts | 1 - .../src/handwritten/ArkPageTransition.ts | 1 + arkoala/arkui/src/index.ts | 326 +- arkoala/arkui/src/peer_events_checker.ts | 8 +- arkoala/arkui/src/peers/ArkNavigationPeer.ts | 10 +- arkoala/arkui/src/root_construct.ts | 2 +- arkoala/arkui/src/shared/Controllers.ts | 7 +- arkoala/arkui/src/shared/basic.ts | 1 - arkoala/arkui/src/shared/generated-utils.ts | 26 - .../native/src/generated/Serializers.h | 6372 +++++++++++------ .../native/src/generated/all_events.cc | 36 +- .../src/generated/arkoala_api_generated.h | 2913 +++++--- .../native/src/generated/bridge_custom.cc | 5 +- .../native/src/generated/bridge_generated.cc | 2416 ++++--- .../src/generated/callback_managed_caller.cc | 80 +- .../native/src/generated/dummy_impl.cc | 3878 +++++----- .../native/src/generated/real_impl.cc | 2212 +++--- .../src/generated/ArkUINativeModule.ts | 2 +- .../src/generated/ArkUINativeModuleEmpty.ts | 2 +- .../src/generated/TestNativeModule.ts | 2 +- .../src/generated/TestNativeModuleEmpty.ts | 2 +- arkoala/tools/peer-generator/package.json | 8 +- 1074 files changed, 38122 insertions(+), 24457 deletions(-) rename arkoala-arkts/arkui/src/{generated => }/ComponentBase.ts (100%) rename arkoala-arkts/arkui/src/{generated => }/NativePeerNode.ts (100%) rename arkoala-arkts/arkui/src/{generated => }/PeerNode.ts (97%) create mode 100644 arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts rename arkoala-arkts/arkui/src/generated/{ArkGlobalScopeCommonMaterialized.ts => ArkGlobalScopecommonMaterialized.ts} (60%) rename arkoala-arkts/arkui/src/generated/{ArkGlobalScopeInspectorMaterialized.ts => ArkGlobalScopeinspectorMaterialized.ts} (50%) create mode 100644 arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts delete mode 100644 arkoala-arkts/arkui/src/generated/shared/generated-utils.ts delete mode 100644 arkoala/arkui/src/EnumsImpl.ts rename arkoala/arkui/src/{ => generated}/ArkAbilityComponent.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkAbilityComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkAccessibilityHoverEventMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkActionSheetInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkActionSheetMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkAlertDialogInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkAlertDialogMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkAlphabetIndexer.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkAlphabetIndexerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkAnimationExtenderInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkAnimationExtenderMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkAnimator.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkAnimatorInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkAppearSymbolEffectMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkArkuiCustomInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkArkuiExternalInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkBackgroundColorStyleMaterialized.ts (86%) rename arkoala/arkui/src/{ => generated}/ArkBadge.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkBadgeInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkBaseEventMaterialized.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkBaseGestureEventMaterialized.ts (84%) rename arkoala/arkui/src/{ => generated}/ArkBaselineOffsetStyleMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkBlank.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkBlankInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkBottomTabBarStyleBuilder.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkBounceSymbolEffectMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkButton.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkButtonInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCalendar.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkCalendarControllerMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkCalendarInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkCalendarPicker.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkCalendarPickerDialogMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkCalendarPickerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCanvas.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkCanvasGradientMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkCanvasInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCanvasPathMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkCanvasPatternMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkCanvasRendererMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkCanvasRenderingContext2DMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkCheckbox.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkCheckboxInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCheckboxgroup.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkCheckboxgroupInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkChildrenMainSizeMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkCircle.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkCircleInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkClickEventMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkClientAuthenticationHandlerMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkColorFilterMaterialized.ts (87%) rename arkoala/arkui/src/{ => generated}/ArkColumn.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkColumnInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkColumnSplit.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkColumnSplitInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCommon.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkCommonInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkCommonTsEtsApiInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkComponent3d.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkComponent3dInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkConsoleMessageMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkContainerSpan.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkContainerSpanInterfaces.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkContentSlotInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkContextMenuMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkControllerHandlerMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkCounter.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkCounterInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/ArkCursorControlNamespace.ts rename arkoala/arkui/src/{ => generated}/ArkCustomDialogControllerInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkCustomDialogControllerMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkCustomSpanMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkDataPanel.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkDataPanelInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkDataResubmissionHandlerMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkDatePicker.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkDatePickerDialogMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkDatePickerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkDecorationStyleMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkDigitIndicatorBuilder.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkDisappearSymbolEffectMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkDivider.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkDividerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkDotIndicatorBuilder.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkDragEventMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkDrawModifierMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkDrawingCanvasMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkDrawingRenderingContextMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkDynamicNodeMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkEditMenuOptionsMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkEffectComponent.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkEffectComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkEllipse.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkEllipseInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkEmbeddedComponent.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkEmbeddedComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkEnumsInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkEventEmulatorMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkEventResultMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkEventTargetInfoMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkFileSelectorParamMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkFileSelectorResultMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkFlex.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkFlexInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkFlowItem.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkFlowItemInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/ArkFocusControlNamespace.ts rename arkoala/arkui/src/{ => generated}/ArkFocusInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkFolderStack.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkFolderStackInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkFormComponent.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkFormComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkFormLink.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkFormLinkInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkFrameNodeMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkFrictionMotionMaterialized.ts (85%) rename arkoala/arkui/src/{ => generated}/ArkFullScreenExitHandlerMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkGauge.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkGaugeInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkGestureControlNamespace.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkGestureEventMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkGestureInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkGestureModifierMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkGestureRecognizerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkGestureStyleMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts (95%) rename arkoala/arkui/src/{ArkGlobalScopeCommonMaterialized.ts => generated/ArkGlobalScopecommonMaterialized.ts} (61%) rename arkoala/arkui/src/{ArkGlobalScopeInspectorMaterialized.ts => generated/ArkGlobalScopeinspectorMaterialized.ts} (52%) rename arkoala/arkui/src/{ => generated}/ArkGrid.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkGridCol.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkGridColInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkGridContainer.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkGridContainerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkGridInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkGridItem.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkGridItemInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkGridRow.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkGridRowInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkHierarchicalSymbolEffectMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkHoverEventMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkHttpAuthHandlerMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkHyperlink.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkHyperlinkInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkICurveMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkImage.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkImageAnalyzerControllerMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkImageAnimator.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkImageAnimatorInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkImageAttachmentMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkImageBitmapMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkImageCommonInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkImageDataMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkImageInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkImageSpan.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkImageSpanInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkIndicatorBuilder.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkIndicatorComponentControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkIndicatorcomponent.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkIndicatorcomponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkIsolatedComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkJsGeolocationMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkJsResultMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkKeyEventMaterialized.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkLayoutManagerMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkLazyForEachInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkLazyForEachOpsMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkLengthMetricsMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkLetterSpacingStyleMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkLine.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkLineHeightStyleMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkLineInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkLinearGradientMaterialized.ts (87%) rename arkoala/arkui/src/{ => generated}/ArkLinearIndicatorControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkLinearindicator.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkLinearindicatorInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkList.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkListInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkListItem.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkListItemGroup.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkListItemGroupInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkListItemInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkListScrollerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkLoadingProgress.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkLoadingProgressInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkLocationButton.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkLocationButtonInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkLongPressGestureEventMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkMarquee.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkMarqueeInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkMatrix2DMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkMeasurableMaterialized.ts (75%) rename arkoala/arkui/src/{ => generated}/ArkMediaCachedImage.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkMediaCachedImageInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkMenu.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkMenuInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkMenuItem.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkMenuItemGroup.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkMenuItemGroupInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkMenuItemInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkMouseEventMaterialized.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkMutableStyledStringMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkNavDestination.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkNavDestinationContextMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkNavDestinationInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkNavExtenderMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkNavPathInfoMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkNavPathStackMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkNavRouter.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkNavRouterInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkNavigationExtenderInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkNavigationInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkNavigationTransitionProxyMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkNavigator.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkNavigatorInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkNodeContainer.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkNodeContainerInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts create mode 100644 arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts rename arkoala/arkui/src/{ => generated}/ArkPageTransitionInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkPanGestureEventMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkPanGestureOptionsMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkPanRecognizerMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkPanel.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkPanelInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkParagraphStyleMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkParticleInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkPasteButton.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkPasteButtonInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkPath.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkPath2DMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkPathInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkPatternLock.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkPatternLockControllerMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkPatternLockInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkPermissionRequestMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkPinchGestureEventMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkPixelMapMaterialized.ts (69%) rename arkoala/arkui/src/{ => generated}/ArkPixelMapMockMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkPluginComponent.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkPluginComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkPointInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkPolygon.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkPolygonInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkPolyline.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkPolylineInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/ArkProfilerNamespace.ts rename arkoala/arkui/src/{ => generated}/ArkProgress.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkProgressInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkProgressMaskMaterialized.ts (88%) rename arkoala/arkui/src/{ => generated}/ArkQrcode.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkQrcodeInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRadio.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRadioInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRating.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRatingInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRawFileDescriptorInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkRect.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRectInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRefresh.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRefreshInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRelativeContainer.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkRelativeContainerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRemoteWindow.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRemoteWindowInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRenderingContextSettingsMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkRepeatInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkReplaceSymbolEffectMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkResourceInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkRichEditor.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkRichEditorBaseControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkRichEditorControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkRichEditorInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRichEditorStyledStringControllerMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkRichText.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRichTextInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRootScene.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRootSceneInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRotationGestureEventMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkRow.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRowInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkRowSplit.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkRowSplitInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSaveButton.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkSaveButtonInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkScaleSymbolEffectMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkScreen.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkScreenCaptureHandlerMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkScreenInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkScroll.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkScrollBar.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkScrollBarInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkScrollInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkScrollMotionMaterialized.ts (86%) rename arkoala/arkui/src/{ => generated}/ArkScrollableTargetInfoMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkScrollerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkSearch.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkSearchControllerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkSearchInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSecurityComponent.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkSecurityComponentInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkSelect.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkSelectInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkShape.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkShapeInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSidebar.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkSidebarInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSlider.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkSliderInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSpan.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkSpanInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSpringMotionMaterialized.ts (87%) rename arkoala/arkui/src/{ => generated}/ArkSpringPropMaterialized.ts (85%) rename arkoala/arkui/src/{ => generated}/ArkSslErrorHandlerMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkStack.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkStackInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkStateManagementInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkStaticComponents.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkStaticComponentsInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkStdlibInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkStepper.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkStepperInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkStepperItem.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkStepperItemInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkStyledStringControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkStyledStringInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkStyledStringMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkSubTabBarStyleBuilder.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkSubmitEventMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkSwipeGestureEventMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkSwiper.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkSwiperContentTransitionProxyMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkSwiperControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkSwiperInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSymbolSpan.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkSymbolSpanInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkSymbolglyph.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkSymbolglyphInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts rename arkoala/arkui/src/{ => generated}/ArkTabContent.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkTabContentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTabContentTransitionProxyMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkTabs.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkTabsControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkTabsInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTapGestureEventMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkText.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkTextArea.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTextAreaControllerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextAreaInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTextBaseControllerMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkTextClock.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTextClockControllerMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkTextClockInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTextCommonInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkTextContentControllerBaseMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkTextControllerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextEditControllerExMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextInput.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTextInputControllerMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextInputInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTextInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTextMenuItemIdMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkTextPicker.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTextPickerDialogMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextPickerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTextShadowStyleMaterialized.ts (80%) rename arkoala/arkui/src/{ => generated}/ArkTextStyleStyledStringMaterialized.ts (93%) rename arkoala/arkui/src/{ => generated}/ArkTextTimer.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTextTimerControllerMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkTextTimerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTimePicker.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkTimePickerDialogMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkTimePickerInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkToggle.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkToggleInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkTouchEventMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkTransitionEffectMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkUICommonEventMaterialized.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkUIExtensionProxyMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkUIGeneratedNativeModule.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkUIGeneratedNativeModuleEmpty.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkUiExtensionComponent.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkUiExtensionComponentInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkUnifiedDataMaterialized.ts (90%) rename arkoala/arkui/src/{ => generated}/ArkUnitsInterfaces.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkUrlStyleMaterialized.ts (87%) rename arkoala/arkui/src/{ => generated}/ArkVideo.ts (98%) rename arkoala/arkui/src/{ => generated}/ArkVideoControllerMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkVideoInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkViewMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkWaterFlow.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkWaterFlowInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkWaterFlowSectionsMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkWeb.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkWebContextMenuParamMaterialized.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkWebContextMenuResultMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkWebControllerMaterialized.ts (96%) rename arkoala/arkui/src/{ => generated}/ArkWebCookieMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkWebInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkWebKeyboardControllerMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkWebResourceErrorMaterialized.ts (89%) rename arkoala/arkui/src/{ => generated}/ArkWebResourceRequestMaterialized.ts (92%) rename arkoala/arkui/src/{ => generated}/ArkWebResourceResponseMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkWebviewControllerMaterialized.ts (91%) rename arkoala/arkui/src/{ => generated}/ArkWindowScene.ts (97%) rename arkoala/arkui/src/{ => generated}/ArkWindowSceneInterfaces.ts (99%) rename arkoala/arkui/src/{ => generated}/ArkWithThemeInterfaces.ts (100%) rename arkoala/arkui/src/{ => generated}/ArkXComponentControllerMaterialized.ts (94%) rename arkoala/arkui/src/{ => generated}/ArkXcomponent.ts (95%) rename arkoala/arkui/src/{ => generated}/ArkXcomponentInterfaces.ts (99%) create mode 100644 arkoala/arkui/src/generated/EnumsImpl.ts rename arkoala/arkui/src/{ => generated}/GlobalScope.ts (53%) rename arkoala/arkui/src/{ => generated}/SyntheticDeclarations.ts (99%) rename arkoala/arkui/src/{ => generated}/peer_events.ts (100%) rename arkoala/arkui/src/{ => generated}/peers/ArkAbilityComponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkAlphabetIndexerPeer.ts (92%) rename arkoala/arkui/src/{ => generated}/peers/ArkAnimatorPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkBadgePeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkBlankPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkButtonPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkCalendarPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkCalendarPickerPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkCanvasPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkCheckboxPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkCheckboxgroupPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkCirclePeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkColumnPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkColumnSplitPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkCommonPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkComponent3dPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkContainerSpanPeer.ts (89%) rename arkoala/arkui/src/{ => generated}/peers/ArkCounterPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkDataPanelPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkDatePickerPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkDividerPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkEffectComponentPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkEllipsePeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkEmbeddedComponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkFlexPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkFlowItemPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkFolderStackPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkFormComponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkFormLinkPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkGaugePeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkGridColPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkGridContainerPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkGridItemPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkGridPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkGridRowPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkHyperlinkPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkImageAnimatorPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkImagePeer.ts (90%) rename arkoala/arkui/src/{ => generated}/peers/ArkImageSpanPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkIndicatorcomponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkLinePeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkLinearindicatorPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkListItemGroupPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkListItemPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkListPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkLoadingProgressPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkLocationButtonPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkMarqueePeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkMediaCachedImagePeer.ts (91%) rename arkoala/arkui/src/{ => generated}/peers/ArkMenuItemGroupPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkMenuItemPeer.ts (91%) rename arkoala/arkui/src/{ => generated}/peers/ArkMenuPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkNavDestinationPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkNavRouterPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkNavigatorPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkNodeContainerPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkPanelPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkPasteButtonPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkPathPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkPatternLockPeer.ts (92%) rename arkoala/arkui/src/{ => generated}/peers/ArkPluginComponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkPolygonPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkPolylinePeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkProgressPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkQrcodePeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkRadioPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRatingPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRectPeer.ts (92%) rename arkoala/arkui/src/{ => generated}/peers/ArkRefreshPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRelativeContainerPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRemoteWindowPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkRichEditorPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRichTextPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRootScenePeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkRowPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkRowSplitPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkSaveButtonPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkScreenPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkScrollBarPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkScrollPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkSearchPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkSecurityComponentPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkSelectPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkShapePeer.ts (92%) rename arkoala/arkui/src/{ => generated}/peers/ArkSidebarPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkSliderPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkSpanPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkStackPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkStaticComponentsPeer.ts (90%) rename arkoala/arkui/src/{ => generated}/peers/ArkStepperItemPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkStepperPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkSwiperPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkSymbolSpanPeer.ts (93%) rename arkoala/arkui/src/{ => generated}/peers/ArkSymbolglyphPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkTabContentPeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkTabsPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextAreaPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextClockPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextInputPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextPeer.ts (92%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextPickerPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkTextTimerPeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkTimePickerPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkTogglePeer.ts (94%) rename arkoala/arkui/src/{ => generated}/peers/ArkUiExtensionComponentPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkVideoPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/ArkWaterFlowPeer.ts (96%) rename arkoala/arkui/src/{ => generated}/peers/ArkWebPeer.ts (99%) rename arkoala/arkui/src/{ => generated}/peers/ArkWindowScenePeer.ts (95%) rename arkoala/arkui/src/{ => generated}/peers/ArkXcomponentPeer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/CallbackDeserializeCall.ts (99%) rename arkoala/arkui/src/{ => generated}/peers/CallbackKind.ts (100%) rename arkoala/arkui/src/{ => generated}/peers/CallbackTransformer.ts (97%) rename arkoala/arkui/src/{ => generated}/peers/Deserializer.ts (87%) rename arkoala/arkui/src/{ => generated}/peers/Serializer.ts (93%) rename arkoala-arkts/arkui/src/generated/MaterializedBase.ts => arkoala/arkui/src/generated/shared/generated-utils.ts (69%) rename arkoala/arkui/src/{ => generated}/use_properties.ts (93%) delete mode 100644 arkoala/arkui/src/shared/generated-utils.ts diff --git a/arkoala-arkts/arkui/src/Application.ts b/arkoala-arkts/arkui/src/Application.ts index afa0423cd..b21155155 100644 --- a/arkoala-arkts/arkui/src/Application.ts +++ b/arkoala-arkts/arkui/src/Application.ts @@ -16,7 +16,7 @@ import { ComputableState, IncrementalNode, GlobalStateManager, StateManager, StateContext, memoEntry, MutableState, createAnimationTimer, callScheduledCallbacks } from "@koalaui/runtime" import { int32, int64 } from "@koalaui/common" import { pointer, nullptr, KPointer, InteropNativeModule, registerNativeModuleLibraryName } from "@koalaui/interop" -import { PeerNode } from "./generated/PeerNode" +import { PeerNode } from "./PeerNode" import { ArkUINativeModule } from "#components" import { EventEmulator } from "./generated/ArkEventEmulatorMaterialized" import { UserView, UserViewBuilder } from "./UserView" diff --git a/arkoala-arkts/arkui/src/ArkComponentRoot.ts b/arkoala-arkts/arkui/src/ArkComponentRoot.ts index 27ddb6c47..373f0178b 100644 --- a/arkoala-arkts/arkui/src/ArkComponentRoot.ts +++ b/arkoala-arkts/arkui/src/ArkComponentRoot.ts @@ -14,7 +14,7 @@ */ import { NodeAttach, rememberDisposable, rememberMutableState, scheduleCallback } from "@koalaui/runtime" -import { PeerNode } from "./generated/PeerNode"; +import { PeerNode } from "./PeerNode"; import { ArkComponentRootPeer } from "./generated/peers/ArkStaticComponentsPeer"; import { ArkCustomComponent } from "./ArkCustomComponent" diff --git a/arkoala-arkts/arkui/src/generated/ComponentBase.ts b/arkoala-arkts/arkui/src/ComponentBase.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/ComponentBase.ts rename to arkoala-arkts/arkui/src/ComponentBase.ts diff --git a/arkoala-arkts/arkui/src/LazyForEach.ts b/arkoala-arkts/arkui/src/LazyForEach.ts index 3acd403c2..bf3610d7e 100644 --- a/arkoala-arkts/arkui/src/LazyForEach.ts +++ b/arkoala-arkts/arkui/src/LazyForEach.ts @@ -16,7 +16,7 @@ import { __context, contextNode, memoEntry2, remember, rememberMutableState, scheduleCallback } from "@koalaui/runtime" import { hashCodeFromString, int32 } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; -import { PeerNode } from "./generated/PeerNode"; +import { PeerNode } from "./PeerNode"; import { LazyForEachOps } from "./generated/ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts diff --git a/arkoala-arkts/arkui/src/generated/NativePeerNode.ts b/arkoala-arkts/arkui/src/NativePeerNode.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/NativePeerNode.ts rename to arkoala-arkts/arkui/src/NativePeerNode.ts diff --git a/arkoala-arkts/arkui/src/generated/PeerNode.ts b/arkoala-arkts/arkui/src/PeerNode.ts similarity index 97% rename from arkoala-arkts/arkui/src/generated/PeerNode.ts rename to arkoala-arkts/arkui/src/PeerNode.ts index 7a30ef6f0..cb55241d7 100644 --- a/arkoala-arkts/arkui/src/generated/PeerNode.ts +++ b/arkoala-arkts/arkui/src/PeerNode.ts @@ -2,7 +2,7 @@ import { int32 } from "@koalaui/common" import { IncrementalNode } from "@koalaui/runtime" import { NativePeerNode } from "./NativePeerNode" import { nullptr, pointer } from "@koalaui/interop" -import { ArkRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkRootPeer } from "./generated/peers/ArkStaticComponentsPeer" export const PeerNodeType = 11 const InitialID = 999 diff --git a/arkoala-arkts/arkui/src/UserView.ts b/arkoala-arkts/arkui/src/UserView.ts index 83df11f8e..7ccc1a470 100644 --- a/arkoala-arkts/arkui/src/UserView.ts +++ b/arkoala-arkts/arkui/src/UserView.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { InteropNativeModule, KUint8ArrayPtr } from "@koalaui/interop" +import { InteropNativeModule } from "@koalaui/interop" import { int32, int8Array } from "@koalaui/common" diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts index 68352d5ce..c11eaec84 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts @@ -19,15 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" -import { Callback_Void, Literal_Want_want } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_Want_want } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Want } from "./ArkArkuiExternalInterfaces" +import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" /** @memo:stable */ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkAbilityComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts index fc9f52eb4..6c1ef6cdf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_Want_want, Callback_Void } from "./SyntheticDeclarations" +import { Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type AbilityComponentInterface = (value: Literal_Want_want) => AbilityComponentAttribute; export interface AbilityComponentAttribute extends CommonMethod { onConnect: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index 53977fb7b..f6fc05ac4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface AccessibilityHoverEvent { type: AccessibilityHoverType @@ -82,13 +82,13 @@ export class AccessibilityHoverEventInternal extends BaseEventInternal implement set windowY(windowY: number) { this.setWindowY(windowY) } - static ctor(): KPointer { + static ctor_accessibilityhoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = AccessibilityHoverEventInternal.ctor() + const ctorPtr : KPointer = AccessibilityHoverEventInternal.ctor_accessibilityhoverevent() this.peer = new Finalizable(ctorPtr, AccessibilityHoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts index 9ac404174..ee8806eb4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -18,19 +18,25 @@ import { ActionSheetOptions } from "./ArkActionSheetInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ActionSheetInternal { + public static fromPtr(ptr: KPointer): ActionSheet { + const obj : ActionSheet = new ActionSheet() + obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) + return obj + } +} export class ActionSheet implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_actionsheet(): KPointer { const retval = ArkUIGeneratedNativeModule._ActionSheet_ctor() return retval } @@ -38,7 +44,7 @@ export class ActionSheet implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = ActionSheet.ctor() + const ctorPtr : KPointer = ActionSheet.ctor_actionsheet() this.peer = new Finalizable(ctorPtr, ActionSheet.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class ActionSheet implements MaterializedBase { return retval } } -export class ActionSheetInternal { - public static fromPtr(ptr: KPointer): ActionSheet { - const obj : ActionSheet = new ActionSheet() - obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts index e64cd1df3..25c62f260 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -18,19 +18,25 @@ import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./ArkAlertDialogInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AlertDialogInternal { + public static fromPtr(ptr: KPointer): AlertDialog { + const obj : AlertDialog = new AlertDialog() + obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) + return obj + } +} export class AlertDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_alertdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._AlertDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class AlertDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = AlertDialog.ctor() + const ctorPtr : KPointer = AlertDialog.ctor_alertdialog() this.peer = new Finalizable(ctorPtr, AlertDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,10 +78,3 @@ export class AlertDialog implements MaterializedBase { return retval } } -export class AlertDialogInternal { - public static fromPtr(ptr: KPointer): AlertDialog { - const obj : AlertDialog = new AlertDialog() - obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts index 538f150e3..9b6349a0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle } from "./ArkCommonInterfaces" -import { AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./ArkAlphabetIndexerInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./ArkAlphabetIndexerInterfaces" /** @memo:stable */ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { getPeer(): ArkAlphabetIndexerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts index d1fd7fb4e..c28baf894 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, BlurStyle } from "./ArkCommonInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum IndexerAlign { LEFT = 0, Left = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 79734c88f..878cb77df 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -19,19 +19,25 @@ import { AnimateParam, TranslateOptions } from "./ArkCommonInterfaces" import { DoubleAnimationParam } from "./ArkAnimationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AnimationExtenderInternal { + public static fromPtr(ptr: KPointer): AnimationExtender { + const obj : AnimationExtender = new AnimationExtender() + obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) + return obj + } +} export class AnimationExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_animationextender(): KPointer { const retval = ArkUIGeneratedNativeModule._AnimationExtender_ctor() return retval } @@ -39,7 +45,7 @@ export class AnimationExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = AnimationExtender.ctor() + const ctorPtr : KPointer = AnimationExtender.ctor_animationextender() this.peer = new Finalizable(ctorPtr, AnimationExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -100,10 +106,3 @@ export class AnimationExtender implements MaterializedBase { thisSerializer.release() } } -export class AnimationExtenderInternal { - public static fromPtr(ptr: KPointer): AnimationExtender { - const obj : AnimationExtender = new AnimationExtender() - obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts index 0ecf58d9b..811b59858 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimatorAttribute } from "./ArkAnimatorInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SpringMotion } from "./ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { AnimatorAttribute } from "./ArkAnimatorInterfaces" /** @memo:stable */ export class ArkAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkAnimatorPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts index 4bc0842d0..3043620bb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SpringMotion } from "./ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" export type AnimatorInterface = (value: string) => AnimatorAttribute; export interface AnimatorAttribute extends CommonMethod { state: AnimationStatus; diff --git a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index cad049b50..d50d22479 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AppearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): AppearSymbolEffect { + const obj : AppearSymbolEffect = new AppearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) + return obj + } +} export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_appearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = AppearSymbolEffect.ctor(scope) + const ctorPtr : KPointer = AppearSymbolEffect.ctor_appearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class AppearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): AppearSymbolEffect { - const obj : AppearSymbolEffect = new AppearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index b03958918..38be97d80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,13 +18,19 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BackgroundColorStyleInternal { + public static fromPtr(ptr: KPointer): BackgroundColorStyle { + const obj : BackgroundColorStyle = new BackgroundColorStyle(undefined) + obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) + return obj + } +} export class BackgroundColorStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class BackgroundColorStyle implements MaterializedBase { get textBackgroundStyle(): TextBackgroundStyle { throw new Error("Not implemented") } - static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + static ctor_backgroundcolorstyle(textBackgroundStyle: TextBackgroundStyle): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class BackgroundColorStyle implements MaterializedBase { return retval } constructor(textBackgroundStyle?: TextBackgroundStyle) { - if (((textBackgroundStyle) !== (undefined))) + if ((textBackgroundStyle) !== (undefined)) { - const ctorPtr : KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + const ctorPtr : KPointer = BackgroundColorStyle.ctor_backgroundcolorstyle(textBackgroundStyle) this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) } } @@ -51,10 +57,3 @@ export class BackgroundColorStyle implements MaterializedBase { return ArkUIGeneratedNativeModule._BackgroundColorStyle_getFinalizer() } } -export class BackgroundColorStyleInternal { - public static fromPtr(ptr: KPointer): BackgroundColorStyle { - const obj : BackgroundColorStyle = new BackgroundColorStyle(undefined) - obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBadge.ts b/arkoala-arkts/arkui/src/generated/ArkBadge.ts index bcae313ed..15cb7dbd7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadge.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString } from "./ArkBadgeInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString } from "./ArkBadgeInterfaces" /** @memo:stable */ export class ArkBadgeComponent extends ArkCommonMethodComponent { getPeer(): ArkBadgePeer { @@ -34,12 +55,12 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) - if ((TypeChecker.isBadgeParamWithNumber(value, false, false))) { + if (TypeChecker.isBadgeParamWithNumber(value, false, false)) { const value_casted = value as (BadgeParamWithNumber) this.getPeer()?.setBadgeOptions0Attribute(value_casted) return this } - if ((TypeChecker.isBadgeParamWithString(value, false))) { + if (TypeChecker.isBadgeParamWithString(value, false)) { const value_casted = value as (BadgeParamWithString) this.getPeer()?.setBadgeOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts index 5d22f1b9b..1718e6a03 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length, Position } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { ResourceColor, Length, Position, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { FontWeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum BadgePosition { RIGHT_TOP = 0, RightTop = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts index 0c93faed7..fdecee5b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -18,12 +18,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseEvent { target: EventTarget @@ -106,12 +105,12 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { const deviceId_NonNull = (deviceId as number) this.setDeviceId(deviceId_NonNull) } - static ctor(): KPointer { + static ctor_baseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = BaseEventInternal.ctor() + const ctorPtr : KPointer = BaseEventInternal.ctor_baseevent() this.peer = new Finalizable(ctorPtr, BaseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 33dc02f00..eadb8b36f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseGestureEvent { fingerList: Array @@ -40,23 +40,30 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater set fingerList(fingerList: Array) { this.setFingerList(fingerList) } - static ctor(): KPointer { + static ctor_basegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = BaseGestureEventInternal.ctor() + const ctorPtr : KPointer = BaseGestureEventInternal.ctor_basegestureevent() this.peer = new Finalizable(ctorPtr, BaseGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseGestureEvent_getFinalizer() } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this.setFingerList_serialize(fingerList_casted) return } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index b277873cd..17052d47c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BaselineOffsetStyleInternal { + public static fromPtr(ptr: KPointer): BaselineOffsetStyle { + const obj : BaselineOffsetStyle = new BaselineOffsetStyle(undefined) + obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) + return obj + } +} export class BaselineOffsetStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class BaselineOffsetStyle implements MaterializedBase { get baselineOffset(): number { return this.getBaselineOffset() } - static ctor(value: LengthMetrics): KPointer { + static ctor_baselineoffsetstyle(value: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = BaselineOffsetStyle.ctor(value) + const ctorPtr : KPointer = BaselineOffsetStyle.ctor_baselineoffsetstyle(value) this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } } -export class BaselineOffsetStyleInternal { - public static fromPtr(ptr: KPointer): BaselineOffsetStyle { - const obj : BaselineOffsetStyle = new BaselineOffsetStyle(undefined) - obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBlank.ts b/arkoala-arkts/arkui/src/generated/ArkBlank.ts index 81cda3540..cd8cc8be4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlank.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlank.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { BlankAttribute } from "./ArkBlankInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkBlankComponent extends ArkCommonMethodComponent { getPeer(): ArkBlankPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts index a553a5093..ef54a21e7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type BlankInterface = (min?: number | string) => BlankAttribute; export interface BlankAttribute extends CommonMethod { color: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index 23a2ed49a..8ca99c39f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BounceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): BounceSymbolEffect { + const obj : BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) + return obj + } +} export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +50,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_bouncesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -65,7 +71,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr : KPointer = BounceSymbolEffect.ctor(scope, direction) + const ctorPtr : KPointer = BounceSymbolEffect.ctor_bouncesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +108,3 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) } } -export class BounceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): BounceSymbolEffect { - const obj : BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkButton.ts b/arkoala-arkts/arkui/src/generated/ArkButton.ts index 78dc84723..72930d126 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButton.ts @@ -19,15 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ButtonAttribute, ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions } from "./ArkButtonInterfaces" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonAttribute, ButtonOptions } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkButtonComponent extends ArkCommonMethodComponent { getPeer(): ArkButtonPeer { @@ -38,16 +56,16 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == label_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.UNDEFINED == label_type) && (RuntimeType.UNDEFINED == options_type)) { this.getPeer()?.setButtonOptions0Attribute() return this } - if ((TypeChecker.isButtonOptions(label, false, false, false, false, false)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isButtonOptions(label, false, false, false, false, false)) && (RuntimeType.UNDEFINED == options_type)) { const options_casted = label as (ButtonOptions) this.getPeer()?.setButtonOptions1Attribute(options_casted) return this } - if (((((RuntimeType.STRING == label_type))) || (((RuntimeType.OBJECT == label_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.STRING == label_type) || (RuntimeType.OBJECT == label_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const label_casted = label as (ResourceStr) const options_casted = options as (ButtonOptions | undefined) this.getPeer()?.setButtonOptions2Attribute(label_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts index ffb36b82b..99b999ce2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Font, ResourceColor, Length } from "./ArkUnitsInterfaces" -import { TextOverflow, TextHeightAdaptivePolicy, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { ResourceStr, Font, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { TextOverflow, TextHeightAdaptivePolicy, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ButtonType { CAPSULE = 0, Capsule = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts index 2349affe2..d1ae7360e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" import { UseEventsProperties } from "./use_properties" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 6f56f43ad..7a44ce915 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -18,24 +18,30 @@ import { Literal_Number_day_month_year } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CalendarControllerInternal { + public static fromPtr(ptr: KPointer): CalendarController { + const obj : CalendarController = new CalendarController() + obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) + return obj + } +} export class CalendarController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarController_ctor() return retval } constructor() { - const ctorPtr : KPointer = CalendarController.ctor() + const ctorPtr : KPointer = CalendarController.ctor_calendarcontroller() this.peer = new Finalizable(ctorPtr, CalendarController.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +71,3 @@ export class CalendarController implements MaterializedBase { return retval } } -export class CalendarControllerInternal { - public static fromPtr(ptr: KPointer): CalendarController { - const obj : CalendarController = new CalendarController() - obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts index de783d7ec..cab7e2e1f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { CalendarPickerAttribute, CalendarAlign, CalendarOptions } from "./ArkCalendarPickerInterfaces" -import { Callback_Date_Void } from "./SyntheticDeclarations" -import { Offset } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./ArkCalendarPickerInterfaces" /** @memo:stable */ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkCalendarPickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 70f501a1a..1cb0a0f28 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { CalendarDialogOptions } from "./ArkCalendarPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CalendarPickerDialogInternal { + public static fromPtr(ptr: KPointer): CalendarPickerDialog { + const obj : CalendarPickerDialog = new CalendarPickerDialog() + obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) + return obj + } +} export class CalendarPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarPickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class CalendarPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = CalendarPickerDialog.ctor() + const ctorPtr : KPointer = CalendarPickerDialog.ctor_calendarpickerdialog() this.peer = new Finalizable(ctorPtr, CalendarPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class CalendarPickerDialog implements MaterializedBase { thisSerializer.release() } } -export class CalendarPickerDialogInternal { - public static fromPtr(ptr: KPointer): CalendarPickerDialog { - const obj : CalendarPickerDialog = new CalendarPickerDialog() - obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts index 2ce075885..7d6acca4b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, PickerTextStyle, BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_Date_Void } from "./SyntheticDeclarations" -import { Offset, VoidCallback, ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum CalendarAlign { START = 0, CENTER = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts index eb36d2837..67f58a1a1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts @@ -19,16 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { CanvasAttribute } from "./ArkCanvasInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute } from "./ArkCanvasInterfaces" import { ImageAIOptions } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkCanvasComponent extends ArkCommonMethodComponent { @@ -40,13 +60,13 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isCanvasRenderingContext2D(context, false, false, false))) || (((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isDrawingRenderingContext(context, false, false)))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isCanvasRenderingContext2D(context, false, false, false))) || (((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isDrawingRenderingContext(context, false, false)))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setCanvasOptions1Attribute(context_casted, imageAIOptions_casted) return this } - if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type)) || ((RuntimeType.UNDEFINED == context_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((RuntimeType.OBJECT == context_type) || (RuntimeType.OBJECT == context_type) || (RuntimeType.UNDEFINED == context_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext | undefined) this.getPeer()?.setCanvasOptions0Attribute(context_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 786d0b06b..8458f4796 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasGradientInternal { + public static fromPtr(ptr: KPointer): CanvasGradient { + const obj : CanvasGradient = new CanvasGradient() + obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) + return obj + } +} export class CanvasGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvasgradient(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasGradient_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasGradient.ctor() + const ctorPtr : KPointer = CanvasGradient.ctor_canvasgradient() this.peer = new Finalizable(ctorPtr, CanvasGradient.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +56,3 @@ export class CanvasGradient implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasGradient_addColorStop(this.peer!.ptr, offset, color) } } -export class CanvasGradientInternal { - public static fromPtr(ptr: KPointer): CanvasGradient { - const obj : CanvasGradient = new CanvasGradient() - obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts index 0201ba956..7c1974110 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts @@ -22,8 +22,28 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" import { ImageAIOptions } from "./ArkImageCommonInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type CanvasFillRule = string; export type CanvasLineCap = string; export type CanvasLineJoin = string; diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts index 7c0260f97..f01c1760e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasPathInternal { + public static fromPtr(ptr: KPointer): CanvasPath { + const obj : CanvasPath = new CanvasPath() + obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) + return obj + } +} export class CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspath(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPath_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasPath.ctor() + const ctorPtr : KPointer = CanvasPath.ctor_canvaspath() this.peer = new Finalizable(ctorPtr, CanvasPath.getFinalizer()) } static getFinalizer(): KPointer { @@ -159,10 +165,3 @@ export class CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h) } } -export class CanvasPathInternal { - public static fromPtr(ptr: KPointer): CanvasPath { - const obj : CanvasPath = new CanvasPath() - obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts index 87e3a24bf..1aa9db9d5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,12 +18,11 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface CanvasPattern { setTransform(transform: Matrix2D): void @@ -33,12 +32,12 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspattern(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPattern_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasPatternInternal.ctor() + const ctorPtr : KPointer = CanvasPatternInternal.ctor_canvaspattern() this.peer = new Finalizable(ctorPtr, CanvasPatternInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts index 44c5b72f9..b655b3171 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,13 +26,19 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasRendererInternal { + public static fromPtr(ptr: KPointer): CanvasRenderer { + const obj : CanvasRenderer = new CanvasRenderer() + obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) + return obj + } +} export class CanvasRenderer extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -158,13 +164,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { set textBaseline(textBaseline: CanvasTextBaseline) { this.setTextBaseline(textBaseline) } - static ctor(): KPointer { + static ctor_canvasrenderer(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = CanvasRenderer.ctor() + const ctorPtr : KPointer = CanvasRenderer.ctor_canvasrenderer() this.peer = new Finalizable(ctorPtr, CanvasRenderer.getFinalizer()) } static getFinalizer(): KPointer { @@ -180,14 +186,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dy_type = runtimeType(dy) const dw_type = runtimeType(dw) const dh_type = runtimeType(dh) - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.UNDEFINED == sw_type))) && (((RuntimeType.UNDEFINED == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.UNDEFINED == sw_type) && (RuntimeType.UNDEFINED == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) this.drawImage0_serialize(image_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) @@ -196,7 +202,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.drawImage1_serialize(image_casted, dx_casted, dy_casted, dw_casted, dh_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.NUMBER == dx_type))) && (((RuntimeType.NUMBER == dy_type))) && (((RuntimeType.NUMBER == dw_type))) && (((RuntimeType.NUMBER == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.NUMBER == dx_type) && (RuntimeType.NUMBER == dy_type) && (RuntimeType.NUMBER == dw_type) && (RuntimeType.NUMBER == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const sx_casted = sx as (number) const sy_casted = sy as (number) @@ -218,12 +224,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this.clip0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this.clip1_serialize(path_casted, fillRule_casted) @@ -234,12 +240,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this.fill0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this.fill1_serialize(path_casted, fillRule_casted) @@ -249,11 +255,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } public stroke(path?: Path2D): void { const path_type = runtimeType(path) - if ((((RuntimeType.UNDEFINED == path_type)))) { + if (RuntimeType.UNDEFINED == path_type) { this.stroke0_serialize() return } - if ((((RuntimeType.OBJECT == path_type)))) { + if (RuntimeType.OBJECT == path_type) { const path_casted = path as (Path2D) this.stroke1_serialize(path_casted) return @@ -290,11 +296,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public createImageData(sw: ImageData | number, sh?: number): ImageData { const sw_type = runtimeType(sw) const sh_type = runtimeType(sh) - if ((((RuntimeType.OBJECT == sw_type))) && (((RuntimeType.UNDEFINED == sh_type)))) { + if ((RuntimeType.OBJECT == sw_type) && (RuntimeType.UNDEFINED == sh_type)) { const imagedata_casted = sw as (ImageData) return this.createImageData1_serialize(imagedata_casted) } - if ((((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type)))) { + if ((RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type)) { const sw_casted = sw as (number) const sh_casted = sh as (number) return this.createImageData0_serialize(sw_casted, sh_casted) @@ -323,14 +329,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dirtyY_type = runtimeType(dirtyY) const dirtyWidth_type = runtimeType(dirtyWidth) const dirtyHeight_type = runtimeType(dirtyHeight) - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.UNDEFINED == dirtyX_type))) && (((RuntimeType.UNDEFINED == dirtyY_type))) && (((RuntimeType.UNDEFINED == dirtyWidth_type))) && (((RuntimeType.UNDEFINED == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && (RuntimeType.UNDEFINED == dirtyX_type) && (RuntimeType.UNDEFINED == dirtyY_type) && (RuntimeType.UNDEFINED == dirtyWidth_type) && (RuntimeType.UNDEFINED == dirtyHeight_type)) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) this.putImageData0_serialize(imagedata_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.NUMBER == dirtyX_type)) || ((RuntimeType.STRING == dirtyX_type))) && (((RuntimeType.NUMBER == dirtyY_type)) || ((RuntimeType.STRING == dirtyY_type))) && (((RuntimeType.NUMBER == dirtyWidth_type)) || ((RuntimeType.STRING == dirtyWidth_type))) && (((RuntimeType.NUMBER == dirtyHeight_type)) || ((RuntimeType.STRING == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && ((RuntimeType.NUMBER == dirtyX_type) || (RuntimeType.STRING == dirtyX_type)) && ((RuntimeType.NUMBER == dirtyY_type) || (RuntimeType.STRING == dirtyY_type)) && ((RuntimeType.NUMBER == dirtyWidth_type) || (RuntimeType.STRING == dirtyWidth_type)) && ((RuntimeType.NUMBER == dirtyHeight_type) || (RuntimeType.STRING == dirtyHeight_type))) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) @@ -428,12 +434,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const d_type = runtimeType(d) const e_type = runtimeType(e) const f_type = runtimeType(f) - if ((((RuntimeType.OBJECT == a_type)) || ((RuntimeType.UNDEFINED == a_type))) && (((RuntimeType.UNDEFINED == b_type))) && (((RuntimeType.UNDEFINED == c_type))) && (((RuntimeType.UNDEFINED == d_type))) && (((RuntimeType.UNDEFINED == e_type))) && (((RuntimeType.UNDEFINED == f_type)))) { + if (((RuntimeType.OBJECT == a_type) || (RuntimeType.UNDEFINED == a_type)) && (RuntimeType.UNDEFINED == b_type) && (RuntimeType.UNDEFINED == c_type) && (RuntimeType.UNDEFINED == d_type) && (RuntimeType.UNDEFINED == e_type) && (RuntimeType.UNDEFINED == f_type)) { const transform_casted = a as (Matrix2D | undefined) this.setTransform1_serialize(transform_casted) return } - if ((((RuntimeType.NUMBER == a_type))) && (((RuntimeType.NUMBER == b_type))) && (((RuntimeType.NUMBER == c_type))) && (((RuntimeType.NUMBER == d_type))) && (((RuntimeType.NUMBER == e_type))) && (((RuntimeType.NUMBER == f_type)))) { + if ((RuntimeType.NUMBER == a_type) && (RuntimeType.NUMBER == b_type) && (RuntimeType.NUMBER == c_type) && (RuntimeType.NUMBER == d_type) && (RuntimeType.NUMBER == e_type) && (RuntimeType.NUMBER == f_type)) { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -800,24 +806,24 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type : int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0 as int32) const dx_0 = dx as number thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1 as int32) const dx_1 = dx as string thisSerializer.writeString(dx_1) } let dy_type : int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0 as int32) const dy_0 = dy as number thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1 as int32) const dy_1 = dy as string thisSerializer.writeString(dy_1) @@ -830,72 +836,72 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type : int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0 as int32) const dx_0 = dx as number thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1 as int32) const dx_1 = dx as string thisSerializer.writeString(dx_1) } let dy_type : int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0 as int32) const dy_0 = dy as number thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1 as int32) const dy_1 = dy as string thisSerializer.writeString(dy_1) } let dirtyX_type : int32 = RuntimeType.UNDEFINED dirtyX_type = runtimeType(dirtyX) - if (((RuntimeType.NUMBER == dirtyX_type))) { + if (RuntimeType.NUMBER == dirtyX_type) { thisSerializer.writeInt8(0 as int32) const dirtyX_0 = dirtyX as number thisSerializer.writeNumber(dirtyX_0) } - else if (((RuntimeType.STRING == dirtyX_type))) { + else if (RuntimeType.STRING == dirtyX_type) { thisSerializer.writeInt8(1 as int32) const dirtyX_1 = dirtyX as string thisSerializer.writeString(dirtyX_1) } let dirtyY_type : int32 = RuntimeType.UNDEFINED dirtyY_type = runtimeType(dirtyY) - if (((RuntimeType.NUMBER == dirtyY_type))) { + if (RuntimeType.NUMBER == dirtyY_type) { thisSerializer.writeInt8(0 as int32) const dirtyY_0 = dirtyY as number thisSerializer.writeNumber(dirtyY_0) } - else if (((RuntimeType.STRING == dirtyY_type))) { + else if (RuntimeType.STRING == dirtyY_type) { thisSerializer.writeInt8(1 as int32) const dirtyY_1 = dirtyY as string thisSerializer.writeString(dirtyY_1) } let dirtyWidth_type : int32 = RuntimeType.UNDEFINED dirtyWidth_type = runtimeType(dirtyWidth) - if (((RuntimeType.NUMBER == dirtyWidth_type))) { + if (RuntimeType.NUMBER == dirtyWidth_type) { thisSerializer.writeInt8(0 as int32) const dirtyWidth_0 = dirtyWidth as number thisSerializer.writeNumber(dirtyWidth_0) } - else if (((RuntimeType.STRING == dirtyWidth_type))) { + else if (RuntimeType.STRING == dirtyWidth_type) { thisSerializer.writeInt8(1 as int32) const dirtyWidth_1 = dirtyWidth as string thisSerializer.writeString(dirtyWidth_1) } let dirtyHeight_type : int32 = RuntimeType.UNDEFINED dirtyHeight_type = runtimeType(dirtyHeight) - if (((RuntimeType.NUMBER == dirtyHeight_type))) { + if (RuntimeType.NUMBER == dirtyHeight_type) { thisSerializer.writeInt8(0 as int32) const dirtyHeight_0 = dirtyHeight as number thisSerializer.writeNumber(dirtyHeight_0) } - else if (((RuntimeType.STRING == dirtyHeight_type))) { + else if (RuntimeType.STRING == dirtyHeight_type) { thisSerializer.writeInt8(1 as int32) const dirtyHeight_1 = dirtyHeight as string thisSerializer.writeString(dirtyHeight_1) @@ -946,7 +952,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readTextMetrics() } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer : Serializer = Serializer.hold() @@ -1039,12 +1045,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let fillStyle_type : int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) - if (((RuntimeType.STRING == fillStyle_type))) { + if (RuntimeType.STRING == fillStyle_type) { thisSerializer.writeInt8(0 as int32) const fillStyle_0 = fillStyle as string thisSerializer.writeString(fillStyle_0) } - else if (((RuntimeType.NUMBER == fillStyle_type))) { + else if (RuntimeType.NUMBER == fillStyle_type) { thisSerializer.writeInt8(1 as int32) const fillStyle_1 = fillStyle as number thisSerializer.writeNumber(fillStyle_1) @@ -1054,7 +1060,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const fillStyle_2 = fillStyle as CanvasGradient thisSerializer.writeCanvasGradient(fillStyle_2) } - else if (((RuntimeType.OBJECT == fillStyle_type))) { + else if (RuntimeType.OBJECT == fillStyle_type) { thisSerializer.writeInt8(3 as int32) const fillStyle_3 = fillStyle as CanvasPattern thisSerializer.writeCanvasPattern(fillStyle_3) @@ -1066,12 +1072,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let strokeStyle_type : int32 = RuntimeType.UNDEFINED strokeStyle_type = runtimeType(strokeStyle) - if (((RuntimeType.STRING == strokeStyle_type))) { + if (RuntimeType.STRING == strokeStyle_type) { thisSerializer.writeInt8(0 as int32) const strokeStyle_0 = strokeStyle as string thisSerializer.writeString(strokeStyle_0) } - else if (((RuntimeType.NUMBER == strokeStyle_type))) { + else if (RuntimeType.NUMBER == strokeStyle_type) { thisSerializer.writeInt8(1 as int32) const strokeStyle_1 = strokeStyle as number thisSerializer.writeNumber(strokeStyle_1) @@ -1081,7 +1087,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const strokeStyle_2 = strokeStyle as CanvasGradient thisSerializer.writeCanvasGradient(strokeStyle_2) } - else if (((RuntimeType.OBJECT == strokeStyle_type))) { + else if (RuntimeType.OBJECT == strokeStyle_type) { thisSerializer.writeInt8(3 as int32) const strokeStyle_3 = strokeStyle as CanvasPattern thisSerializer.writeCanvasPattern(strokeStyle_3) @@ -1202,10 +1208,3 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasRenderer_setTextBaseline(this.peer!.ptr, textBaseline) } } -export class CanvasRendererInternal { - public static fromPtr(ptr: KPointer): CanvasRenderer { - const obj : CanvasRenderer = new CanvasRenderer() - obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index efbd855c9..90fb51eb6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -17,19 +17,34 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { FrameNode, FrameNodeInternal } from "./ArkFrameNodeMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { + const obj : CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) + obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) + return obj + } +} export class CanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +59,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material get canvas(): FrameNode { throw new Error("Not implemented") } - static ctor(settings?: RenderingContextSettings): KPointer { + static ctor_canvasrenderingcontext2d(settings?: RenderingContextSettings): KPointer { const thisSerializer : Serializer = Serializer.hold() let settings_type : int32 = RuntimeType.UNDEFINED settings_type = runtimeType(settings) @@ -59,7 +74,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material } constructor(settings?: RenderingContextSettings) { super() - const ctorPtr : KPointer = CanvasRenderingContext2D.ctor(settings) + const ctorPtr : KPointer = CanvasRenderingContext2D.ctor_canvasrenderingcontext2d(settings) this.peer = new Finalizable(ctorPtr, CanvasRenderingContext2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -186,10 +201,3 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material return retval } } -export class CanvasRenderingContext2DInternal { - public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { - const obj : CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) - obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts index 3b29cb385..35aa47b01 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./ArkCheckboxInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./ArkCheckboxInterfaces" /** @memo:stable */ export class ArkCheckboxComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts index bec975959..78cca84d6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" +import { CustomBuilder, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Boolean_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface CheckboxOptions { name?: string; group?: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts index 164497925..e01a14571 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupOptions } from "./ArkCheckboxgroupInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./ArkCheckboxgroupInterfaces" /** @memo:stable */ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts index 88c4a5192..4020f5ebd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum SelectStatus { ALL = 0, All = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index bd5c468a6..194f8423c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ChildrenMainSizeInternal { + public static fromPtr(ptr: KPointer): ChildrenMainSize { + const obj : ChildrenMainSize = new ChildrenMainSize(undefined) + obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) + return obj + } +} export class ChildrenMainSize implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,14 +41,14 @@ export class ChildrenMainSize implements MaterializedBase { set childDefaultSize(childDefaultSize: number) { this.setChildDefaultSize(childDefaultSize) } - static ctor(childDefaultSize: number): KPointer { + static ctor_childrenmainsize(childDefaultSize: number): KPointer { const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_ctor(childDefaultSize) return retval } constructor(childDefaultSize?: number) { - if (((childDefaultSize) !== (undefined))) + if ((childDefaultSize) !== (undefined)) { - const ctorPtr : KPointer = ChildrenMainSize.ctor(childDefaultSize) + const ctorPtr : KPointer = ChildrenMainSize.ctor_childrenmainsize(childDefaultSize) this.peer = new Finalizable(ctorPtr, ChildrenMainSize.getFinalizer()) } } @@ -104,10 +110,3 @@ export class ChildrenMainSize implements MaterializedBase { ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) } } -export class ChildrenMainSizeInternal { - public static fromPtr(ptr: KPointer): ChildrenMainSize { - const obj : ChildrenMainSize = new ChildrenMainSize(undefined) - obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCircle.ts b/arkoala-arkts/arkui/src/generated/ArkCircle.ts index 50a3e0a46..62b146792 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircle.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { CircleAttribute, CircleOptions } from "./ArkCircleInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CircleOptions, CircleAttribute } from "./ArkCircleInterfaces" /** @memo:stable */ export class ArkCircleComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkCirclePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts index b58350891..079753172 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface CircleOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts index 7d215e899..0483f4e0d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ClickEvent { displayX: number @@ -96,13 +96,13 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_clickevent(): KPointer { const retval = ArkUIGeneratedNativeModule._ClickEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ClickEventInternal.ctor() + const ctorPtr : KPointer = ClickEventInternal.ctor_clickevent() this.peer = new Finalizable(ctorPtr, ClickEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index 5f325ce81..475d568d0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ClientAuthenticationHandlerInternal { + public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { + const obj : ClientAuthenticationHandler = new ClientAuthenticationHandler() + obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) + return obj + } +} export class ClientAuthenticationHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_clientauthenticationhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ClientAuthenticationHandler.ctor() + const ctorPtr : KPointer = ClientAuthenticationHandler.ctor_clientauthenticationhandler() this.peer = new Finalizable(ctorPtr, ClientAuthenticationHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -43,12 +49,12 @@ export class ClientAuthenticationHandler implements MaterializedBase { public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) - if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { + if (RuntimeType.UNDEFINED == certChainFile_type) { const authUri_casted = priKeyFile as (string) this.confirm1_serialize(authUri_casted) return } - if ((((RuntimeType.STRING == certChainFile_type)))) { + if (RuntimeType.STRING == certChainFile_type) { const priKeyFile_casted = priKeyFile as (string) const certChainFile_casted = certChainFile as (string) this.confirm0_serialize(priKeyFile_casted, certChainFile_casted) @@ -77,10 +83,3 @@ export class ClientAuthenticationHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ignore(this.peer!.ptr) } } -export class ClientAuthenticationHandlerInternal { - public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { - const obj : ClientAuthenticationHandler = new ClientAuthenticationHandler() - obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts index 04dcbd8d8..c25f4a577 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -17,19 +17,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ColorFilterInternal { + public static fromPtr(ptr: KPointer): ColorFilter { + const obj : ColorFilter = new ColorFilter(undefined) + obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) + return obj + } +} export class ColorFilter implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: Array): KPointer { + static ctor_colorfilter(value: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(value.length as int32) for (let i = 0; i < value.length; i++) { @@ -41,9 +47,9 @@ export class ColorFilter implements MaterializedBase { return retval } constructor(value?: Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = ColorFilter.ctor(value) + const ctorPtr : KPointer = ColorFilter.ctor_colorfilter(value) this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) } } @@ -51,10 +57,3 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export class ColorFilterInternal { - public static fromPtr(ptr: KPointer): ColorFilter { - const obj : ColorFilter = new ColorFilter(undefined) - obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkColumn.ts b/arkoala-arkts/arkui/src/generated/ArkColumn.ts index 2a4b23551..9da1c5123 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumn.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumn.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { ColumnAttribute, ColumnOptions } from "./ArkColumnInterfaces" -import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ColumnOptions, ColumnAttribute } from "./ArkColumnInterfaces" /** @memo:stable */ export class ArkColumnComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts index a857a62fb..9d2959b22 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface ColumnOptions { space?: string | number; } diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts index 878b1d633..d271375bb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ColumnSplitAttribute, ColumnSplitDividerStyle } from "./ArkColumnSplitInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./ArkColumnSplitInterfaces" /** @memo:stable */ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnSplitPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts index 42b5759d5..90eff891b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type ColumnSplitInterface = () => ColumnSplitAttribute; export interface ColumnSplitDividerStyle { startMargin?: Dimension; diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 82cb77118..d6a8052b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" @@ -407,12 +407,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) - if ((((RuntimeType.UNDEFINED == distanceThreshold_type)))) { + if (RuntimeType.UNDEFINED == distanceThreshold_type) { const value_casted = event as (((event: ClickEvent) => void)) this.getPeer()?.onClick0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == distanceThreshold_type)))) { + if (RuntimeType.NUMBER == distanceThreshold_type) { const event_casted = event as (((event: ClickEvent) => void)) const distanceThreshold_casted = distanceThreshold as (number) this.getPeer()?.onClick1Attribute(event_casted, distanceThreshold_casted) @@ -571,12 +571,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) - if (((TypeChecker.isTransitionOptions(effect, false, false, false, false, false)) || (((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect)))) && (((RuntimeType.UNDEFINED == onFinish_type)))) { + if (((TypeChecker.isTransitionOptions(effect, false, false, false, false, false)) || (((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect)))) && (RuntimeType.UNDEFINED == onFinish_type)) { const value_casted = effect as (TransitionOptions | TransitionEffect) this.getPeer()?.transition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect))) && (((RuntimeType.FUNCTION == onFinish_type)) || ((RuntimeType.UNDEFINED == onFinish_type)))) { + if ((((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect))) && ((RuntimeType.FUNCTION == onFinish_type) || (RuntimeType.UNDEFINED == onFinish_type))) { const effect_casted = effect as (TransitionEffect) const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) this.getPeer()?.transition1Attribute(effect_casted, onFinish_casted) @@ -681,12 +681,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) - if ((((RuntimeType.UNDEFINED == effectType_type)))) { + if (RuntimeType.UNDEFINED == effectType_type) { const value_casted = useEffect as (boolean) this.getPeer()?.useEffect0Attribute(value_casted) return this } - if ((((TypeChecker.isEffectType(effectType))))) { + if (TypeChecker.isEffectType(effectType)) { const useEffect_casted = useEffect as (boolean) const effectType_casted = effectType as (EffectType) this.getPeer()?.useEffect1Attribute(useEffect_casted, effectType_casted) @@ -943,12 +943,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { if (this.checkPriority("alignRules")) { const value_type = runtimeType(value) - if ((TypeChecker.isAlignRuleOption(value, false, false, true, true, true, true, true))) { + if (TypeChecker.isAlignRuleOption(value, false, false, true, true, true, true, true)) { const value_casted = value as (AlignRuleOption) this.getPeer()?.alignRules0Attribute(value_casted) return this } - if ((TypeChecker.isLocalizedAlignRuleOptions(value, false, false, true, true, true, true, true))) { + if (TypeChecker.isLocalizedAlignRuleOptions(value, false, false, true, true, true, true, true)) { const value_casted = value as (LocalizedAlignRuleOptions) this.getPeer()?.alignRules1Attribute(value_casted) return this @@ -1114,12 +1114,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this @@ -1141,12 +1141,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this @@ -1187,12 +1187,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = id as (string) this.getPeer()?.geometryTransition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const id_casted = id as (string) const options_casted = options as (GeometryTransitionOptions | undefined) this.getPeer()?.geometryTransition1Attribute(id_casted, options_casted) @@ -1252,12 +1252,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) - if ((((RuntimeType.UNDEFINED == accessibilityOptions_type)))) { + if (RuntimeType.UNDEFINED == accessibilityOptions_type) { const value_casted = isGroup as (boolean) this.getPeer()?.accessibilityGroup0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == accessibilityOptions_type)))) { + if (RuntimeType.OBJECT == accessibilityOptions_type) { const isGroup_casted = isGroup as (boolean) const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions) this.getPeer()?.accessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) @@ -1271,12 +1271,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityText0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityText1Attribute(value_casted) return this @@ -1298,12 +1298,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityDescription0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityDescription1Attribute(value_casted) return this @@ -1407,12 +1407,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) - if ((((RuntimeType.UNDEFINED == exposeInnerGesture_type)))) { + if (RuntimeType.UNDEFINED == exposeInnerGesture_type) { const value_casted = callback_ as (GestureRecognizerJudgeBeginCallback) this.getPeer()?.onGestureRecognizerJudgeBegin0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == exposeInnerGesture_type)))) { + if (RuntimeType.BOOLEAN == exposeInnerGesture_type) { const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback) const exposeInnerGesture_casted = exposeInnerGesture as (boolean) this.getPeer()?.onGestureRecognizerJudgeBegin1Attribute(callback__casted, exposeInnerGesture_casted) @@ -1524,13 +1524,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) const arrowStepOut_type = runtimeType(arrowStepOut) - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && (RuntimeType.UNDEFINED == arrowStepOut_type)) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) this.getPeer()?.focusScopeId0Attribute(id_casted, isGroup_casted) return this } - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.BOOLEAN == arrowStepOut_type)) || ((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && ((RuntimeType.BOOLEAN == arrowStepOut_type) || (RuntimeType.UNDEFINED == arrowStepOut_type))) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) const arrowStepOut_casted = arrowStepOut as (boolean | undefined) @@ -1695,13 +1695,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) const options_type = runtimeType(options) - if ((((RuntimeType.OBJECT == isShow_type)) || ((RuntimeType.FUNCTION == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.OBJECT == isShow_type) || (RuntimeType.FUNCTION == isShow_type)) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.UNDEFINED == content_type)) && (RuntimeType.UNDEFINED == options_type)) { const content_casted = isShow as (Array | CustomBuilder) const options_casted = content as (MenuOptions | undefined) this.getPeer()?.bindMenu0Attribute(content_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type))) && ((((RuntimeType.OBJECT == content_type))) || (((RuntimeType.FUNCTION == content_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == isShow_type) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.FUNCTION == content_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShow_casted = isShow as (boolean) const content_casted = content as (Array | CustomBuilder) const options_casted = options as (MenuOptions | undefined) @@ -1718,14 +1718,14 @@ export class ArkCommonMethodComponent extends ComponentBase { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) const options_type = runtimeType(options) - if ((((RuntimeType.FUNCTION == content_type))) && (((TypeChecker.isResponseType(responseType)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.FUNCTION == content_type) && (TypeChecker.isResponseType(responseType)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType) const options_casted = options as (ContextMenuOptions | undefined) this.getPeer()?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == content_type))) && (((RuntimeType.FUNCTION == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == content_type) && (RuntimeType.FUNCTION == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShown_casted = content as (boolean) const content_casted = responseType as (CustomBuilder) const options_casted = options as (ContextMenuOptions | undefined) @@ -1742,14 +1742,14 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) const type_type = runtimeType(type) - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.OBJECT == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.OBJECT == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const type_casted = type as (ModalTransition | undefined) this.getPeer()?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = type as (ContentCoverOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts index 46aabb87f..46a72e45f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Component3DAttribute, SceneOptions } from "./ArkComponent3dInterfaces" -import { ResourceStr, Dimension } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkComponent3DComponent extends ArkCommonMethodComponent { getPeer(): ArkComponent3DPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts index ed35bfcaa..263fbc899 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface Scene { _SceneStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts index eec7f6d43..1cddcec89 100644 --- a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -18,26 +18,32 @@ import { MessageLevel } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ConsoleMessageInternal { + public static fromPtr(ptr: KPointer): ConsoleMessage { + const obj : ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) + return obj + } +} export class ConsoleMessage implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { + static ctor_consolemessage(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, (messageLevel.valueOf() as int32)) return retval } constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { if (((message) !== (undefined)) && ((sourceId) !== (undefined)) && ((lineNumber) !== (undefined)) && ((messageLevel) !== (undefined))) { - const ctorPtr : KPointer = ConsoleMessage.ctor(message, sourceId, lineNumber, messageLevel) + const ctorPtr : KPointer = ConsoleMessage.ctor_consolemessage(message, sourceId, lineNumber, messageLevel) this.peer = new Finalizable(ctorPtr, ConsoleMessage.getFinalizer()) } } @@ -73,10 +79,3 @@ export class ConsoleMessage implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ConsoleMessageInternal { - public static fromPtr(ptr: KPointer): ConsoleMessage { - const obj : ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts index 686686bf5..b535e7ac4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts index 6d57b5972..7de6a981e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -17,19 +17,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ContextMenuInternal { + public static fromPtr(ptr: KPointer): ContextMenu { + const obj : ContextMenu = new ContextMenu() + obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) + return obj + } +} export class ContextMenu implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_contextmenu(): KPointer { const retval = ArkUIGeneratedNativeModule._ContextMenu_ctor() return retval } @@ -37,7 +43,7 @@ export class ContextMenu implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = ContextMenu.ctor() + const ctorPtr : KPointer = ContextMenu.ctor_contextmenu() this.peer = new Finalizable(ctorPtr, ContextMenu.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +57,3 @@ export class ContextMenu implements MaterializedBase { return retval } } -export class ContextMenuInternal { - public static fromPtr(ptr: KPointer): ContextMenu { - const obj : ContextMenu = new ContextMenu() - obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts index e761e8c4a..b1d2f9480 100644 --- a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -18,24 +18,30 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ControllerHandlerInternal { + public static fromPtr(ptr: KPointer): ControllerHandler { + const obj : ControllerHandler = new ControllerHandler() + obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) + return obj + } +} export class ControllerHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_controllerhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ControllerHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ControllerHandler.ctor() + const ctorPtr : KPointer = ControllerHandler.ctor_controllerhandler() this.peer = new Finalizable(ctorPtr, ControllerHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,10 +59,3 @@ export class ControllerHandler implements MaterializedBase { thisSerializer.release() } } -export class ControllerHandlerInternal { - public static fromPtr(ptr: KPointer): ControllerHandler { - const obj : ControllerHandler = new ControllerHandler() - obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCounter.ts b/arkoala-arkts/arkui/src/generated/ArkCounter.ts index ec93cb823..ce7348c91 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounter.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CounterAttribute } from "./ArkCounterInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkCounterComponent extends ArkCommonMethodComponent { getPeer(): ArkCounterPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts index 37f1e0d35..8e28a2f5d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type CounterInterface = () => CounterAttribute; export interface CounterAttribute extends CommonMethod { onInc: VoidCallback; diff --git a/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts new file mode 100644 index 000000000..1dff81756 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { PointerStyle } from "./ArkArkuiCustomInterfaces" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export namespace cursorControl { + export class GlobalScope_cursorControl_common { + public static setCursor(value: PointerStyle): void { + const value_casted = value as (PointerStyle) + GlobalScope_cursorControl_common.setCursor_serialize(value_casted) + return + } + public static restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault_serialize() + return + } + private static setCursor_serialize(value: PointerStyle): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_setCursor((value.valueOf() as int32)) + } + private static restoreDefault_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_restoreDefault() + } + } +} +export namespace cursorControl { + export function setCursor(value: PointerStyle): void { + GlobalScope_cursorControl_common.setCursor(value) + } + export function restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault() + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index e578dd70c..86165f851 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -18,19 +18,25 @@ import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CustomDialogControllerInternal { + public static fromPtr(ptr: KPointer): CustomDialogController { + const obj : CustomDialogController = new CustomDialogController(undefined) + obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) + return obj + } +} export class CustomDialogController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: CustomDialogControllerOptions): KPointer { + static ctor_customdialogcontroller(value: CustomDialogControllerOptions): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomDialogControllerOptions(value) const retval = ArkUIGeneratedNativeModule._CustomDialogController_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -38,9 +44,9 @@ export class CustomDialogController implements MaterializedBase { return retval } constructor(value?: CustomDialogControllerOptions) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = CustomDialogController.ctor(value) + const ctorPtr : KPointer = CustomDialogController.ctor_customdialogcontroller(value) this.peer = new Finalizable(ctorPtr, CustomDialogController.getFinalizer()) } } @@ -62,10 +68,3 @@ export class CustomDialogController implements MaterializedBase { return retval } } -export class CustomDialogControllerInternal { - public static fromPtr(ptr: KPointer): CustomDialogController { - const obj : CustomDialogController = new CustomDialogController(undefined) - obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts index 6b5146ad7..c98371086 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -19,24 +19,30 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CustomSpanInternal { + public static fromPtr(ptr: KPointer): CustomSpan { + const obj : CustomSpan = new CustomSpan() + obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) + return obj + } +} export class CustomSpan implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_customspan(): KPointer { const retval = ArkUIGeneratedNativeModule._CustomSpan_ctor() return retval } constructor() { - const ctorPtr : KPointer = CustomSpan.ctor() + const ctorPtr : KPointer = CustomSpan.ctor_customspan() this.peer = new Finalizable(ctorPtr, CustomSpan.getFinalizer()) } static getFinalizer(): KPointer { @@ -61,7 +67,7 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readCustomSpanMetrics() } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer : Serializer = Serializer.hold() @@ -74,10 +80,3 @@ export class CustomSpan implements MaterializedBase { ArkUIGeneratedNativeModule._CustomSpan_invalidate(this.peer!.ptr) } } -export class CustomSpanInternal { - public static fromPtr(ptr: KPointer): CustomSpan { - const obj : CustomSpan = new CustomSpan() - obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts index de3a63874..82a27f51c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./ArkDataPanelInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute } from "./ArkDataPanelInterfaces" /** @memo:stable */ export class ArkDataPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkDataPanelPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts index d68028ed5..7ac654ac9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { MultiShadowOptions, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum DataPanelType { LINE = 0, Line = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index b8268eb95..02a6baf7e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DataResubmissionHandlerInternal { + public static fromPtr(ptr: KPointer): DataResubmissionHandler { + const obj : DataResubmissionHandler = new DataResubmissionHandler() + obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) + return obj + } +} export class DataResubmissionHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dataresubmissionhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._DataResubmissionHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = DataResubmissionHandler.ctor() + const ctorPtr : KPointer = DataResubmissionHandler.ctor_dataresubmissionhandler() this.peer = new Finalizable(ctorPtr, DataResubmissionHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class DataResubmissionHandler implements MaterializedBase { ArkUIGeneratedNativeModule._DataResubmissionHandler_cancel(this.peer!.ptr) } } -export class DataResubmissionHandlerInternal { - public static fromPtr(ptr: KPointer): DataResubmissionHandler { - const obj : DataResubmissionHandler = new DataResubmissionHandler() - obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts index 69b30f3cf..6a738fb6c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { DatePickerAttribute, DatePickerResult, DatePickerOptions } from "./ArkDatePickerInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./ArkDatePickerInterfaces" /** @memo:stable */ export class ArkDatePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkDatePickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index 358fc4eb6..92aab7081 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { DatePickerDialogOptions } from "./ArkDatePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DatePickerDialogInternal { + public static fromPtr(ptr: KPointer): DatePickerDialog { + const obj : DatePickerDialog = new DatePickerDialog() + obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) + return obj + } +} export class DatePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_datepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._DatePickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class DatePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = DatePickerDialog.ctor() + const ctorPtr : KPointer = DatePickerDialog.ctor_datepickerdialog() this.peer = new Finalizable(ctorPtr, DatePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class DatePickerDialog implements MaterializedBase { return retval } } -export class DatePickerDialogInternal { - public static fromPtr(ptr: KPointer): DatePickerDialog { - const obj : DatePickerDialog = new DatePickerDialog() - obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts index 12fcd2dd2..9ff226141 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" -import { ResourceColor, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" import { DateTimeOptions } from "./ArkTimePickerInterfaces" export interface DatePickerResult { diff --git a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts index 90f3e8550..7d7e89c8e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -21,13 +21,19 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DecorationStyleInternal { + public static fromPtr(ptr: KPointer): DecorationStyle { + const obj : DecorationStyle = new DecorationStyle(undefined) + obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) + return obj + } +} export class DecorationStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -42,7 +48,7 @@ export class DecorationStyle implements MaterializedBase { get style(): TextDecorationStyle | undefined { return this.getStyle() } - static ctor(value: DecorationStyleInterface): KPointer { + static ctor_decorationstyle(value: DecorationStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeDecorationStyleInterface(value) const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -50,9 +56,9 @@ export class DecorationStyle implements MaterializedBase { return retval } constructor(value?: DecorationStyleInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = DecorationStyle.ctor(value) + const ctorPtr : KPointer = DecorationStyle.ctor_decorationstyle(value) this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) } } @@ -74,10 +80,3 @@ export class DecorationStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DecorationStyleInternal { - public static fromPtr(ptr: KPointer): DecorationStyle { - const obj : DecorationStyle = new DecorationStyle(undefined) - obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts index 1e9187655..073a337f0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts @@ -1,6 +1,6 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" import { Indicator } from "./ArkIndicatorBuilder" -import { ResourceColor, Font, Length } from "./ArkUnitsInterfaces" +import { Length, ResourceColor, Font } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" export class DigitIndicator { diff --git a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index b2a78b8ce..8cbcc1306 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DisappearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): DisappearSymbolEffect { + const obj : DisappearSymbolEffect = new DisappearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) + return obj + } +} export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_disappearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = DisappearSymbolEffect.ctor(scope) + const ctorPtr : KPointer = DisappearSymbolEffect.ctor_disappearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class DisappearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): DisappearSymbolEffect { - const obj : DisappearSymbolEffect = new DisappearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDivider.ts b/arkoala-arkts/arkui/src/generated/ArkDivider.ts index dc283d6d2..66cabe2e5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDivider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDivider.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DividerAttribute } from "./ArkDividerInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { LineCapStyle } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkDividerComponent extends ArkCommonMethodComponent { getPeer(): ArkDividerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts index e56257373..b51270f80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { LineCapStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type DividerInterface = () => DividerAttribute; export interface DividerAttribute extends CommonMethod { vertical: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts index eecb46d61..35ffc72a3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts @@ -19,12 +19,11 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface DragEvent { dragBehavior: DragBehavior @@ -63,12 +62,12 @@ export class DragEventInternal implements MaterializedBase,DragEvent { set useCustomDropAnimation(useCustomDropAnimation: boolean) { this.setUseCustomDropAnimation(useCustomDropAnimation) } - static ctor(): KPointer { + static ctor_dragevent(): KPointer { const retval = ArkUIGeneratedNativeModule._DragEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = DragEventInternal.ctor() + const ctorPtr : KPointer = DragEventInternal.ctor_dragevent() this.peer = new Finalizable(ctorPtr, DragEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -179,7 +178,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSummary() } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, (dragResult.valueOf() as int32)) @@ -190,7 +189,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectangle() } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts index 8edf5d387..5b4ceb3a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -18,24 +18,30 @@ import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawModifierInternal { + public static fromPtr(ptr: KPointer): DrawModifier { + const obj : DrawModifier = new DrawModifier() + obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) + return obj + } +} export class DrawModifier implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_drawmodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._DrawModifier_ctor() return retval } constructor() { - const ctorPtr : KPointer = DrawModifier.ctor() + const ctorPtr : KPointer = DrawModifier.ctor_drawmodifier() this.peer = new Finalizable(ctorPtr, DrawModifier.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class DrawModifier implements MaterializedBase { ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) } } -export class DrawModifierInternal { - public static fromPtr(ptr: KPointer): DrawModifier { - const obj : DrawModifier = new DrawModifier() - obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index ef12425fa..9f22ef047 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -18,19 +18,25 @@ import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawingCanvasInternal { + public static fromPtr(ptr: KPointer): DrawingCanvas { + const obj : DrawingCanvas = new DrawingCanvas(undefined) + obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) + return obj + } +} export class DrawingCanvas implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(pixelmap: PixelMap): KPointer { + static ctor_drawingcanvas(pixelmap: PixelMap): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writePixelMap(pixelmap) const retval = ArkUIGeneratedNativeModule._DrawingCanvas_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -38,9 +44,9 @@ export class DrawingCanvas implements MaterializedBase { return retval } constructor(pixelmap?: PixelMap) { - if (((pixelmap) !== (undefined))) + if ((pixelmap) !== (undefined)) { - const ctorPtr : KPointer = DrawingCanvas.ctor(pixelmap) + const ctorPtr : KPointer = DrawingCanvas.ctor_drawingcanvas(pixelmap) this.peer = new Finalizable(ctorPtr, DrawingCanvas.getFinalizer()) } } @@ -59,10 +65,3 @@ export class DrawingCanvas implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingCanvas_drawRect(this.peer!.ptr, left, top, right, bottom) } } -export class DrawingCanvasInternal { - public static fromPtr(ptr: KPointer): DrawingCanvas { - const obj : DrawingCanvas = new DrawingCanvas(undefined) - obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index c12f2fd48..538b6c6a6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,13 +20,19 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawingRenderingContextInternal { + public static fromPtr(ptr: KPointer): DrawingRenderingContext { + const obj : DrawingRenderingContext = new DrawingRenderingContext(undefined) + obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) + return obj + } +} export class DrawingRenderingContext implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +44,7 @@ export class DrawingRenderingContext implements MaterializedBase { get canvas(): DrawingCanvas { throw new Error("Not implemented") } - static ctor(unit?: LengthMetricsUnit): KPointer { + static ctor_drawingrenderingcontext(unit?: LengthMetricsUnit): KPointer { const thisSerializer : Serializer = Serializer.hold() let unit_type : int32 = RuntimeType.UNDEFINED unit_type = runtimeType(unit) @@ -52,7 +58,7 @@ export class DrawingRenderingContext implements MaterializedBase { return retval } constructor(unit?: LengthMetricsUnit) { - const ctorPtr : KPointer = DrawingRenderingContext.ctor(unit) + const ctorPtr : KPointer = DrawingRenderingContext.ctor_drawingrenderingcontext(unit) this.peer = new Finalizable(ctorPtr, DrawingRenderingContext.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +72,3 @@ export class DrawingRenderingContext implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingRenderingContext_invalidate(this.peer!.ptr) } } -export class DrawingRenderingContextInternal { - public static fromPtr(ptr: KPointer): DrawingRenderingContext { - const obj : DrawingRenderingContext = new DrawingRenderingContext(undefined) - obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts index fc6717541..b184d7921 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts @@ -18,24 +18,30 @@ import { OnMoveHandler } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DynamicNodeInternal { + public static fromPtr(ptr: KPointer): DynamicNode { + const obj : DynamicNode = new DynamicNode() + obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) + return obj + } +} export class DynamicNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dynamicnode(): KPointer { const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() return retval } constructor() { - const ctorPtr : KPointer = DynamicNode.ctor() + const ctorPtr : KPointer = DynamicNode.ctor_dynamicnode() this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) } static getFinalizer(): KPointer { @@ -59,10 +65,3 @@ export class DynamicNode implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj : DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index 6f65849b3..01f0524d2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -18,12 +18,11 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface EditMenuOptions { onCreateMenu(menuItems: Array): Array @@ -34,12 +33,12 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_editmenuoptions(): KPointer { const retval = ArkUIGeneratedNativeModule._EditMenuOptions_ctor() return retval } constructor() { - const ctorPtr : KPointer = EditMenuOptionsInternal.ctor() + const ctorPtr : KPointer = EditMenuOptionsInternal.ctor_editmenuoptions() this.peer = new Finalizable(ctorPtr, EditMenuOptionsInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts index 1f2f53d89..700cd4ab5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { EffectComponentAttribute } from "./ArkEffectComponentInterfaces" /** @memo:stable */ export class ArkEffectComponentComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts index 95b6b483d..6a53fbb1b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type EffectComponentInterface = () => EffectComponentAttribute; export interface EffectComponentAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts index 251c01dbb..a1ef7f80d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { EllipseAttribute, EllipseOptions } from "./ArkEllipseInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { EllipseOptions, EllipseAttribute } from "./ArkEllipseInterfaces" /** @memo:stable */ export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkEllipsePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts index 5eade750c..b073a6a8d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface EllipseOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts index fe284ccf4..5584851a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts @@ -19,17 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { EmbeddedComponentAttribute, TerminationInfo } from "./ArkEmbeddedComponentInterfaces" -import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EmbeddedType } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TerminationInfo, EmbeddedComponentAttribute } from "./ArkEmbeddedComponentInterfaces" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkEmbeddedComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts index 4c70aaf80..41aa74e67 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts @@ -20,9 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { EmbeddedType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" export type EmbeddedComponentInterface = (loader: Want, type: EmbeddedType) => EmbeddedComponentAttribute; export interface TerminationInfo { diff --git a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 04169d4ba..b88d6735b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -18,19 +18,25 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventEmulatorInternal { + public static fromPtr(ptr: KPointer): EventEmulator { + const obj : EventEmulator = new EventEmulator() + obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) + return obj + } +} export class EventEmulator implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventemulator(): KPointer { const retval = ArkUIGeneratedNativeModule._EventEmulator_ctor() return retval } @@ -38,7 +44,7 @@ export class EventEmulator implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = EventEmulator.ctor() + const ctorPtr : KPointer = EventEmulator.ctor_eventemulator() this.peer = new Finalizable(ctorPtr, EventEmulator.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +72,3 @@ export class EventEmulator implements MaterializedBase { ArkUIGeneratedNativeModule._EventEmulator_emitTextInputEvent(node, text) } } -export class EventEmulatorInternal { - public static fromPtr(ptr: KPointer): EventEmulator { - const obj : EventEmulator = new EventEmulator() - obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts index 7df3a441d..e9adc75e4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventResultInternal { + public static fromPtr(ptr: KPointer): EventResult { + const obj : EventResult = new EventResult() + obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) + return obj + } +} export class EventResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventresult(): KPointer { const retval = ArkUIGeneratedNativeModule._EventResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = EventResult.ctor() + const ctorPtr : KPointer = EventResult.ctor_eventresult() this.peer = new Finalizable(ctorPtr, EventResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +55,3 @@ export class EventResult implements MaterializedBase { ArkUIGeneratedNativeModule._EventResult_setGestureEventResult(this.peer!.ptr, result ? 1 : 0) } } -export class EventResultInternal { - public static fromPtr(ptr: KPointer): EventResult { - const obj : EventResult = new EventResult() - obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index 6d36d78ff..7572da447 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventTargetInfoInternal { + public static fromPtr(ptr: KPointer): EventTargetInfo { + const obj : EventTargetInfo = new EventTargetInfo() + obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) + return obj + } +} export class EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventtargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._EventTargetInfo_ctor() return retval } constructor() { - const ctorPtr : KPointer = EventTargetInfo.ctor() + const ctorPtr : KPointer = EventTargetInfo.ctor_eventtargetinfo() this.peer = new Finalizable(ctorPtr, EventTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -48,10 +54,3 @@ export class EventTargetInfo implements MaterializedBase { return retval } } -export class EventTargetInfoInternal { - public static fromPtr(ptr: KPointer): EventTargetInfo { - const obj : EventTargetInfo = new EventTargetInfo() - obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index d74707bdd..563c07dfa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -18,24 +18,30 @@ import { FileSelectorMode } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FileSelectorParamInternal { + public static fromPtr(ptr: KPointer): FileSelectorParam { + const obj : FileSelectorParam = new FileSelectorParam() + obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) + return obj + } +} export class FileSelectorParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorparam(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_ctor() return retval } constructor() { - const ctorPtr : KPointer = FileSelectorParam.ctor() + const ctorPtr : KPointer = FileSelectorParam.ctor_fileselectorparam() this.peer = new Finalizable(ctorPtr, FileSelectorParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +76,3 @@ export class FileSelectorParam implements MaterializedBase { return retval } } -export class FileSelectorParamInternal { - public static fromPtr(ptr: KPointer): FileSelectorParam { - const obj : FileSelectorParam = new FileSelectorParam() - obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index c175d67d0..26f359b2f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FileSelectorResultInternal { + public static fromPtr(ptr: KPointer): FileSelectorResult { + const obj : FileSelectorResult = new FileSelectorResult() + obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) + return obj + } +} export class FileSelectorResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorresult(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = FileSelectorResult.ctor() + const ctorPtr : KPointer = FileSelectorResult.ctor_fileselectorresult() this.peer = new Finalizable(ctorPtr, FileSelectorResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class FileSelectorResult implements MaterializedBase { thisSerializer.release() } } -export class FileSelectorResultInternal { - public static fromPtr(ptr: KPointer): FileSelectorResult { - const obj : FileSelectorResult = new FileSelectorResult() - obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFlex.ts b/arkoala-arkts/arkui/src/generated/ArkFlex.ts index f2a24bad5..2df7e8776 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlex.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlex.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { FlexAttribute, FlexOptions } from "./ArkFlexInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FlexOptions, FlexAttribute } from "./ArkFlexInterfaces" /** @memo:stable */ export class ArkFlexComponent extends ArkCommonMethodComponent { getPeer(): ArkFlexPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts index 978269db1..1b2e6b3b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./ArkEnumsInterfaces" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface FlexOptions { direction?: FlexDirection; wrap?: FlexWrap; diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts index 0d6ce4a72..8e1ccaeeb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { FlowItemAttribute } from "./ArkFlowItemInterfaces" /** @memo:stable */ export class ArkFlowItemComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts index 9054b2acb..9c12ba110 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type FlowItemInterface = () => FlowItemAttribute; export interface FlowItemAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts new file mode 100644 index 000000000..45982f180 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export namespace focusControl { + export class GlobalScope_focusControl_common { + public static requestFocus(value: string): boolean { + const value_casted = value as (string) + return GlobalScope_focusControl_common.requestFocus_serialize(value_casted) + } + private static requestFocus_serialize(value: string): boolean { + const retval = ArkUIGeneratedNativeModule._GlobalScope_focusControl_common_requestFocus(value) + return retval + } + } +} +export namespace focusControl { + export function requestFocus(value: string): boolean { + return GlobalScope_focusControl_common.requestFocus(value) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts index 3d1cab28a..5163a3ff9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions } from "./ArkFolderStackInterfaces" -import { Alignment } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./ArkFolderStackInterfaces" /** @memo:stable */ export class ArkFolderStackComponent extends ArkCommonMethodComponent { getPeer(): ArkFolderStackPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts index d2a1bfe6b..e56a15665 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { FoldStatus, Alignment, AppRotation } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { FoldStatus, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AppRotation } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface WindowStatusType { _WindowStatusTypeStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts index 88703eb92..6d376bfc8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo } from "./ArkFormComponentInterfaces" -import { SizeOptions } from "./ArkUnitsInterfaces" -import { Visibility } from "./ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute } from "./ArkFormComponentInterfaces" /** @memo:stable */ export class ArkFormComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkFormComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts index f21e9af63..62c9a1598 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -20,10 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SizeOptions } from "./ArkUnitsInterfaces" -import { Visibility } from "./ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum FormDimension { DIMENSION_1_2 = 0, Dimension_1_2 = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts index 3e12da492..370c7f924 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FormLinkAttribute, FormLinkOptions } from "./ArkFormLinkInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./ArkFormLinkInterfaces" /** @memo:stable */ export class ArkFormLinkComponent extends ArkCommonMethodComponent { getPeer(): ArkFormLinkPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts index 3b6e3f1bd..76251790b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface FormLinkOptions { action: string; moduleName?: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts index db81f25e4..5593a044d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -19,19 +19,25 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FrameNodeInternal { + public static fromPtr(ptr: KPointer): FrameNode { + const obj : FrameNode = new FrameNode(undefined) + obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) + return obj + } +} export class FrameNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(uiContext: UIContext): KPointer { + static ctor_framenode(uiContext: UIContext): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeUIContext(uiContext) const retval = ArkUIGeneratedNativeModule._FrameNode_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -39,9 +45,9 @@ export class FrameNode implements MaterializedBase { return retval } constructor(uiContext?: UIContext) { - if (((uiContext) !== (undefined))) + if ((uiContext) !== (undefined)) { - const ctorPtr : KPointer = FrameNode.ctor(uiContext) + const ctorPtr : KPointer = FrameNode.ctor_framenode(uiContext) this.peer = new Finalizable(ctorPtr, FrameNode.getFinalizer()) } } @@ -164,13 +170,6 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class FrameNodeInternal { - public static fromPtr(ptr: KPointer): FrameNode { - const obj : FrameNode = new FrameNode(undefined) - obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readPosition() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts index db1c43c8d..4de149bab 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -17,26 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FrictionMotionInternal { + public static fromPtr(ptr: KPointer): FrictionMotion { + const obj : FrictionMotion = new FrictionMotion(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) + return obj + } +} export class FrictionMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(friction: number, position: number, velocity: number): KPointer { + static ctor_frictionmotion(friction: number, position: number, velocity: number): KPointer { const retval = ArkUIGeneratedNativeModule._FrictionMotion_ctor(friction, position, velocity) return retval } constructor(friction?: number, position?: number, velocity?: number) { if (((friction) !== (undefined)) && ((position) !== (undefined)) && ((velocity) !== (undefined))) { - const ctorPtr : KPointer = FrictionMotion.ctor(friction, position, velocity) + const ctorPtr : KPointer = FrictionMotion.ctor_frictionmotion(friction, position, velocity) this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) } } @@ -44,10 +50,3 @@ export class FrictionMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._FrictionMotion_getFinalizer() } } -export class FrictionMotionInternal { - public static fromPtr(ptr: KPointer): FrictionMotion { - const obj : FrictionMotion = new FrictionMotion(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 9c8289047..04803eb7d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FullScreenExitHandlerInternal { + public static fromPtr(ptr: KPointer): FullScreenExitHandler { + const obj : FullScreenExitHandler = new FullScreenExitHandler() + obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) + return obj + } +} export class FullScreenExitHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fullscreenexithandler(): KPointer { const retval = ArkUIGeneratedNativeModule._FullScreenExitHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = FullScreenExitHandler.ctor() + const ctorPtr : KPointer = FullScreenExitHandler.ctor_fullscreenexithandler() this.peer = new Finalizable(ctorPtr, FullScreenExitHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -48,10 +54,3 @@ export class FullScreenExitHandler implements MaterializedBase { ArkUIGeneratedNativeModule._FullScreenExitHandler_exitFullScreen(this.peer!.ptr) } } -export class FullScreenExitHandlerInternal { - public static fromPtr(ptr: KPointer): FullScreenExitHandler { - const obj : FullScreenExitHandler = new FullScreenExitHandler() - obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGauge.ts b/arkoala-arkts/arkui/src/generated/ArkGauge.ts index 9cf6af95d..0375758ad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGauge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGauge.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" -import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./ArkGaugeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./ArkGaugeInterfaces" /** @memo:stable */ export class ArkGaugeComponent extends ArkCommonMethodComponent { getPeer(): ArkGaugePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts index 3fa9695a6..ce61077d8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Dimension, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { MultiShadowOptions, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ResourceStr, Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" export interface GaugeOptions { value: number; min?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts index d2a8cd42d..126c82d4c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureEvent { repeat: boolean @@ -117,13 +117,13 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_gestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = GestureEventInternal.ctor() + const ctorPtr : KPointer = GestureEventInternal.ctor_gestureevent() this.peer = new Finalizable(ctorPtr, GestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -137,6 +137,9 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali this.setRepeat_serialize(repeat_casted) return } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this.setFingerList_serialize(fingerList_casted) @@ -229,6 +232,10 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali private setRepeat_serialize(repeat: boolean): void { ArkUIGeneratedNativeModule._GestureEvent_setRepeat(this.peer!.ptr, repeat ? 1 : 0) } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts index 6218d5abc..14130fa3d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,12 +18,11 @@ import { UIGestureEvent } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureModifier { applyGesture(event: UIGestureEvent): void @@ -33,12 +32,12 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturemodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureModifier_ctor() return retval } constructor() { - const ctorPtr : KPointer = GestureModifierInternal.ctor() + const ctorPtr : KPointer = GestureModifierInternal.ctor_gesturemodifier() this.peer = new Finalizable(ctorPtr, GestureModifierInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 0c7ee4457..0d45fffb7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -20,24 +20,30 @@ import { GestureControl_GestureType } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GestureRecognizerInternal { + public static fromPtr(ptr: KPointer): GestureRecognizer { + const obj : GestureRecognizer = new GestureRecognizer() + obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) + return obj + } +} export class GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturerecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureRecognizer_ctor() return retval } constructor() { - const ctorPtr : KPointer = GestureRecognizer.ctor() + const ctorPtr : KPointer = GestureRecognizer.ctor_gesturerecognizer() this.peer = new Finalizable(ctorPtr, GestureRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -101,10 +107,3 @@ export class GestureRecognizer implements MaterializedBase { return retval } } -export class GestureRecognizerInternal { - public static fromPtr(ptr: KPointer): GestureRecognizer { - const obj : GestureRecognizer = new GestureRecognizer() - obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts index 0f2f82c49..533d16702 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -18,19 +18,25 @@ import { GestureStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GestureStyleInternal { + public static fromPtr(ptr: KPointer): GestureStyle { + const obj : GestureStyle = new GestureStyle(undefined) + obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) + return obj + } +} export class GestureStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: GestureStyleInterface): KPointer { + static ctor_gesturestyle(value?: GestureStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -44,17 +50,10 @@ export class GestureStyle implements MaterializedBase { return retval } constructor(value?: GestureStyleInterface) { - const ctorPtr : KPointer = GestureStyle.ctor(value) + const ctorPtr : KPointer = GestureStyle.ctor_gesturestyle(value) this.peer = new Finalizable(ctorPtr, GestureStyle.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureStyle_getFinalizer() } } -export class GestureStyleInternal { - public static fromPtr(ptr: KPointer): GestureStyle { - const obj : GestureStyle = new GestureStyle(undefined) - obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 657dd6ebc..5097366a2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -20,19 +20,25 @@ import { AsyncCallback_image_PixelMap_Void } from "./SyntheticDeclarations" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GlobalScope_ohos_arkui_componentSnapshotInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { + const obj : GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_componentsnapshot(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_ctor() return retval } @@ -40,7 +46,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor() + const ctorPtr : KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor_globalscope_ohos_arkui_componentsnapshot() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +73,3 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas thisSerializer.release() } } -export class GlobalScope_ohos_arkui_componentSnapshotInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { - const obj : GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 64a2e2c24..68bcd9ab5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -18,19 +18,25 @@ import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GlobalScope_ohos_arkui_performanceMonitorInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { + const obj : GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_performancemonitor(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_ctor() return retval } @@ -38,7 +44,7 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor() + const ctorPtr : KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor_globalscope_ohos_arkui_performancemonitor() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime((actionType.valueOf() as int32), (sourceType.valueOf() as int32), time) } } -export class GlobalScope_ohos_arkui_performanceMonitorInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { - const obj : GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts similarity index 60% rename from arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts rename to arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts index 0c82e0a8e..79c5c9dfb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts @@ -19,83 +19,68 @@ import { Context, AnimateParam } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Callback_Void } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_common { +export class GlobalScopecommon { public static getContext(component?: Object): Context { const component_casted = component as (Object | undefined) - return GlobalScope_common.getContext_serialize(component_casted) + return GlobalScopecommon.getContext_serialize(component_casted) } public static postCardAction(component: Object, action: Object): void { const component_casted = component as (Object) const action_casted = action as (Object) - GlobalScope_common.postCardAction_serialize(component_casted, action_casted) + GlobalScopecommon.postCardAction_serialize(component_casted, action_casted) return } public static dollar_r(value: string, params: Array): Resource { const value_casted = value as (string) const params_casted = params as (Array) - return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) + return GlobalScopecommon.dollar_r_serialize(value_casted, params_casted) } public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) - return GlobalScope_common.dollar_rawfile_serialize(value_casted) + return GlobalScopecommon.dollar_rawfile_serialize(value_casted) } public static animateTo(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScope_common.animateTo_serialize(value_casted, event_casted) + GlobalScopecommon.animateTo_serialize(value_casted, event_casted) return } public static animateToImmediately(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) + GlobalScopecommon.animateToImmediately_serialize(value_casted, event_casted) return } public static vp2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.vp2px_serialize(value_casted) + return GlobalScopecommon.vp2px_serialize(value_casted) } public static px2vp(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2vp_serialize(value_casted) + return GlobalScopecommon.px2vp_serialize(value_casted) } public static fp2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.fp2px_serialize(value_casted) + return GlobalScopecommon.fp2px_serialize(value_casted) } public static px2fp(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2fp_serialize(value_casted) + return GlobalScopecommon.px2fp_serialize(value_casted) } public static lpx2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.lpx2px_serialize(value_casted) + return GlobalScopecommon.lpx2px_serialize(value_casted) } public static px2lpx(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2lpx_serialize(value_casted) - } - public static requestFocus(value: string): boolean { - const value_casted = value as (string) - return GlobalScope_common.requestFocus_serialize(value_casted) - } - public static setCursor(value: PointerStyle): void { - const value_casted = value as (PointerStyle) - GlobalScope_common.setCursor_serialize(value_casted) - return - } - public static restoreDefault(): void { - GlobalScope_common.restoreDefault_serialize() - return + return GlobalScopecommon.px2lpx_serialize(value_casted) } private static getContext_serialize(component?: Object): Context { const thisSerializer : Serializer = Serializer.hold() @@ -106,15 +91,15 @@ export class GlobalScope_common { const component_value = component! thisSerializer.writeCustomObject("Object", component_value) } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_getContext(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readContext() } private static postCardAction_serialize(component: Object, action: Object): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomObject("Object", component) thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_postCardAction(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static dollar_r_serialize(value: string, params: Array): Resource { @@ -124,60 +109,50 @@ export class GlobalScope_common { const params_element : object = params[i] thisSerializer.writeCustomObject("Any", params_element) } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readResource() } private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) - throw new Error("Object deserialization is not implemented.") + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_rawfile(value) + return new Deserializer(retval, retval.length).readResource() } private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_animateTo(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_vp2px(value) return retval } private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2vp(value) return retval } private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_fp2px(value) return retval } private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2fp(value) return retval } private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_lpx2px(value) return retval } private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) - return retval - } - private static requestFocus_serialize(value: string): boolean { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_requestFocus(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2lpx(value) return retval } - private static setCursor_serialize(value: PointerStyle): void { - ArkUIGeneratedNativeModule._GlobalScope_common_setCursor((value.valueOf() as int32)) - } - private static restoreDefault_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_common_restoreDefault() - } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts similarity index 50% rename from arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts rename to arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts index 33d98cb44..6b82e5728 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts @@ -16,55 +16,35 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Profiler } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_inspector { +export class GlobalScopeinspector { public static getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes_serialize() + return GlobalScopeinspector.getInspectorNodes_serialize() } public static getInspectorNodeById(id: number): Object { const id_casted = id as (number) - return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) - } - public static registerVsyncCallback(callback_: ((info: string) => void)): void { - const callback__casted = callback_ as (((info: string) => void)) - GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) - return - } - public static unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback_serialize() - return + return GlobalScopeinspector.getInspectorNodeById_serialize(id_casted) } public static setAppBgColor(value: string): void { const value_casted = value as (string) - GlobalScope_inspector.setAppBgColor_serialize(value_casted) + GlobalScopeinspector.setAppBgColor_serialize(value_casted) return } private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() + const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodes() throw new Error("Object deserialization is not implemented.") } private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) + const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodeById(id) throw new Error("Object deserialization is not implemented.") } - private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(callback_) - ArkUIGeneratedNativeModule._GlobalScope_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static unregisterVsyncCallback_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_unregisterVsyncCallback() - } private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) + ArkUIGeneratedNativeModule._GlobalScopeinspector_setAppBgColor(value) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGrid.ts b/arkoala-arkts/arkui/src/generated/ArkGrid.ts index bbdeedf91..618b733d1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGrid.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGrid.ts @@ -19,17 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./ArkGridInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { ComputedBarAttribute, GridDirection, GridItemAlignment, GridAttribute, GridLayoutOptions } from "./ArkGridInterfaces" import { ScrollState } from "./ArkListInterfaces" import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ @@ -133,12 +151,12 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts index 4ab569d07..a2f8a2ba0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridColAttribute, GridColColumnOption, GridColOptions } from "./ArkGridColInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./ArkGridColInterfaces" /** @memo:stable */ export class ArkGridColComponent extends ArkCommonMethodComponent { getPeer(): ArkGridColPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts index cf0a1c555..c12492db3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface GridColColumnOption { xs?: number; sm?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts index 2b9e743b1..318003c84 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts @@ -19,11 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { GridContainerOptions, GridContainerAttribute } from "./ArkGridContainerInterfaces" /** @memo:stable */ export class ArkGridContainerComponent extends ArkColumnComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts index 63ad6ead9..78e2c6f06 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts @@ -20,6 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum SizeType { AUTO = 0, Auto = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts index 0bb162b04..430d9bba3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Tuple_Number_Number, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { Tuple_Number_Number, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" export interface GridLayoutOptions { regularSize: [ number, number ]; diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts index 605b9b530..c0a720cb9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridItemAttribute, GridItemOptions } from "./ArkGridItemInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridItemOptions, GridItemAttribute } from "./ArkGridItemInterfaces" /** @memo:stable */ export class ArkGridItemComponent extends ArkCommonMethodComponent { getPeer(): ArkGridItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts index 51f574116..88a86e315 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum GridItemStyle { NONE = 0, PLAIN = 1 diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts index 78d26006f..f5e3a92a7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridRowAttribute, GridRowOptions } from "./ArkGridRowInterfaces" -import { Callback_String_Void } from "./SyntheticDeclarations" -import { ItemAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridRowOptions, GridRowAttribute } from "./ArkGridRowInterfaces" /** @memo:stable */ export class ArkGridRowComponent extends ArkCommonMethodComponent { getPeer(): ArkGridRowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts index 84c28169f..3bdd5f42e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_String_Void } from "./SyntheticDeclarations" -import { ItemAlign } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface GridRowSizeOption { xs?: Length; sm?: Length; diff --git a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 6c90c2b20..6b37bd597 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectFillStyle } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class HierarchicalSymbolEffectInternal { + public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { + const obj : HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) + return obj + } +} export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { const fillStyle_NonNull = (fillStyle as EffectFillStyle) this.setFillStyle(fillStyle_NonNull) } - static ctor(fillStyle?: EffectFillStyle): KPointer { + static ctor_hierarchicalsymboleffect(fillStyle?: EffectFillStyle): KPointer { const thisSerializer : Serializer = Serializer.hold() let fillStyle_type : int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) @@ -51,7 +57,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(fillStyle?: EffectFillStyle) { - const ctorPtr : KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + const ctorPtr : KPointer = HierarchicalSymbolEffect.ctor_hierarchicalsymboleffect(fillStyle) this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, (fillStyle.valueOf() as int32)) } } -export class HierarchicalSymbolEffectInternal { - public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { - const obj : HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts index a8e47ac22..13767129d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface HoverEvent { stopPropagation: (() => void) @@ -40,13 +40,13 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_hoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._HoverEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = HoverEventInternal.ctor() + const ctorPtr : KPointer = HoverEventInternal.ctor_hoverevent() this.peer = new Finalizable(ctorPtr, HoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index c79016df9..6a4a0063d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class HttpAuthHandlerInternal { + public static fromPtr(ptr: KPointer): HttpAuthHandler { + const obj : HttpAuthHandler = new HttpAuthHandler() + obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) + return obj + } +} export class HttpAuthHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_httpauthhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._HttpAuthHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = HttpAuthHandler.ctor() + const ctorPtr : KPointer = HttpAuthHandler.ctor_httpauthhandler() this.peer = new Finalizable(ctorPtr, HttpAuthHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +70,3 @@ export class HttpAuthHandler implements MaterializedBase { return retval } } -export class HttpAuthHandlerInternal { - public static fromPtr(ptr: KPointer): HttpAuthHandler { - const obj : HttpAuthHandler = new HttpAuthHandler() - obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts index c0d2ca49c..ca14903ac 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { HyperlinkAttribute } from "./ArkHyperlinkInterfaces" -import { Color } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { HyperlinkAttribute } from "./ArkHyperlinkInterfaces" /** @memo:stable */ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { getPeer(): ArkHyperlinkPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts index e25dc9e48..55002ae1a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts @@ -20,8 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Color } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type HyperlinkInterface = (address: string | Resource, content?: string | Resource) => HyperlinkAttribute; export interface HyperlinkAttribute extends CommonMethod { color: Color | number | string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts index 291f2a77b..519e7dbcc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ICurve { interpolate(fraction: number): number @@ -32,12 +31,12 @@ export class ICurveInternal implements MaterializedBase,ICurve { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_icurve(): KPointer { const retval = ArkUIGeneratedNativeModule._ICurve_ctor() return retval } constructor() { - const ctorPtr : KPointer = ICurveInternal.ctor() + const ctorPtr : KPointer = ICurveInternal.ctor_icurve() this.peer = new Finalizable(ctorPtr, ICurveInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImage.ts b/arkoala-arkts/arkui/src/generated/ArkImage.ts index ba04bbf65..84774528b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImage.ts @@ -19,19 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceColor, ResourceStr } from "./ArkUnitsInterfaces" -import { ImageFit, ImageRepeat, CopyOptions } from "./ArkEnumsInterfaces" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./SyntheticDeclarations" import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkImageComponent extends ArkCommonMethodComponent { @@ -43,18 +58,18 @@ export class ArkImageComponent extends ArkCommonMethodComponent { if (this.checkPriority("setImageOptions")) { const src_type = runtimeType(src) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) this.getPeer()?.setImageOptions0Attribute(src_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setImageOptions2Attribute(src_casted, imageAIOptions_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false)) || (((TypeChecker.isImageContent(src))))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false)) || (TypeChecker.isImageContent(src))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ImageContent) this.getPeer()?.setImageOptions1Attribute(src_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 9ba90ec57..370b5a232 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -18,24 +18,30 @@ import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageAnalyzerControllerInternal { + public static fromPtr(ptr: KPointer): ImageAnalyzerController { + const obj : ImageAnalyzerController = new ImageAnalyzerController() + obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) + return obj + } +} export class ImageAnalyzerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_imageanalyzercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_ctor() return retval } constructor() { - const ctorPtr : KPointer = ImageAnalyzerController.ctor() + const ctorPtr : KPointer = ImageAnalyzerController.ctor_imageanalyzercontroller() this.peer = new Finalizable(ctorPtr, ImageAnalyzerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +55,3 @@ export class ImageAnalyzerController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAnalyzerControllerInternal { - public static fromPtr(ptr: KPointer): ImageAnalyzerController { - const obj : ImageAnalyzerController = new ImageAnalyzerController() - obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts index 800537920..c0f349b62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ImageAnimatorAttribute, ImageFrameInfo } from "./ArkImageAnimatorInterfaces" -import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./ArkImageAnimatorInterfaces" /** @memo:stable */ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkImageAnimatorPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts index 47e957c9e..fe43664d5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts @@ -21,9 +21,26 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export type ImageAnimatorInterface = () => ImageAnimatorAttribute; export interface ImageFrameInfo { src: string | Resource | PixelMap; diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts index f9c80cb60..f90359538 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -21,13 +21,19 @@ import { SizeOptions } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageAttachmentInternal { + public static fromPtr(ptr: KPointer): ImageAttachment { + const obj : ImageAttachment = new ImageAttachment(undefined) + obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) + return obj + } +} export class ImageAttachment implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -48,7 +54,7 @@ export class ImageAttachment implements MaterializedBase { get layoutStyle(): ImageAttachmentLayoutStyle | undefined { throw new Error("Not implemented") } - static ctor(value: ImageAttachmentInterface): KPointer { + static ctor_imageattachment(value: ImageAttachmentInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeImageAttachmentInterface(value) const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -56,9 +62,9 @@ export class ImageAttachment implements MaterializedBase { return retval } constructor(value?: ImageAttachmentInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = ImageAttachment.ctor(value) + const ctorPtr : KPointer = ImageAttachment.ctor_imageattachment(value) this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) } } @@ -80,10 +86,3 @@ export class ImageAttachment implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAttachmentInternal { - public static fromPtr(ptr: KPointer): ImageAttachment { - const obj : ImageAttachment = new ImageAttachment(undefined) - obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts index a841afa7c..d9ebdcf7b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -19,13 +19,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageBitmapInternal { + public static fromPtr(ptr: KPointer): ImageBitmap { + const obj : ImageBitmap = new ImageBitmap(undefined) + obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) + return obj + } +} export class ImageBitmap implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,14 +43,14 @@ export class ImageBitmap implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(src: string): KPointer { + static ctor_imagebitmap(src: string): KPointer { const retval = ArkUIGeneratedNativeModule._ImageBitmap_ctor(src) return retval } constructor(src?: string) { - if (((src) !== (undefined))) + if ((src) !== (undefined)) { - const ctorPtr : KPointer = ImageBitmap.ctor(src) + const ctorPtr : KPointer = ImageBitmap.ctor_imagebitmap(src) this.peer = new Finalizable(ctorPtr, ImageBitmap.getFinalizer()) } } @@ -73,10 +79,3 @@ export class ImageBitmap implements MaterializedBase { return retval } } -export class ImageBitmapInternal { - public static fromPtr(ptr: KPointer): ImageBitmap { - const obj : ImageBitmap = new ImageBitmap(undefined) - obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts index 6813a9b88..b291c8a3f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageDataInternal { + public static fromPtr(ptr: KPointer): ImageData { + const obj : ImageData = new ImageData(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) + return obj + } +} export class ImageData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -39,7 +45,7 @@ export class ImageData implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(width: number, height: number, data?: NativeBuffer): KPointer { + static ctor_imagedata(width: number, height: number, data?: NativeBuffer): KPointer { const thisSerializer : Serializer = Serializer.hold() let data_type : int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) @@ -55,7 +61,7 @@ export class ImageData implements MaterializedBase { constructor(width?: number, height?: number, data?: NativeBuffer) { if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) { - const ctorPtr : KPointer = ImageData.ctor(width, height, data) + const ctorPtr : KPointer = ImageData.ctor_imagedata(width, height, data) this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) } } @@ -77,10 +83,3 @@ export class ImageData implements MaterializedBase { return retval } } -export class ImageDataInternal { - public static fromPtr(ptr: KPointer): ImageData { - const obj : ImageData = new ImageData(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts index 2cb64442a..3c588f46f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts @@ -20,13 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr, ResourceColor, EdgeWidths } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" import { ImageAIOptions, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { ImageFit, ImageRepeat, CopyOptions } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./SyntheticDeclarations" export interface DrawableDescriptor { _DrawableDescriptorStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts index c2a248d1f..e131a2e64 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" -import { BaseSpan } from "./ArkSpanInterfaces" -import { ImageSpanAttribute, ImageCompleteCallback } from "./ArkImageSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" -import { ColorFilter } from "./ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./ArkImageSpanInterfaces" /** @memo:stable */ export class ArkImageSpanComponent extends ArkBaseSpanComponent { getPeer(): ArkImageSpanPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts index e51a7774e..538febfef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { BaseSpan } from "./ArkSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" export type ImageSpanInterface = (value: ResourceStr | PixelMap) => ImageSpanAttribute; export interface ImageSpanAttribute extends BaseSpan { verticalAlign: ImageSpanAlignment; diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index 1bae20eb4..f8c641cac 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class IndicatorComponentControllerInternal { + public static fromPtr(ptr: KPointer): IndicatorComponentController { + const obj : IndicatorComponentController = new IndicatorComponentController() + obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) + return obj + } +} export class IndicatorComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_indicatorcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._IndicatorComponentController_ctor() return retval } constructor() { - const ctorPtr : KPointer = IndicatorComponentController.ctor() + const ctorPtr : KPointer = IndicatorComponentController.ctor_indicatorcomponentcontroller() this.peer = new Finalizable(ctorPtr, IndicatorComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class IndicatorComponentController implements MaterializedBase { thisSerializer.release() } } -export class IndicatorComponentControllerInternal { - public static fromPtr(ptr: KPointer): IndicatorComponentController { - const obj : IndicatorComponentController = new IndicatorComponentController() - obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts index 706f3e618..6e2c89f0b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts @@ -19,17 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { IndicatorComponentAttribute } from "./ArkIndicatorcomponentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./SyntheticDeclarations" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./ArkIndicatorcomponentInterfaces" /** @memo:stable */ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkIndicatorComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts index 9b14c1350..89cdc5daf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts @@ -20,10 +20,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./SyntheticDeclarations" export type IndicatorComponentInterface = (controller?: IndicatorComponentController) => IndicatorComponentAttribute; export interface IndicatorComponentAttribute extends CommonMethod { initialIndex: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts index 426f43fe9..1271886e9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -20,7 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface ErrorCallback { _ErrorCallbackStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts index bad3ca31d..ec6de910c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class JsGeolocationInternal { + public static fromPtr(ptr: KPointer): JsGeolocation { + const obj : JsGeolocation = new JsGeolocation() + obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) + return obj + } +} export class JsGeolocation implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsgeolocation(): KPointer { const retval = ArkUIGeneratedNativeModule._JsGeolocation_ctor() return retval } constructor() { - const ctorPtr : KPointer = JsGeolocation.ctor() + const ctorPtr : KPointer = JsGeolocation.ctor_jsgeolocation() this.peer = new Finalizable(ctorPtr, JsGeolocation.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +57,3 @@ export class JsGeolocation implements MaterializedBase { ArkUIGeneratedNativeModule._JsGeolocation_invoke(this.peer!.ptr, origin, allow ? 1 : 0, retain ? 1 : 0) } } -export class JsGeolocationInternal { - public static fromPtr(ptr: KPointer): JsGeolocation { - const obj : JsGeolocation = new JsGeolocation() - obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts index 5e1a9f69b..0d5379cf7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class JsResultInternal { + public static fromPtr(ptr: KPointer): JsResult { + const obj : JsResult = new JsResult() + obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) + return obj + } +} export class JsResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsresult(): KPointer { const retval = ArkUIGeneratedNativeModule._JsResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = JsResult.ctor() + const ctorPtr : KPointer = JsResult.ctor_jsresult() this.peer = new Finalizable(ctorPtr, JsResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,10 +69,3 @@ export class JsResult implements MaterializedBase { ArkUIGeneratedNativeModule._JsResult_handlePromptConfirm(this.peer!.ptr, result) } } -export class JsResultInternal { - public static fromPtr(ptr: KPointer): JsResult { - const obj : JsResult = new JsResult() - obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts index 0b055cfa2..f24dfa8ce 100644 --- a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -20,12 +20,11 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { IntentionCode } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface KeyEvent { type: KeyType @@ -106,12 +105,12 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { const unicode_NonNull = (unicode as number) this.setUnicode(unicode_NonNull) } - static ctor(): KPointer { + static ctor_keyevent(): KPointer { const retval = ArkUIGeneratedNativeModule._KeyEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = KeyEventInternal.ctor() + const ctorPtr : KPointer = KeyEventInternal.ctor_keyevent() this.peer = new Finalizable(ctorPtr, KeyEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts index 07fd63e5d..310e4f07e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -19,12 +19,11 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LayoutManager { getLineCount(): number @@ -37,12 +36,12 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_layoutmanager(): KPointer { const retval = ArkUIGeneratedNativeModule._LayoutManager_ctor() return retval } constructor() { - const ctorPtr : KPointer = LayoutManagerInternal.ctor() + const ctorPtr : KPointer = LayoutManagerInternal.ctor_layoutmanager() this.peer = new Finalizable(ctorPtr, LayoutManagerInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,11 +71,11 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readPositionWithAffinity() } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readLineMetrics() } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index ad0a742f9..8599197ea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -18,19 +18,25 @@ import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LazyForEachOpsInternal { + public static fromPtr(ptr: KPointer): LazyForEachOps { + const obj : LazyForEachOps = new LazyForEachOps() + obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) + return obj + } +} export class LazyForEachOps implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_lazyforeachops(): KPointer { const retval = ArkUIGeneratedNativeModule._LazyForEachOps_ctor() return retval } @@ -38,7 +44,7 @@ export class LazyForEachOps implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = LazyForEachOps.ctor() + const ctorPtr : KPointer = LazyForEachOps.ctor_lazyforeachops() this.peer = new Finalizable(ctorPtr, LazyForEachOps.getFinalizer()) } static getFinalizer(): KPointer { @@ -85,10 +91,3 @@ export class LazyForEachOps implements MaterializedBase { ArkUIGeneratedNativeModule._LazyForEachOps_Prepare(node) } } -export class LazyForEachOpsInternal { - public static fromPtr(ptr: KPointer): LazyForEachOps { - const obj : LazyForEachOps = new LazyForEachOps() - obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 5d2579f6c..3f7a9f3c8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -19,13 +19,19 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LengthMetricsInternal { + public static fromPtr(ptr: KPointer): LengthMetrics { + const obj : LengthMetrics = new LengthMetrics() + obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) + return obj + } +} export class LengthMetrics implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,7 +49,7 @@ export class LengthMetrics implements MaterializedBase { set value(value: number) { this.setValue(value) } - static ctor(): KPointer { + static ctor_lengthmetrics(): KPointer { const retval = ArkUIGeneratedNativeModule._LengthMetrics_ctor() return retval } @@ -51,7 +57,7 @@ export class LengthMetrics implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = LengthMetrics.ctor() + const ctorPtr : KPointer = LengthMetrics.ctor_lengthmetrics() this.peer = new Finalizable(ctorPtr, LengthMetrics.getFinalizer()) } static getFinalizer(): KPointer { @@ -109,10 +115,3 @@ export class LengthMetrics implements MaterializedBase { ArkUIGeneratedNativeModule._LengthMetrics_setValue(this.peer!.ptr, value) } } -export class LengthMetricsInternal { - public static fromPtr(ptr: KPointer): LengthMetrics { - const obj : LengthMetrics = new LengthMetrics() - obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index 8208b6b7c..314ea78fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LetterSpacingStyleInternal { + public static fromPtr(ptr: KPointer): LetterSpacingStyle { + const obj : LetterSpacingStyle = new LetterSpacingStyle(undefined) + obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) + return obj + } +} export class LetterSpacingStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class LetterSpacingStyle implements MaterializedBase { get letterSpacing(): number { return this.getLetterSpacing() } - static ctor(value: LengthMetrics): KPointer { + static ctor_letterspacingstyle(value: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = LetterSpacingStyle.ctor(value) + const ctorPtr : KPointer = LetterSpacingStyle.ctor_letterspacingstyle(value) this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } } -export class LetterSpacingStyleInternal { - public static fromPtr(ptr: KPointer): LetterSpacingStyle { - const obj : LetterSpacingStyle = new LetterSpacingStyle(undefined) - obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLine.ts b/arkoala-arkts/arkui/src/generated/ArkLine.ts index 90acaa160..a19d5becf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLine.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLine.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { LineAttribute, LineOptions } from "./ArkLineInterfaces" -import { Length } from "./ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LineOptions, LineAttribute } from "./ArkLineInterfaces" /** @memo:stable */ export class ArkLineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkLinePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index afe1b2a6f..bd3d6a21b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LineHeightStyleInternal { + public static fromPtr(ptr: KPointer): LineHeightStyle { + const obj : LineHeightStyle = new LineHeightStyle(undefined) + obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) + return obj + } +} export class LineHeightStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class LineHeightStyle implements MaterializedBase { get lineHeight(): number { return this.getLineHeight() } - static ctor(lineHeight: LengthMetrics): KPointer { + static ctor_lineheightstyle(lineHeight: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(lineHeight) const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class LineHeightStyle implements MaterializedBase { return retval } constructor(lineHeight?: LengthMetrics) { - if (((lineHeight) !== (undefined))) + if ((lineHeight) !== (undefined)) { - const ctorPtr : KPointer = LineHeightStyle.ctor(lineHeight) + const ctorPtr : KPointer = LineHeightStyle.ctor_lineheightstyle(lineHeight) this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class LineHeightStyle implements MaterializedBase { return retval } } -export class LineHeightStyleInternal { - public static fromPtr(ptr: KPointer): LineHeightStyle { - const obj : LineHeightStyle = new LineHeightStyle(undefined) - obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts index 908b2009d..ab76df3d1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface LineOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts index d9ee08eb5..e32c2a2cf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,19 +18,25 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LinearGradientInternal { + public static fromPtr(ptr: KPointer): LinearGradient { + const obj : LinearGradient = new LinearGradient(undefined) + obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) + return obj + } +} export class LinearGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(colorStops: Array): KPointer { + static ctor_lineargradient(colorStops: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(colorStops.length as int32) for (let i = 0; i < colorStops.length; i++) { @@ -42,9 +48,9 @@ export class LinearGradient implements MaterializedBase { return retval } constructor(colorStops?: Array) { - if (((colorStops) !== (undefined))) + if ((colorStops) !== (undefined)) { - const ctorPtr : KPointer = LinearGradient.ctor(colorStops) + const ctorPtr : KPointer = LinearGradient.ctor_lineargradient(colorStops) this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) } } @@ -52,10 +58,3 @@ export class LinearGradient implements MaterializedBase { return ArkUIGeneratedNativeModule._LinearGradient_getFinalizer() } } -export class LinearGradientInternal { - public static fromPtr(ptr: KPointer): LinearGradient { - const obj : LinearGradient = new LinearGradient(undefined) - obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index 61a4ae87f..7d714416a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -18,24 +18,30 @@ import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LinearIndicatorControllerInternal { + public static fromPtr(ptr: KPointer): LinearIndicatorController { + const obj : LinearIndicatorController = new LinearIndicatorController() + obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) + return obj + } +} export class LinearIndicatorController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_linearindicatorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._LinearIndicatorController_ctor() return retval } constructor() { - const ctorPtr : KPointer = LinearIndicatorController.ctor() + const ctorPtr : KPointer = LinearIndicatorController.ctor_linearindicatorcontroller() this.peer = new Finalizable(ctorPtr, LinearIndicatorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class LinearIndicatorController implements MaterializedBase { ArkUIGeneratedNativeModule._LinearIndicatorController_stop(this.peer!.ptr) } } -export class LinearIndicatorControllerInternal { - public static fromPtr(ptr: KPointer): LinearIndicatorController { - const obj : LinearIndicatorController = new LinearIndicatorController() - obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts index 89bced58c..ead33fafb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { LinearIndicatorAttribute, LinearIndicatorStyle, OnLinearIndicatorChangeCallback } from "./ArkLinearindicatorInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute } from "./ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" /** @memo:stable */ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts index e7a3c792d..fee9ee7e0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts @@ -20,9 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { ColorMetrics } from "./ArkUnitsInterfaces" +import { ColorMetrics, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface LinearIndicatorStartOptions { interval?: number; duration?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkList.ts b/arkoala-arkts/arkui/src/generated/ArkList.ts index 262d40525..a3a7302ee 100644 --- a/arkoala-arkts/arkui/src/generated/ArkList.ts +++ b/arkoala-arkts/arkui/src/generated/ArkList.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListOptions } from "./ArkListInterfaces" -import { Axis, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListAttribute, ListOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" -import { Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" -import { LengthConstrain, Dimension } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkListComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkListPeer { @@ -122,12 +140,12 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts index 765a96295..0198264ea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, ResourceColor, LengthConstrain, Dimension } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain } from "./ArkUnitsInterfaces" +import { Callback_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Axis, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" export enum ScrollState { IDLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkListItem.ts b/arkoala-arkts/arkui/src/generated/ArkListItem.ts index 8e760b8ff..cc4ffe9fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItem.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ListItemAttribute, Sticky, EditMode, SwipeActionOptions, ListItemOptions } from "./ArkListItemInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Sticky, EditMode, SwipeActionOptions, ListItemOptions, ListItemAttribute } from "./ArkListItemInterfaces" /** @memo:stable */ export class ArkListItemComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemPeer { @@ -36,12 +56,12 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { if (this.checkPriority("setListItemOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ListItemOptions | undefined) this.getPeer()?.setListItemOptions0Attribute(value_casted) return this } - if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (string | undefined) this.getPeer()?.setListItemOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts index 1722d3280..0c2b98c04 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts @@ -19,14 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ListItemGroupAttribute, ListItemGroupOptions } from "./ArkListItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ListDividerOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute } from "./ArkListItemGroupInterfaces" /** @memo:stable */ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts index 158fde48a..5a29dd42a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, ComponentContent, CommonMethod } from "./ArkCommonInterfaces" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ListDividerOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" export enum ListItemGroupStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts index 2b674547c..c79c059ef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_SwipeActionState_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { Callback_Void, Callback_SwipeActionState_Void, Callback_Number_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum Sticky { NONE = 0, None = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts index 4958d2188..97972459c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -17,29 +17,39 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Scroller, ScrollerInternal } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions } from "./ArkScrollInterfaces" +import { Edge, Axis } from "./ArkEnumsInterfaces" +import { Literal_Boolean_next_Axis_direction } from "./SyntheticDeclarations" +import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" -import { ScrollAlign } from "./ArkScrollInterfaces" import { CloseSwipeActionOptions, VisibleListContentInfo } from "./ArkListInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ListScrollerInternal { + public static fromPtr(ptr: KPointer): ListScroller { + const obj : ListScroller = new ListScroller() + obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) + return obj + } +} export class ListScroller extends Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_listscroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ListScroller_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ListScroller.ctor() + const ctorPtr : KPointer = ListScroller.ctor_listscroller() this.peer = new Finalizable(ctorPtr, ListScroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,7 +80,7 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer : Serializer = Serializer.hold() @@ -105,13 +115,6 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") - } -} -export class ListScrollerInternal { - public static fromPtr(ptr: KPointer): ListScroller { - const obj : ListScroller = new ListScroller() - obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readVisibleListContentInfo() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts index ad7080f90..f95967a14 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { LoadingProgressAttribute, LoadingProgressConfiguration } from "./ArkLoadingProgressInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./ArkLoadingProgressInterfaces" /** @memo:stable */ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkLoadingProgressPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts index 9029750fc..01dc23d16 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum LoadingProgressStyle { DEFAULT = 0, Default = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts index 0198a0167..418c2860f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { LocationButtonAttribute, LocationButtonOnClickResult, LocationButtonOptions } from "./ArkLocationButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions } from "./ArkLocationButtonInterfaces" /** @memo:stable */ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkLocationButtonPeer { @@ -37,11 +40,11 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setLocationButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (LocationButtonOptions) this.getPeer()?.setLocationButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts index 5490c6cd2..50ce7cf52 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum LocationIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index a6af5054c..ec659daf4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LongPressGestureEvent { repeat: boolean @@ -39,13 +41,13 @@ export class LongPressGestureEventInternal extends BaseGestureEventInternal impl set repeat(repeat: boolean) { this.setRepeat(repeat) } - static ctor(): KPointer { + static ctor_longpressgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._LongPressGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = LongPressGestureEventInternal.ctor() + const ctorPtr : KPointer = LongPressGestureEventInternal.ctor_longpressgestureevent() this.peer = new Finalizable(ctorPtr, LongPressGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts index d9a5e7ebd..2d5cad13f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MarqueeAttribute, MarqueeOptions } from "./ArkMarqueeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./ArkMarqueeInterfaces" /** @memo:stable */ export class ArkMarqueeComponent extends ArkCommonMethodComponent { getPeer(): ArkMarqueePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts index 99ff9cab7..83ef26fd0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MarqueeOptions { start: boolean; step?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts index e29c3b486..2cf56869e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class Matrix2DInternal { + public static fromPtr(ptr: KPointer): Matrix2D { + const obj : Matrix2D = new Matrix2D() + obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) + return obj + } +} export class Matrix2D implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -72,12 +78,12 @@ export class Matrix2D implements MaterializedBase { const translateY_NonNull = (translateY as number) this.setTranslateY(translateY_NonNull) } - static ctor(): KPointer { + static ctor_matrix2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Matrix2D_ctor() return retval } constructor() { - const ctorPtr : KPointer = Matrix2D.ctor() + const ctorPtr : KPointer = Matrix2D.ctor_matrix2d() this.peer = new Finalizable(ctorPtr, Matrix2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,12 +103,12 @@ export class Matrix2D implements MaterializedBase { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) - if ((((RuntimeType.NUMBER == degree_type)) || ((RuntimeType.UNDEFINED == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.UNDEFINED == ry_type)))) { + if (((RuntimeType.NUMBER == degree_type) || (RuntimeType.UNDEFINED == degree_type)) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && (RuntimeType.UNDEFINED == ry_type)) { const rx_casted = degree as (number | undefined) const ry_casted = rx as (number | undefined) return this.rotate0_serialize(rx_casted, ry_casted) } - if ((((RuntimeType.NUMBER == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.NUMBER == ry_type)) || ((RuntimeType.UNDEFINED == ry_type)))) { + if ((RuntimeType.NUMBER == degree_type) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && ((RuntimeType.NUMBER == ry_type) || (RuntimeType.UNDEFINED == ry_type))) { const degree_casted = degree as (number) const rx_casted = rx as (number | undefined) const ry_casted = ry as (number | undefined) @@ -319,10 +325,3 @@ export class Matrix2D implements MaterializedBase { ArkUIGeneratedNativeModule._Matrix2D_setTranslateY(this.peer!.ptr, translateY) } } -export class Matrix2DInternal { - public static fromPtr(ptr: KPointer): Matrix2D { - const obj : Matrix2D = new Matrix2D() - obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts index b1c493762..43cc96bd0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -19,30 +19,29 @@ import { ConstraintSizeOptions, DirectionalEdgesT } from "./ArkUnitsInterfaces" import { MeasureResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT } export class MeasurableInternal implements MaterializedBase,Measurable { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_measurable(): KPointer { const retval = ArkUIGeneratedNativeModule._Measurable_ctor() return retval } constructor() { - const ctorPtr : KPointer = MeasurableInternal.ctor() + const ctorPtr : KPointer = MeasurableInternal.ctor_measurable() this.peer = new Finalizable(ctorPtr, MeasurableInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,13 +51,13 @@ export class MeasurableInternal implements MaterializedBase,Measurable { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - public getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - public getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - public getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { @@ -66,19 +65,19 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readMeasureResult() } - private getMargin_serialize(): DirectionalEdgesT { + private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } - private getPadding_serialize(): DirectionalEdgesT { + private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } - private getBorderWidth_serialize(): DirectionalEdgesT { + private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj : MeasurableInternal = new MeasurableInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts index cf0d73b80..35a399872 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" -import { ImageAttribute, DrawableDescriptor } from "./ArkImageInterfaces" +import { ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./ArkMediaCachedImageInterfaces" /** @memo:stable */ export class ArkMediaCachedImageComponent extends ArkImageComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts index 6192dfec9..25b190816 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts @@ -20,8 +20,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { DrawableDescriptor, ImageAttribute } from "./ArkImageInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawableDescriptor, ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" export interface ASTCResource { sources: Array; column: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkMenu.ts b/arkoala-arkts/arkui/src/generated/ArkMenu.ts index bffb62dc3..5e96271d4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenu.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenu.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MenuAttribute, SubMenuExpandingMode } from "./ArkMenuInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./ArkMenuInterfaces" /** @memo:stable */ export class ArkMenuComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts index 1a814a754..e134bd888 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type MenuInterface = () => MenuAttribute; export enum SubMenuExpandingMode { SIDE_EXPAND = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts index 56e567759..d6247e791 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder } from "./ArkCommonInterfaces" -import { MenuItemAttribute, MenuItemOptions } from "./ArkMenuItemInterfaces" -import { ResourceStr, Font, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./ArkMenuItemInterfaces" /** @memo:stable */ export class ArkMenuItemComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts index 203771a58..b0e29b112 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MenuItemGroupAttribute, MenuItemGroupOptions } from "./ArkMenuItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./ArkMenuItemGroupInterfaces" /** @memo:stable */ export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts index 7e90aab05..233ebfead 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MenuItemGroupOptions { header?: ResourceStr | CustomBuilder; footer?: ResourceStr | CustomBuilder; diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts index feb14f6f4..96eefac0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Font, ResourceColor } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MenuItemOptions { startIcon?: ResourceStr; symbolStartIcon?: SymbolGlyphModifier; diff --git a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts index 9dbb2fc5c..c514e0af7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -17,15 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface MouseEvent { button: MouseButton @@ -111,13 +111,13 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_mouseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._MouseEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = MouseEventInternal.ctor() + const ctorPtr : KPointer = MouseEventInternal.ctor_mouseevent() this.peer = new Finalizable(ctorPtr, MouseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 6aed74767..4eeaec8d2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -17,27 +17,35 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" -import { SpanStyle, StyledStringKey } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class MutableStyledStringInternal { + public static fromPtr(ptr: KPointer): MutableStyledString { + const obj : MutableStyledString = new MutableStyledString() + obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) + return obj + } +} export class MutableStyledString extends StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_mutablestyledstring(): KPointer { const retval = ArkUIGeneratedNativeModule._MutableStyledString_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = MutableStyledString.ctor() + const ctorPtr : KPointer = MutableStyledString.ctor_mutablestyledstring() this.peer = new Finalizable(ctorPtr, MutableStyledString.getFinalizer()) } static getFinalizer(): KPointer { @@ -156,10 +164,3 @@ export class MutableStyledString extends StyledString implements MaterializedBas thisSerializer.release() } } -export class MutableStyledStringInternal { - public static fromPtr(ptr: KPointer): MutableStyledString { - const obj : MutableStyledString = new MutableStyledString() - obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index 9fcaf7a43..e556b1b8a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -19,19 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./ArkNavDestinationInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute } from "./ArkNavDestinationInterfaces" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { Resource } from "./ArkResourceInterfaces" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { getPeer(): ArkNavDestinationPeer { @@ -50,12 +67,12 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) - if ((((RuntimeType.UNDEFINED == animated_type)))) { + if (RuntimeType.UNDEFINED == animated_type) { const value_casted = hide as (boolean) this.getPeer()?.hideTitleBar0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == animated_type)))) { + if (RuntimeType.BOOLEAN == animated_type) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean) this.getPeer()?.hideTitleBar1Attribute(hide_casted, animated_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index a25d2a168..a57ca7041 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,12 +20,11 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavDestinationContext { pathInfo: NavPathInfo @@ -57,12 +56,12 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - static ctor(): KPointer { + static ctor_navdestinationcontext(): KPointer { const retval = ArkUIGeneratedNativeModule._NavDestinationContext_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavDestinationContextInternal.ctor() + const ctorPtr : KPointer = NavDestinationContextInternal.ctor_navdestinationcontext() this.peer = new Finalizable(ctorPtr, NavDestinationContextInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts index 17d5c86ac..fb265e5aa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -20,10 +20,26 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CustomBuilder, CommonMethod, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" -import { TitleHeight } from "./ArkEnumsInterfaces" -import { Length, ResourceStr } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { TitleHeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts index 15b1f1e10..b069bdc34 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -19,19 +19,25 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavExtenderInternal { + public static fromPtr(ptr: KPointer): NavExtender { + const obj : NavExtender = new NavExtender() + obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) + return obj + } +} export class NavExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navextender(): KPointer { const retval = ArkUIGeneratedNativeModule._NavExtender_ctor() return retval } @@ -39,7 +45,7 @@ export class NavExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = NavExtender.ctor() + const ctorPtr : KPointer = NavExtender.ctor_navextender() this.peer = new Finalizable(ctorPtr, NavExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -59,10 +65,3 @@ export class NavExtender implements MaterializedBase { thisSerializer.release() } } -export class NavExtenderInternal { - public static fromPtr(ptr: KPointer): NavExtender { - const obj : NavExtender = new NavExtender() - obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts index 6209225c3..6db0fcac8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -19,13 +19,19 @@ import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { PopInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavPathInfoInternal { + public static fromPtr(ptr: KPointer): NavPathInfo { + const obj : NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) + return obj + } +} export class NavPathInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -58,7 +64,7 @@ export class NavPathInfo implements MaterializedBase { const isEntry_NonNull = (isEntry as boolean) this.setIsEntry(isEntry_NonNull) } - static ctor(name: string, param: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { + static ctor_navpathinfo(name: string, param: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomObject("Any", param) let onPop_type : int32 = RuntimeType.UNDEFINED @@ -82,7 +88,7 @@ export class NavPathInfo implements MaterializedBase { constructor(name?: string, param?: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean) { if (((name) !== (undefined)) && ((param) !== (undefined)) && ((onPop) !== (undefined)) && ((isEntry) !== (undefined))) { - const ctorPtr : KPointer = NavPathInfo.ctor(name, param, onPop, isEntry) + const ctorPtr : KPointer = NavPathInfo.ctor_navpathinfo(name, param, onPop, isEntry) this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) } } @@ -149,10 +155,3 @@ export class NavPathInfo implements MaterializedBase { ArkUIGeneratedNativeModule._NavPathInfo_setIsEntry(this.peer!.ptr, isEntry ? 1 : 0) } } -export class NavPathInfoInternal { - public static fromPtr(ptr: KPointer): NavPathInfo { - const obj : NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 64d198134..8eaf19800 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -20,24 +20,30 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, PopInfo, NavigationInterception } from "./ArkNavigationInterfaces" import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavPathStackInternal { + public static fromPtr(ptr: KPointer): NavPathStack { + const obj : NavPathStack = new NavPathStack() + obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) + return obj + } +} export class NavPathStack implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navpathstack(): KPointer { const retval = ArkUIGeneratedNativeModule._NavPathStack_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavPathStack.ctor() + const ctorPtr : KPointer = NavPathStack.ctor_navpathstack() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) } static getFinalizer(): KPointer { @@ -46,13 +52,13 @@ export class NavPathStack implements MaterializedBase { public pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this.pushPath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this.pushPath1_serialize(info_casted, options_casted) @@ -63,12 +69,12 @@ export class NavPathStack implements MaterializedBase { public pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) return this.pushDestination0_serialize(info_casted, animated_casted) } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) return this.pushDestination1_serialize(info_casted, options_casted) @@ -80,14 +86,14 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && ((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (object) const animated_casted = onPop as (boolean | undefined) this.pushPathByName0_serialize(name_casted, param_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && (RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -102,13 +108,13 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = onPop as (boolean | undefined) return this.pushDestinationByName0_serialize(name_casted, param_casted, animated_casted) } - if ((((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -120,13 +126,13 @@ export class NavPathStack implements MaterializedBase { public replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this.replacePath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this.replacePath1_serialize(info_casted, options_casted) @@ -161,11 +167,11 @@ export class NavPathStack implements MaterializedBase { public pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const animated_casted = result as (boolean | undefined) return this.pop0_serialize(animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) return this.pop1_serialize(result_casted, animated_casted) @@ -176,12 +182,12 @@ export class NavPathStack implements MaterializedBase { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const animated_casted = result as (boolean | undefined) return this.popToName0_serialize(name_casted, animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -193,13 +199,13 @@ export class NavPathStack implements MaterializedBase { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const index_casted = index as (number) const animated_casted = result as (boolean | undefined) this.popToIndex0_serialize(index_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const index_casted = index as (number) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -599,10 +605,3 @@ export class NavPathStack implements MaterializedBase { thisSerializer.release() } } -export class NavPathStackInternal { - public static fromPtr(ptr: KPointer): NavPathStack { - const obj : NavPathStack = new NavPathStack() - obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts index 18e6c403e..0f330cb4f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NavRouterAttribute, NavRouteMode, RouteInfo } from "./ArkNavRouterInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./ArkNavRouterInterfaces" /** @memo:stable */ export class ArkNavRouterComponent extends ArkCommonMethodComponent { getPeer(): ArkNavRouterPeer { @@ -36,11 +56,11 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavRouterOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RouteInfo) this.getPeer()?.setNavRouterOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts index dac267967..98d540094 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RouteInfo { name: string; param?: object; diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index f045ce317..26cd72308 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,12 +18,11 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavigationTransitionProxy { from: NavContentInfo @@ -57,12 +56,12 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) } - static ctor(): KPointer { + static ctor_navigationtransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._NavigationTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavigationTransitionProxyInternal.ctor() + const ctorPtr : KPointer = NavigationTransitionProxyInternal.ctor_navigationtransitionproxy() this.peer = new Finalizable(ctorPtr, NavigationTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts index 673888de8..694f558ea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NavigatorAttribute, NavigationType } from "./ArkNavigatorInterfaces" -import { Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavigationType, NavigatorAttribute } from "./ArkNavigatorInterfaces" /** @memo:stable */ export class ArkNavigatorComponent extends ArkCommonMethodComponent { getPeer(): ArkNavigatorPeer { @@ -35,11 +55,11 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { public setNavigatorOptions(value?: Literal_String_target_NavigationType_type): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavigatorOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (Literal_String_target_NavigationType_type | undefined) this.getPeer()?.setNavigatorOptions0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts index 2fea2be89..c362fe36b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Literal_String_target_NavigationType_type, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum NavigationType { PUSH = 0, Push = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts index f1096409d..961d25da6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { NodeController } from "./ArkArkuiExternalInterfaces" +import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" /** @memo:stable */ export class ArkNodeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkNodeContainerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts index 77a0caccb..7c1064cba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -20,7 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { NodeController } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type NodeContainerInterface = (controller: NodeController) => NodeContainerAttribute; export interface NodeContainerAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts new file mode 100644 index 000000000..90d776fd8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class OffscreenCanvasInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvas { + const obj : OffscreenCanvas = new OffscreenCanvas(undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvas.getFinalizer()) + return obj + } +} +export class OffscreenCanvas implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get height(): number { + return this.getHeight() + } + set height(height: number) { + this.setHeight(height) + } + get width(): number { + return this.getWidth() + } + set width(width: number) { + this.setWidth(width) + } + static ctor_offscreencanvas(width: number, height: number): KPointer { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_ctor(width, height) + return retval + } + constructor(width?: number, height?: number) { + if (((width) !== (undefined)) && ((height) !== (undefined))) + { + const ctorPtr : KPointer = OffscreenCanvas.ctor_offscreencanvas(width, height) + this.peer = new Finalizable(ctorPtr, OffscreenCanvas.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvas_getFinalizer() + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + public getContext2d(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const options_casted = options as (RenderingContextSettings | undefined) + return this.getContext2d_serialize(options_casted) + } + private getHeight(): number { + return this.getHeight_serialize() + } + private setHeight(height: number): void { + const height_casted = height as (number) + this.setHeight_serialize(height_casted) + return + } + private getWidth(): number { + return this.getWidth_serialize() + } + private setWidth(width: number): void { + const width_casted = width as (number) + this.setWidth_serialize(width_casted) + return + } + getContext(contextType: string, options: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + throw new Error("TBD") + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getContext2d_serialize(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const thisSerializer : Serializer = Serializer.hold() + let options_type : int32 = RuntimeType.UNDEFINED + options_type = runtimeType(options) + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRenderingContextSettings(options_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getContext2d(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + throw new Error("Object deserialization is not implemented.") + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getHeight(this.peer!.ptr) + return retval + } + private setHeight_serialize(height: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setHeight(this.peer!.ptr, height) + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getWidth(this.peer!.ptr) + return retval + } + private setWidth_serialize(width: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setWidth(this.peer!.ptr, width) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts new file mode 100644 index 000000000..a283f9b78 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class OffscreenCanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvasRenderingContext2D { + const obj : OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvasRenderingContext2D.getFinalizer()) + return obj + } +} +export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_offscreencanvasrenderingcontext2d(width: number, height: number, settings?: RenderingContextSettings): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let settings_type : int32 = RuntimeType.UNDEFINED + settings_type = runtimeType(settings) + thisSerializer.writeInt8(settings_type as int32) + if ((RuntimeType.UNDEFINED) != (settings_type)) { + const settings_value = settings! + thisSerializer.writeRenderingContextSettings(settings_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, settings?: RenderingContextSettings) { + super() + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((settings) !== (undefined))) + { + const ctorPtr : KPointer = OffscreenCanvasRenderingContext2D.ctor_offscreencanvasrenderingcontext2d(width, height, settings) + this.peer = new Finalizable(ctorPtr, OffscreenCanvasRenderingContext2D.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() + } + public toDataURL(type?: string, quality?: object): string { + const type_casted = type as (string | undefined) + const quality_casted = quality as (object | undefined) + return this.toDataURL_serialize(type_casted, quality_casted) + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + private toDataURL_serialize(type?: string, quality?: object): string { + const thisSerializer : Serializer = Serializer.hold() + let type_type : int32 = RuntimeType.UNDEFINED + type_type = runtimeType(type) + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeString(type_value) + } + let quality_type : int32 = RuntimeType.UNDEFINED + quality_type = runtimeType(quality) + thisSerializer.writeInt8(quality_type as int32) + if ((RuntimeType.UNDEFINED) != (quality_type)) { + const quality_value = quality! + thisSerializer.writeCustomObject("Any", quality_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 8c251553c..e99382ebf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PanGestureEvent { offsetX: number @@ -67,13 +69,13 @@ export class PanGestureEventInternal extends BaseGestureEventInternal implements set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_pangestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PanGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PanGestureEventInternal.ctor() + const ctorPtr : KPointer = PanGestureEventInternal.ctor_pangestureevent() this.peer = new Finalizable(ctorPtr, PanGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index 35d5e8e36..97b1550ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -19,19 +19,25 @@ import { Literal_Number_distance_fingers_PanDirection_direction } from "./SyntheticDeclarations" import { PanDirection } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PanGestureOptionsInternal { + public static fromPtr(ptr: KPointer): PanGestureOptions { + const obj : PanGestureOptions = new PanGestureOptions(undefined) + obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) + return obj + } +} export class PanGestureOptions implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: Literal_Number_distance_fingers_PanDirection_direction): KPointer { + static ctor_pangestureoptions(value?: Literal_Number_distance_fingers_PanDirection_direction): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -68,7 +74,7 @@ export class PanGestureOptions implements MaterializedBase { return retval } constructor(value?: Literal_Number_distance_fingers_PanDirection_direction) { - const ctorPtr : KPointer = PanGestureOptions.ctor(value) + const ctorPtr : KPointer = PanGestureOptions.ctor_pangestureoptions(value) this.peer = new Finalizable(ctorPtr, PanGestureOptions.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +112,3 @@ export class PanGestureOptions implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class PanGestureOptionsInternal { - public static fromPtr(ptr: KPointer): PanGestureOptions { - const obj : PanGestureOptions = new PanGestureOptions(undefined) - obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts index 63789f007..0f22f9c62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -17,27 +17,36 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { GestureRecognizer, GestureRecognizerInternal } from "./ArkGestureRecognizerMaterialized" +import { GestureControl_GestureType } from "./ArkGestureControlNamespace" +import { GestureRecognizerState } from "./ArkGestureInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PanRecognizerInternal { + public static fromPtr(ptr: KPointer): PanRecognizer { + const obj : PanRecognizer = new PanRecognizer() + obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) + return obj + } +} export class PanRecognizer extends GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_panrecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._PanRecognizer_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PanRecognizer.ctor() + const ctorPtr : KPointer = PanRecognizer.ctor_panrecognizer() this.peer = new Finalizable(ctorPtr, PanRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +60,3 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase throw new Error("Object deserialization is not implemented.") } } -export class PanRecognizerInternal { - public static fromPtr(ptr: KPointer): PanRecognizer { - const obj : PanRecognizer = new PanRecognizer() - obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanel.ts b/arkoala-arkts/arkui/src/generated/ArkPanel.ts index c143f7fb4..1a3e582fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanel.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PanelAttribute, PanelMode, PanelType, PanelHeight } from "./ArkPanelInterfaces" -import { Dimension, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./ArkPanelInterfaces" /** @memo:stable */ export class ArkPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkPanelPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts index 5810df901..f3111eae1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Dimension, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum PanelMode { MINI = 0, Mini = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts index 4a578ced9..c4a8fe084 100644 --- a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -20,13 +20,19 @@ import { TextAlign, TextOverflow, WordBreak } from "./ArkEnumsInterfaces" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" import { ParagraphStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ParagraphStyleInternal { + public static fromPtr(ptr: KPointer): ParagraphStyle { + const obj : ParagraphStyle = new ParagraphStyle(undefined) + obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) + return obj + } +} export class ParagraphStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -50,7 +56,7 @@ export class ParagraphStyle implements MaterializedBase { get leadingMargin(): number | LeadingMarginPlaceholder | undefined { throw new Error("Not implemented") } - static ctor(value?: ParagraphStyleInterface): KPointer { + static ctor_paragraphstyle(value?: ParagraphStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -64,7 +70,7 @@ export class ParagraphStyle implements MaterializedBase { return retval } constructor(value?: ParagraphStyleInterface) { - const ctorPtr : KPointer = ParagraphStyle.ctor(value) + const ctorPtr : KPointer = ParagraphStyle.ctor_paragraphstyle(value) this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +112,3 @@ export class ParagraphStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ParagraphStyleInternal { - public static fromPtr(ptr: KPointer): ParagraphStyle { - const obj : ParagraphStyle = new ParagraphStyle(undefined) - obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts index d180145a4..9c777628a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { PasteButtonAttribute, PasteButtonOnClickResult, PasteButtonOptions } from "./ArkPasteButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions } from "./ArkPasteButtonInterfaces" /** @memo:stable */ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkPasteButtonPeer { @@ -37,11 +40,11 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setPasteButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (PasteButtonOptions) this.getPeer()?.setPasteButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts index 69ca4b8b7..138602eae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum PasteIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkPath.ts b/arkoala-arkts/arkui/src/generated/ArkPath.ts index 8bb2de015..1d1bd8952 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PathAttribute, PathOptions } from "./ArkPathInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PathOptions, PathAttribute } from "./ArkPathInterfaces" /** @memo:stable */ export class ArkPathComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPathPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts index 30765915e..05489d7bf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts @@ -20,25 +20,31 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class Path2DInternal { + public static fromPtr(ptr: KPointer): Path2D { + const obj : Path2D = new Path2D() + obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) + return obj + } +} export class Path2D extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_path2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Path2D_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = Path2D.ctor() + const ctorPtr : KPointer = Path2D.ctor_path2d() this.peer = new Finalizable(ctorPtr, Path2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +70,3 @@ export class Path2D extends CanvasPath implements MaterializedBase { thisSerializer.release() } } -export class Path2DInternal { - public static fromPtr(ptr: KPointer): Path2D { - const obj : Path2D = new Path2D() - obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts index 07fa7f8ce..f6233d2c2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface PathOptions { width?: number | string; height?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts index 3382784d1..01f21359e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PatternLockAttribute, CircleStyleOptions } from "./ArkPatternLockInterfaces" -import { Length, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CircleStyleOptions, PatternLockAttribute } from "./ArkPatternLockInterfaces" import { PatternLockController } from "./ArkPatternLockControllerMaterialized" /** @memo:stable */ export class ArkPatternLockComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 43c5419f6..f345bcec4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -18,24 +18,30 @@ import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PatternLockControllerInternal { + public static fromPtr(ptr: KPointer): PatternLockController { + const obj : PatternLockController = new PatternLockController() + obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) + return obj + } +} export class PatternLockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_patternlockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._PatternLockController_ctor() return retval } constructor() { - const ctorPtr : KPointer = PatternLockController.ctor() + const ctorPtr : KPointer = PatternLockController.ctor_patternlockcontroller() this.peer = new Finalizable(ctorPtr, PatternLockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +63,3 @@ export class PatternLockController implements MaterializedBase { ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, (result.valueOf() as int32)) } } -export class PatternLockControllerInternal { - public static fromPtr(ptr: KPointer): PatternLockController { - const obj : PatternLockController = new PatternLockController() - obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts index 7ed10460d..036537011 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { PatternLockController } from "./ArkPatternLockControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum PatternLockChallengeResult { CORRECT = 1, WRONG = 2 diff --git a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 7d39a9c0b..38bd329b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PermissionRequestInternal { + public static fromPtr(ptr: KPointer): PermissionRequest { + const obj : PermissionRequest = new PermissionRequest() + obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) + return obj + } +} export class PermissionRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_permissionrequest(): KPointer { const retval = ArkUIGeneratedNativeModule._PermissionRequest_ctor() return retval } constructor() { - const ctorPtr : KPointer = PermissionRequest.ctor() + const ctorPtr : KPointer = PermissionRequest.ctor_permissionrequest() this.peer = new Finalizable(ctorPtr, PermissionRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -77,10 +83,3 @@ export class PermissionRequest implements MaterializedBase { thisSerializer.release() } } -export class PermissionRequestInternal { - public static fromPtr(ptr: KPointer): PermissionRequest { - const obj : PermissionRequest = new PermissionRequest() - obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 5c5e561e1..41b3223de 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PinchGestureEvent { scale: number @@ -53,13 +55,13 @@ export class PinchGestureEventInternal extends BaseGestureEventInternal implemen set pinchCenterY(pinchCenterY: number) { this.setPinchCenterY(pinchCenterY) } - static ctor(): KPointer { + static ctor_pinchgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PinchGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PinchGestureEventInternal.ctor() + const ctorPtr : KPointer = PinchGestureEventInternal.ctor_pinchgestureevent() this.peer = new Finalizable(ctorPtr, PinchGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts index b492b1502..5936abcdb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -17,16 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMap { - isEditable: int32 - isStrideAlignment: int32 + readonly isEditable: boolean + readonly isStrideAlignment: boolean readPixelsToBufferSync(dst: NativeBuffer): void writeBufferToPixels(src: NativeBuffer): void } @@ -35,24 +34,18 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { public getPeer(): Finalizable | undefined { return this.peer } - get isEditable(): int32 { + get isEditable(): boolean { return this.getIsEditable() } - set isEditable(isEditable: int32) { - this.setIsEditable(isEditable) - } - get isStrideAlignment(): int32 { + get isStrideAlignment(): boolean { return this.getIsStrideAlignment() } - set isStrideAlignment(isStrideAlignment: int32) { - this.setIsStrideAlignment(isStrideAlignment) - } - static ctor(): KPointer { + static ctor_pixelmap(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMap_ctor() return retval } constructor() { - const ctorPtr : KPointer = PixelMapInternal.ctor() + const ctorPtr : KPointer = PixelMapInternal.ctor_pixelmap() this.peer = new Finalizable(ctorPtr, PixelMapInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,22 +61,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { this.writeBufferToPixels_serialize(src_casted) return } - private getIsEditable(): int32 { + private getIsEditable(): boolean { return this.getIsEditable_serialize() } - private setIsEditable(isEditable: int32): void { - const isEditable_casted = isEditable as (int32) - this.setIsEditable_serialize(isEditable_casted) - return - } - private getIsStrideAlignment(): int32 { + private getIsStrideAlignment(): boolean { return this.getIsStrideAlignment_serialize() } - private setIsStrideAlignment(isStrideAlignment: int32): void { - const isStrideAlignment_casted = isStrideAlignment as (int32) - this.setIsStrideAlignment_serialize(isStrideAlignment_casted) - return - } private readPixelsToBufferSync_serialize(dst: NativeBuffer): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeBuffer(dst) @@ -96,20 +79,14 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { ArkUIGeneratedNativeModule._PixelMap_writeBufferToPixels(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getIsEditable_serialize(): int32 { + private getIsEditable_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsEditable(this.peer!.ptr) return retval } - private setIsEditable_serialize(isEditable: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsEditable(this.peer!.ptr, isEditable) - } - private getIsStrideAlignment_serialize(): int32 { + private getIsStrideAlignment_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsStrideAlignment(this.peer!.ptr) return retval } - private setIsStrideAlignment_serialize(isStrideAlignment: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsStrideAlignment(this.peer!.ptr, isStrideAlignment) - } public static fromPtr(ptr: KPointer): PixelMapInternal { const obj : PixelMapInternal = new PixelMapInternal() obj.peer = new Finalizable(ptr, PixelMapInternal.getFinalizer()) diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts index 421adbfd6..fa6f843ac 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMapMock { release(): void @@ -32,12 +31,12 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_pixelmapmock(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMapMock_ctor() return retval } constructor() { - const ctorPtr : KPointer = PixelMapMockInternal.ctor() + const ctorPtr : KPointer = PixelMapMockInternal.ctor_pixelmapmock() this.peer = new Finalizable(ctorPtr, PixelMapMockInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts index 01526d6da..e7a5931ab 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PluginComponentAttribute, PluginErrorCallback, PluginComponentOptions } from "./ArkPluginComponentInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute } from "./ArkPluginComponentInterfaces" /** @memo:stable */ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkPluginComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts index 005088022..2a1b35e6d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface PluginComponentTemplate { source: string; bundleName: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts index ec3ef51b6..b2c64a22d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PolygonAttribute, PolygonOptions } from "./ArkPolygonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./ArkPolygonInterfaces" /** @memo:stable */ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolygonPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts index b659eff46..219c010ae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" export interface PolygonOptions { width?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts index 8314dbf4e..d1bbcba3d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PolylineAttribute, PolylineOptions } from "./ArkPolylineInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./ArkPolylineInterfaces" /** @memo:stable */ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolylinePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts index 7a0afd2a8..ae1b4df49 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" export interface PolylineOptions { width?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts new file mode 100644 index 000000000..d9ac5dd3b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export namespace Profiler { + export class GlobalScope_Profiler_inspector { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { + const callback__casted = callback_ as (((info: string) => void)) + GlobalScope_Profiler_inspector.registerVsyncCallback_serialize(callback__casted) + return + } + public static unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback_serialize() + return + } + private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(callback_) + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static unregisterVsyncCallback_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_unregisterVsyncCallback() + } + } +} +export namespace Profiler { + export function registerVsyncCallback(callback_: ((info: string) => void)): void { + GlobalScope_Profiler_inspector.registerVsyncCallback(callback_) + } + export function unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback() + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkProgress.ts b/arkoala-arkts/arkui/src/generated/ArkProgress.ts index 04461a228..a41d466c6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgress.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ProgressAttribute, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions } from "./ArkProgressInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions, ProgressAttribute } from "./ArkProgressInterfaces" /** @memo:stable */ export class ArkProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkProgressPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts index 037d98496..8f73b2886 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, PX, VP, LPX, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { Length, PX, VP, LPX, ResourceColor, Font, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" export interface ProgressOptions { value: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts index 9781cf9fd..d31ce0e0a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -20,19 +20,25 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ProgressMaskInternal { + public static fromPtr(ptr: KPointer): ProgressMask { + const obj : ProgressMask = new ProgressMask(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) + return obj + } +} export class ProgressMask implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: number, total: number, color: ResourceColor): KPointer { + static ctor_progressmask(value: number, total: number, color: ResourceColor): KPointer { const thisSerializer : Serializer = Serializer.hold() let color_type : int32 = RuntimeType.UNDEFINED color_type = runtimeType(color) @@ -41,17 +47,17 @@ export class ProgressMask implements MaterializedBase { const color_0 = color as Color thisSerializer.writeInt32((color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == color_type))) { + else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) const color_1 = color as number thisSerializer.writeNumber(color_1) } - else if (((RuntimeType.STRING == color_type))) { + else if (RuntimeType.STRING == color_type) { thisSerializer.writeInt8(2 as int32) const color_2 = color as string thisSerializer.writeString(color_2) } - else if (((RuntimeType.OBJECT == color_type))) { + else if (RuntimeType.OBJECT == color_type) { thisSerializer.writeInt8(3 as int32) const color_3 = color as Resource thisSerializer.writeResource(color_3) @@ -63,7 +69,7 @@ export class ProgressMask implements MaterializedBase { constructor(value?: number, total?: number, color?: ResourceColor) { if (((value) !== (undefined)) && ((total) !== (undefined)) && ((color) !== (undefined))) { - const ctorPtr : KPointer = ProgressMask.ctor(value, total, color) + const ctorPtr : KPointer = ProgressMask.ctor_progressmask(value, total, color) this.peer = new Finalizable(ctorPtr, ProgressMask.getFinalizer()) } } @@ -97,17 +103,17 @@ export class ProgressMask implements MaterializedBase { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -119,10 +125,3 @@ export class ProgressMask implements MaterializedBase { ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, value ? 1 : 0) } } -export class ProgressMaskInternal { - public static fromPtr(ptr: KPointer): ProgressMask { - const obj : ProgressMask = new ProgressMask(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts index c9ea2fcc4..5fce037e2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { QRCodeAttribute } from "./ArkQrcodeInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { QRCodeAttribute } from "./ArkQrcodeInterfaces" /** @memo:stable */ export class ArkQRCodeComponent extends ArkCommonMethodComponent { getPeer(): ArkQRCodePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts index c638ae37d..ca7659305 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type QRCodeInterface = (value: string) => QRCodeAttribute; export interface QRCodeAttribute extends CommonMethod { color: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkRadio.ts b/arkoala-arkts/arkui/src/generated/ArkRadio.ts index 64fc5cc0d..f416da95c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadio.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadio.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions } from "./ArkRadioInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute } from "./ArkRadioInterfaces" /** @memo:stable */ export class ArkRadioComponent extends ArkCommonMethodComponent { getPeer(): ArkRadioPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts index d90ac857b..ee5768ffb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum RadioIndicatorType { TICK = 0, DOT = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkRating.ts b/arkoala-arkts/arkui/src/generated/ArkRating.ts index 268dce68b..9d1754d5c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRating.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRating.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions } from "./ArkRatingInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./ArkRatingInterfaces" /** @memo:stable */ export class ArkRatingComponent extends ArkCommonMethodComponent { getPeer(): ArkRatingPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts index e49923bcf..4fb260bc1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Number_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RatingOptions { rating: number; indicator?: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkRect.ts b/arkoala-arkts/arkui/src/generated/ArkRect.ts index 9c4722c7e..222509d06 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRect.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions } from "./ArkRectInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./ArkRectInterfaces" /** @memo:stable */ export class ArkRectComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkRectPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts index 71fbd9dde..5bf9e78b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RectOptions { width?: number | string; height?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts index 1618ad750..780426274 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RefreshAttribute, RefreshStatus, RefreshOptions } from "./ArkRefreshInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./ArkRefreshInterfaces" /** @memo:stable */ export class ArkRefreshComponent extends ArkCommonMethodComponent { getPeer(): ArkRefreshPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts index bc1173eb2..be7a1f532 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder, ComponentContent, CommonMethod } from "./ArkCommonInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum RefreshStatus { INACTIVE = 0, Inactive = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts index 3128de0e3..a3e5b56bb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RelativeContainerAttribute, GuideLineStyle, BarrierStyle, LocalizedBarrierStyle } from "./ArkRelativeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute } from "./ArkRelativeContainerInterfaces" /** @memo:stable */ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkRelativeContainerPeer { @@ -51,12 +72,12 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_BarrierStyle(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_BarrierStyle(value))) { const value_casted = value as (Array) this.getPeer()?.barrier0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_LocalizedBarrierStyle(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_LocalizedBarrierStyle(value))) { const value_casted = value as (Array) this.getPeer()?.barrier1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts index 8d04973ad..6c5d77629 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension } from "./ArkUnitsInterfaces" -import { Axis } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RelativeContainerInterface = () => RelativeContainerAttribute; export interface GuideLinePosition { start?: Dimension; diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts index caf1789b6..246f70018 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RemoteWindowAttribute, WindowAnimationTarget } from "./ArkRemoteWindowInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute } from "./ArkRemoteWindowInterfaces" /** @memo:stable */ export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { getPeer(): ArkRemoteWindowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts index 6fbed6f63..e66ed0ea4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RRect { left: number; top: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index 893f9d9d7..eba617ebf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RenderingContextSettingsInternal { + public static fromPtr(ptr: KPointer): RenderingContextSettings { + const obj : RenderingContextSettings = new RenderingContextSettings(undefined) + obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) + return obj + } +} export class RenderingContextSettings implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +42,7 @@ export class RenderingContextSettings implements MaterializedBase { const antialias_NonNull = (antialias as boolean) this.setAntialias(antialias_NonNull) } - static ctor(antialias?: boolean): KPointer { + static ctor_renderingcontextsettings(antialias?: boolean): KPointer { const thisSerializer : Serializer = Serializer.hold() let antialias_type : int32 = RuntimeType.UNDEFINED antialias_type = runtimeType(antialias) @@ -50,7 +56,7 @@ export class RenderingContextSettings implements MaterializedBase { return retval } constructor(antialias?: boolean) { - const ctorPtr : KPointer = RenderingContextSettings.ctor(antialias) + const ctorPtr : KPointer = RenderingContextSettings.ctor_renderingcontextsettings(antialias) this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,10 +78,3 @@ export class RenderingContextSettings implements MaterializedBase { ArkUIGeneratedNativeModule._RenderingContextSettings_setAntialias(this.peer!.ptr, antialias ? 1 : 0) } } -export class RenderingContextSettingsInternal { - public static fromPtr(ptr: KPointer): RenderingContextSettings { - const obj : RenderingContextSettings = new RenderingContextSettings(undefined) - obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 5d7ca60bc..ee39f9365 100644 --- a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ReplaceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { + const obj : ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) + return obj + } +} export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_replacesymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = ReplaceSymbolEffect.ctor(scope) + const ctorPtr : KPointer = ReplaceSymbolEffect.ctor_replacesymboleffect(scope) this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class ReplaceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { - const obj : ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts index 5b0234f49..c0b8ceaed 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts @@ -19,17 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" -import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./ArkRichEditorInterfaces" -import { Callback_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./ArkRichEditorInterfaces" import { TextRange, TextDataDetectorConfig, OnDidChangeCallback } from "./ArkTextCommonInterfaces" -import { CopyOptions, BarState, ResponseType } from "./ArkEnumsInterfaces" -import { ResourceColor, ResourceStr } from "./ArkUnitsInterfaces" import { EnterKeyType } from "./ArkTextInputInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ @@ -41,12 +59,12 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) - if ((TypeChecker.isRichEditorOptions(value, true))) { + if (TypeChecker.isRichEditorOptions(value, true)) { const value_casted = value as (RichEditorOptions) this.getPeer()?.setRichEditorOptions0Attribute(value_casted) return this } - if ((TypeChecker.isRichEditorStyledStringOptions(value, true))) { + if (TypeChecker.isRichEditorStyledStringOptions(value, true)) { const options_casted = value as (RichEditorStyledStringOptions) this.getPeer()?.setRichEditorOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index b2f9c1c21..13ba95527 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -17,29 +17,36 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" -import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorBaseControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorBaseController { + const obj : RichEditorBaseController = new RichEditorBaseController() + obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) + return obj + } +} export class RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_ctor() return retval } constructor() { - const ctorPtr : KPointer = RichEditorBaseController.ctor() + const ctorPtr : KPointer = RichEditorBaseController.ctor_richeditorbasecontroller() this.peer = new Finalizable(ctorPtr, RichEditorBaseController.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,7 +104,7 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorTextStyle() } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer : Serializer = Serializer.hold() @@ -130,13 +137,6 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class RichEditorBaseControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorBaseController { - const obj : RichEditorBaseController = new RichEditorBaseController() - obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readPreviewText() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index af499452b..8efee3e6e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -17,33 +17,43 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" -import { RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, CustomBuilder } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder } from "./ArkCommonInterfaces" import { CustomNodeBuilder } from "./SyntheticDeclarations" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorController { + const obj : RichEditorController = new RichEditorController() + obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) + return obj + } +} export class RichEditorController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RichEditorController.ctor() + const ctorPtr : KPointer = RichEditorController.ctor_richeditorcontroller() this.peer = new Finalizable(ctorPtr, RichEditorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -125,17 +135,17 @@ export class RichEditorController extends RichEditorBaseController implements Ma const value_0 = value as PixelMap thisSerializer.writePixelMap(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ResourceStr let value_1_type : int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0 as int32) const value_1_0 = value_1 as string thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1 as int32) const value_1_1 = value_1 as Resource thisSerializer.writeResource(value_1_1) @@ -248,7 +258,7 @@ export class RichEditorController extends RichEditorBaseController implements Ma } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorSelection() } private fromStyledString_serialize(value: StyledString): Array { const thisSerializer : Serializer = Serializer.hold() @@ -265,10 +275,3 @@ export class RichEditorController extends RichEditorBaseController implements Ma throw new Error("Object deserialization is not implemented.") } } -export class RichEditorControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorController { - const obj : RichEditorController = new RichEditorController() - obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts index 5982f7e22..528bb029e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts @@ -19,11 +19,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Tuple_Number_Number, Tuple_Dimension_Dimension, Callback_Void, Callback_ClickEvent_Void, Callback_GestureEvent_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, CopyOptions, BarState, ResponseType } from "./ArkEnumsInterfaces" +import { Tuple_Number_Number, Tuple_Dimension_Dimension, Callback_Void, Callback_ClickEvent_Void, Callback_GestureEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./ArkEnumsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { ShadowOptions, CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" +import { ShadowOptions, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" @@ -32,6 +32,21 @@ import { ClickEvent } from "./ArkClickEventMaterialized" import { GestureEvent } from "./ArkGestureEventMaterialized" import { RichEditorController } from "./ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SubmitEvent } from "./ArkSubmitEventMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index 23d742376..ae245a2a3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -17,31 +17,41 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, StyledStringChangedListener } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorRange } from "./ArkRichEditorInterfaces" import { StyledStringController, StyledStringControllerInternal } from "./ArkStyledStringControllerMaterialized" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" -import { RichEditorRange } from "./ArkRichEditorInterfaces" -import { StyledStringChangedListener } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorStyledStringControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorStyledStringController { + const obj : RichEditorStyledStringController = new RichEditorStyledStringController() + obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) + return obj + } +} export class RichEditorStyledStringController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorstyledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RichEditorStyledStringController.ctor() + const ctorPtr : KPointer = RichEditorStyledStringController.ctor_richeditorstyledstringcontroller() this.peer = new Finalizable(ctorPtr, RichEditorStyledStringController.getFinalizer()) } static getFinalizer(): KPointer { @@ -75,7 +85,7 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorRange() } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer : Serializer = Serializer.hold() @@ -84,10 +94,3 @@ export class RichEditorStyledStringController extends RichEditorBaseController i thisSerializer.release() } } -export class RichEditorStyledStringControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorStyledStringController { - const obj : RichEditorStyledStringController = new RichEditorStyledStringController() - obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichText.ts b/arkoala-arkts/arkui/src/generated/ArkRichText.ts index cb345c971..b2f51a7fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichText.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { RichTextAttribute } from "./ArkRichTextInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkRichTextComponent extends ArkCommonMethodComponent { getPeer(): ArkRichTextPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts index 7d33f30b5..566e55d0a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RichTextInterface = (content: string) => RichTextAttribute; export interface RichTextAttribute extends CommonMethod { onStart: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts index 4410a9d02..9ad812d58 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RootSceneAttribute, RootSceneSession } from "./ArkRootSceneInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./ArkRootSceneInterfaces" /** @memo:stable */ export class ArkRootSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkRootScenePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts index 49186bb24..5d494bbef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RootSceneSession { } export type RootSceneInterface = (session: RootSceneSession) => RootSceneAttribute; diff --git a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index 13e62ec31..f9103c901 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface RotationGestureEvent { angle: number @@ -39,13 +41,13 @@ export class RotationGestureEventInternal extends BaseGestureEventInternal imple set angle(angle: number) { this.setAngle(angle) } - static ctor(): KPointer { + static ctor_rotationgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._RotationGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RotationGestureEventInternal.ctor() + const ctorPtr : KPointer = RotationGestureEventInternal.ctor_rotationgestureevent() this.peer = new Finalizable(ctorPtr, RotationGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRow.ts b/arkoala-arkts/arkui/src/generated/ArkRow.ts index f2e98431a..50e15305b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRow.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { RowAttribute, RowOptions } from "./ArkRowInterfaces" -import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RowOptions, RowAttribute } from "./ArkRowInterfaces" /** @memo:stable */ export class ArkRowComponent extends ArkCommonMethodComponent { getPeer(): ArkRowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts index e2fb3d8c9..757a15484 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RowOptions { space?: string | number; } diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts index 80389e353..339803de8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { RowSplitAttribute } from "./ArkRowSplitInterfaces" /** @memo:stable */ export class ArkRowSplitComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts index 0affb0471..369a2ed27 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RowSplitInterface = () => RowSplitAttribute; export interface RowSplitAttribute extends CommonMethod { resizeable: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts index 68f43f44f..cf6a948d7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { SaveButtonAttribute, SaveButtonOnClickResult, SaveButtonOptions } from "./ArkSaveButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions } from "./ArkSaveButtonInterfaces" /** @memo:stable */ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkSaveButtonPeer { @@ -37,11 +40,11 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setSaveButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (SaveButtonOptions) this.getPeer()?.setSaveButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts index e0b13c7b6..857a71851 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum SaveIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index 02fafe11b..051e82c51 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScaleSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ScaleSymbolEffect { + const obj : ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) + return obj + } +} export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +50,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_scalesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -65,7 +71,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr : KPointer = ScaleSymbolEffect.ctor(scope, direction) + const ctorPtr : KPointer = ScaleSymbolEffect.ctor_scalesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +108,3 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) } } -export class ScaleSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ScaleSymbolEffect { - const obj : ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreen.ts b/arkoala-arkts/arkui/src/generated/ArkScreen.ts index 25e6886aa..c889db87a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreen.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreen.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ScreenAttribute } from "./ArkScreenInterfaces" /** @memo:stable */ export class ArkScreenComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index 88af11889..b342ccb8d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -18,24 +18,30 @@ import { ScreenCaptureConfig } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScreenCaptureHandlerInternal { + public static fromPtr(ptr: KPointer): ScreenCaptureHandler { + const obj : ScreenCaptureHandler = new ScreenCaptureHandler() + obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) + return obj + } +} export class ScreenCaptureHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_screencapturehandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ScreenCaptureHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ScreenCaptureHandler.ctor() + const ctorPtr : KPointer = ScreenCaptureHandler.ctor_screencapturehandler() this.peer = new Finalizable(ctorPtr, ScreenCaptureHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +73,3 @@ export class ScreenCaptureHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ScreenCaptureHandler_deny(this.peer!.ptr) } } -export class ScreenCaptureHandlerInternal { - public static fromPtr(ptr: KPointer): ScreenCaptureHandler { - const obj : ScreenCaptureHandler = new ScreenCaptureHandler() - obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts index 4e64a2140..809154fdd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type ScreenInterface = (screenId: number) => ScreenAttribute; export interface ScreenAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index 713bf41cc..195edeb8a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { ScrollAttribute, ScrollDirection, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions } from "./ArkScrollInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./SyntheticDeclarations" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { BarState, Color, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute } from "./ArkScrollInterfaces" import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts index 116f01a6e..e2135ff44 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ScrollBarAttribute, ScrollBarOptions } from "./ArkScrollBarInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollBarOptions, ScrollBarAttribute } from "./ArkScrollBarInterfaces" /** @memo:stable */ export class ArkScrollBarComponent extends ArkCommonMethodComponent { getPeer(): ArkScrollBarPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts index a4ff4647e..382d28b81 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts @@ -20,8 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Scroller } from "./ArkScrollerMaterialized" -import { BarState } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { BarState, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ScrollBarDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts index 63599d8ff..0ae04b88a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts @@ -20,14 +20,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { Curve, Edge, BarState, Color, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" +import { Curve, Edge, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Dimension, VoidCallback } from "./ArkUnitsInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { ScrollSnapAlign, ScrollState } from "./ArkListInterfaces" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ScrollDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts index 8c93d5991..4847bb3aa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -18,19 +18,25 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollMotionInternal { + public static fromPtr(ptr: KPointer): ScrollMotion { + const obj : ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) + return obj + } +} export class ScrollMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { + static ctor_scrollmotion(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) @@ -40,7 +46,7 @@ export class ScrollMotion implements MaterializedBase { constructor(position?: number, velocity?: number, min?: number, max?: number, prop?: SpringProp) { if (((position) !== (undefined)) && ((velocity) !== (undefined)) && ((min) !== (undefined)) && ((max) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr : KPointer = ScrollMotion.ctor(position, velocity, min, max, prop) + const ctorPtr : KPointer = ScrollMotion.ctor_scrollmotion(position, velocity, min, max, prop) this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) } } @@ -48,10 +54,3 @@ export class ScrollMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._ScrollMotion_getFinalizer() } } -export class ScrollMotionInternal { - public static fromPtr(ptr: KPointer): ScrollMotion { - const obj : ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index 8c2ffb5f6..489a0269e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -18,25 +18,31 @@ import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollableTargetInfoInternal { + public static fromPtr(ptr: KPointer): ScrollableTargetInfo { + const obj : ScrollableTargetInfo = new ScrollableTargetInfo() + obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) + return obj + } +} export class ScrollableTargetInfo extends EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scrollabletargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._ScrollableTargetInfo_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ScrollableTargetInfo.ctor() + const ctorPtr : KPointer = ScrollableTargetInfo.ctor_scrollabletargetinfo() this.peer = new Finalizable(ctorPtr, ScrollableTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +63,3 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize return retval } } -export class ScrollableTargetInfoInternal { - public static fromPtr(ptr: KPointer): ScrollableTargetInfo { - const obj : ScrollableTargetInfo = new ScrollableTargetInfo() - obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts index 24f470241..418e52136 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts @@ -23,24 +23,30 @@ import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollerInternal { + public static fromPtr(ptr: KPointer): Scroller { + const obj : Scroller = new Scroller() + obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) + return obj + } +} export class Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scroller(): KPointer { const retval = ArkUIGeneratedNativeModule._Scroller_ctor() return retval } constructor() { - const ctorPtr : KPointer = Scroller.ctor() + const ctorPtr : KPointer = Scroller.ctor_scroller() this.peer = new Finalizable(ctorPtr, Scroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,11 +68,11 @@ export class Scroller implements MaterializedBase { } public scrollPage(value: ScrollPageOptions | Literal_Boolean_next_Axis_direction): undefined { const value_type = runtimeType(value) - if ((TypeChecker.isScrollPageOptions(value, true, false))) { + if (TypeChecker.isScrollPageOptions(value, true, false)) { const value_casted = value as (ScrollPageOptions) return this.scrollPage0_serialize(value_casted) } - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLiteral_Boolean_next_Axis_direction(value, true, false)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLiteral_Boolean_next_Axis_direction(value, true, false))) { const value_casted = value as (Literal_Boolean_next_Axis_direction) return this.scrollPage1_serialize(value_casted) } @@ -147,7 +153,7 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readOffsetResult() } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer : Serializer = Serializer.hold() @@ -186,17 +192,10 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) return retval } } -export class ScrollerInternal { - public static fromPtr(ptr: KPointer): Scroller { - const obj : Scroller = new Scroller() - obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearch.ts b/arkoala-arkts/arkui/src/generated/ArkSearch.ts index 154ddc9c8..29e703ad1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearch.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearch.ts @@ -19,19 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, TextDecorationOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchOptions } from "./ArkSearchInterfaces" -import { ResourceColor, Dimension, Font, ResourceStr } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, TextDecorationOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, SearchOptions } from "./ArkSearchInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" -import { CopyOptions, TextAlign } from "./ArkEnumsInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" /** @memo:stable */ @@ -151,12 +168,12 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (SearchSubmitCallback) this.getPeer()?.onSubmit1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts index c2d0977b1..1ef08c79d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SearchControllerInternal { + public static fromPtr(ptr: KPointer): SearchController { + const obj : SearchController = new SearchController() + obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) + return obj + } +} export class SearchController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_searchcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SearchController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = SearchController.ctor() + const ctorPtr : KPointer = SearchController.ctor_searchcontroller() this.peer = new Finalizable(ctorPtr, SearchController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class SearchController extends TextContentControllerBase implements Mater thisSerializer.release() } } -export class SearchControllerInternal { - public static fromPtr(ptr: KPointer): SearchController { - const obj : SearchController = new SearchController() - obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts index b91fa0603..d56ca40c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts @@ -19,15 +19,32 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Length, ResourceColor, Dimension, Font } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { SearchController } from "./ArkSearchControllerMaterialized" -import { SymbolGlyphModifier, CommonMethod, TextDecorationOptions, CustomBuilder } from "./ArkCommonInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions } from "./ArkCommonInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" -import { CopyOptions, TextAlign } from "./ArkEnumsInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" export enum CancelButtonStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts index e2fefe106..62117c6d9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkSelect.ts b/arkoala-arkts/arkui/src/generated/ArkSelect.ts index 9081168c6..df5c956c2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelect.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle, ContentModifier } from "./ArkCommonInterfaces" -import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./ArkSelectInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset } from "./ArkUnitsInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" -import { OptionWidthMode } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./ArkSelectInterfaces" import { ControlSize } from "./ArkButtonInterfaces" import { DividerOptions } from "./ArkTextPickerInterfaces" /** @memo:stable */ diff --git a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts index ff1d570e8..7ebcf04b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CommonMethod, BlurStyle, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font, Offset } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" -import { OptionWidthMode } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ControlSize } from "./ArkButtonInterfaces" import { DividerOptions } from "./ArkTextPickerInterfaces" export interface SelectOption { diff --git a/arkoala-arkts/arkui/src/generated/ArkShape.ts b/arkoala-arkts/arkui/src/generated/ArkShape.ts index bcfb1c4fb..371e1f60b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShape.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShape.ts @@ -19,16 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ShapeAttribute, ViewportRect } from "./ArkShapeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" +import { ViewportRect, ShapeAttribute } from "./ArkShapeInterfaces" /** @memo:stable */ export class ArkShapeComponent extends ArkCommonMethodComponent { getPeer(): ArkShapePeer { @@ -38,11 +55,11 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setShapeOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (PixelMap) this.getPeer()?.setShapeOptions0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts index cd401f895..a7dacfb92 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts @@ -20,10 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export interface ViewportRect { x?: number | string; y?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts index dae7398e9..a208751bd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType } from "./ArkSidebarInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { Length, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerAttribute } from "./ArkSidebarInterfaces" import { DividerStyle } from "./ArkTabsInterfaces" /** @memo:stable */ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { @@ -83,12 +102,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.sideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.sideBarWidth1Attribute(value_casted) return this @@ -101,12 +120,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.minSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.minSideBarWidth1Attribute(value_casted) return this @@ -119,12 +138,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.maxSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.maxSideBarWidth1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts index 2d973f1e2..9083367c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts @@ -21,9 +21,26 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { Length, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { DividerStyle } from "./ArkTabsInterfaces" export enum SideBarContainerType { EMBED = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkSlider.ts b/arkoala-arkts/arkui/src/generated/ArkSlider.ts index 3564903b5..4d44a6050 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSlider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSlider.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions } from "./ArkSliderInterfaces" -import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderOptions } from "./ArkSliderInterfaces" /** @memo:stable */ export class ArkSliderComponent extends ArkCommonMethodComponent { getPeer(): ArkSliderPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts index c58fdf173..427fffe9e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Axis } from "./ArkEnumsInterfaces" -import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./ArkUnitsInterfaces" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" export enum SliderStyle { OUT_SET = 0, OutSet = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSpan.ts index 031e3cc89..d6a420f0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpan.ts @@ -19,16 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" -import { CommonMethod, ShadowOptions } from "./ArkCommonInterfaces" -import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./ArkSpanInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" /** @memo:stable */ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts index 935c8018b..bcd2701f7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Dimension, BorderRadiuses, Font, Length } from "./ArkUnitsInterfaces" -import { CommonMethod, ShadowOptions } from "./ArkCommonInterfaces" +import { ResourceColor, Dimension, BorderRadiuses, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" export interface TextBackgroundStyle { color?: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts index 0e6e1278c..c16deb10a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -18,19 +18,25 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SpringMotionInternal { + public static fromPtr(ptr: KPointer): SpringMotion { + const obj : SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) + return obj + } +} export class SpringMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(start: number, end: number, velocity: number, prop: SpringProp): KPointer { + static ctor_springmotion(start: number, end: number, velocity: number, prop: SpringProp): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._SpringMotion_ctor(start, end, velocity, thisSerializer.asArray(), thisSerializer.length()) @@ -40,7 +46,7 @@ export class SpringMotion implements MaterializedBase { constructor(start?: number, end?: number, velocity?: number, prop?: SpringProp) { if (((start) !== (undefined)) && ((end) !== (undefined)) && ((velocity) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr : KPointer = SpringMotion.ctor(start, end, velocity, prop) + const ctorPtr : KPointer = SpringMotion.ctor_springmotion(start, end, velocity, prop) this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) } } @@ -48,10 +54,3 @@ export class SpringMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringMotion_getFinalizer() } } -export class SpringMotionInternal { - public static fromPtr(ptr: KPointer): SpringMotion { - const obj : SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts index ae44f7844..a8e93fd2c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -17,26 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SpringPropInternal { + public static fromPtr(ptr: KPointer): SpringProp { + const obj : SpringProp = new SpringProp(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) + return obj + } +} export class SpringProp implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(mass: number, stiffness: number, damping: number): KPointer { + static ctor_springprop(mass: number, stiffness: number, damping: number): KPointer { const retval = ArkUIGeneratedNativeModule._SpringProp_ctor(mass, stiffness, damping) return retval } constructor(mass?: number, stiffness?: number, damping?: number) { if (((mass) !== (undefined)) && ((stiffness) !== (undefined)) && ((damping) !== (undefined))) { - const ctorPtr : KPointer = SpringProp.ctor(mass, stiffness, damping) + const ctorPtr : KPointer = SpringProp.ctor_springprop(mass, stiffness, damping) this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) } } @@ -44,10 +50,3 @@ export class SpringProp implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringProp_getFinalizer() } } -export class SpringPropInternal { - public static fromPtr(ptr: KPointer): SpringProp { - const obj : SpringProp = new SpringProp(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index da0d9d31d..fd4e811e0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SslErrorHandlerInternal { + public static fromPtr(ptr: KPointer): SslErrorHandler { + const obj : SslErrorHandler = new SslErrorHandler() + obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) + return obj + } +} export class SslErrorHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_sslerrorhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._SslErrorHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = SslErrorHandler.ctor() + const ctorPtr : KPointer = SslErrorHandler.ctor_sslerrorhandler() this.peer = new Finalizable(ctorPtr, SslErrorHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class SslErrorHandler implements MaterializedBase { ArkUIGeneratedNativeModule._SslErrorHandler_handleCancel(this.peer!.ptr) } } -export class SslErrorHandlerInternal { - public static fromPtr(ptr: KPointer): SslErrorHandler { - const obj : SslErrorHandler = new SslErrorHandler() - obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkStack.ts b/arkoala-arkts/arkui/src/generated/ArkStack.ts index b09cb6c9e..3a99bbc78 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStack.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { StackAttribute, StackOptions } from "./ArkStackInterfaces" -import { Alignment } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { StackOptions, StackAttribute } from "./ArkStackInterfaces" /** @memo:stable */ export class ArkStackComponent extends ArkCommonMethodComponent { getPeer(): ArkStackPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts index ddb30c3ab..bd76424c6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Alignment } from "./ArkEnumsInterfaces" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { Alignment, HitTestMode, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface StackOptions { alignContent?: Alignment; } diff --git a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts index 3465917b4..8ca6145f8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkRootPeer, ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" /** @memo:stable */ diff --git a/arkoala-arkts/arkui/src/generated/ArkStepper.ts b/arkoala-arkts/arkui/src/generated/ArkStepper.ts index 3faa5d147..57d067a05 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepper.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { StepperAttribute } from "./ArkStepperInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkStepperComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts index e9e1fe012..e138e1ff5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_Number_index, Callback_Void, Callback_Number_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Literal_Number_index, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type StepperInterface = (value?: Literal_Number_index) => StepperAttribute; export interface StepperAttribute extends CommonMethod { onFinish: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts index 017db48e7..9d5cb11f7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { StepperItemAttribute, ItemState } from "./ArkStepperItemInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ItemState, StepperItemAttribute } from "./ArkStepperItemInterfaces" /** @memo:stable */ export class ArkStepperItemComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts index b9eaedf79..5e73017a5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ItemState { NORMAL = 0, Normal = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index e9d293f38..d830165a5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -19,12 +19,11 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface StyledStringController { setStyledString(styledString: StyledString): void @@ -35,12 +34,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_styledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._StyledStringController_ctor() return retval } constructor() { - const ctorPtr : KPointer = StyledStringControllerInternal.ctor() + const ctorPtr : KPointer = StyledStringControllerInternal.ctor_styledstringcontroller() this.peer = new Finalizable(ctorPtr, StyledStringControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts index 2fd6c3fa9..ade7f30c4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -20,13 +20,19 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class StyledStringInternal { + public static fromPtr(ptr: KPointer): StyledString { + const obj : StyledString = new StyledString(undefined, undefined) + obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) + return obj + } +} export class StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,11 +41,11 @@ export class StyledString implements MaterializedBase { get length(): number { return this.getLength() } - static ctor(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { + static ctor_styledstring(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -72,7 +78,7 @@ export class StyledString implements MaterializedBase { constructor(value?: string | ImageAttachment | CustomSpan, styles?: Array) { if (((value) !== (undefined)) && ((styles) !== (undefined))) { - const ctorPtr : KPointer = StyledString.ctor(value, styles) + const ctorPtr : KPointer = StyledString.ctor_styledstring(value, styles) this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) } } @@ -188,10 +194,3 @@ export class StyledString implements MaterializedBase { return retval } } -export class StyledStringInternal { - public static fromPtr(ptr: KPointer): StyledString { - const obj : StyledString = new StyledString(undefined, undefined) - obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts index 015942e63..8c4b4b9ef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SubmitEvent { text: string @@ -39,12 +38,12 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { set text(text: string) { this.setText(text) } - static ctor(): KPointer { + static ctor_submitevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SubmitEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = SubmitEventInternal.ctor() + const ctorPtr : KPointer = SubmitEventInternal.ctor_submitevent() this.peer = new Finalizable(ctorPtr, SubmitEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index fdd1162a4..f7f7a4587 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwipeGestureEvent { angle: number @@ -46,13 +48,13 @@ export class SwipeGestureEventInternal extends BaseGestureEventInternal implemen set speed(speed: number) { this.setSpeed(speed) } - static ctor(): KPointer { + static ctor_swipegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SwipeGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = SwipeGestureEventInternal.ctor() + const ctorPtr : KPointer = SwipeGestureEventInternal.ctor_swipegestureevent() this.peer = new Finalizable(ctorPtr, SwipeGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts index 32db822c0..41aa6c148 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts @@ -19,20 +19,38 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SwiperAttribute, SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAutoFill } from "./ArkSwiperInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./ArkSwiperInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { Length } from "./ArkUnitsInterfaces" import { SwiperController } from "./ArkSwiperControllerMaterialized" /** @memo:stable */ export class ArkSwiperComponent extends ArkCommonMethodComponent { @@ -79,12 +97,12 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { if (this.checkPriority("indicator")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isIndicatorComponentController(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isIndicatorComponentController(value))) { const value_casted = value as (IndicatorComponentController) this.getPeer()?.indicator1Attribute(value_casted) return this } - if (((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDotIndicator(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDigitIndicator(value))) || (((RuntimeType.BOOLEAN == value_type))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDotIndicator(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDigitIndicator(value))) || (RuntimeType.BOOLEAN == value_type)) { const value_casted = value as (DotIndicator | DigitIndicator | boolean) this.getPeer()?.indicator0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 63f965036..897c7558c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwiperContentTransitionProxy { selectedIndex: number @@ -60,12 +59,12 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw set mainAxisLength(mainAxisLength: number) { this.setMainAxisLength(mainAxisLength) } - static ctor(): KPointer { + static ctor_swipercontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = SwiperContentTransitionProxyInternal.ctor() + const ctorPtr : KPointer = SwiperContentTransitionProxyInternal.ctor_swipercontenttransitionproxy() this.peer = new Finalizable(ctorPtr, SwiperContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts index d7adebdbe..062124703 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -18,24 +18,30 @@ import { VoidCallback } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SwiperControllerInternal { + public static fromPtr(ptr: KPointer): SwiperController { + const obj : SwiperController = new SwiperController() + obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) + return obj + } +} export class SwiperController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_swipercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperController_ctor() return retval } constructor() { - const ctorPtr : KPointer = SwiperController.ctor() + const ctorPtr : KPointer = SwiperController.ctor_swipercontroller() this.peer = new Finalizable(ctorPtr, SwiperController.getFinalizer()) } static getFinalizer(): KPointer { @@ -91,10 +97,3 @@ export class SwiperController implements MaterializedBase { return retval } } -export class SwiperControllerInternal { - public static fromPtr(ptr: KPointer): SwiperController { - const obj : SwiperController = new SwiperController() - obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts index a2e65de9e..8f29dcf88 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts @@ -19,15 +19,33 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { VP, Length, ResourceColor } from "./ArkUnitsInterfaces" +import { VP, Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { SwiperController } from "./ArkSwiperControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void, Callback_SwiperContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Callback_Number_Void, Callback_SwiperContentTransitionProxy_Void } from "./SyntheticDeclarations" import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" export interface SwiperAutoFill { minSize: VP; diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts index f87c12063..b5689e9d6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" /** @memo:stable */ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolSpanPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts index df480cdb2..af58de6e2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -20,11 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" export type SymbolSpanInterface = (value: Resource) => SymbolSpanAttribute; export interface SymbolSpanAttribute extends CommonMethod { fontSize: number | string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts index d06f6fb44..43de6551f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts @@ -19,15 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./ArkSymbolglyphInterfaces" /** @memo:stable */ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolGlyphPeer { @@ -92,13 +110,13 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) - if ((((RuntimeType.BOOLEAN == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.BOOLEAN == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const isActive_casted = isActive as (boolean | undefined) this.getPeer()?.symbolEffect0Attribute(symbolEffect_casted, isActive_casted) return this } - if ((((RuntimeType.NUMBER == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.NUMBER == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const triggerValue_casted = isActive as (number | undefined) this.getPeer()?.symbolEffect1Attribute(symbolEffect_casted, triggerValue_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts index 13ec11198..8145e8809 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type SymbolGlyphInterface = (value?: Resource) => SymbolGlyphAttribute; export enum SymbolRenderingStrategy { SINGLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts new file mode 100644 index 000000000..e0d95827a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SystemOpsInternal { + public static fromPtr(ptr: KPointer): SystemOps { + const obj : SystemOps = new SystemOps() + obj.peer = new Finalizable(ptr, SystemOps.getFinalizer()) + return obj + } +} +export class SystemOps implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_systemops(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_ctor() + return retval + } + constructor() { + // Constructor does not have parameters. + // It means that the static method call invokes ctor method as well + // when all arguments are undefined. + const ctorPtr : KPointer = SystemOps.ctor_systemops() + this.peer = new Finalizable(ctorPtr, SystemOps.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._SystemOps_getFinalizer() + } + public static StartFrame(): KPointer { + return SystemOps.StartFrame_serialize() + } + public static EndFrame(root: KPointer): void { + const root_casted = root as (KPointer) + SystemOps.EndFrame_serialize(root_casted) + return + } + private static StartFrame_serialize(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_StartFrame() + return retval + } + private static EndFrame_serialize(root: KPointer): void { + ArkUIGeneratedNativeModule._SystemOps_EndFrame(root) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts index 45a092cce..067285b30 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts @@ -19,17 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" -import { TabContentAttribute, TabBarOptions } from "./ArkTabContentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TabBarOptions, TabContentAttribute } from "./ArkTabContentInterfaces" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" -import { VoidCallback } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkTabContentComponent extends ArkCommonMethodComponent { getPeer(): ArkTabContentPeer { @@ -47,12 +66,12 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { if (this.checkPriority("tabBar")) { const value_type = runtimeType(value) - if (((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSubTabBarStyle(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isBottomTabBarStyle(value))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSubTabBarStyle(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isBottomTabBarStyle(value)))) { const value_casted = value as (SubTabBarStyle | BottomTabBarStyle) this.getPeer()?.tabBar1Attribute(value_casted) return this } - if (((((RuntimeType.STRING == value_type))) || (isResource(value)) || (((RuntimeType.FUNCTION == value_type))) || (TypeChecker.isTabBarOptions(value, false, false)))) { + if ((RuntimeType.STRING == value_type) || (isResource(value)) || (RuntimeType.FUNCTION == value_type) || (TypeChecker.isTabBarOptions(value, false, false))) { const value_casted = value as (string | Resource | CustomBuilder | TabBarOptions) this.getPeer()?.tabBar0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts index 0e49289f9..a24b49183 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, ResourceColor, VoidCallback } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" +import { Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" export enum SelectedMode { diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index 706749167..bafecfb6f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TabContentTransitionProxy { from: number @@ -46,12 +45,12 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo set to(to: number) { this.setTo(to) } - static ctor(): KPointer { + static ctor_tabcontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._TabContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = TabContentTransitionProxyInternal.ctor() + const ctorPtr : KPointer = TabContentTransitionProxyInternal.ctor_tabcontenttransitionproxy() this.peer = new Finalizable(ctorPtr, TabContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTabs.ts b/arkoala-arkts/arkui/src/generated/ArkTabs.ts index 318903d67..3074755b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabs.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabs.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./ArkCommonInterfaces" -import { TabsAttribute, BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsOptions } from "./ArkTabsInterfaces" -import { Length, ResourceColor } from "./ArkUnitsInterfaces" -import { EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, TabsOptions } from "./ArkTabsInterfaces" /** @memo:stable */ export class ArkTabsComponent extends ArkCommonMethodComponent { getPeer(): ArkTabsPeer { @@ -75,12 +93,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) - if ((TypeChecker.isBarMode(value)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBarMode(value)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = value as (BarMode) this.getPeer()?.barMode0Attribute(value_casted) return this } - if ((TypeChecker.isBarMode(value)) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBarMode(value)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const value_casted = value as (BarMode) const options_casted = options as (ScrollableBarModeOptions | undefined) this.getPeer()?.barMode1Attribute(value_casted, options_casted) @@ -239,12 +257,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) - if ((TypeChecker.isBlurStyle(style)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBlurStyle(style)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = style as (BlurStyle) this.getPeer()?.barBackgroundBlurStyle0Attribute(value_casted) return this } - if ((TypeChecker.isBlurStyle(style)) && (((RuntimeType.OBJECT == options_type)))) { + if ((TypeChecker.isBlurStyle(style)) && (RuntimeType.OBJECT == options_type)) { const style_casted = style as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions) this.getPeer()?.barBackgroundBlurStyle1Attribute(style_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts index 9574aac01..a332d1931 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -18,24 +18,30 @@ import { TranslateOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TabsControllerInternal { + public static fromPtr(ptr: KPointer): TabsController { + const obj : TabsController = new TabsController() + obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) + return obj + } +} export class TabsController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tabscontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TabsController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TabsController.ctor() + const ctorPtr : KPointer = TabsController.ctor_tabscontroller() this.peer = new Finalizable(ctorPtr, TabsController.getFinalizer()) } static getFinalizer(): KPointer { @@ -91,10 +97,3 @@ export class TabsController implements MaterializedBase { ArkUIGeneratedNativeModule._TabsController_setTabBarOpacity(this.peer!.ptr, opacity) } } -export class TabsControllerInternal { - public static fromPtr(ptr: KPointer): TabsController { - const obj : TabsController = new TabsController() - obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts index 89b5fc52a..f0f2d4a32 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts @@ -20,10 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { TabsController } from "./ArkTabsControllerMaterialized" -import { Length, ResourceColor, Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./ArkCommonInterfaces" -import { EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Void, Callback_TabContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { Length, ResourceColor, Dimension, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void, Callback_TabContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" export enum BarMode { SCROLLABLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts index f7289976e..c9e2090ea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TapGestureEvent { } @@ -32,13 +34,13 @@ export class TapGestureEventInternal extends BaseGestureEventInternal implements public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tapgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TapGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TapGestureEventInternal.ctor() + const ctorPtr : KPointer = TapGestureEventInternal.ctor_tapgestureevent() this.peer = new Finalizable(ctorPtr, TapGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkText.ts b/arkoala-arkts/arkui/src/generated/ArkText.ts index cf2747d6a..a1bbd44be 100644 --- a/arkoala-arkts/arkui/src/generated/ArkText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkText.ts @@ -19,19 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" @@ -55,12 +71,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = fontValue as (Font) this.getPeer()?.font0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const fontValue_casted = fontValue as (Font) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.font1Attribute(fontValue_casted, options_casted) @@ -138,12 +154,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) - if (((((RuntimeType.NUMBER == weight_type))) || (TypeChecker.isFontWeight(weight)) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (TypeChecker.isFontWeight(weight)) || (RuntimeType.STRING == weight_type)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = weight as (number | FontWeight | string) this.getPeer()?.fontWeight0Attribute(value_casted) return this } - if (((((RuntimeType.NUMBER == weight_type))) || (TypeChecker.isFontWeight(weight)) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (TypeChecker.isFontWeight(weight)) || (RuntimeType.STRING == weight_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const weight_casted = weight as (number | FontWeight | string) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.fontWeight1Attribute(weight_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts index 394dfe475..71cb8fdbe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts @@ -19,21 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAreaAttribute, TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaOptions } from "./ArkTextAreaInterfaces" -import { ResourceColor, Font, Length, ResourceStr, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./ArkTextAreaInterfaces" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ export class ArkTextAreaComponent extends ArkCommonMethodComponent { @@ -179,12 +195,12 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((enterKey: EnterKeyType) => void)) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (TextAreaSubmitCallback) this.getPeer()?.onSubmit1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 8c6d72cbd..2240ad9d4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextAreaControllerInternal { + public static fromPtr(ptr: KPointer): TextAreaController { + const obj : TextAreaController = new TextAreaController() + obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) + return obj + } +} export class TextAreaController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textareacontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextAreaController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextAreaController.ctor() + const ctorPtr : KPointer = TextAreaController.ctor_textareacontroller() this.peer = new Finalizable(ctorPtr, TextAreaController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class TextAreaController extends TextContentControllerBase implements Mat ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) } } -export class TextAreaControllerInternal { - public static fromPtr(ptr: KPointer): TextAreaController { - const obj : TextAreaController = new TextAreaController() - obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts index d9d3b7afb..7f546a9ff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts @@ -19,17 +19,33 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, ResourceColor, Font, Length, Dimension } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { TextAreaController } from "./ArkTextAreaControllerMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" export interface TextAreaOptions { placeholder?: ResourceStr; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index 912f3cc2d..3a13afe28 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -19,12 +19,11 @@ import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextBaseController { setSelection(selectionStart: number, selectionEnd: number, options: SelectionOptions): void @@ -36,12 +35,12 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextBaseController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextBaseControllerInternal.ctor() + const ctorPtr : KPointer = TextBaseControllerInternal.ctor_textbasecontroller() this.peer = new Finalizable(ctorPtr, TextBaseControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts index 03e699e2e..ef674daf4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" -import { TextClockAttribute, TextClockConfiguration, TextClockOptions } from "./ArkTextClockInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./ArkTextClockInterfaces" import { DateTimeOptions } from "./ArkTimePickerInterfaces" /** @memo:stable */ export class ArkTextClockComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts index d20e42f8e..b0d524303 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextClockControllerInternal { + public static fromPtr(ptr: KPointer): TextClockController { + const obj : TextClockController = new TextClockController() + obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) + return obj + } +} export class TextClockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textclockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextClockController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextClockController.ctor() + const ctorPtr : KPointer = TextClockController.ctor_textclockcontroller() this.peer = new Finalizable(ctorPtr, TextClockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class TextClockController implements MaterializedBase { return retval } } -export class TextClockControllerInternal { - public static fromPtr(ptr: KPointer): TextClockController { - const obj : TextClockController = new TextClockController() - obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts index 2a3f02d4c..24c30c345 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { TextClockController } from "./ArkTextClockControllerMaterialized" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DateTimeOptions } from "./ArkTimePickerInterfaces" export interface TextClockConfiguration extends CommonConfiguration { timeZoneOffset: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index 8a22629b4..fc8cbd74a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -18,24 +18,30 @@ import { CaretOffset, RectResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextContentControllerBaseInternal { + public static fromPtr(ptr: KPointer): TextContentControllerBase { + const obj : TextContentControllerBase = new TextContentControllerBase() + obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) + return obj + } +} export class TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontentcontrollerbase(): KPointer { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextContentControllerBase.ctor() + const ctorPtr : KPointer = TextContentControllerBase.ctor_textcontentcontrollerbase() this.peer = new Finalizable(ctorPtr, TextContentControllerBase.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,21 +58,14 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readCaretOffset() } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) return retval } } -export class TextContentControllerBaseInternal { - public static fromPtr(ptr: KPointer): TextContentControllerBase { - const obj : TextContentControllerBase = new TextContentControllerBase() - obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts index ecd311f34..82134a185 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -19,24 +19,30 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextControllerInternal { + public static fromPtr(ptr: KPointer): TextController { + const obj : TextController = new TextController() + obj.peer = new Finalizable(ptr, TextController.getFinalizer()) + return obj + } +} export class TextController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextController.ctor() + const ctorPtr : KPointer = TextController.ctor_textcontroller() this.peer = new Finalizable(ctorPtr, TextController.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +74,3 @@ export class TextController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextControllerInternal { - public static fromPtr(ptr: KPointer): TextController { - const obj : TextController = new TextController() - obj.peer = new Finalizable(ptr, TextController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index cab2aa58d..5ff481f47 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -17,14 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextEditControllerEx { isEditing(): boolean @@ -38,13 +39,13 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texteditcontrollerex(): KPointer { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextEditControllerExInternal.ctor() + const ctorPtr : KPointer = TextEditControllerExInternal.ctor_texteditcontrollerex() this.peer = new Finalizable(ctorPtr, TextEditControllerExInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,7 +85,7 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readPreviewText() } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj : TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts index 1c2b1e97c..15c2aba81 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts @@ -19,20 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" -import { TextInputAttribute, InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./ArkTextInputInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./ArkTextInputInterfaces" import { ContentType } from "./ArkTextAreaInterfaces" -import { ResourceColor, Dimension, Font, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./ArkSearchInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" /** @memo:stable */ @@ -422,12 +439,12 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) - if ((TypeChecker.isCancelButtonOptions(value, true, true))) { + if (TypeChecker.isCancelButtonOptions(value, true, true)) { const value_casted = value as (CancelButtonOptions) this.getPeer()?.cancelButton0Attribute(value_casted) return this } - if ((TypeChecker.isCancelButtonSymbolOptions(value, true, true))) { + if (TypeChecker.isCancelButtonSymbolOptions(value, true, true)) { const value_casted = value as (CancelButtonSymbolOptions) this.getPeer()?.cancelButton1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts index 63bf8c749..8b58a379a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextInputControllerInternal { + public static fromPtr(ptr: KPointer): TextInputController { + const obj : TextInputController = new TextInputController() + obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) + return obj + } +} export class TextInputController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textinputcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextInputController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextInputController.ctor() + const ctorPtr : KPointer = TextInputController.ctor_textinputcontroller() this.peer = new Finalizable(ctorPtr, TextInputController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class TextInputController extends TextContentControllerBase implements Ma ArkUIGeneratedNativeModule._TextInputController_stopEditing(this.peer!.ptr) } } -export class TextInputControllerInternal { - public static fromPtr(ptr: KPointer): TextInputController { - const obj : TextInputController = new TextInputController() - obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts index ea92c84c5..302c36a37 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts @@ -19,15 +19,32 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, ResourceStr, Dimension, Font, Length } from "./ArkUnitsInterfaces" +import { ResourceColor, ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { TextInputController } from "./ArkTextInputControllerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ContentType } from "./ArkTextAreaInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./ArkSearchInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts index 7d11b8782..61332458f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts @@ -19,13 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { TextOverflow, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { TextOverflow, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index fe0889b18..d91fe0319 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -19,13 +19,19 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextMenuItemIdInternal { + public static fromPtr(ptr: KPointer): TextMenuItemId { + const obj : TextMenuItemId = new TextMenuItemId() + obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) + return obj + } +} export class TextMenuItemId implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -52,7 +58,7 @@ export class TextMenuItemId implements MaterializedBase { get AI_WRITER(): TextMenuItemId { throw new Error("Not implemented") } - static ctor(): KPointer { + static ctor_textmenuitemid(): KPointer { const retval = ArkUIGeneratedNativeModule._TextMenuItemId_ctor() return retval } @@ -60,7 +66,7 @@ export class TextMenuItemId implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TextMenuItemId.ctor() + const ctorPtr : KPointer = TextMenuItemId.ctor_textmenuitemid() this.peer = new Finalizable(ctorPtr, TextMenuItemId.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,12 +84,12 @@ export class TextMenuItemId implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let id_type : int32 = RuntimeType.UNDEFINED id_type = runtimeType(id) - if (((RuntimeType.STRING == id_type))) { + if (RuntimeType.STRING == id_type) { thisSerializer.writeInt8(0 as int32) const id_0 = id as string thisSerializer.writeString(id_0) } - else if (((RuntimeType.OBJECT == id_type))) { + else if (RuntimeType.OBJECT == id_type) { thisSerializer.writeInt8(1 as int32) const id_1 = id as Resource thisSerializer.writeResource(id_1) @@ -101,10 +107,3 @@ export class TextMenuItemId implements MaterializedBase { return retval } } -export class TextMenuItemIdInternal { - public static fromPtr(ptr: KPointer): TextMenuItemId { - const obj : TextMenuItemId = new TextMenuItemId() - obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts index 2537195df..031239ef2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions } from "./ArkTextPickerInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./SyntheticDeclarations" -import { Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute } from "./ArkTextPickerInterfaces" /** @memo:stable */ export class ArkTextPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextPickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index f609b4a0d..dadd49a86 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { TextPickerDialogOptions } from "./ArkTextPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextPickerDialogInternal { + public static fromPtr(ptr: KPointer): TextPickerDialog { + const obj : TextPickerDialog = new TextPickerDialog() + obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) + return obj + } +} export class TextPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TextPickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class TextPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TextPickerDialog.ctor() + const ctorPtr : KPointer = TextPickerDialog.ctor_textpickerdialog() this.peer = new Finalizable(ctorPtr, TextPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TextPickerDialog implements MaterializedBase { return retval } } -export class TextPickerDialogInternal { - public static fromPtr(ptr: KPointer): TextPickerDialog { - const obj : TextPickerDialog = new TextPickerDialog() - obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts index 133a6f9b4..868b78799 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { Dimension, ResourceColor, Offset } from "./ArkUnitsInterfaces" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void } from "./SyntheticDeclarations" +import { Dimension, ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" export interface TextPickerRangeContent { icon: string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index 100712dc4..ad7bcaaef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -18,13 +18,19 @@ import { ShadowOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextShadowStyleInternal { + public static fromPtr(ptr: KPointer): TextShadowStyle { + const obj : TextShadowStyle = new TextShadowStyle(undefined) + obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) + return obj + } +} export class TextShadowStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class TextShadowStyle implements MaterializedBase { get textShadow(): Array { throw new Error("Not implemented") } - static ctor(value: ShadowOptions | Array): KPointer { + static ctor_textshadowstyle(value: ShadowOptions | Array): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -56,20 +62,20 @@ export class TextShadowStyle implements MaterializedBase { return retval } constructor(value?: ShadowOptions | Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = TextShadowStyle.ctor(value) + const ctorPtr : KPointer = TextShadowStyle.ctor_textshadowstyle(value) this.peer = new Finalizable(ctorPtr, TextShadowStyle.getFinalizer()) } } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextShadowStyle_getFinalizer() } -} -export class TextShadowStyleInternal { - public static fromPtr(ptr: KPointer): TextShadowStyle { - const obj : TextShadowStyle = new TextShadowStyle(undefined) - obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) - return obj + private getTextShadow(): Array { + return this.getTextShadow_serialize() + } + private getTextShadow_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") } } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index be7f4de55..02b907232 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -21,13 +21,19 @@ import { FontStyle, Color } from "./ArkEnumsInterfaces" import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextStyle_styled_stringInternal { + public static fromPtr(ptr: KPointer): TextStyle_styled_string { + const obj : TextStyle_styled_string = new TextStyle_styled_string(undefined) + obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) + return obj + } +} export class TextStyle_styled_string implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -48,7 +54,7 @@ export class TextStyle_styled_string implements MaterializedBase { get fontStyle(): FontStyle | undefined { return this.getFontStyle() } - static ctor(value?: TextStyleInterface): KPointer { + static ctor_textstyle_styled_string(value?: TextStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -62,7 +68,7 @@ export class TextStyle_styled_string implements MaterializedBase { return retval } constructor(value?: TextStyleInterface) { - const ctorPtr : KPointer = TextStyle_styled_string.ctor(value) + const ctorPtr : KPointer = TextStyle_styled_string.ctor_textstyle_styled_string(value) this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,10 +103,3 @@ export class TextStyle_styled_string implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextStyle_styled_stringInternal { - public static fromPtr(ptr: KPointer): TextStyle_styled_string { - const obj : TextStyle_styled_string = new TextStyle_styled_string(undefined) - obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts index 07cef13b9..070cb8721 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" -import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions } from "./ArkTextTimerInterfaces" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./ArkTextTimerInterfaces" /** @memo:stable */ export class ArkTextTimerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextTimerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 8ffcb28e9..046447f0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextTimerControllerInternal { + public static fromPtr(ptr: KPointer): TextTimerController { + const obj : TextTimerController = new TextTimerController() + obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) + return obj + } +} export class TextTimerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texttimercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextTimerController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextTimerController.ctor() + const ctorPtr : KPointer = TextTimerController.ctor_texttimercontroller() this.peer = new Finalizable(ctorPtr, TextTimerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TextTimerController implements MaterializedBase { return retval } } -export class TextTimerControllerInternal { - public static fromPtr(ptr: KPointer): TextTimerController { - const obj : TextTimerController = new TextTimerController() - obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts index 0e1485d95..fe5963d37 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { TextTimerController } from "./ArkTextTimerControllerMaterialized" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface TextTimerConfiguration extends CommonConfiguration { count: number; isCountDown: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts index 11b096a40..b76fcf2fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions } from "./ArkTimePickerInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute } from "./ArkTimePickerInterfaces" /** @memo:stable */ export class ArkTimePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTimePickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index 0a72b6017..84c907186 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { TimePickerDialogOptions } from "./ArkTimePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TimePickerDialogInternal { + public static fromPtr(ptr: KPointer): TimePickerDialog { + const obj : TimePickerDialog = new TimePickerDialog() + obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) + return obj + } +} export class TimePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_timepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TimePickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class TimePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TimePickerDialog.ctor() + const ctorPtr : KPointer = TimePickerDialog.ctor_timepickerdialog() this.peer = new Finalizable(ctorPtr, TimePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TimePickerDialog implements MaterializedBase { return retval } } -export class TimePickerDialogInternal { - public static fromPtr(ptr: KPointer): TimePickerDialog { - const obj : TimePickerDialog = new TimePickerDialog() - obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts index a6f29ca56..b9442fc2a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" -import { Offset, ResourceColor } from "./ArkUnitsInterfaces" export interface TimePickerResult { hour: number; minute: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkToggle.ts b/arkoala-arkts/arkui/src/generated/ArkToggle.ts index 1f56ef69c..401acd926 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggle.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions } from "./ArkToggleInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute } from "./ArkToggleInterfaces" /** @memo:stable */ export class ArkToggleComponent extends ArkCommonMethodComponent { getPeer(): ArkTogglePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts index 316adec22..46d902eb0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Boolean_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ToggleType { CHECKBOX = 0, Checkbox = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts index b27d91057..036658c41 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -17,16 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { TouchType } from "./ArkEnumsInterfaces" -import { TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TouchEvent { type: TouchType @@ -71,13 +70,13 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_touchevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TouchEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TouchEventInternal.ctor() + const ctorPtr : KPointer = TouchEventInternal.ctor_touchevent() this.peer = new Finalizable(ctorPtr, TouchEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -94,11 +93,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this.setType_serialize(type_casted) return } + private getTouches(): Array { + return this.getTouches_serialize() + } private setTouches(touches: Array): void { const touches_casted = touches as (Array) this.setTouches_serialize(touches_casted) return } + private getChangedTouches(): Array { + return this.getChangedTouches_serialize() + } private setChangedTouches(changedTouches: Array): void { const changedTouches_casted = changedTouches as (Array) this.setChangedTouches_serialize(changedTouches_casted) @@ -131,6 +136,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize private setType_serialize(type: TouchType): void { ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, (type.valueOf() as int32)) } + private getTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setTouches_serialize(touches: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(touches.length as int32) @@ -141,6 +150,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getChangedTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(changedTouches.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts index 06926a454..f13bd9c54 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -18,13 +18,19 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TransitionEffectInternal { + public static fromPtr(ptr: KPointer): TransitionEffect { + const obj : TransitionEffect = new TransitionEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) + return obj + } +} export class TransitionEffect implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -42,7 +48,7 @@ export class TransitionEffect implements MaterializedBase { get SLIDE_SWITCH(): TransitionEffect { throw new Error("Not implemented") } - static ctor(type: string, effect: TransitionEffects): KPointer { + static ctor_transitioneffect(type: string, effect: TransitionEffects): KPointer { const thisSerializer : Serializer = Serializer.hold() const effect_identity = effect.identity const effect_opacity = effect.opacity @@ -68,7 +74,7 @@ export class TransitionEffect implements MaterializedBase { constructor(type?: string, effect?: TransitionEffects) { if (((type) !== (undefined)) && ((effect) !== (undefined))) { - const ctorPtr : KPointer = TransitionEffect.ctor(type, effect) + const ctorPtr : KPointer = TransitionEffect.ctor_transitioneffect(type, effect) this.peer = new Finalizable(ctorPtr, TransitionEffect.getFinalizer()) } } @@ -168,10 +174,3 @@ export class TransitionEffect implements MaterializedBase { return obj } } -export class TransitionEffectInternal { - public static fromPtr(ptr: KPointer): TransitionEffect { - const obj : TransitionEffect = new TransitionEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts index 789f9a7b3..a2248e767 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -23,12 +23,11 @@ import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { HoverCallback, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UICommonEvent { setOnClick(callback_?: ((event: ClickEvent) => void)): void @@ -48,12 +47,12 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uicommonevent(): KPointer { const retval = ArkUIGeneratedNativeModule._UICommonEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = UICommonEventInternal.ctor() + const ctorPtr : KPointer = UICommonEventInternal.ctor_uicommonevent() this.peer = new Finalizable(ctorPtr, UICommonEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index eaeca3e83..ebc771d3d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -18,12 +18,11 @@ import { Callback_UIExtensionProxy_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UIExtensionProxy { send(data: Map): void @@ -38,12 +37,12 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uiextensionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._UIExtensionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = UIExtensionProxyInternal.ctor() + const ctorPtr : KPointer = UIExtensionProxyInternal.ctor_uiextensionproxy() this.peer = new Finalizable(ctorPtr, UIExtensionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts index e27ca53f1..206022cbd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts @@ -19,15 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { UIExtensionComponentAttribute, ReceiveCallback, UIExtensionOptions } from "./ArkUiExtensionComponentInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute } from "./ArkUiExtensionComponentInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index b96ef78c3..512005039 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentContent, CommonMethod } from "./ArkCommonInterfaces" +import { ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts index 531d5bf71..c7fb767fd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class UnifiedDataInternal { + public static fromPtr(ptr: KPointer): UnifiedData { + const obj : UnifiedData = new UnifiedData() + obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) + return obj + } +} export class UnifiedData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_unifieddata(): KPointer { const retval = ArkUIGeneratedNativeModule._UnifiedData_ctor() return retval } constructor() { - const ctorPtr : KPointer = UnifiedData.ctor() + const ctorPtr : KPointer = UnifiedData.ctor_unifieddata() this.peer = new Finalizable(ctorPtr, UnifiedData.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class UnifiedData implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class UnifiedDataInternal { - public static fromPtr(ptr: KPointer): UnifiedData { - const obj : UnifiedData = new UnifiedData() - obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts index 4f53ba591..a64e218fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts @@ -189,11 +189,11 @@ export interface TouchPoint { x: Dimension; y: Dimension; } -export interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +export interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } export interface DividerStyleOptions { strokeWidth?: LengthMetrics; diff --git a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts index 0e97a8fec..8b7505dfd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class UrlStyleInternal { + public static fromPtr(ptr: KPointer): UrlStyle { + const obj : UrlStyle = new UrlStyle(undefined) + obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) + return obj + } +} export class UrlStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -32,14 +38,14 @@ export class UrlStyle implements MaterializedBase { get url(): string { return this.getUrl() } - static ctor(url: string): KPointer { + static ctor_urlstyle(url: string): KPointer { const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) return retval } constructor(url?: string) { - if (((url) !== (undefined))) + if ((url) !== (undefined)) { - const ctorPtr : KPointer = UrlStyle.ctor(url) + const ctorPtr : KPointer = UrlStyle.ctor_urlstyle(url) this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) } } @@ -54,10 +60,3 @@ export class UrlStyle implements MaterializedBase { return retval } } -export class UrlStyleInternal { - public static fromPtr(ptr: KPointer): UrlStyle { - const obj : UrlStyle = new UrlStyle(undefined) - obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideo.ts b/arkoala-arkts/arkui/src/generated/ArkVideo.ts index 348bfa4fa..82e603988 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideo.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideo.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VideoAttribute, FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions } from "./ArkVideoInterfaces" -import { ImageFit } from "./ArkEnumsInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute } from "./ArkVideoInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkVideoComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts index f3accf5bc..017a548d6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -18,24 +18,30 @@ import { SeekMode } from "./ArkVideoInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class VideoControllerInternal { + public static fromPtr(ptr: KPointer): VideoController { + const obj : VideoController = new VideoController() + obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) + return obj + } +} export class VideoController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_videocontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._VideoController_ctor() return retval } constructor() { - const ctorPtr : KPointer = VideoController.ctor() + const ctorPtr : KPointer = VideoController.ctor_videocontroller() this.peer = new Finalizable(ctorPtr, VideoController.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,11 +59,11 @@ export class VideoController implements MaterializedBase { public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) - if ((((RuntimeType.UNDEFINED == seekMode_type)))) { + if (RuntimeType.UNDEFINED == seekMode_type) { const value_casted = value as (number) return this.setCurrentTime0_serialize(value_casted) } - if ((((TypeChecker.isSeekMode(seekMode))))) { + if (TypeChecker.isSeekMode(seekMode)) { const value_casted = value as (number) const seekMode_casted = seekMode as (SeekMode) return this.setCurrentTime1_serialize(value_casted, seekMode_casted) @@ -107,10 +113,3 @@ export class VideoController implements MaterializedBase { ArkUIGeneratedNativeModule._VideoController_reset(this.peer!.ptr) } } -export class VideoControllerInternal { - public static fromPtr(ptr: KPointer): VideoController { - const obj : VideoController = new VideoController() - obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts index 175dc50b8..e1fde2dbc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts @@ -23,10 +23,26 @@ import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { VideoController } from "./ArkVideoControllerMaterialized" import { ImageAIOptions, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ImageFit } from "./ArkEnumsInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export enum SeekMode { PREVIOUS_KEYFRAME = 0, PreviousKeyframe = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts index fcac83113..8a246190f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ViewInternal { + public static fromPtr(ptr: KPointer): View { + const obj : View = new View() + obj.peer = new Finalizable(ptr, View.getFinalizer()) + return obj + } +} export class View implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_view(): KPointer { const retval = ArkUIGeneratedNativeModule._View_ctor() return retval } constructor() { - const ctorPtr : KPointer = View.ctor() + const ctorPtr : KPointer = View.ctor_view() this.peer = new Finalizable(ctorPtr, View.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +58,3 @@ export class View implements MaterializedBase { return retval } } -export class ViewInternal { - public static fromPtr(ptr: KPointer): View { - const obj : View = new View() - obj.peer = new Finalizable(ptr, View.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts index 067a1ae84..eb1fad7be 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" -import { WaterFlowAttribute, WaterFlowOptions } from "./ArkWaterFlowInterfaces" -import { ConstraintSizeOptions, Length } from "./ArkUnitsInterfaces" -import { FlexDirection } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" +import { WaterFlowAttribute, WaterFlowOptions } from "./ArkWaterFlowInterfaces" /** @memo:stable */ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkWaterFlowPeer { @@ -131,12 +149,12 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts index b87d828d3..afed2895f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts @@ -19,13 +19,31 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension, Margin, ConstraintSizeOptions, Length } from "./ArkUnitsInterfaces" -import { CustomBuilder, ScrollableCommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" +import { Dimension, Margin, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Scroller } from "./ArkScrollerMaterialized" import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" -import { FlexDirection } from "./ArkEnumsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" export type GetItemMainSizeByIndex = (index: number) => number; export interface SectionOptions { diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index 5abbd5055..55c9e549a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,24 +18,30 @@ import { SectionOptions } from "./ArkWaterFlowInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WaterFlowSectionsInternal { + public static fromPtr(ptr: KPointer): WaterFlowSections { + const obj : WaterFlowSections = new WaterFlowSections() + obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) + return obj + } +} export class WaterFlowSections implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_waterflowsections(): KPointer { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_ctor() return retval } constructor() { - const ctorPtr : KPointer = WaterFlowSections.ctor() + const ctorPtr : KPointer = WaterFlowSections.ctor_waterflowsections() this.peer = new Finalizable(ctorPtr, WaterFlowSections.getFinalizer()) } static getFinalizer(): KPointer { @@ -109,10 +115,3 @@ export class WaterFlowSections implements MaterializedBase { return retval } } -export class WaterFlowSectionsInternal { - public static fromPtr(ptr: KPointer): WaterFlowSections { - const obj : WaterFlowSections = new WaterFlowSections() - obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWeb.ts b/arkoala-arkts/arkui/src/generated/ArkWeb.ts index e514a07f4..e06df023d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWeb.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWeb.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, NestedScrollOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./ArkWebInterfaces" -import { Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./ArkWebInterfaces" import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" -import { KeyEvent } from "./ArkKeyEventMaterialized" -import { CopyOptions } from "./ArkEnumsInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ export class ArkWebComponent extends ArkCommonMethodComponent { @@ -428,12 +446,12 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: Literal_Object_detail) => boolean)): this { if (this.checkPriority("onRenderExited")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((parameter: OnRenderExitedEvent) => void)) this.getPeer()?.onRenderExited0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((event?: Literal_Object_detail) => boolean)) this.getPeer()?.onRenderExited1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index ab35c30b8..61fdbf346 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -18,24 +18,30 @@ import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebContextMenuParamInternal { + public static fromPtr(ptr: KPointer): WebContextMenuParam { + const obj : WebContextMenuParam = new WebContextMenuParam() + obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) + return obj + } +} export class WebContextMenuParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuparam(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuParam_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebContextMenuParam.ctor() + const ctorPtr : KPointer = WebContextMenuParam.ctor_webcontextmenuparam() this.peer = new Finalizable(ctorPtr, WebContextMenuParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -140,10 +146,3 @@ export class WebContextMenuParam implements MaterializedBase { return retval } } -export class WebContextMenuParamInternal { - public static fromPtr(ptr: KPointer): WebContextMenuParam { - const obj : WebContextMenuParam = new WebContextMenuParam() - obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 126ac4f1c..10f98b75f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebContextMenuResultInternal { + public static fromPtr(ptr: KPointer): WebContextMenuResult { + const obj : WebContextMenuResult = new WebContextMenuResult() + obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) + return obj + } +} export class WebContextMenuResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuresult(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebContextMenuResult.ctor() + const ctorPtr : KPointer = WebContextMenuResult.ctor_webcontextmenuresult() this.peer = new Finalizable(ctorPtr, WebContextMenuResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +89,3 @@ export class WebContextMenuResult implements MaterializedBase { ArkUIGeneratedNativeModule._WebContextMenuResult_selectAll(this.peer!.ptr) } } -export class WebContextMenuResultInternal { - public static fromPtr(ptr: KPointer): WebContextMenuResult { - const obj : WebContextMenuResult = new WebContextMenuResult() - obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts index 82b5c51b4..ee0004a9f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -21,24 +21,30 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebControllerInternal { + public static fromPtr(ptr: KPointer): WebController { + const obj : WebController = new WebController() + obj.peer = new Finalizable(ptr, WebController.getFinalizer()) + return obj + } +} export class WebController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebController_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebController.ctor() + const ctorPtr : KPointer = WebController.ctor_webcontroller() this.peer = new Finalizable(ctorPtr, WebController.getFinalizer()) } static getFinalizer(): KPointer { @@ -173,12 +179,12 @@ export class WebController implements MaterializedBase { const options_url = options.url let options_url_type : int32 = RuntimeType.UNDEFINED options_url_type = runtimeType(options_url) - if (((RuntimeType.STRING == options_url_type))) { + if (RuntimeType.STRING == options_url_type) { thisSerializer.writeInt8(0 as int32) const options_url_0 = options_url as string thisSerializer.writeString(options_url_0) } - else if (((RuntimeType.OBJECT == options_url_type))) { + else if (RuntimeType.OBJECT == options_url_type) { thisSerializer.writeInt8(1 as int32) const options_url_1 = options_url as Resource thisSerializer.writeResource(options_url_1) @@ -260,10 +266,3 @@ export class WebController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class WebControllerInternal { - public static fromPtr(ptr: KPointer): WebController { - const obj : WebController = new WebController() - obj.peer = new Finalizable(ptr, WebController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts index 41f99abb7..a7385258f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebCookieInternal { + public static fromPtr(ptr: KPointer): WebCookie { + const obj : WebCookie = new WebCookie() + obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) + return obj + } +} export class WebCookie implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcookie(): KPointer { const retval = ArkUIGeneratedNativeModule._WebCookie_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebCookie.ctor() + const ctorPtr : KPointer = WebCookie.ctor_webcookie() this.peer = new Finalizable(ctorPtr, WebCookie.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class WebCookie implements MaterializedBase { return retval } } -export class WebCookieInternal { - public static fromPtr(ptr: KPointer): WebCookie { - const obj : WebCookie = new WebCookie() - obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts index a63db8eb2..ccdeed004 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts @@ -20,13 +20,13 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" -import { CustomBuilder, CommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./ArkCommonInterfaces" import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { WebController } from "./ArkWebControllerMaterialized" import { WebviewController } from "./ArkWebviewControllerMaterialized" -import { Position, ResourceStr } from "./ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { TouchEvent } from "./ArkTouchEventMaterialized" import { EventResult } from "./ArkEventResultMaterialized" import { JsGeolocation } from "./ArkJsGeolocationMaterialized" @@ -46,10 +46,24 @@ import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMat import { ControllerHandler } from "./ArkControllerHandlerMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" -import { Callback_Void, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText } from "./SyntheticDeclarations" +import { Callback_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText } from "./SyntheticDeclarations" import { MenuType } from "./ArkTextCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" import { KeyEvent } from "./ArkKeyEventMaterialized" -import { CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" export type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void; export type OnSslErrorEventCallback = (sslErrorEvent: SslErrorEvent) => void; diff --git a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 53edef511..f4fde2efc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebKeyboardControllerInternal { + public static fromPtr(ptr: KPointer): WebKeyboardController { + const obj : WebKeyboardController = new WebKeyboardController() + obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) + return obj + } +} export class WebKeyboardController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webkeyboardcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebKeyboardController_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebKeyboardController.ctor() + const ctorPtr : KPointer = WebKeyboardController.ctor_webkeyboardcontroller() this.peer = new Finalizable(ctorPtr, WebKeyboardController.getFinalizer()) } static getFinalizer(): KPointer { @@ -80,10 +86,3 @@ export class WebKeyboardController implements MaterializedBase { ArkUIGeneratedNativeModule._WebKeyboardController_close(this.peer!.ptr) } } -export class WebKeyboardControllerInternal { - public static fromPtr(ptr: KPointer): WebKeyboardController { - const obj : WebKeyboardController = new WebKeyboardController() - obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 07a3061b7..5ebb66c76 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceErrorInternal { + public static fromPtr(ptr: KPointer): WebResourceError { + const obj : WebResourceError = new WebResourceError() + obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) + return obj + } +} export class WebResourceError implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceerror(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceError_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceError.ctor() + const ctorPtr : KPointer = WebResourceError.ctor_webresourceerror() this.peer = new Finalizable(ctorPtr, WebResourceError.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class WebResourceError implements MaterializedBase { return retval } } -export class WebResourceErrorInternal { - public static fromPtr(ptr: KPointer): WebResourceError { - const obj : WebResourceError = new WebResourceError() - obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index 913f2c978..a500dfab2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -18,24 +18,30 @@ import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceRequestInternal { + public static fromPtr(ptr: KPointer): WebResourceRequest { + const obj : WebResourceRequest = new WebResourceRequest() + obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) + return obj + } +} export class WebResourceRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourcerequest(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceRequest.ctor() + const ctorPtr : KPointer = WebResourceRequest.ctor_webresourcerequest() this.peer = new Finalizable(ctorPtr, WebResourceRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,10 +90,3 @@ export class WebResourceRequest implements MaterializedBase { return retval } } -export class WebResourceRequestInternal { - public static fromPtr(ptr: KPointer): WebResourceRequest { - const obj : WebResourceRequest = new WebResourceRequest() - obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 90ea91aae..c2e19e0ef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -19,24 +19,30 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceResponseInternal { + public static fromPtr(ptr: KPointer): WebResourceResponse { + const obj : WebResourceResponse = new WebResourceResponse() + obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) + return obj + } +} export class WebResourceResponse implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceresponse(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceResponse.ctor() + const ctorPtr : KPointer = WebResourceResponse.ctor_webresourceresponse() this.peer = new Finalizable(ctorPtr, WebResourceResponse.getFinalizer()) } static getFinalizer(): KPointer { @@ -133,12 +139,12 @@ export class WebResourceResponse implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let data_type : int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) - if (((RuntimeType.STRING == data_type))) { + if (RuntimeType.STRING == data_type) { thisSerializer.writeInt8(0 as int32) const data_0 = data as string thisSerializer.writeString(data_0) } - else if (((RuntimeType.NUMBER == data_type))) { + else if (RuntimeType.NUMBER == data_type) { thisSerializer.writeInt8(1 as int32) const data_1 = data as number thisSerializer.writeNumber(data_1) @@ -186,10 +192,3 @@ export class WebResourceResponse implements MaterializedBase { return retval } } -export class WebResourceResponseInternal { - public static fromPtr(ptr: KPointer): WebResourceResponse { - const obj : WebResourceResponse = new WebResourceResponse() - obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts index f2bd86a41..8d28beace 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -19,19 +19,25 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebviewControllerInternal { + public static fromPtr(ptr: KPointer): WebviewController { + const obj : WebviewController = new WebviewController() + obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) + return obj + } +} export class WebviewController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webviewcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebviewController_ctor() return retval } @@ -39,7 +45,7 @@ export class WebviewController implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = WebviewController.ctor() + const ctorPtr : KPointer = WebviewController.ctor_webviewcontroller() this.peer = new Finalizable(ctorPtr, WebviewController.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,12 +68,12 @@ export class WebviewController implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let url_type : int32 = RuntimeType.UNDEFINED url_type = runtimeType(url) - if (((RuntimeType.STRING == url_type))) { + if (RuntimeType.STRING == url_type) { thisSerializer.writeInt8(0 as int32) const url_0 = url as string thisSerializer.writeString(url_0) } - else if (((RuntimeType.OBJECT == url_type))) { + else if (RuntimeType.OBJECT == url_type) { thisSerializer.writeInt8(1 as int32) const url_1 = url as Resource thisSerializer.writeResource(url_1) @@ -87,10 +93,3 @@ export class WebviewController implements MaterializedBase { thisSerializer.release() } } -export class WebviewControllerInternal { - public static fromPtr(ptr: KPointer): WebviewController { - const obj : WebviewController = new WebviewController() - obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts index 17ddf5d8c..94400549e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { WindowSceneAttribute } from "./ArkWindowSceneInterfaces" -import { Position } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkWindowScenePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts index 39f0b7953..3349573d8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Position } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type WindowSceneInterface = (persistentId: number) => WindowSceneAttribute; export interface WindowSceneAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts index c75d2bb3e..4fb7f4e3c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -20,24 +20,30 @@ import { Literal_Number_surfaceHeight_surfaceWidth } from "./SyntheticDeclaratio import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class XComponentControllerInternal { + public static fromPtr(ptr: KPointer): XComponentController { + const obj : XComponentController = new XComponentController() + obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) + return obj + } +} export class XComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_xcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._XComponentController_ctor() return retval } constructor() { - const ctorPtr : KPointer = XComponentController.ctor() + const ctorPtr : KPointer = XComponentController.ctor_xcomponentcontroller() this.peer = new Finalizable(ctorPtr, XComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -119,7 +125,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSurfaceRect() } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -129,7 +135,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSurfaceRotationOptions() } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) @@ -155,10 +161,3 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_stopImageAnalyzer(this.peer!.ptr) } } -export class XComponentControllerInternal { - public static fromPtr(ptr: KPointer): XComponentController { - const obj : XComponentController = new XComponentController() - obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts index 8545e51ff..92a692d45 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { XComponentAttribute, OnNativeLoadCallback, XComponentOptions } from "./ArkXcomponentInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Type_XComponentInterface_value } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Type_XComponentInterface_value } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions } from "./ArkXcomponentInterfaces" import { XComponentController } from "./ArkXComponentControllerMaterialized" /** @memo:stable */ export class ArkXComponentComponent extends ArkCommonMethodComponent { @@ -38,17 +57,17 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public setXComponentOptions(value: Type_XComponentInterface_value | XComponentOptions): this { if (this.checkPriority("setXComponentOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Type_XComponentInterface_value) this.getPeer()?.setXComponentOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Type_XComponentInterface_value) this.getPeer()?.setXComponentOptions1Attribute(value_casted) return this } - if ((TypeChecker.isXComponentOptions(value, true, true, false))) { + if (TypeChecker.isXComponentOptions(value, true, true, false)) { const options_casted = value as (XComponentOptions) this.getPeer()?.setXComponentOptions2Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts index 9225add87..7ea158b0d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { XComponentType } from "./ArkEnumsInterfaces" +import { XComponentType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" import { XComponentController } from "./ArkXComponentControllerMaterialized" import { ImageAIOptions } from "./ArkImageCommonInterfaces" -import { Type_XComponentInterface_value } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { Type_XComponentInterface_value, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface SurfaceRect { offsetX?: number; offsetY?: number; diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts index df92b6744..da5e731e5 100644 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ b/arkoala-arkts/arkui/src/generated/GlobalScope.ts @@ -16,69 +16,53 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" +import { GlobalScopecommon } from "./ArkGlobalScopecommonMaterialized" import { Context, AnimateParam } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Profiler } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" -import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" +import { Callback_Void } from "./SyntheticDeclarations" +import { GlobalScopeinspector } from "./ArkGlobalScopeinspectorMaterialized" export function getContext(component: Object): Context { - return GlobalScope_common.getContext(component) + return GlobalScopecommon.getContext(component) } export function postCardAction(component: Object, action: Object): void { - GlobalScope_common.postCardAction(component, action) + GlobalScopecommon.postCardAction(component, action) } export function dollar_r(value: string, params: Array): Resource { - return GlobalScope_common.dollar_r(value, params) + return GlobalScopecommon.dollar_r(value, params) } export function dollar_rawfile(value: string): Resource { - return GlobalScope_common.dollar_rawfile(value) + return GlobalScopecommon.dollar_rawfile(value) } export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateTo(value, event) + GlobalScopecommon.animateTo(value, event) } export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateToImmediately(value, event) + GlobalScopecommon.animateToImmediately(value, event) } export function vp2px(value: number): number { - return GlobalScope_common.vp2px(value) + return GlobalScopecommon.vp2px(value) } export function px2vp(value: number): number { - return GlobalScope_common.px2vp(value) + return GlobalScopecommon.px2vp(value) } export function fp2px(value: number): number { - return GlobalScope_common.fp2px(value) + return GlobalScopecommon.fp2px(value) } export function px2fp(value: number): number { - return GlobalScope_common.px2fp(value) + return GlobalScopecommon.px2fp(value) } export function lpx2px(value: number): number { - return GlobalScope_common.lpx2px(value) + return GlobalScopecommon.lpx2px(value) } export function px2lpx(value: number): number { - return GlobalScope_common.px2lpx(value) -} -export function requestFocus(value: string): boolean { - return GlobalScope_common.requestFocus(value) -} -export function setCursor(value: PointerStyle): void { - GlobalScope_common.setCursor(value) -} -export function restoreDefault(): void { - GlobalScope_common.restoreDefault() + return GlobalScopecommon.px2lpx(value) } export function getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes() + return GlobalScopeinspector.getInspectorNodes() } export function getInspectorNodeById(id: number): Object { - return GlobalScope_inspector.getInspectorNodeById(id) -} -export function registerVsyncCallback(callback_: ((info: string) => void)): void { - GlobalScope_inspector.registerVsyncCallback(callback_) -} -export function unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback() + return GlobalScopeinspector.getInspectorNodeById(id) } export function setAppBgColor(value: string): void { - GlobalScope_inspector.setAppBgColor(value) + GlobalScopeinspector.setAppBgColor(value) } diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index dd7703bf1..c4d7bf4c7 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -448,6 +448,3 @@ export interface Literal_Number_code_Want_want { export type Callback_Literal_Number_code_Want_want_Void = (parameter: Literal_Number_code_Want_want) => void; export type Callback_IsolatedComponentAttribute_Void = (value: IsolatedComponentAttribute) => void; export type Callback_Opt_StyledString_Opt_Array_String_Void = (value?: StyledString | undefined, error?: Array | undefined) => void; -export namespace Profiler { - export type Callback_String_Void = (info: string) => void; -} diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts index da98d6478..3970fddbd 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./../ArkUnitsInterfaces" @@ -1576,6 +1576,10 @@ export class ArkUIGeneratedNativeModule { native static _LazyForEachOps_OnRangeUpdate(node: KPointer, totalCount: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _LazyForEachOps_SetCurrentIndex(node: KPointer, index: KInt): void native static _LazyForEachOps_Prepare(node: KPointer): void + native static _SystemOps_ctor(): KPointer + native static _SystemOps_getFinalizer(): KPointer + native static _SystemOps_StartFrame(): KPointer + native static _SystemOps_EndFrame(root: KPointer): void native static _DrawingCanvas_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _DrawingCanvas_getFinalizer(): KPointer native static _DrawingCanvas_drawRect(ptr: KPointer, left: number, top: number, right: number, bottom: number): void @@ -1614,15 +1618,13 @@ export class ArkUIGeneratedNativeModule { native static _FrameNode_getChildrenCount(ptr: KPointer): int32 native static _FrameNode_dispose(ptr: KPointer): void native static _FrameNode_getOpacity(ptr: KPointer): number - native static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer + native static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer native static _PixelMap_ctor(): KPointer native static _PixelMap_getFinalizer(): KPointer native static _PixelMap_readPixelsToBufferSync(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _PixelMap_writeBufferToPixels(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _PixelMap_getIsEditable(ptr: KPointer): int32 - native static _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void - native static _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 - native static _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void + native static _PixelMap_getIsEditable(ptr: KPointer): boolean + native static _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean native static _NavExtender_ctor(): KPointer native static _NavExtender_getFinalizer(): KPointer native static _NavExtender_setUpdateStackCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1714,7 +1716,7 @@ export class ArkUIGeneratedNativeModule { native static _CanvasRenderer_restore(ptr: KPointer): void native static _CanvasRenderer_save(ptr: KPointer): void native static _CanvasRenderer_fillText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer + native static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer native static _CanvasRenderer_strokeText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderer_getTransform(ptr: KPointer): KPointer native static _CanvasRenderer_resetTransform(ptr: KPointer): void @@ -1778,6 +1780,18 @@ export class ArkUIGeneratedNativeModule { native static _CanvasRenderingContext2D_offOnDetach(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderingContext2D_getHeight(ptr: KPointer): number native static _CanvasRenderingContext2D_getWidth(ptr: KPointer): number + native static _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer + native static _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): string + native static _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer + native static _OffscreenCanvas_ctor(width: number, height: number): KPointer + native static _OffscreenCanvas_getFinalizer(): KPointer + native static _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer + native static _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _OffscreenCanvas_getHeight(ptr: KPointer): number + native static _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void + native static _OffscreenCanvas_getWidth(ptr: KPointer): number + native static _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void native static _DrawingRenderingContext_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _DrawingRenderingContext_getFinalizer(): KPointer native static _DrawingRenderingContext_invalidate(ptr: KPointer): void @@ -1891,7 +1905,9 @@ export class ArkUIGeneratedNativeModule { native static _TouchEvent_getHistoricalPoints(ptr: KPointer): KPointer native static _TouchEvent_getType(ptr: KPointer): KPointer native static _TouchEvent_setType(ptr: KPointer, type: KInt): void + native static _TouchEvent_getTouches(ptr: KPointer): KPointer native static _TouchEvent_setTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer native static _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TouchEvent_getStopPropagation(ptr: KPointer): KPointer native static _TouchEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1910,10 +1926,10 @@ export class ArkUIGeneratedNativeModule { native static _DragEvent_getY(ptr: KPointer): number native static _DragEvent_setData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _DragEvent_getData(ptr: KPointer): KPointer - native static _DragEvent_getSummary(ptr: KPointer): KPointer + native static _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer native static _DragEvent_setResult(ptr: KPointer, dragResult: KInt): void native static _DragEvent_getResult(ptr: KPointer): KPointer - native static _DragEvent_getPreviewRect(ptr: KPointer): KPointer + native static _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer native static _DragEvent_getVelocityX(ptr: KPointer): number native static _DragEvent_getVelocityY(ptr: KPointer): number native static _DragEvent_getVelocity(ptr: KPointer): number @@ -1951,17 +1967,17 @@ export class ArkUIGeneratedNativeModule { native static _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void native static _Measurable_ctor(): KPointer native static _Measurable_getFinalizer(): KPointer - native static _Measurable_measure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _Measurable_getMargin(ptr: KPointer): KPointer - native static _Measurable_getPadding(ptr: KPointer): KPointer - native static _Measurable_getBorderWidth(ptr: KPointer): KPointer + native static _Measurable_measure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer + native static _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer + native static _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer native static _View_ctor(): KPointer native static _View_getFinalizer(): KPointer native static _View_create(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): object native static _TextContentControllerBase_ctor(): KPointer native static _TextContentControllerBase_getFinalizer(): KPointer - native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer - native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer + native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer + native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer native static _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number native static _DynamicNode_ctor(): KPointer native static _DynamicNode_getFinalizer(): KPointer @@ -1988,21 +2004,21 @@ export class ArkUIGeneratedNativeModule { native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _GlobalScope_common_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer - native static _GlobalScope_common_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_vp2px(value: number): number - native static _GlobalScope_common_px2vp(value: number): number - native static _GlobalScope_common_fp2px(value: number): number - native static _GlobalScope_common_px2fp(value: number): number - native static _GlobalScope_common_lpx2px(value: number): number - native static _GlobalScope_common_px2lpx(value: number): number - native static _GlobalScope_common_requestFocus(value: KStringPtr): boolean - native static _GlobalScope_common_setCursor(value: KInt): void - native static _GlobalScope_common_restoreDefault(): void + native static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean + native static _GlobalScope_cursorControl_common_setCursor(value: KInt): void + native static _GlobalScope_cursorControl_common_restoreDefault(): void + native static _GlobalScopecommon_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _GlobalScopecommon_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer + native static _GlobalScopecommon_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScopecommon_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScopecommon_vp2px(value: number): number + native static _GlobalScopecommon_px2vp(value: number): number + native static _GlobalScopecommon_fp2px(value: number): number + native static _GlobalScopecommon_px2fp(value: number): number + native static _GlobalScopecommon_lpx2px(value: number): number + native static _GlobalScopecommon_px2lpx(value: number): number native static _ContextMenu_ctor(): KPointer native static _ContextMenu_getFinalizer(): KPointer native static _ContextMenu_close(): undefined @@ -2017,6 +2033,7 @@ export class ArkUIGeneratedNativeModule { native static _DatePickerDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _BaseGestureEvent_ctor(): KPointer native static _BaseGestureEvent_getFinalizer(): KPointer + native static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer native static _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TapGestureEvent_ctor(): KPointer native static _TapGestureEvent_getFinalizer(): KPointer @@ -2058,6 +2075,7 @@ export class ArkUIGeneratedNativeModule { native static _GestureEvent_getFinalizer(): KPointer native static _GestureEvent_getRepeat(ptr: KPointer): boolean native static _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void + native static _GestureEvent_getFingerList(ptr: KPointer): KPointer native static _GestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GestureEvent_getOffsetX(ptr: KPointer): number native static _GestureEvent_setOffsetX(ptr: KPointer, offsetX: number): void @@ -2110,10 +2128,10 @@ export class ArkUIGeneratedNativeModule { native static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer native static _ListScroller_ctor(): KPointer native static _ListScroller_getFinalizer(): KPointer - native static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer + native static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer native static _ListScroller_scrollToItemInGroup(ptr: KPointer, index: number, indexInGroup: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ListScroller_closeAllSwipeActions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer + native static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer native static _Matrix2D_ctor(): KPointer native static _Matrix2D_getFinalizer(): KPointer native static _Matrix2D_identity(ptr: KPointer): KPointer @@ -2203,13 +2221,13 @@ export class ArkUIGeneratedNativeModule { native static _RichEditorBaseController_getCaretOffset(ptr: KPointer): number native static _RichEditorBaseController_setCaretOffset(ptr: KPointer, offset: number): boolean native static _RichEditorBaseController_closeSelectionMenu(ptr: KPointer): void - native static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer + native static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer native static _RichEditorBaseController_setTypingStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorBaseController_isEditing(ptr: KPointer): boolean native static _RichEditorBaseController_stopEditing(ptr: KPointer): void native static _RichEditorBaseController_getLayoutManager(ptr: KPointer): KPointer - native static _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer + native static _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer native static _RichEditorController_ctor(): KPointer native static _RichEditorController_getFinalizer(): KPointer native static _RichEditorController_addTextSpan(ptr: KPointer, value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): number @@ -2221,14 +2239,14 @@ export class ArkUIGeneratedNativeModule { native static _RichEditorController_deleteSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorController_getSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _RichEditorController_getSelection(ptr: KPointer): KPointer + native static _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer native static _RichEditorController_fromStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorController_toStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorStyledStringController_ctor(): KPointer native static _RichEditorStyledStringController_getFinalizer(): KPointer native static _RichEditorStyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorStyledStringController_getStyledString(ptr: KPointer): KPointer - native static _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer + native static _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer native static _RichEditorStyledStringController_onContentChanged(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Scroller_ctor(): KPointer native static _Scroller_getFinalizer(): KPointer @@ -2237,11 +2255,11 @@ export class ArkUIGeneratedNativeModule { native static _Scroller_fling(ptr: KPointer, velocity: number): void native static _Scroller_scrollPage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _Scroller_scrollPage1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): undefined - native static _Scroller_currentOffset(ptr: KPointer): KPointer + native static _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer native static _Scroller_scrollToIndex(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _Scroller_scrollBy(ptr: KPointer, dx: Length, dy: Length): undefined native static _Scroller_isAtEnd(ptr: KPointer): boolean - native static _Scroller_getItemRect(ptr: KPointer, index: number): KPointer + native static _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer native static _Scroller_getItemIndex(ptr: KPointer, x: number, y: number): number native static _SearchController_ctor(): KPointer native static _SearchController_getFinalizer(): KPointer @@ -2336,7 +2354,7 @@ export class ArkUIGeneratedNativeModule { native static _TextEditControllerEx_stopEditing(ptr: KPointer): void native static _TextEditControllerEx_setCaretOffset(ptr: KPointer, offset: number): boolean native static _TextEditControllerEx_getCaretOffset(ptr: KPointer): number - native static _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer + native static _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer native static _StyledStringController_ctor(): KPointer native static _StyledStringController_getFinalizer(): KPointer native static _StyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -2344,8 +2362,8 @@ export class ArkUIGeneratedNativeModule { native static _LayoutManager_ctor(): KPointer native static _LayoutManager_getFinalizer(): KPointer native static _LayoutManager_getLineCount(ptr: KPointer): number - native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer - native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer + native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer + native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer native static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer native static _TextMenuItemId_ctor(): KPointer native static _TextMenuItemId_getFinalizer(): KPointer @@ -2541,9 +2559,9 @@ export class ArkUIGeneratedNativeModule { native static _XComponentController_getXComponentContext(ptr: KPointer): KPointer native static _XComponentController_setXComponentSurfaceSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _XComponentController_setXComponentSurfaceRect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer + native static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer native static _XComponentController_setXComponentSurfaceRotation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer + native static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer native static _XComponentController_onSurfaceCreated(ptr: KPointer, surfaceId: KStringPtr): void native static _XComponentController_onSurfaceChanged(ptr: KPointer, surfaceId: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _XComponentController_onSurfaceDestroyed(ptr: KPointer, surfaceId: KStringPtr): void @@ -2593,6 +2611,7 @@ export class ArkUIGeneratedNativeModule { native static _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number native static _TextShadowStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TextShadowStyle_getFinalizer(): KPointer + native static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer native static _BackgroundColorStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _BackgroundColorStyle_getFinalizer(): KPointer native static _GestureStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer @@ -2629,7 +2648,7 @@ export class ArkUIGeneratedNativeModule { native static _ImageAttachment_getObjectFit(ptr: KPointer): KPointer native static _CustomSpan_ctor(): KPointer native static _CustomSpan_getFinalizer(): KPointer - native static _CustomSpan_onMeasure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _CustomSpan_onMeasure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer native static _CustomSpan_onDraw(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CustomSpan_invalidate(ptr: KPointer): void native static _LinearIndicatorController_ctor(): KPointer @@ -2638,9 +2657,9 @@ export class ArkUIGeneratedNativeModule { native static _LinearIndicatorController_start(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _LinearIndicatorController_pause(ptr: KPointer): void native static _LinearIndicatorController_stop(ptr: KPointer): void - native static _GlobalScope_inspector_getInspectorNodes(): KPointer - native static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer - native static _GlobalScope_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_inspector_unregisterVsyncCallback(): void - native static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void + native static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void + native static _GlobalScopeinspector_getInspectorNodes(): KPointer + native static _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer + native static _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts index 8627e5886..dde3a003f 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModule { diff --git a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts index a4bb4723c..748511a9a 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModule { diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index f9504b738..8ee31b4a4 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -1,13 +1,13 @@ -import { KBoolean, KStringPtr, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../ArkAnimationExtenderInterfaces" -import { Curve, DialogButtonStyle, BorderStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, Color, ColoringStrategy, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, GradientDirection, Alignment, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" +import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BorderImageOption, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, IntentionCode, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" +import { SystemOps } from "./../ArkSystemOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" @@ -15,10 +15,10 @@ import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { Resource } from "./../ArkResourceInterfaces" import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Literal_Boolean_next_Axis_direction, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" import { GlobalScope_ohos_arkui_performanceMonitor } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { Position, VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Offset, Font, Length, LengthMetricsUnit, MarkStyle, Bias, Area, Margin, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, Offset, Font, LengthMetricsUnit, MarkStyle, Bias, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" import { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -27,9 +27,22 @@ import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { ClickEvent } from "./../ArkClickEventMaterialized" import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { SheetInfo, DismissDialogAction, ActionSheetButtonOptions, ActionSheetOffset, ActionSheetOptions } from "./../ArkActionSheetInterfaces" import { DialogAlignment, DialogButtonDirection, AlertDialogButtonBaseOptions, AlertDialogButtonOptions, TextStyle_alert_dialog, AlertDialogParam, AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./../ArkAlertDialogInterfaces" -import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" @@ -57,32 +70,21 @@ import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMateri import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { OffscreenCanvasRenderingContext2D } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { OffscreenCanvas } from "./../ArkOffscreenCanvasMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" import { CheckboxOptions, CheckBoxConfiguration, CheckboxInterface, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult, CheckboxGroupInterface, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback } from "./../ArkCheckboxgroupInterfaces" import { CircleOptions, CircleInterface, CircleAttribute } from "./../ArkCircleInterfaces" import { ColumnOptions, ColumnInterface, ColumnAttribute } from "./../ArkColumnInterfaces" import { ColumnSplitInterface, ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" -import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" -import { HoverEvent } from "./../ArkHoverEventMaterialized" -import { MouseEvent } from "./../ArkMouseEventMaterialized" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEvent } from "./../ArkTouchEventMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" -import { DragEvent } from "./../ArkDragEventMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" -import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" @@ -183,6 +185,7 @@ import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" @@ -233,7 +236,6 @@ import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextAreaOptions, TextAreaInterface, TextAreaAttribute, TextAreaType, ContentType, TextAreaSubmitCallback } from "./../ArkTextAreaInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockInterface, TextClockAttribute } from "./../ArkTextClockInterfaces" -import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SubmitEvent } from "./../ArkSubmitEventMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" @@ -2339,6 +2341,12 @@ export class TypeChecker { static isObscuredReasons(value: object|string|number|undefined|null): boolean { return value instanceof ObscuredReasons } + static isOffscreenCanvas(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OffscreenCanvas + } + static isOffscreenCanvasRenderingContext2D(value: object|string|number|undefined|null): boolean { + return value instanceof OffscreenCanvasRenderingContext2D + } static isOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof Offset } @@ -3590,6 +3598,9 @@ export class TypeChecker { static isSystemBarStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { return value instanceof SystemBarStyle } + static isSystemOps(value: object|string|number|undefined|null): boolean { + return value instanceof SystemOps + } static isTabBarIconStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof TabBarIconStyle } diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index ce9440534..346e2c4e9 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -265,10 +265,12 @@ export * from "./ArkWaterFlowInterfaces" export * from "./ArkUiExtensionComponentInterfaces" export * from "./ArkStyledStringInterfaces" export * from "./ArkLinearindicatorInterfaces" +export * from "./ArkProfilerNamespace" export * from "./ArkRawFileDescriptorInterfaces" export * from "./ArkAnimationExtenderMaterialized" export * from "./ArkUnifiedDataMaterialized" export * from "./ArkLazyForEachOpsMaterialized" +export * from "./ArkSystemOpsMaterialized" export * from "./ArkDrawingCanvasMaterialized" export * from "./ArkLengthMetricsMaterialized" export * from "./ArkWebviewControllerMaterialized" @@ -295,6 +297,8 @@ export * from "./ArkImageDataMaterialized" export * from "./ArkRenderingContextSettingsMaterialized" export * from "./ArkCanvasRendererMaterialized" export * from "./ArkCanvasRenderingContext2DMaterialized" +export * from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +export * from "./ArkOffscreenCanvasMaterialized" export * from "./ArkDrawingRenderingContextMaterialized" export * from "./ArkICurveMaterialized" export * from "./ArkDrawModifierMaterialized" @@ -316,7 +320,9 @@ export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkUICommonEventMaterialized" export * from "./ArkGestureModifierMaterialized" -export * from "./ArkGlobalScopeCommonMaterialized" +export * from "./ArkFocusControlNamespace" +export * from "./ArkCursorControlNamespace" +export * from "./ArkGlobalScopecommonMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" export * from "./ArkLinearGradientMaterialized" @@ -414,8 +420,6 @@ export * from "./ArkMutableStyledStringMaterialized" export * from "./ArkImageAttachmentMaterialized" export * from "./ArkCustomSpanMaterialized" export * from "./ArkLinearIndicatorControllerMaterialized" -export * from "./ArkGlobalScopeInspectorMaterialized" +export * from "./ArkProfilerNamespace" +export * from "./ArkGlobalScopeinspectorMaterialized" export * from "./GlobalScope" -export * from "./Events" -export * from "./PeerNode" -export * from "./peers/CallbacksChecker" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index d0e1cb8e5..f0c07d96f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -20,19 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" -import { Callback_Void, Literal_Want_want } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_Want_want } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Want } from "./../ArkArkuiExternalInterfaces" +import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index 918ff84eb..6bef5434f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle } from "./../ArkCommonInterfaces" -import { AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -71,17 +87,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -98,17 +114,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -125,17 +141,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -152,17 +168,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -179,17 +195,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -206,17 +222,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -233,17 +249,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -260,17 +276,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -303,12 +319,12 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) @@ -370,17 +386,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts index 4355f93f4..3942847fb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -20,20 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { SpringMotion } from "./../ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts index 22ef4e326..cc2af3dec 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString } from "./../ArkBadgeInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString } from "./../ArkBadgeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts index a1a3284d4..481465f85 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { BlankAttribute } from "./../ArkBlankInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BlankAttribute } from "./../ArkBlankInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -58,12 +75,12 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const min_value = min! let min_value_type : int32 = RuntimeType.UNDEFINED min_value_type = runtimeType(min_value) - if (((RuntimeType.NUMBER == min_value_type))) { + if (RuntimeType.NUMBER == min_value_type) { thisSerializer.writeInt8(0 as int32) const min_value_0 = min_value as number thisSerializer.writeNumber(min_value_0) } - else if (((RuntimeType.STRING == min_value_type))) { + else if (RuntimeType.STRING == min_value_type) { thisSerializer.writeInt8(1 as int32) const min_value_1 = min_value as string thisSerializer.writeString(min_value_1) @@ -81,17 +98,17 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts index 5a9eb8dde..7453f26e9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ButtonAttribute, ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions } from "./../ArkButtonInterfaces" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontWeight, FontStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonAttribute, ButtonOptions } from "./../ArkButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,12 +79,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let label_type : int32 = RuntimeType.UNDEFINED label_type = runtimeType(label) - if (((RuntimeType.STRING == label_type))) { + if (RuntimeType.STRING == label_type) { thisSerializer.writeInt8(0 as int32) const label_0 = label as string thisSerializer.writeString(label_0) } - else if (((RuntimeType.OBJECT == label_type))) { + else if (RuntimeType.OBJECT == label_type) { thisSerializer.writeInt8(1 as int32) const label_1 = label as Resource thisSerializer.writeResource(label_1) @@ -106,17 +123,17 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -131,7 +148,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -141,7 +158,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -156,12 +173,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts index 0f92eeed7..983bd4871 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Axis } from "./../ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute } from "./../ArkCalendarInterfaces" @@ -30,8 +30,7 @@ import { CalendarController } from "./../ArkCalendarControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index ed796404b..88e7adf59 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { CalendarPickerAttribute, CalendarAlign, CalendarOptions } from "./../ArkCalendarPickerInterfaces" -import { Callback_Date_Void } from "./../SyntheticDeclarations" -import { Offset } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./../ArkCalendarPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts index a1f624e47..93949117b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -20,21 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { CanvasAttribute } from "./../ArkCanvasInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute } from "./../ArkCanvasInterfaces" import { ImageAIOptions } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts index c66c58604..f2ac26a3d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./../ArkCheckboxInterfaces" -import { ResourceColor, MarkStyle } from "./../ArkUnitsInterfaces" -import { CheckBoxShape, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./../ArkCheckboxInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -104,17 +120,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index e4d416c5f..bfec7f725 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { ResourceColor, MarkStyle } from "./../ArkUnitsInterfaces" -import { CheckBoxShape, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./../ArkCheckboxgroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -101,17 +117,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts index 6d9286a04..987d8372a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { CircleAttribute, CircleOptions } from "./../ArkCircleInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts index 1903cdd9a..fd56ab814 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { ColumnAttribute, ColumnOptions } from "./../ArkColumnInterfaces" -import { HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 0129e0511..ed953e1a2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./../ArkColumnSplitInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 516528093..828ad0bbd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" @@ -49,8 +49,7 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScro import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -154,12 +153,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -341,17 +340,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -369,12 +368,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as SizeOptions thisSerializer.writeSizeOptions(value_0) } - else if (((TypeChecker.isImageSize(value)))) { + else if (TypeChecker.isImageSize(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ImageSize thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -386,12 +385,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Position thisSerializer.writePosition(value_0) } - else if (((TypeChecker.isAlignment(value)))) { + else if (TypeChecker.isAlignment(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Alignment thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -445,12 +444,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -468,12 +467,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isBorderStyle(value)))) { + if (TypeChecker.isBorderStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as BorderStyle thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EdgeStyles const value_1_top = value_1.top @@ -569,7 +568,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -579,17 +578,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -611,17 +610,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = value_1_top_value as Color thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_top_value_1 = value_1_top_value as number thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_top_value_2 = value_1_top_value as string thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_top_value_3 = value_1_top_value as Resource thisSerializer.writeResource(value_1_top_value_3) @@ -640,17 +639,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = value_1_right_value as Color thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_right_value_1 = value_1_right_value as number thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_right_value_2 = value_1_right_value as string thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_right_value_3 = value_1_right_value as Resource thisSerializer.writeResource(value_1_right_value_3) @@ -669,17 +668,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = value_1_bottom_value as Color thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_bottom_value_1 = value_1_bottom_value as number thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_bottom_value_2 = value_1_bottom_value as string thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_bottom_value_3 = value_1_bottom_value as Resource thisSerializer.writeResource(value_1_bottom_value_3) @@ -698,17 +697,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = value_1_left_value as Color thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_left_value_1 = value_1_left_value as number thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_left_value_2 = value_1_left_value as string thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_left_value_3 = value_1_left_value as Resource thisSerializer.writeResource(value_1_left_value_3) @@ -792,12 +791,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isOutlineStyle(value)))) { + if (TypeChecker.isOutlineStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as OutlineStyle thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EdgeOutlineStyles const value_1_top = value_1.top @@ -888,7 +887,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -898,17 +897,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -930,17 +929,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = value_1_top_value as Color thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_top_value_1 = value_1_top_value as number thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_top_value_2 = value_1_top_value as string thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_top_value_3 = value_1_top_value as Resource thisSerializer.writeResource(value_1_top_value_3) @@ -959,17 +958,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = value_1_right_value as Color thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_right_value_1 = value_1_right_value as number thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_right_value_2 = value_1_right_value as string thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_right_value_3 = value_1_right_value as Resource thisSerializer.writeResource(value_1_right_value_3) @@ -988,17 +987,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = value_1_bottom_value as Color thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_bottom_value_1 = value_1_bottom_value as number thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_bottom_value_2 = value_1_bottom_value as string thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_bottom_value_3 = value_1_bottom_value as Resource thisSerializer.writeResource(value_1_bottom_value_3) @@ -1017,17 +1016,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = value_1_left_value as Color thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_left_value_1 = value_1_left_value as number thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_left_value_2 = value_1_left_value as string thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_left_value_3 = value_1_left_value as Resource thisSerializer.writeResource(value_1_left_value_3) @@ -1094,7 +1093,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -1104,17 +1103,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -1267,17 +1266,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isColor(value)))) { + if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -1295,12 +1294,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as InvertOptions thisSerializer.writeInvertOptions(value_1) @@ -1312,12 +1311,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -1413,12 +1412,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -1515,12 +1514,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_xs_value = value_xs! let value_xs_value_type : int32 = RuntimeType.UNDEFINED value_xs_value_type = runtimeType(value_xs_value) - if (((RuntimeType.NUMBER == value_xs_value_type))) { + if (RuntimeType.NUMBER == value_xs_value_type) { thisSerializer.writeInt8(0 as int32) const value_xs_value_0 = value_xs_value as number thisSerializer.writeNumber(value_xs_value_0) } - else if (((RuntimeType.OBJECT == value_xs_value_type))) { + else if (RuntimeType.OBJECT == value_xs_value_type) { thisSerializer.writeInt8(1 as int32) const value_xs_value_1 = value_xs_value as Literal_Number_offset_span const value_xs_value_1_span = value_xs_value_1.span @@ -1537,12 +1536,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_sm_value = value_sm! let value_sm_value_type : int32 = RuntimeType.UNDEFINED value_sm_value_type = runtimeType(value_sm_value) - if (((RuntimeType.NUMBER == value_sm_value_type))) { + if (RuntimeType.NUMBER == value_sm_value_type) { thisSerializer.writeInt8(0 as int32) const value_sm_value_0 = value_sm_value as number thisSerializer.writeNumber(value_sm_value_0) } - else if (((RuntimeType.OBJECT == value_sm_value_type))) { + else if (RuntimeType.OBJECT == value_sm_value_type) { thisSerializer.writeInt8(1 as int32) const value_sm_value_1 = value_sm_value as Literal_Number_offset_span const value_sm_value_1_span = value_sm_value_1.span @@ -1559,12 +1558,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_md_value = value_md! let value_md_value_type : int32 = RuntimeType.UNDEFINED value_md_value_type = runtimeType(value_md_value) - if (((RuntimeType.NUMBER == value_md_value_type))) { + if (RuntimeType.NUMBER == value_md_value_type) { thisSerializer.writeInt8(0 as int32) const value_md_value_0 = value_md_value as number thisSerializer.writeNumber(value_md_value_0) } - else if (((RuntimeType.OBJECT == value_md_value_type))) { + else if (RuntimeType.OBJECT == value_md_value_type) { thisSerializer.writeInt8(1 as int32) const value_md_value_1 = value_md_value as Literal_Number_offset_span const value_md_value_1_span = value_md_value_1.span @@ -1581,12 +1580,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_lg_value = value_lg! let value_lg_value_type : int32 = RuntimeType.UNDEFINED value_lg_value_type = runtimeType(value_lg_value) - if (((RuntimeType.NUMBER == value_lg_value_type))) { + if (RuntimeType.NUMBER == value_lg_value_type) { thisSerializer.writeInt8(0 as int32) const value_lg_value_0 = value_lg_value as number thisSerializer.writeNumber(value_lg_value_0) } - else if (((RuntimeType.OBJECT == value_lg_value_type))) { + else if (RuntimeType.OBJECT == value_lg_value_type) { thisSerializer.writeInt8(1 as int32) const value_lg_value_1 = value_lg_value as Literal_Number_offset_span const value_lg_value_1_span = value_lg_value_1.span @@ -1684,17 +1683,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.FUNCTION == value_type))) { + if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as DragItemInfo thisSerializer.writeDragItemInfo(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -1718,12 +1717,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_angle_value = value_angle! let value_angle_value_type : int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { thisSerializer.writeInt8(0 as int32) const value_angle_value_0 = value_angle_value as number thisSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { thisSerializer.writeInt8(1 as int32) const value_angle_value_1 = value_angle_value as string thisSerializer.writeString(value_angle_value_1) @@ -1749,17 +1748,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1793,12 +1792,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_start_value = value_start! let value_start_value_type : int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.NUMBER == value_start_value_type))) { + if (RuntimeType.NUMBER == value_start_value_type) { thisSerializer.writeInt8(0 as int32) const value_start_value_0 = value_start_value as number thisSerializer.writeNumber(value_start_value_0) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { thisSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as string thisSerializer.writeString(value_start_value_1) @@ -1812,12 +1811,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_end_value = value_end! let value_end_value_type : int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.NUMBER == value_end_value_type))) { + if (RuntimeType.NUMBER == value_end_value_type) { thisSerializer.writeInt8(0 as int32) const value_end_value_0 = value_end_value as number thisSerializer.writeNumber(value_end_value_0) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { thisSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as string thisSerializer.writeString(value_end_value_1) @@ -1831,12 +1830,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_rotation_value = value_rotation! let value_rotation_value_type : int32 = RuntimeType.UNDEFINED value_rotation_value_type = runtimeType(value_rotation_value) - if (((RuntimeType.NUMBER == value_rotation_value_type))) { + if (RuntimeType.NUMBER == value_rotation_value_type) { thisSerializer.writeInt8(0 as int32) const value_rotation_value_0 = value_rotation_value as number thisSerializer.writeNumber(value_rotation_value_0) } - else if (((RuntimeType.STRING == value_rotation_value_type))) { + else if (RuntimeType.STRING == value_rotation_value_type) { thisSerializer.writeInt8(1 as int32) const value_rotation_value_1 = value_rotation_value as string thisSerializer.writeString(value_rotation_value_1) @@ -1854,17 +1853,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1893,12 +1892,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_radius = value.radius let value_radius_type : int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { thisSerializer.writeInt8(0 as int32) const value_radius_0 = value_radius as number thisSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.STRING == value_radius_type))) { + else if (RuntimeType.STRING == value_radius_type) { thisSerializer.writeInt8(1 as int32) const value_radius_1 = value_radius as string thisSerializer.writeString(value_radius_1) @@ -1915,17 +1914,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1954,12 +1953,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ShadowOptions thisSerializer.writeShadowOptions(value_0) } - else if (((TypeChecker.isShadowStyle(value)))) { + else if (TypeChecker.isShadowStyle(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ShadowStyle thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -2286,17 +2285,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let src_type : int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(0 as int32) const src_0 = src as ResourceStr let src_0_type : int32 = RuntimeType.UNDEFINED src_0_type = runtimeType(src_0) - if (((RuntimeType.STRING == src_0_type))) { + if (RuntimeType.STRING == src_0_type) { thisSerializer.writeInt8(0 as int32) const src_0_0 = src_0 as string thisSerializer.writeString(src_0_0) } - else if (((RuntimeType.OBJECT == src_0_type))) { + else if (RuntimeType.OBJECT == src_0_type) { thisSerializer.writeInt8(1 as int32) const src_0_1 = src_0 as Resource thisSerializer.writeResource(src_0_1) @@ -2596,17 +2595,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as ComponentContent thisSerializer.writeComponentContent(value_2) @@ -2637,12 +2636,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let effect_type : int32 = RuntimeType.UNDEFINED effect_type = runtimeType(effect) - if (((TypeChecker.isBlendMode(effect)))) { + if (TypeChecker.isBlendMode(effect)) { thisSerializer.writeInt8(0 as int32) const effect_0 = effect as BlendMode thisSerializer.writeInt32((effect_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == effect_type))) { + else if (RuntimeType.OBJECT == effect_type) { thisSerializer.writeInt8(1 as int32) const effect_1 = effect as Blender thisSerializer.writeBlender(effect_1) @@ -2678,7 +2677,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let content_type : int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0 as int32) const content_0 = content as Array thisSerializer.writeInt32(content_0.length as int32) @@ -2687,7 +2686,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1 as int32) const content_1 = content as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2706,7 +2705,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let content_type : int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0 as int32) const content_0 = content as Array thisSerializer.writeInt32(content_0.length as int32) @@ -2715,7 +2714,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1 as int32) const content_1 = content as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2831,12 +2830,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((TypeChecker.isFunctionKey(value)))) { + else if (TypeChecker.isFunctionKey(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FunctionKey thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -3024,17 +3023,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -3051,17 +3050,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -3073,12 +3072,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3096,12 +3095,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3113,17 +3112,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -3135,17 +3134,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -3223,12 +3222,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -3240,12 +3239,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3266,12 +3265,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -3334,12 +3333,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isContentClipMode(value)))) { + if (TypeChecker.isContentClipMode(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ContentClipMode thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as RectShape thisSerializer.writeRectShape(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts index e5fcb0ed7..fda88181c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { Component3DAttribute, SceneOptions } from "./../ArkComponent3dInterfaces" -import { ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { Component3DAttribute, SceneOptions } from "./../ArkComponent3dInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,12 +82,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -81,12 +99,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -98,12 +116,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -131,12 +149,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let uri_type : int32 = RuntimeType.UNDEFINED uri_type = runtimeType(uri) - if (((RuntimeType.STRING == uri_type))) { + if (RuntimeType.STRING == uri_type) { thisSerializer.writeInt8(0 as int32) const uri_0 = uri as string thisSerializer.writeString(uri_0) } - else if (((RuntimeType.OBJECT == uri_type))) { + else if (RuntimeType.OBJECT == uri_type) { thisSerializer.writeInt8(1 as int32) const uri_1 = uri as Resource thisSerializer.writeResource(uri_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 5b85b32e1..51ce6d64e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { AttributeModifier } from "./../../handwritten" @@ -29,8 +29,7 @@ import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts index 079c91872..bc42ff59f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { CounterAttribute } from "./../ArkCounterInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts index 29b9ffd71..acd3e3060 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./../ArkDataPanelInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute } from "./../ArkDataPanelInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -66,7 +83,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element : ResourceColor | LinearGradient = value[i] let value_element_type : int32 = RuntimeType.UNDEFINED value_element_type = runtimeType(value_element) - if ((TypeChecker.isColor(value_element)) || (((RuntimeType.NUMBER == value_element_type))) || (((RuntimeType.STRING == value_element_type))) || (((RuntimeType.OBJECT == value_element_type)))) { + if ((TypeChecker.isColor(value_element)) || (RuntimeType.NUMBER == value_element_type) || (RuntimeType.STRING == value_element_type) || (RuntimeType.OBJECT == value_element_type)) { thisSerializer.writeInt8(0 as int32) const value_element_0 = value_element as ResourceColor let value_element_0_type : int32 = RuntimeType.UNDEFINED @@ -76,17 +93,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element_0_0 = value_element_0 as Color thisSerializer.writeInt32((value_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_0_type))) { + else if (RuntimeType.NUMBER == value_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_element_0_1 = value_element_0 as number thisSerializer.writeNumber(value_element_0_1) } - else if (((RuntimeType.STRING == value_element_0_type))) { + else if (RuntimeType.STRING == value_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_element_0_2 = value_element_0 as string thisSerializer.writeString(value_element_0_2) } - else if (((RuntimeType.OBJECT == value_element_0_type))) { + else if (RuntimeType.OBJECT == value_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_element_0_3 = value_element_0 as Resource thisSerializer.writeResource(value_element_0_3) @@ -110,17 +127,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts index 9ca83c4ec..8986ffb16 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { DatePickerAttribute, DatePickerResult, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts index d92ed1cc4..967201068 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { DividerAttribute } from "./../ArkDividerInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { LineCapStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DividerAttribute } from "./../ArkDividerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,17 +81,17 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -86,12 +103,12 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts index 30de45282..12e04d7a6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts index 8565e12a0..78c8bd7af 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { EllipseAttribute, EllipseOptions } from "./../ArkEllipseInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { EllipseOptions, EllipseAttribute } from "./../ArkEllipseInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index f615b7807..f98fdc6b6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -20,21 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" -import { Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EmbeddedType } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { Want } from "./../ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./../ArkEnumsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts index fb3370de7..5767b3d08 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { FlexAttribute, FlexOptions } from "./../ArkFlexInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FlexOptions, FlexAttribute } from "./../ArkFlexInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts index 52d89fdd8..74c0a06c8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts index 7be82affe..f3763c803 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions } from "./../ArkFolderStackInterfaces" -import { Alignment } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./../ArkFolderStackInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts index 57a9e26f6..9badbffd6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" -import { SizeOptions } from "./../ArkUnitsInterfaces" -import { Visibility } from "./../ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute } from "./../ArkFormComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts index e56ce8309..588ec0799 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FormLinkAttribute, FormLinkOptions } from "./../ArkFormLinkInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts index b89756127..f85cbe4cf 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder, ContentModifier } from "./../ArkCommonInterfaces" -import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./../ArkGaugeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./../SyntheticDeclarations" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -70,7 +86,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -80,17 +96,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -110,7 +126,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0 = value_2_element[0] let value_2_element_0_type : int32 = RuntimeType.UNDEFINED value_2_element_0_type = runtimeType(value_2_element_0) - if ((TypeChecker.isColor(value_2_element_0)) || (((RuntimeType.NUMBER == value_2_element_0_type))) || (((RuntimeType.STRING == value_2_element_0_type))) || (((RuntimeType.OBJECT == value_2_element_0_type)))) { + if ((TypeChecker.isColor(value_2_element_0)) || (RuntimeType.NUMBER == value_2_element_0_type) || (RuntimeType.STRING == value_2_element_0_type) || (RuntimeType.OBJECT == value_2_element_0_type)) { thisSerializer.writeInt8(0 as int32) const value_2_element_0_0 = value_2_element_0 as ResourceColor let value_2_element_0_0_type : int32 = RuntimeType.UNDEFINED @@ -120,17 +136,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0_0_0 = value_2_element_0_0 as Color thisSerializer.writeInt32((value_2_element_0_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_2_element_0_0_type))) { + else if (RuntimeType.NUMBER == value_2_element_0_0_type) { thisSerializer.writeInt8(1 as int32) const value_2_element_0_0_1 = value_2_element_0_0 as number thisSerializer.writeNumber(value_2_element_0_0_1) } - else if (((RuntimeType.STRING == value_2_element_0_0_type))) { + else if (RuntimeType.STRING == value_2_element_0_0_type) { thisSerializer.writeInt8(2 as int32) const value_2_element_0_0_2 = value_2_element_0_0 as string thisSerializer.writeString(value_2_element_0_0_2) } - else if (((RuntimeType.OBJECT == value_2_element_0_0_type))) { + else if (RuntimeType.OBJECT == value_2_element_0_0_type) { thisSerializer.writeInt8(3 as int32) const value_2_element_0_0_3 = value_2_element_0_0 as Resource thisSerializer.writeResource(value_2_element_0_0_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts index 2a09c8946..d2135fb5a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridColAttribute, GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,12 +82,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) @@ -79,12 +99,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) @@ -96,12 +116,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts index 2ad9db5b3..5e241e28a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -20,17 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" import { ColumnAttribute } from "./../ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { GridContainerOptions, GridContainerAttribute } from "./../ArkGridContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts index e28bfea17..2b22eadc5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridItemAttribute, GridItemOptions } from "./../ArkGridItemInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridItemOptions, GridItemAttribute } from "./../ArkGridItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts index 28d29edf3..1a243ab8a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts @@ -20,23 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" -import { Length } from "./../ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" -import { Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" +import { ComputedBarAttribute, GridDirection, GridItemAlignment, GridAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -87,12 +104,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -109,12 +126,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -207,12 +224,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts index 9b4cbcd5b..a05f9c802 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridRowAttribute, GridRowOptions } from "./../ArkGridRowInterfaces" -import { Callback_String_Void } from "./../SyntheticDeclarations" -import { ItemAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridRowOptions, GridRowAttribute } from "./../ArkGridRowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts index 3bf762cec..79e1fdb74 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -52,12 +70,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let address_type : int32 = RuntimeType.UNDEFINED address_type = runtimeType(address) - if (((RuntimeType.STRING == address_type))) { + if (RuntimeType.STRING == address_type) { thisSerializer.writeInt8(0 as int32) const address_0 = address as string thisSerializer.writeString(address_0) } - else if (((RuntimeType.OBJECT == address_type))) { + else if (RuntimeType.OBJECT == address_type) { thisSerializer.writeInt8(1 as int32) const address_1 = address as Resource thisSerializer.writeResource(address_1) @@ -69,12 +87,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) @@ -92,17 +110,17 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index 2e1a398fc..eb6b8f11d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ImageAnimatorAttribute, ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" -import { AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts index cbb7541d9..b282799f3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts @@ -20,24 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./../ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceColor, ResourceStr } from "./../ArkUnitsInterfaces" -import { ImageFit, ImageRepeat, CopyOptions, Color } from "./../ArkEnumsInterfaces" import { ColorFilter } from "./../ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./../SyntheticDeclarations" import { ImageAnalyzerConfig, ImageAIOptions } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,17 +76,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -95,17 +109,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -116,7 +130,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_2 = src as DrawableDescriptor thisSerializer.writeDrawableDescriptor(src_2) } - else if (((TypeChecker.isImageContent(src)))) { + else if (TypeChecker.isImageContent(src)) { thisSerializer.writeInt8(3 as int32) const src_3 = src as ImageContent thisSerializer.writeInt32((src_3.valueOf() as int32)) @@ -133,17 +147,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -162,7 +176,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -195,17 +209,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts index 9dbc9beeb..98ecee9ce 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" -import { BaseSpan } from "./../ArkSpanInterfaces" -import { ImageSpanAttribute, ImageCompleteCallback } from "./../ArkImageSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" -import { ColorFilter } from "./../ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" -import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColorFilter } from "./../ArkColorFilterMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./../ArkImageSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -56,17 +72,17 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceStr let value_0_type : int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as string thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as Resource thisSerializer.writeResource(value_0_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 0a5a47db4..20fe5174d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -20,21 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./../SyntheticDeclarations" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkIndicatorComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts index f42972474..3a0b682c2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { LineAttribute, LineOptions } from "./../ArkLineInterfaces" -import { Length } from "./../ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LineOptions, LineAttribute } from "./../ArkLineInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 14e6df9b7..18992a467 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { LinearIndicatorAttribute, LinearIndicatorStyle, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute } from "./../ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts index de3d53583..183b00aac 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -20,19 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ListItemGroupAttribute, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { ListDividerOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute } from "./../ArkListItemGroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts index 5e2c2a4ea..ea7eae26d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ListItemAttribute, Sticky, EditMode, SwipeActionOptions, ListItemOptions } from "./../ArkListItemInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { Sticky, EditMode, SwipeActionOptions, ListItemOptions, ListItemAttribute } from "./../ArkListItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,12 +97,12 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as boolean thisSerializer.writeBoolean(value_0) } - else if (((TypeChecker.isEditMode(value)))) { + else if (TypeChecker.isEditMode(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EditMode thisSerializer.writeInt32((value_1.valueOf() as int32)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts index c7be513b9..2e8331294 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts @@ -20,22 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListOptions } from "./../ArkListInterfaces" -import { Axis, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListAttribute, ListOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" -import { Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" -import { LengthConstrain, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -130,12 +147,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -246,12 +263,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as LengthConstrain const value_1_minLength = value_1.minLength diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index 63e1bdddc..7dd9633eb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { LoadingProgressAttribute, LoadingProgressConfiguration } from "./../ArkLoadingProgressInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +78,17 @@ export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 1408965c2..e82942fd4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { LocationButtonAttribute, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts index dadc35836..4a1b7960b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MarqueeAttribute, MarqueeOptions } from "./../ArkMarqueeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,17 +81,17 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -93,7 +109,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -103,7 +119,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -115,12 +131,12 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index b23f3e09f..9eecba1d7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -20,20 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" -import { ImageAttribute, DrawableDescriptor } from "./../ArkImageInterfaces" +import { ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { ColorFilter } from "./../ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -58,17 +77,17 @@ export class ArkMediaCachedImagePeer extends ArkImagePeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index 6331d0315..3f21ec6cd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MenuItemGroupAttribute, MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts index 0354a18d7..24ad2421b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder } from "./../ArkCommonInterfaces" -import { MenuItemAttribute, MenuItemOptions } from "./../ArkMenuItemInterfaces" -import { ResourceStr, Font, ResourceColor } from "./../ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -59,12 +75,12 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.OBJECT == value_value_type))) { + if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as MenuItemOptions thisSerializer.writeMenuItemOptions(value_value_0) } - else if (((RuntimeType.FUNCTION == value_value_type))) { + else if (RuntimeType.FUNCTION == value_value_type) { thisSerializer.writeInt8(1 as int32) const value_value_1 = value_value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_value_1)) @@ -80,22 +96,22 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as boolean thisSerializer.writeBoolean(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ResourceStr let value_1_type : int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0 as int32) const value_1_0 = value_1 as string thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1 as int32) const value_1_1 = value_1 as Resource thisSerializer.writeResource(value_1_1) @@ -130,17 +146,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -163,17 +179,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts index b7ff5de81..7db59a4ed 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./../ArkMenuInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -70,17 +87,17 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 22bd74445..3749c9b58 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./../SyntheticDeclarations" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute } from "./../ArkNavDestinationInterfaces" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./../ArkNavigationInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +102,17 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceStr let value_0_type : int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as string thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as Resource thisSerializer.writeResource(value_0_1) @@ -119,7 +135,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Array thisSerializer.writeInt32(value_0.length as int32) @@ -128,7 +144,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeNavigationMenuItem(value_0_element) } } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -197,12 +213,12 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -236,7 +252,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let toolbarParam_type : int32 = RuntimeType.UNDEFINED toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { + if (RuntimeType.OBJECT == toolbarParam_type) { thisSerializer.writeInt8(0 as int32) const toolbarParam_0 = toolbarParam as Array thisSerializer.writeInt32(toolbarParam_0.length as int32) @@ -245,7 +261,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeToolbarItem(toolbarParam_0_element) } } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + else if (RuntimeType.FUNCTION == toolbarParam_type) { thisSerializer.writeInt8(1 as int32) const toolbarParam_1 = toolbarParam as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts index f3ec64c0c..b35651209 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NavRouterAttribute, NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./../ArkNavRouterInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts index 304cb87ab..11c845a3a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NavigatorAttribute, NavigationType } from "./../ArkNavigatorInterfaces" -import { Literal_String_target_NavigationType_type } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_String_target_NavigationType_type } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavigationType, NavigatorAttribute } from "./../ArkNavigatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts index ffa025d74..17e8baf0c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController } from "./../ArkArkuiExternalInterfaces" +import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts index 8bd3b4e71..0fd63439f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PanelAttribute, PanelMode, PanelType, PanelHeight } from "./../ArkPanelInterfaces" -import { Dimension, ResourceColor, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./../ArkPanelInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +99,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -100,12 +116,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -117,12 +133,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -142,17 +158,17 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 37333fec4..fd0059981 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { PasteButtonAttribute, PasteButtonOnClickResult, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts index ae697ad7b..aaefee0b8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PathAttribute, PathOptions } from "./../ArkPathInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PathOptions, PathAttribute } from "./../ArkPathInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts index e1c34c545..7a5df795d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PatternLockAttribute, CircleStyleOptions } from "./../ArkPatternLockInterfaces" -import { Length, ResourceColor } from "./../ArkUnitsInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CircleStyleOptions, PatternLockAttribute } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,17 +94,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -105,17 +121,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -132,17 +148,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -159,17 +175,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -186,17 +202,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -208,12 +224,12 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts index a53e96ffc..ae40c971c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PluginComponentAttribute, PluginErrorCallback, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute } from "./../ArkPluginComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts index de024c5c9..e2b8b84b1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PolygonAttribute, PolygonOptions } from "./../ArkPolygonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Point } from "./../ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./../ArkPolygonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts index d71b93a78..3b093cbe3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PolylineAttribute, PolylineOptions } from "./../ArkPolylineInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Point } from "./../ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./../ArkPolylineInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts index e13d3be41..1957755f2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ProgressAttribute, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions } from "./../ArkProgressInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions, ProgressAttribute } from "./../ArkProgressInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -63,7 +80,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -73,17 +90,17 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts index 6f03478c1..8f284f8e2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +78,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -88,17 +105,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -110,12 +127,12 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts index 6ae082361..7150688e1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions } from "./../ArkRadioInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute } from "./../ArkRadioInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts index 301753aa4..239f6688d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions } from "./../ArkRatingInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts index 345d0b0b3..2abb96c5e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions } from "./../ArkRectInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./../ArkRectInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -73,12 +93,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -90,12 +110,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -107,17 +127,17 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Array thisSerializer.writeInt32(value_2.length as int32) @@ -125,12 +145,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const value_2_element : number | string = value_2[i] let value_2_element_type : int32 = RuntimeType.UNDEFINED value_2_element_type = runtimeType(value_2_element) - if (((RuntimeType.NUMBER == value_2_element_type))) { + if (RuntimeType.NUMBER == value_2_element_type) { thisSerializer.writeInt8(0 as int32) const value_2_element_0 = value_2_element as number thisSerializer.writeNumber(value_2_element_0) } - else if (((RuntimeType.STRING == value_2_element_type))) { + else if (RuntimeType.STRING == value_2_element_type) { thisSerializer.writeInt8(1 as int32) const value_2_element_1 = value_2_element as string thisSerializer.writeString(value_2_element_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts index 95a8935ae..173039729 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RefreshAttribute, RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./../ArkRefreshInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index 3e8c3672f..3875f5e0b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RelativeContainerAttribute, GuideLineStyle, BarrierStyle, LocalizedBarrierStyle } from "./../ArkRelativeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute } from "./../ArkRelativeContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index ab8977404..da9c3576d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RemoteWindowAttribute, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute } from "./../ArkRemoteWindowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts index b9a52b40d..df82595de 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -20,24 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder } from "./../ArkCommonInterfaces" -import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./../ArkRichEditorInterfaces" -import { Callback_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./../ArkRichEditorInterfaces" import { TextRange, TextDataDetectorConfig, OnDidChangeCallback } from "./../ArkTextCommonInterfaces" -import { CopyOptions, BarState, ResponseType, Color } from "./../ArkEnumsInterfaces" -import { ResourceColor, ResourceStr } from "./../ArkUnitsInterfaces" import { EnterKeyType } from "./../ArkTextInputInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -143,17 +159,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -170,17 +186,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -284,12 +300,12 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts index 8218c1c8a..0ddbaa344 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { RichTextAttribute } from "./../ArkRichTextInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts index 2bd388391..4df10397e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RootSceneAttribute, RootSceneSession } from "./../ArkRootSceneInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts index 4097f0555..3a5788661 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { RowAttribute, RowOptions } from "./../ArkRowInterfaces" -import { VerticalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RowOptions, RowAttribute } from "./../ArkRowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts index 1409db2a3..6e17a213a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts index 499dcc028..dce061078 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { SaveButtonAttribute, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts index 60d53319f..52892bde3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { ScreenAttribute } from "./../ArkScreenInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts index 7b09cba9f..594e8d621 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ScrollBarAttribute, ScrollBarOptions } from "./../ArkScrollBarInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollBarOptions, ScrollBarAttribute } from "./../ArkScrollBarInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index 8e21ac480..5c9b6fc9e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { ScrollAttribute, ScrollDirection, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions } from "./../ArkScrollInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./../SyntheticDeclarations" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { BarState, Color, EdgeEffect } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute } from "./../ArkScrollInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -126,12 +142,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -143,12 +159,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -175,12 +191,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts index fefaa8fc7..e695a43a7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts @@ -20,25 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, TextDecorationOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { ResourceColor, Dimension, Font, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, TextDecorationOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, SearchOptions } from "./../ArkSearchInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./../ArkTextInputInterfaces" -import { CopyOptions, TextAlign, Color } from "./../ArkEnumsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -75,17 +91,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -145,17 +161,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -178,17 +194,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -290,17 +306,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -312,17 +328,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -340,17 +356,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -362,17 +378,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -438,12 +454,12 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index df0ca6fda..7d59ba3d2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -30,8 +30,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,7 +96,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -107,7 +106,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -119,12 +118,12 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -141,17 +140,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -168,17 +167,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -195,17 +194,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -228,17 +227,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts index 7fce86738..0749faca0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle, ContentModifier } from "./../ArkCommonInterfaces" -import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" -import { OptionWidthMode, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" import { ControlSize } from "./../ArkButtonInterfaces" import { DividerOptions } from "./../ArkTextPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -66,12 +82,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -83,12 +99,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -111,17 +127,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -138,17 +154,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -171,17 +187,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -198,17 +214,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -231,17 +247,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -290,17 +306,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts index 6791558f9..e2f2c6d35 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ViewportRect, ShapeAttribute } from "./../ArkShapeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -101,17 +117,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -123,12 +139,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -156,12 +172,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -173,17 +189,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -195,17 +211,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -217,12 +233,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts index bbe6106f8..f97558086 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" -import { Length, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { DividerStyle } from "./../ArkTabsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" +import { DividerStyle } from "./../ArkTabsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts index c05e9a65a..5c435bae7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions } from "./../ArkSliderInterfaces" -import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./../SyntheticDeclarations" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderOptions } from "./../ArkSliderInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -72,17 +88,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -94,7 +110,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -104,17 +120,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -137,17 +153,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -182,17 +198,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -212,17 +228,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -278,12 +294,12 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts index b66aa1586..ad7cd2aa5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions } from "./../ArkCommonInterfaces" -import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" -import { Font, ResourceColor, Length } from "./../ArkUnitsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +99,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -111,17 +127,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -133,17 +149,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -158,7 +174,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -168,7 +184,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -180,12 +196,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -203,12 +219,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts index 59e3e5cb6..aa037362f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { StackAttribute, StackOptions } from "./../ArkStackInterfaces" -import { Alignment } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { StackOptions, StackAttribute } from "./../ArkStackInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 1fc44f219..fc30c3190 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -20,14 +20,13 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts index 9ad19b202..48af59ebb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { StepperItemAttribute, ItemState } from "./../ArkStepperItemInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ItemState, StepperItemAttribute } from "./../ArkStepperItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts index 8360dc729..7695b0ff3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { StepperAttribute } from "./../ArkStepperInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./../SyntheticDeclarations" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts index 4a6caeb3a..4f8593878 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -20,26 +20,42 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SwiperAttribute, SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAutoFill } from "./../ArkSwiperInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./../ArkEnumsInterfaces" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./../ArkSwiperInterfaces" import { ICurve } from "./../ArkICurveMaterialized" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { Length } from "./../ArkUnitsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { SwiperController } from "./../ArkSwiperControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSwiperPeer extends ArkCommonMethodPeer { @@ -88,7 +104,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const value_1 = value as DigitIndicator thisSerializer.writeDigitIndicator(value_1) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as boolean thisSerializer.writeBoolean(value_2) @@ -115,12 +131,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -144,17 +160,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isCurve(value)))) { + if (TypeChecker.isCurve(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Curve thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as ICurve thisSerializer.writeICurve(value_2) @@ -220,12 +236,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ArrowStyle thisSerializer.writeArrowStyle(value_0) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as boolean thisSerializer.writeBoolean(value_1) @@ -244,17 +260,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as SwiperAutoFill thisSerializer.writeSwiperAutoFill(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index 4726bfb3a..333a397f1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { FontWeight, Color } from "./../ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +77,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -91,17 +107,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_element_0 = value_element as Color thisSerializer.writeInt32((value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) const value_element_1 = value_element as number thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2 as int32) const value_element_2 = value_element as string thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3 as int32) const value_element_3 = value_element as Resource thisSerializer.writeResource(value_element_3) @@ -114,7 +130,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -124,7 +140,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 583404555..a4afeec7b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { FontWeight, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,17 +82,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -95,17 +112,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_element_0 = value_element as Color thisSerializer.writeInt32((value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) const value_element_1 = value_element as number thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2 as int32) const value_element_2 = value_element as string thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3 as int32) const value_element_3 = value_element as Resource thisSerializer.writeResource(value_element_3) @@ -118,7 +135,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -128,7 +145,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts index 95b446322..3ee86af64 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -20,21 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder } from "./../ArkCommonInterfaces" -import { TabContentAttribute, TabBarOptions } from "./../ArkTabContentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TabBarOptions, TabContentAttribute } from "./../ArkTabContentInterfaces" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { VoidCallback } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { @@ -55,7 +73,7 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -65,7 +83,7 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const value_1 = value as Resource thisSerializer.writeResource(value_1) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_2)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts index c378f64bc..a6c04ee53 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./../ArkCommonInterfaces" -import { TabsAttribute, BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsOptions } from "./../ArkTabsInterfaces" -import { Length, ResourceColor } from "./../ArkUnitsInterfaces" -import { EdgeEffect, Color } from "./../ArkEnumsInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, TabsOptions } from "./../ArkTabsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -176,17 +192,17 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts index bbed3a44d..2c29c1541 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -20,26 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { TextAreaAttribute, TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { ResourceColor, Font, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { EnterKeyType } from "./../ArkTextInputInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, Color } from "./../ArkEnumsInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./../ArkTextAreaInterfaces" import { PasteEvent, KeyboardOptions } from "./../ArkRichEditorInterfaces" -import { Resource } from "./../ArkResourceInterfaces" -import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -76,17 +91,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -115,17 +130,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -142,17 +157,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -170,7 +185,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -180,7 +195,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -192,12 +207,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -226,17 +241,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -320,17 +335,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -342,17 +357,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -382,17 +397,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -410,17 +425,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -480,12 +495,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts index 9f30ee22b..d162d31b1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, ContentModifier } from "./../ArkCommonInterfaces" -import { TextClockAttribute, TextClockConfiguration, TextClockOptions } from "./../ArkTextClockInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontStyle, FontWeight, Color } from "./../ArkEnumsInterfaces" -import { DateTimeOptions } from "./../ArkTimePickerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" +import { DateTimeOptions } from "./../ArkTimePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -81,17 +97,17 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -109,7 +125,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -119,7 +135,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -131,12 +147,12 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts index 6b1797c17..b84cf37b7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -20,26 +20,42 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" -import { TextInputAttribute, InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./../ArkTextInputInterfaces" import { ContentType } from "./../ArkTextAreaInterfaces" -import { ResourceColor, Dimension, Font, Length, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./../ArkSearchInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -82,17 +98,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -130,17 +146,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -196,17 +212,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -224,7 +240,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -234,7 +250,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -246,12 +262,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -318,17 +334,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -357,12 +373,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string thisSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource thisSerializer.writeResource(value_value_1) @@ -389,7 +405,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if ((TypeChecker.isColor(value_value)) || (((RuntimeType.NUMBER == value_value_type))) || (((RuntimeType.STRING == value_value_type))) || (((RuntimeType.OBJECT == value_value_type)))) { + if ((TypeChecker.isColor(value_value)) || (RuntimeType.NUMBER == value_value_type) || (RuntimeType.STRING == value_value_type) || (RuntimeType.OBJECT == value_value_type)) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as ResourceColor let value_value_0_type : int32 = RuntimeType.UNDEFINED @@ -399,17 +415,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value_0_0 = value_value_0 as Color thisSerializer.writeInt32((value_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_value_0_type))) { + else if (RuntimeType.NUMBER == value_value_0_type) { thisSerializer.writeInt8(1 as int32) const value_value_0_1 = value_value_0 as number thisSerializer.writeNumber(value_value_0_1) } - else if (((RuntimeType.STRING == value_value_0_type))) { + else if (RuntimeType.STRING == value_value_0_type) { thisSerializer.writeInt8(2 as int32) const value_value_0_2 = value_value_0 as string thisSerializer.writeString(value_value_0_2) } - else if (((RuntimeType.OBJECT == value_value_0_type))) { + else if (RuntimeType.OBJECT == value_value_0_type) { thisSerializer.writeInt8(3 as int32) const value_value_0_3 = value_value_0 as Resource thisSerializer.writeResource(value_value_0_3) @@ -458,17 +474,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -480,17 +496,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -514,17 +530,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -536,17 +552,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -609,12 +625,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts index e2576114f..9a46cd181 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts @@ -20,26 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" -import { Font, ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" -import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./../SyntheticDeclarations" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./../SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./../ArkTextCommonInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,12 +79,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) @@ -113,17 +128,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -135,17 +150,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -157,17 +172,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -179,17 +194,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -201,12 +216,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -218,12 +233,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -238,7 +253,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -248,7 +263,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -260,7 +275,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let weight_type : int32 = RuntimeType.UNDEFINED weight_type = runtimeType(weight) - if (((RuntimeType.NUMBER == weight_type))) { + if (RuntimeType.NUMBER == weight_type) { thisSerializer.writeInt8(0 as int32) const weight_0 = weight as number thisSerializer.writeNumber(weight_0) @@ -270,7 +285,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const weight_1 = weight as FontWeight thisSerializer.writeInt32((weight_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == weight_type))) { + else if (RuntimeType.STRING == weight_type) { thisSerializer.writeInt8(2 as int32) const weight_2 = weight as string thisSerializer.writeString(weight_2) @@ -298,17 +313,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -326,12 +341,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -352,12 +367,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -372,12 +387,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -439,17 +454,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -466,17 +481,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts index e26e56e37..7ceb21574 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions } from "./../ArkTextPickerInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./../SyntheticDeclarations" -import { Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute } from "./../ArkTextPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,12 +82,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -121,12 +138,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Array thisSerializer.writeInt32(value_1.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts index 8d50a5dd6..a03cad4be 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, ContentModifier } from "./../ArkCommonInterfaces" -import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions } from "./../ArkTextTimerInterfaces" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontStyle, FontWeight, Color } from "./../ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -102,7 +118,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -112,7 +128,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -124,12 +140,12 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts index 8de3d6341..1b9c39452 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions } from "./../ArkTimePickerInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute } from "./../ArkTimePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts index fc786f68b..c390c418a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute } from "./../ArkToggleInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -77,17 +93,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -104,17 +120,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 9876cc0f9..adad52b8f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -20,22 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { UIExtensionComponentAttribute, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute } from "./../ArkUiExtensionComponentInterfaces" import { Want } from "./../ArkArkuiExternalInterfaces" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts index f1a8a99eb..b5d304afa 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { VideoAttribute, FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions } from "./../ArkVideoInterfaces" -import { ImageFit } from "./../ArkEnumsInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute } from "./../ArkVideoInterfaces" import { ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts index ef8bfe617..11bed3256 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -20,22 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions } from "./../ArkCommonInterfaces" -import { WaterFlowAttribute, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" -import { ConstraintSizeOptions, Length } from "./../ArkUnitsInterfaces" -import { FlexDirection } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" import { ScrollState } from "./../ArkListInterfaces" +import { WaterFlowAttribute, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,12 +114,12 @@ export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts index 7bed2fb0c..29dcb3a3c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts @@ -20,23 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, NestedScrollOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./../ArkWebInterfaces" -import { Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./../ArkWebInterfaces" import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { CopyOptions } from "./../ArkEnumsInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts index 1b5afd60f..831dfe099 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" -import { Position } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts index 90a09b7d2..e5ce6cbc8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -20,20 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { XComponentAttribute, OnNativeLoadCallback, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { Type_XComponentInterface_value } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Type_XComponentInterface_value } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions } from "./../ArkXcomponentInterfaces" import { XComponentController } from "./../ArkXComponentControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts index f55b0bd05..073c835bc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts @@ -14,7 +14,7 @@ */ import { KPointer } from "@koalaui/interop" -import { PeerNode } from "../PeerNode" +import { PeerNode } from "../../PeerNode" import { CustomBuilder } from "../ArkCommonInterfaces" import { CustomNodeBuilder } from "../SyntheticDeclarations" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 3817de406..40f9df871 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -22,48 +22,48 @@ import { CallbackKind } from "./CallbackKind" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, DragBehavior, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, CaretOffset, MeasureResult, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, Summary, LayoutSafeAreaEdge, LayoutSafeAreaType, SafeAreaEdge, SafeAreaType, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, Context, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperDisplayMode } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, TextRange, StyledStringChangeValue, TextMenuItem, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, PreviewText, DeleteValue, InsertValue, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleMode, NavBarPosition } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorAttribute, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorDeleteDirection, RichEditorSpanStyleOptions, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebKeyboardAvoidMode, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType, WebLayoutMode, WebDarkMode, OverScrollMode, CacheMode, MixedMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, TextInputStyle, PasswordIcon, EnterKeyType, TextInputOptions, InputType } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions, ScrollDirection } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollSnapAlign, ScrollState, ListDividerOptions, ListItemGroupArea, ChainEdgeEffect, CloseSwipeActionOptions, VisibleListContentInfo, ChainAnimationOptions, ListOptions, StickyStyle, ListItemAlign } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, ScrollableBarModeOptions, BarMode, TabContentAnimatedTransition, AnimationMode, BarPosition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ListItemGroupArea, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType, SlideEffect } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, CancelButtonStyle, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonOptions, SearchOptions, SearchType } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChangeMode, SlideRange, SliderBlockStyle, SliderOptions, SliderInteraction } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, DirectionalEdgesT, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, ImageSize, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HitTestMode, HeightBreakpoint, WidthBreakpoint, TextSelectableMode, MarqueeUpdateStrategy, EllipsisMode, CopyOptions, TextCase, RelateType, Week, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Union_Number_Resource_Void, Callback_PanelMode_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Callback_MouseEvent_Void, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_Number_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMeasureInfo, CustomSpanMetrics, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" +import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -81,11 +81,11 @@ import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" import { PlaybackSpeed, SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions } from "./../ArkVideoInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerDialogOptions, TimePickerOptions } from "./../ArkTimePickerInterfaces" import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" -import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" @@ -93,8 +93,8 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" -import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" +import { Scene, Component3DAttribute, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureInfo, GestureJudgeResult, GestureMask, GestureRecognizerState, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -107,14 +107,27 @@ import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" @@ -128,7 +141,6 @@ import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandle import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" @@ -138,26 +150,30 @@ import { ToggleType, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextResponseType, TextSpanType, TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { MenuAlignType, ArrowPosition, SelectOption } from "./../ArkSelectInterfaces" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { ScrollBarDirection, ScrollBarOptions } from "./../ArkScrollBarInterfaces" import { SaveDescription, SaveIconStyle, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -170,32 +186,28 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" -import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" -import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { CalendarDialogOptions, CalendarOptions, CalendarAlign } from "./../ArkCalendarPickerInterfaces" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" @@ -213,8 +225,6 @@ import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDi import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" @@ -222,16 +232,13 @@ import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDi import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { ItemState } from "./../ArkStepperItemInterfaces" import { LayoutDirection, ColorMode } from "./../ArkStateManagementInterfaces" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { PolylineOptions } from "./../ArkPolylineInterfaces" @@ -250,7 +257,6 @@ import { LineOptions } from "./../ArkLineInterfaces" import { DataOperationType } from "./../ArkLazyForEachInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" @@ -267,15 +273,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -287,6 +291,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" @@ -806,81 +811,87 @@ export class Deserializer extends DeserializerBase { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: GestureEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: GestureEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PopInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePopInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PopInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePopInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (state: SwipeActionState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((state.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: SwipeActionState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((state.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Void(isSync: boolean = false): (() => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parentNode: KPointer):KPointer => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(parentNode); -let _continuationValue : KPointer | undefined; -const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as KPointer); } + return (parentNode: KPointer):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } } readLocalizedEdgeColors(): LocalizedEdgeColors { let valueDeserializer : Deserializer = this @@ -1093,14 +1104,15 @@ return (_continuationValue as KPointer); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissPopupAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissPopupAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissPopupAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissPopupAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCanvasPattern(): CanvasPattern { let valueDeserializer : Deserializer = this @@ -1116,39 +1128,42 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavigationTransitionProxy(transitionProxy); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionProxy: NavigationTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readColorMetrics(): ColorMetrics { let valueDeserializer : Deserializer = this @@ -1328,17 +1343,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):number => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : number | undefined; -const _continuationCallback : ((index: number) => void) = (value: number):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as number); } + return (index: number):number => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : number | undefined; + const _continuationCallback : ((index: number) => void) = (value: number):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as number); } } readImageAnalyzerController(): ImageAnalyzerController { let valueDeserializer : Deserializer = this @@ -1370,14 +1386,15 @@ return (_continuationValue as number); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (breakpoints: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(breakpoints); -(isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (breakpoints: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(breakpoints); + (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer : Deserializer = this @@ -1389,14 +1406,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TimePickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTimePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TimePickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTimePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRectangle(): Rectangle { let valueDeserializer : Deserializer = this @@ -1651,33 +1669,41 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TextPickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextPickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TextPickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextPickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextMenuItemId(): TextMenuItemId { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextMenuItemIdInternal.fromPtr(ptr) } + readAffinity(): Affinity { + let valueDeserializer : Deserializer = this + const _AffinityStub_result : string = (valueDeserializer.readString() as string) + let value : Affinity = ({_AffinityStub: _AffinityStub_result} as Affinity) + return value + } readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: number, end: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabBarIconStyle(): TabBarIconStyle { let valueDeserializer : Deserializer = this @@ -1942,14 +1968,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TabContentTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTabContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TabContentTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTabContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIconOptions(): IconOptions { let valueDeserializer : Deserializer = this @@ -2230,31 +2257,33 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (rangeBefore: TextRange, rangeAfter: TextRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(rangeBefore); -_argsSerializer.writeTextRange(rangeAfter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (rangeBefore: TextRange, rangeAfter: TextRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(rangeBefore); + _argsSerializer.writeTextRange(rangeAfter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: StyledStringChangeValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeStyledStringChangeValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: StyledStringChangeValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeStyledStringChangeValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { let valueDeserializer : Deserializer = this @@ -2493,52 +2522,54 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: NavigationMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let from_type : int32 = RuntimeType.UNDEFINED; -from_type = runtimeType(from); -if (((RuntimeType.OBJECT == from_type))) { - _argsSerializer.writeInt8(0 as int32); - const from_0 = from as NavDestinationContext; - _argsSerializer.writeNavDestinationContext(from_0); -} -else if (((RuntimeType.STRING == from_type))) { - _argsSerializer.writeInt8(1 as int32); - const from_1 = from as NavBar; - _argsSerializer.writeString(from_1); -} -let to_type : int32 = RuntimeType.UNDEFINED; -to_type = runtimeType(to); -if (((RuntimeType.OBJECT == to_type))) { - _argsSerializer.writeInt8(0 as int32); - const to_0 = to as NavDestinationContext; - _argsSerializer.writeNavDestinationContext(to_0); -} -else if (((RuntimeType.STRING == to_type))) { - _argsSerializer.writeInt8(1 as int32); - const to_1 = to as NavBar; - _argsSerializer.writeString(to_1); -} -_argsSerializer.writeInt32((operation.valueOf() as int32)); -_argsSerializer.writeBoolean(isAnimated); -(isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let from_type : int32 = RuntimeType.UNDEFINED; + from_type = runtimeType(from); + if (RuntimeType.OBJECT == from_type) { + _argsSerializer.writeInt8(0 as int32); + const from_0 = from as NavDestinationContext; + _argsSerializer.writeNavDestinationContext(from_0); + } + else if (RuntimeType.STRING == from_type) { + _argsSerializer.writeInt8(1 as int32); + const from_1 = from as NavBar; + _argsSerializer.writeString(from_1); + } + let to_type : int32 = RuntimeType.UNDEFINED; + to_type = runtimeType(to); + if (RuntimeType.OBJECT == to_type) { + _argsSerializer.writeInt8(0 as int32); + const to_0 = to as NavDestinationContext; + _argsSerializer.writeNavDestinationContext(to_0); + } + else if (RuntimeType.STRING == to_type) { + _argsSerializer.writeInt8(1 as int32); + const to_1 = to as NavBar; + _argsSerializer.writeString(to_1); + } + _argsSerializer.writeInt32((operation.valueOf() as int32)); + _argsSerializer.writeBoolean(isAnimated); + (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextModifier(): TextModifier { let value : TextModifier = ({} as TextModifier) @@ -2735,27 +2766,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: Date):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt64((parameter.getTime() as int64)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Date):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt64((parameter.getTime() as int64)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: DatePickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDatePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: DatePickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDatePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLunarSwitchStyle(): LunarSwitchStyle { let valueDeserializer : Deserializer = this @@ -2858,79 +2891,85 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SheetType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((parameter.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SheetType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((parameter.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SpringBackAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSpringBackAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SpringBackAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSpringBackAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissSheetAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissSheetAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissSheetAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissSheetAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (sheetDismiss: SheetDismiss):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSheetDismiss(sheetDismiss); -(isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sheetDismiss: SheetDismiss):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSheetDismiss(sheetDismiss); + (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissContentCoverAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissContentCoverAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissContentCoverAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissContentCoverAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readContextMenuAnimationOptions(): ContextMenuAnimationOptions { let valueDeserializer : Deserializer = this @@ -2962,15 +3001,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: Literal_Boolean_isVisible):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const event_isVisible = event.isVisible; -_argsSerializer.writeBoolean(event_isVisible); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: Literal_Boolean_isVisible):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const event_isVisible = event.isVisible; + _argsSerializer.writeBoolean(event_isVisible); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPopupMessageOptions(): PopupMessageOptions { let valueDeserializer : Deserializer = this @@ -3385,14 +3425,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissDialogAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissDialogAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissDialogAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissDialogAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { let valueDeserializer : Deserializer = this @@ -3559,26 +3600,28 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: float32):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFloat32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: float32):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFloat32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomTheme(): CustomTheme { let valueDeserializer : Deserializer = this @@ -3716,15 +3759,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, progress: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, progress: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorStyle(): LinearIndicatorStyle { let valueDeserializer : Deserializer = this @@ -3800,6 +3844,19 @@ return; } let value : DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } + readCustomSpanMetrics(): CustomSpanMetrics { + let valueDeserializer : Deserializer = this + const width_result : number = (valueDeserializer.readNumber() as number) + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readNumber() as number) + } + const height_result : number | undefined = height_buf + let value : CustomSpanMetrics = ({width: width_result,height: height_result} as CustomSpanMetrics) + return value + } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { let valueDeserializer : Deserializer = this const fontSize_result : number = (valueDeserializer.readNumber() as number) @@ -3904,14 +3961,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: UIExtensionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeUIExtensionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: UIExtensionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeUIExtensionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readWaterFlowAttribute(): WaterFlowAttribute { + throw new Error("Interface with functions is not supported") } readWaterFlowSections(): WaterFlowSections { let valueDeserializer : Deserializer = this @@ -4186,6 +4247,12 @@ return; } let value : SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) return value } + readWindowSceneAttribute(): WindowSceneAttribute { + throw new Error("Interface with functions is not supported") + } + readWebAttribute(): WebAttribute { + throw new Error("Interface with functions is not supported") + } readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { let valueDeserializer : Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -4228,15 +4295,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectedText: Literal_String_plainText):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const selectedText_plainText = selectedText.plainText; -_argsSerializer.writeString(selectedText_plainText); -(isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedText: Literal_String_plainText):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const selectedText_plainText = selectedText.plainText; + _argsSerializer.writeString(selectedText_plainText); + (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEventResult(): EventResult { let valueDeserializer : Deserializer = this @@ -4449,6 +4517,11 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return JsGeolocationInternal.fromPtr(ptr) } + readWebCookie(): WebCookie { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return WebCookieInternal.fromPtr(ptr) + } readScreenCaptureConfig(): ScreenCaptureConfig { let valueDeserializer : Deserializer = this const captureMode_result : WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) @@ -4964,57 +5037,59 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Array; - _argsSerializer.writeInt32(value_1.length as int32); - for (let i = 0; i < value_1.length; i++) { - const value_1_element : string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Array; + _argsSerializer.writeInt32(value_1.length as int32); + for (let i = 0; i < value_1.length; i++) { + const value_1_element : string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selected: number | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type : int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0 as int32); - const selected_0 = selected as number; - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1 as int32); - const selected_1 = selected as Array; - _argsSerializer.writeInt32(selected_1.length as int32); - for (let i = 0; i < selected_1.length; i++) { - const selected_1_element : number = selected_1[i]; - _argsSerializer.writeNumber(selected_1_element); + return (selected: number | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type : int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0 as int32); + const selected_0 = selected as number; + _argsSerializer.writeNumber(selected_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1 as int32); + const selected_1 = selected as Array; + _argsSerializer.writeInt32(selected_1.length as int32); + for (let i = 0; i < selected_1.length; i++) { + const selected_1_element : number = selected_1[i]; + _argsSerializer.writeNumber(selected_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDividerOptions(): DividerOptions { let valueDeserializer : Deserializer = this @@ -5070,25 +5145,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: ResourceStr):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Resource; - _argsSerializer.writeResource(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ResourceStr):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Resource; + _argsSerializer.writeResource(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readTextInputAttribute(): TextInputAttribute { + throw new Error("Interface with functions is not supported") } readInputCounterOptions(): InputCounterOptions { let valueDeserializer : Deserializer = this @@ -5294,16 +5373,52 @@ return; } let value : TextMenuItem = ({content: content_result,icon: icon_result,id: id_result} as TextMenuItem) return value } + readLineMetrics(): LineMetrics { + let valueDeserializer : Deserializer = this + const _LineMetricsStub_result : string = (valueDeserializer.readString() as string) + let value : LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) + return value + } + readPositionWithAffinity(): PositionWithAffinity { + let valueDeserializer : Deserializer = this + const position_result : number = (valueDeserializer.readNumber() as number) + const affinity_result : Affinity = valueDeserializer.readAffinity() + let value : PositionWithAffinity = ({position: position_result,affinity: affinity_result} as PositionWithAffinity) + return value + } + readMutableStyledString(): MutableStyledString { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return MutableStyledStringInternal.fromPtr(ptr) + } + readPreviewText(): PreviewText { + let valueDeserializer : Deserializer = this + const offset_result : number = (valueDeserializer.readNumber() as number) + const value_result : string = (valueDeserializer.readString() as string) + let value : PreviewText = ({offset: offset_result,value: value_result} as PreviewText) + return value + } + readLayoutManager(): LayoutManager { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } readTextClockController(): TextClockController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextClockControllerInternal.fromPtr(ptr) } + readTextAreaAttribute(): TextAreaAttribute { + throw new Error("Interface with functions is not supported") + } readTextAreaController(): TextAreaController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextAreaControllerInternal.fromPtr(ptr) } + readTextAttribute(): TextAttribute { + throw new Error("Interface with functions is not supported") + } readSelectionMenuOptions(): SelectionMenuOptions { let valueDeserializer : Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5394,6 +5509,9 @@ return; } let value : TabBarOptions = ({icon: icon_result,text: text_result} as TabBarOptions) return value } + readTabsAttribute(): TabsAttribute { + throw new Error("Interface with functions is not supported") + } readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { let valueDeserializer : Deserializer = this const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5495,6 +5613,9 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return TabsControllerInternal.fromPtr(ptr) } + readSymbolGlyphAttribute(): SymbolGlyphAttribute { + throw new Error("Interface with functions is not supported") + } readSymbolEffect(): SymbolEffect { let value : SymbolEffect = ({} as SymbolEffect) return value @@ -5505,6 +5626,9 @@ return; } readDotIndicator(): DotIndicator { throw new Error("Can not deserialize builder class") } + readSwiperAttribute(): SwiperAttribute { + throw new Error("Interface with functions is not supported") + } readSwiperAutoFill(): SwiperAutoFill { let valueDeserializer : Deserializer = this const minSize_buf_selector : int32 = valueDeserializer.readInt8() @@ -5607,38 +5731,49 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SwiperContentTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSwiperContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SwiperContentTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSwiperContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSliderAttribute(): SliderAttribute { + throw new Error("Interface with functions is not supported") + } + readShapeAttribute(): ShapeAttribute { + throw new Error("Interface with functions is not supported") } readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selected: number | Resource):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type : int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0 as int32); - const selected_0 = selected as number; - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1 as int32); - const selected_1 = selected as Resource; - _argsSerializer.writeResource(selected_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selected: number | Resource):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type : int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0 as int32); + const selected_0 = selected as number; + _argsSerializer.writeNumber(selected_0); + } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1 as int32); + const selected_1 = selected as Resource; + _argsSerializer.writeResource(selected_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSelectAttribute(): SelectAttribute { + throw new Error("Interface with functions is not supported") } readLocalizedEdges(): LocalizedEdges { let valueDeserializer : Deserializer = this @@ -5706,6 +5841,9 @@ return; } let value : Edges = ({top: top_result,left: left_result,bottom: bottom_result,right: right_result} as Edges) return value } + readSearchAttribute(): SearchAttribute { + throw new Error("Interface with functions is not supported") + } readSearchButtonOptions(): SearchButtonOptions { let valueDeserializer : Deserializer = this const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5792,6 +5930,9 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return SearchControllerInternal.fromPtr(ptr) } + readScrollAttribute(): ScrollAttribute { + throw new Error("Interface with functions is not supported") + } readEdgeEffectOptions(): EdgeEffectOptions { let valueDeserializer : Deserializer = this const alwaysEnabled_result : boolean = valueDeserializer.readBoolean() @@ -5802,20 +5943,30 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource):OffsetResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -_argsSerializer.writeInt32((scrollSource.valueOf() as int32)); -let _continuationValue : OffsetResult | undefined; -const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OffsetResult); } + return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource):OffsetResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + _argsSerializer.writeInt32((scrollSource.valueOf() as int32)); + let _continuationValue : OffsetResult | undefined; + const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OffsetResult); } + } + readRectResult(): RectResult { + let valueDeserializer : Deserializer = this + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) + return value } readScrollToIndexOptions(): ScrollToIndexOptions { let valueDeserializer : Deserializer = this @@ -5829,6 +5980,13 @@ return (_continuationValue as OffsetResult); } let value : ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) return value } + readOffsetResult(): OffsetResult { + let valueDeserializer : Deserializer = this + const xOffset_result : number = (valueDeserializer.readNumber() as number) + const yOffset_result : number = (valueDeserializer.readNumber() as number) + let value : OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) + return value + } readScrollPageOptions(): ScrollPageOptions { let valueDeserializer : Deserializer = this const next_result : boolean = valueDeserializer.readBoolean() @@ -5911,6 +6069,9 @@ return (_continuationValue as OffsetResult); } let ptr : KPointer = valueDeserializer.readPointer() return RichEditorControllerInternal.fromPtr(ptr) } + readRichEditorAttribute(): RichEditorAttribute { + throw new Error("Interface with functions is not supported") + } readPlaceholderStyle(): PlaceholderStyle { let valueDeserializer : Deserializer = this const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6059,6 +6220,31 @@ return (_continuationValue as OffsetResult); } let value : RichEditorRange = ({start: start_result,end: end_result} as RichEditorRange) return value } + readRichEditorSelection(): RichEditorSelection { + let valueDeserializer : Deserializer = this + const selection_buf_value0 : number = (valueDeserializer.readNumber() as number) + const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) + const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) + const spans_buf_length : int32 = valueDeserializer.readInt32() + let spans_buf : Array = new Array() + for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() + let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined + if (spans_buf_buf_selector == 0) { + spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() + } + else { + throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") + } + spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) + } + const spans_result : Array = spans_buf + let value : RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) + return value + } readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { let valueDeserializer : Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6651,14 +6837,15 @@ return (_continuationValue as OffsetResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: PanelMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: PanelMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavContentInfo(): NavContentInfo { let valueDeserializer : Deserializer = this @@ -6744,6 +6931,9 @@ return; } let value : NavigationOptions = ({launchMode: launchMode_result,animated: animated_result} as NavigationOptions) return value } + readNavDestinationAttribute(): NavDestinationAttribute { + throw new Error("Interface with functions is not supported") + } readNavigationToolbarOptions(): NavigationToolbarOptions { let valueDeserializer : Deserializer = this const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6918,6 +7108,14 @@ return; } let value : SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } + readRouteMapConfig(): RouteMapConfig { + let valueDeserializer : Deserializer = this + const name_result : string = (valueDeserializer.readString() as string) + const pageSourceFile_result : string = (valueDeserializer.readString() as string) + const data_result : Object = (valueDeserializer.readCustomObject("Object") as Object) + let value : RouteMapConfig = ({name: name_result,pageSourceFile: pageSourceFile_result,data: data_result} as RouteMapConfig) + return value + } readMenuItemOptions(): MenuItemOptions { let valueDeserializer : Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7133,6 +7331,29 @@ return; } let value : ListDividerOptions = ({strokeWidth: strokeWidth_result,color: color_result,startMargin: startMargin_result,endMargin: endMargin_result} as ListDividerOptions) return value } + readListAttribute(): ListAttribute { + throw new Error("Interface with functions is not supported") + } + readVisibleListContentInfo(): VisibleListContentInfo { + let valueDeserializer : Deserializer = this + const index_result : number = (valueDeserializer.readNumber() as number) + const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemGroupArea_buf : ListItemGroupArea | undefined + if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) + } + const itemGroupArea_result : ListItemGroupArea | undefined = itemGroupArea_buf + const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemIndexInGroup_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) + } + const itemIndexInGroup_result : number | undefined = itemIndexInGroup_buf + let value : VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) + return value + } readCloseSwipeActionOptions(): CloseSwipeActionOptions { let valueDeserializer : Deserializer = this const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7180,37 +7401,52 @@ return; } let value : BreakPoints = ({value: value_result,reference: reference_result} as BreakPoints) return value } + readGridAttribute(): GridAttribute { + throw new Error("Interface with functions is not supported") + } readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):[ number, number, number, number ] => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : [ number, number, number, number ] | undefined; -const _continuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number, number, number ]); } + return (index: number):[ number, number, number, number ] => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : [ number, number, number, number ] | undefined; + const _continuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number, number, number ]); } } readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):[ number, number ] => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : [ number, number ] | undefined; -const _continuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number ]); } + return (index: number):[ number, number ] => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : [ number, number ] | undefined; + const _continuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number ]); } + } + readPanGestureOptions(): PanGestureOptions { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return PanGestureOptionsInternal.fromPtr(ptr) + } + readEventTargetInfo(): EventTargetInfo { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return EventTargetInfoInternal.fromPtr(ptr) } readWindowStatusType(): WindowStatusType { let valueDeserializer : Deserializer = this @@ -7571,6 +7807,15 @@ return (_continuationValue as [ number, number ]); } let value : AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } + readComponent3DAttribute(): Component3DAttribute { + throw new Error("Interface with functions is not supported") + } + readContext(): Context { + let valueDeserializer : Deserializer = this + const _ContextStub_result : string = (valueDeserializer.readString() as string) + let value : Context = ({_ContextStub: _ContextStub_result} as Context) + return value + } readUIGestureEvent(): UIGestureEvent { throw new Error("Interface with functions is not supported") } @@ -7578,15 +7823,16 @@ return (_continuationValue as [ number, number ]); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isExpanding: boolean, currentRatio: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isExpanding); -_argsSerializer.writeNumber(currentRatio); -(isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isExpanding: boolean, currentRatio: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isExpanding); + _argsSerializer.writeNumber(currentRatio); + (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer : Deserializer = this @@ -7610,82 +7856,88 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (oldValue: SizeOptions, newValue: SizeOptions):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSizeOptions(oldValue); -_argsSerializer.writeSizeOptions(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: SizeOptions, newValue: SizeOptions):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSizeOptions(oldValue); + _argsSerializer.writeSizeOptions(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: MouseEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeMouseEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: MouseEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeMouseEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readHoverCallback(isSync: boolean = false): HoverCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: KeyEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: KeyEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: TouchEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: TouchEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnMoveHandler(isSync: boolean = false): OnMoveHandler { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: number, to: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer : Deserializer = this @@ -7705,6 +7957,30 @@ return; } let value : RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } + readCaretOffset(): CaretOffset { + let valueDeserializer : Deserializer = this + const index_result : number = (valueDeserializer.readNumber() as number) + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + let value : CaretOffset = ({index: index_result,x: x_result,y: y_result} as CaretOffset) + return value + } + readDirectionalEdgesT(): DirectionalEdgesT { + let valueDeserializer : Deserializer = this + const start_result : number = (valueDeserializer.readNumber() as number) + const end_result : number = (valueDeserializer.readNumber() as number) + const top_result : number = (valueDeserializer.readNumber() as number) + const bottom_result : number = (valueDeserializer.readNumber() as number) + let value : DirectionalEdgesT = ({start: start_result,end: end_result,top: top_result,bottom: bottom_result} as DirectionalEdgesT) + return value + } + readMeasureResult(): MeasureResult { + let valueDeserializer : Deserializer = this + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : MeasureResult = ({width: width_result,height: height_result} as MeasureResult) + return value + } readConstraintSizeOptions(): ConstraintSizeOptions { let valueDeserializer : Deserializer = this const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7742,23 +8018,24 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array):GestureJudgeResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBaseGestureEvent(event); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(recognizers.length as int32); -for (let i = 0; i < recognizers.length; i++) { - const recognizers_element : GestureRecognizer = recognizers[i]; - _argsSerializer.writeGestureRecognizer(recognizers_element); -} -let _continuationValue : GestureJudgeResult | undefined; -const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array):GestureJudgeResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBaseGestureEvent(event); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(recognizers.length as int32); + for (let i = 0; i < recognizers.length; i++) { + const recognizers_element : GestureRecognizer = recognizers[i]; + _argsSerializer.writeGestureRecognizer(recognizers_element); + } + let _continuationValue : GestureJudgeResult | undefined; + const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readAccessibilityOptions(): AccessibilityOptions { let valueDeserializer : Deserializer = this @@ -9554,14 +9831,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (transitionIn: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(transitionIn); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionIn: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(transitionIn); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { let valueDeserializer : Deserializer = this @@ -9772,15 +10050,6 @@ return; } let value : DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } - readRectResult(): RectResult { - let valueDeserializer : Deserializer = this - const x_result : number = (valueDeserializer.readNumber() as number) - const y_result : number = (valueDeserializer.readNumber() as number) - const width_result : number = (valueDeserializer.readNumber() as number) - const height_result : number = (valueDeserializer.readNumber() as number) - let value : RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) - return value - } readDrawModifier(): DrawModifier { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -9792,11 +10061,32 @@ return; } let value : IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) return value } + readSummary(): Summary { + let valueDeserializer : Deserializer = this + const _SummaryStub_result : string = (valueDeserializer.readString() as string) + let value : Summary = ({_SummaryStub: _SummaryStub_result} as Summary) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return UnifiedDataInternal.fromPtr(ptr) } + readTouchObject(): TouchObject { + let valueDeserializer : Deserializer = this + const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) + const id_result : number = (valueDeserializer.readNumber() as number) + const displayX_result : number = (valueDeserializer.readNumber() as number) + const displayY_result : number = (valueDeserializer.readNumber() as number) + const windowX_result : number = (valueDeserializer.readNumber() as number) + const windowY_result : number = (valueDeserializer.readNumber() as number) + const screenX_result : number = (valueDeserializer.readNumber() as number) + const screenY_result : number = (valueDeserializer.readNumber() as number) + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + let value : TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + return value + } readColumnSplitDividerStyle(): ColumnSplitDividerStyle { let valueDeserializer : Deserializer = this const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9859,11 +10149,39 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return CanvasRenderingContext2DInternal.fromPtr(ptr) } + readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) + } + readRenderingContextSettings(): RenderingContextSettings { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) + } readImageBitmap(): ImageBitmap { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return ImageBitmapInternal.fromPtr(ptr) } + readTextMetrics(): TextMetrics { + let valueDeserializer : Deserializer = this + const actualBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxLeft_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxRight_result : number = (valueDeserializer.readNumber() as number) + const alphabeticBaseline_result : number = (valueDeserializer.readNumber() as number) + const emHeightAscent_result : number = (valueDeserializer.readNumber() as number) + const emHeightDescent_result : number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) + const hangingBaseline_result : number = (valueDeserializer.readNumber() as number) + const ideographicBaseline_result : number = (valueDeserializer.readNumber() as number) + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : TextMetrics = ({actualBoundingBoxAscent: actualBoundingBoxAscent_result,actualBoundingBoxDescent: actualBoundingBoxDescent_result,actualBoundingBoxLeft: actualBoundingBoxLeft_result,actualBoundingBoxRight: actualBoundingBoxRight_result,alphabeticBaseline: alphabeticBaseline_result,emHeightAscent: emHeightAscent_result,emHeightDescent: emHeightDescent_result,fontBoundingBoxAscent: fontBoundingBoxAscent_result,fontBoundingBoxDescent: fontBoundingBoxDescent_result,hangingBaseline: hangingBaseline_result,ideographicBaseline: ideographicBaseline_result,width: width_result,height: height_result} as TextMetrics) + return value + } readImageData(): ImageData { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -10030,6 +10348,9 @@ return; } let value : CalendarDialogOptions = ({hintRadius: hintRadius_result,selected: selected_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CalendarDialogOptions) return value } + readCalendarPickerAttribute(): CalendarPickerAttribute { + throw new Error("Interface with functions is not supported") + } readCalendarController(): CalendarController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -10189,6 +10510,9 @@ return; } let value : BadgeStyle = ({color: color_result,fontSize: fontSize_result,badgeSize: badgeSize_result,badgeColor: badgeColor_result,borderColor: borderColor_result,borderWidth: borderWidth_result,fontWeight: fontWeight_result} as BadgeStyle) return value } + readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { + throw new Error("Interface with functions is not supported") + } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer : Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12159,14 +12483,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSnapshotOptions(): SnapshotOptions { let valueDeserializer : Deserializer = this @@ -12191,29 +12516,31 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (result: PixelMap):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePixelMap(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: PixelMap):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePixelMap(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: int32, mark: KPointer, end: int32):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(index); -_argsSerializer.writePointer(mark); -_argsSerializer.writeInt32(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: int32, mark: KPointer, end: int32):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(index); + _argsSerializer.writePointer(mark); + _argsSerializer.writeInt32(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer : Deserializer = this @@ -12277,77 +12604,82 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (options: WithThemeOptions):WithThemeAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeOptions(options); -let _continuationValue : WithThemeAttribute | undefined; -const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WithThemeAttribute); } + return (options: WithThemeOptions):WithThemeAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeOptions(options); + let _continuationValue : WithThemeAttribute | undefined; + const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WithThemeAttribute); } } readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavContentInfo(from); -_argsSerializer.writeNavContentInfo(to); -_argsSerializer.writeInt32((operation.valueOf() as int32)); -let _continuationValue : NavigationAnimatedTransition | undefined; -const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as NavigationAnimatedTransition | undefined); } + return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavContentInfo(from); + _argsSerializer.writeNavContentInfo(to); + _argsSerializer.writeInt32((operation.valueOf() as int32)); + let _continuationValue : NavigationAnimatedTransition | undefined; + const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as NavigationAnimatedTransition | undefined); } } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (type: RouteType, progress: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((type.valueOf() as int32)); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (type: RouteType, progress: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((type.valueOf() as int32)); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollCallback(isSync: boolean = false): OnScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (scrollOffset: number, scrollState: ScrollState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(scrollOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (scrollOffset: number, scrollState: ScrollState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(scrollOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedOptions(): IsolatedOptions { let valueDeserializer : Deserializer = this @@ -12360,17 +12692,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (options: IsolatedOptions):IsolatedComponentAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedOptions(options); -let _continuationValue : IsolatedComponentAttribute | undefined; -const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as IsolatedComponentAttribute); } + return (options: IsolatedOptions):IsolatedComponentAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedOptions(options); + let _continuationValue : IsolatedComponentAttribute | undefined; + const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as IsolatedComponentAttribute); } } readWithThemeAttribute(): WithThemeAttribute { let value : WithThemeAttribute = ({} as WithThemeAttribute) @@ -12380,297 +12713,315 @@ return (_continuationValue as IsolatedComponentAttribute); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WithThemeAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WithThemeAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WebResourceResponse):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceResponse(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebResourceResponse):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceResponse(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WebKeyboardOptions):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardOptions(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebKeyboardOptions):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardOptions(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CustomBuilder | DragItemInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.FUNCTION == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as CustomBuilder; - _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as DragItemInfo; - _argsSerializer.writeDragItemInfo(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder | DragItemInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.FUNCTION == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as CustomBuilder; + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as DragItemInfo; + _argsSerializer.writeDragItemInfo(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: [ number, number ]):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -(isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number ]):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: [ number, number, number, number ]):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -const value_2 = value[2]; -_argsSerializer.writeNumber(value_2); -const value_3 = value[3]; -_argsSerializer.writeNumber(value_3); -(isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number, number, number ]):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + const value_2 = value[2]; + _argsSerializer.writeNumber(value_2); + const value_3 = value[3]; + _argsSerializer.writeNumber(value_3); + (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TouchResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TouchResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string,param: object) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (name: string, param: object):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(name); -_argsSerializer.writeCustomObject("Any", param); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (name: string, param: object):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(name); + _argsSerializer.writeCustomObject("Any", param); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: KPointer):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: KPointer):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: TabContentAnimatedTransition | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeTabContentAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: TabContentAnimatedTransition | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeTabContentAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined,error?: Array | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: StyledString | undefined, error?: Array | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeStyledString(value_value); -} -let error_type : int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type as int32); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length as int32); - for (let i = 0; i < error_value.length; i++) { - const error_value_element : string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: StyledString | undefined, error?: Array | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeStyledString(value_value); + } + let error_type : int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type as int32); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length as int32); + for (let i = 0; i < error_value.length; i++) { + const error_value_element : string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeNavigationAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: NavigationAnimatedTransition | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeNavigationAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (error?: Array | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let error_type : int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type as int32); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length as int32); - for (let i = 0; i < error_value.length; i++) { - const error_value_element : string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error?: Array | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let error_type : int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type as int32); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length as int32); + for (let i = 0; i < error_value.length; i++) { + const error_value_element : string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: OnScrollFrameBeginHandlerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollFrameBeginHandlerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OnScrollFrameBeginHandlerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: OffsetResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOffsetResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OffsetResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOffsetResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (titleMode: NavigationTitleMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((titleMode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (titleMode: NavigationTitleMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((titleMode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: NavigationMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: Literal_Number_offsetRemain) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Literal_Number_offsetRemain):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_offsetRemain = value.offsetRemain; -_argsSerializer.writeNumber(value_offsetRemain); -(isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Literal_Number_offsetRemain):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_offsetRemain = value.offsetRemain; + _argsSerializer.writeNumber(value_offsetRemain); + (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedComponentAttribute(): IsolatedComponentAttribute { throw new Error("Interface with functions is not supported") @@ -12679,110 +13030,118 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: IsolatedComponentAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedComponentAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: IsolatedComponentAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedComponentAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: HitTestMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((value.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: HitTestMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((value.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: GestureRecognizer):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureRecognizer):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: GestureJudgeResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((value.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureJudgeResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((value.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CustomBuilder):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: ComputedBarAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeComputedBarAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ComputedBarAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeComputedBarAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length as int32); -for (let i = 0; i < value.length; i++) { - const value_element : string = value[i]; - _argsSerializer.writeString(value_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length as int32); + for (let i = 0; i < value.length; i++) { + const value_element : string = value[i]; + _argsSerializer.writeString(value_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xPos: number, yPos: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xPos); -_argsSerializer.writeNumber(yPos); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (xPos: number, yPos: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xPos); + _argsSerializer.writeNumber(yPos); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorController(): LinearIndicatorController { let valueDeserializer : Deserializer = this @@ -12823,11 +13182,6 @@ return; } let value : ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readMutableStyledString(): MutableStyledString { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return MutableStyledStringInternal.fromPtr(ptr) - } readUrlStyle(): UrlStyle { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -13062,23 +13416,24 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: Literal_Number_code_Want_want):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const parameter_code = parameter.code; -_argsSerializer.writeNumber(parameter_code); -const parameter_want = parameter.want; -let parameter_want_type : int32 = RuntimeType.UNDEFINED; -parameter_want_type = runtimeType(parameter_want); -_argsSerializer.writeInt8(parameter_want_type as int32); -if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { - const parameter_want_value = parameter_want!; - _argsSerializer.writeWant(parameter_want_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Literal_Number_code_Want_want):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const parameter_code = parameter.code; + _argsSerializer.writeNumber(parameter_code); + const parameter_want = parameter.want; + let parameter_want_type : int32 = RuntimeType.UNDEFINED; + parameter_want_type = runtimeType(parameter_want); + _argsSerializer.writeInt8(parameter_want_type as int32); + if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { + const parameter_want_value = parameter_want!; + _argsSerializer.writeWant(parameter_want_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer : Deserializer = this @@ -13218,20 +13573,21 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Object | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeCustomObject("Object", event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Object | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeCustomObject("Object", event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readXComponentOptions(): XComponentOptions { let valueDeserializer : Deserializer = this @@ -13263,14 +13619,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (details: AdsBlockedDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeAdsBlockedDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: AdsBlockedDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeAdsBlockedDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebKeyboardOptions(): WebKeyboardOptions { let valueDeserializer : Deserializer = this @@ -13311,30 +13668,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (keyboardCallbackInfo: WebKeyboardCallbackInfo):WebKeyboardOptions => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); -let _continuationValue : WebKeyboardOptions | undefined; -const _continuationCallback : ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebKeyboardOptions); } + return (keyboardCallbackInfo: WebKeyboardCallbackInfo):WebKeyboardOptions => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); + let _continuationValue : WebKeyboardOptions | undefined; + const _continuationCallback : ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebKeyboardOptions); } } readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (viewportFit: ViewportFit):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((viewportFit.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (viewportFit: ViewportFit):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((viewportFit.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readExpandedMenuItemOptions(): ExpandedMenuItemOptions { let valueDeserializer : Deserializer = this @@ -13376,13 +13735,14 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { let valueDeserializer : Deserializer = this @@ -13396,14 +13756,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (data: RenderProcessNotRespondingData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRenderProcessNotRespondingData(data); -(isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (data: RenderProcessNotRespondingData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRenderProcessNotRespondingData(data); + (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { let valueDeserializer : Deserializer = this @@ -13416,17 +13777,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (webResourceRequest: WebResourceRequest):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceRequest(webResourceRequest); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (webResourceRequest: WebResourceRequest):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceRequest(webResourceRequest); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { let valueDeserializer : Deserializer = this @@ -13458,14 +13820,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: NativeEmbedTouchInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedTouchInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedTouchInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedTouchInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { let valueDeserializer : Deserializer = this @@ -13478,14 +13841,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedDataInfo(): NativeEmbedDataInfo { let valueDeserializer : Deserializer = this @@ -13524,14 +13888,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: NativeEmbedDataInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedDataInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedDataInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedDataInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readScriptItem(): ScriptItem { let valueDeserializer : Deserializer = this @@ -13556,14 +13921,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (details: IntelligentTrackingPreventionDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIntelligentTrackingPreventionDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: IntelligentTrackingPreventionDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIntelligentTrackingPreventionDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLoadCommittedDetails(): LoadCommittedDetails { let valueDeserializer : Deserializer = this @@ -13579,27 +13945,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (loadCommittedDetails: LoadCommittedDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); -(isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (loadCommittedDetails: LoadCommittedDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); + (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (threatType: ThreatType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((threatType.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (threatType: ThreatType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((threatType.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnOverScrollEvent(): OnOverScrollEvent { let valueDeserializer : Deserializer = this @@ -13612,14 +13980,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnOverScrollEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnOverScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnOverScrollEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnOverScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnLoadInterceptEvent(): OnLoadInterceptEvent { let valueDeserializer : Deserializer = this @@ -13631,17 +14000,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnLoadInterceptEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnLoadInterceptEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnLoadInterceptEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnLoadInterceptEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readLargestContentfulPaint(): LargestContentfulPaint { let valueDeserializer : Deserializer = this @@ -13694,14 +14064,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (largestContentfulPaint: LargestContentfulPaint):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (largestContentfulPaint: LargestContentfulPaint):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFirstMeaningfulPaint(): FirstMeaningfulPaint { let valueDeserializer : Deserializer = this @@ -13726,14 +14097,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (firstMeaningfulPaint: FirstMeaningfulPaint):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (firstMeaningfulPaint: FirstMeaningfulPaint):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { let valueDeserializer : Deserializer = this @@ -13746,14 +14118,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnFirstContentfulPaintEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFirstContentfulPaintEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFirstContentfulPaintEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { let valueDeserializer : Deserializer = this @@ -13765,14 +14138,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnAudioStateChangedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAudioStateChangedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnAudioStateChangedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAudioStateChangedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDataResubmittedEvent(): OnDataResubmittedEvent { let valueDeserializer : Deserializer = this @@ -13784,14 +14158,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnDataResubmittedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDataResubmittedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDataResubmittedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDataResubmittedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageVisibleEvent(): OnPageVisibleEvent { let valueDeserializer : Deserializer = this @@ -13803,14 +14178,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageVisibleEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageVisibleEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageVisibleEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageVisibleEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { let valueDeserializer : Deserializer = this @@ -13822,14 +14198,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnFaviconReceivedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFaviconReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFaviconReceivedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFaviconReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { let valueDeserializer : Deserializer = this @@ -13842,14 +14219,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnTouchIconUrlReceivedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTouchIconUrlReceivedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnWindowNewEvent(): OnWindowNewEvent { let valueDeserializer : Deserializer = this @@ -13864,14 +14242,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnWindowNewEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnWindowNewEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnWindowNewEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnWindowNewEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { let valueDeserializer : Deserializer = this @@ -13897,14 +14276,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnClientAuthenticationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnClientAuthenticationEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnClientAuthenticationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnClientAuthenticationEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSslErrorEvent(): SslErrorEvent { let valueDeserializer : Deserializer = this @@ -13922,14 +14302,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (sslErrorEvent: SslErrorEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSslErrorEvent(sslErrorEvent); -(isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sslErrorEvent: SslErrorEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSslErrorEvent(sslErrorEvent); + (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { let valueDeserializer : Deserializer = this @@ -13954,14 +14335,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnSslErrorEventReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSslErrorEventReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollEvent(): OnScrollEvent { let valueDeserializer : Deserializer = this @@ -13974,14 +14356,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScrollEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScrollEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { let valueDeserializer : Deserializer = this @@ -13995,26 +14378,28 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnSearchResultReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSearchResultReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSearchResultReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSearchResultReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuShowEvent(): OnContextMenuShowEvent { let valueDeserializer : Deserializer = this @@ -14027,17 +14412,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnContextMenuShowEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnContextMenuShowEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnContextMenuShowEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnContextMenuShowEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { let valueDeserializer : Deserializer = this @@ -14049,14 +14435,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScreenCaptureRequestEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScreenCaptureRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScreenCaptureRequestEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPermissionRequestEvent(): OnPermissionRequestEvent { let valueDeserializer : Deserializer = this @@ -14068,14 +14455,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPermissionRequestEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPermissionRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPermissionRequestEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPermissionRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnInterceptRequestEvent(): OnInterceptRequestEvent { let valueDeserializer : Deserializer = this @@ -14087,17 +14475,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnInterceptRequestEvent):WebResourceResponse => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnInterceptRequestEvent(parameter); -let _continuationValue : WebResourceResponse | undefined; -const _continuationCallback : ((value: WebResourceResponse) => void) = (value: WebResourceResponse):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebResourceResponse); } + return (parameter: OnInterceptRequestEvent):WebResourceResponse => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnInterceptRequestEvent(parameter); + let _continuationValue : WebResourceResponse | undefined; + const _continuationCallback : ((value: WebResourceResponse) => void) = (value: WebResourceResponse):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebResourceResponse); } } readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { let valueDeserializer : Deserializer = this @@ -14111,17 +14500,18 @@ return (_continuationValue as WebResourceResponse); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnHttpAuthRequestEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpAuthRequestEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnHttpAuthRequestEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpAuthRequestEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScaleChangeEvent(): OnScaleChangeEvent { let valueDeserializer : Deserializer = this @@ -14134,14 +14524,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScaleChangeEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScaleChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScaleChangeEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScaleChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullScreenEnterEvent(): FullScreenEnterEvent { let valueDeserializer : Deserializer = this @@ -14167,14 +14558,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: FullScreenEnterEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullScreenEnterEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: FullScreenEnterEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullScreenEnterEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnResourceLoadEvent(): OnResourceLoadEvent { let valueDeserializer : Deserializer = this @@ -14186,59 +14578,62 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnResourceLoadEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnResourceLoadEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnResourceLoadEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnResourceLoadEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: Literal_Function_callback__Object_fileSelector) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Function_callback__Object_fileSelector | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_callback_ = event_value.callback_; - _argsSerializer.writeFunction(event_value_callback_); - const event_value_fileSelector = event_value.fileSelector; - _argsSerializer.writeCustomObject("Object", event_value_fileSelector); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Literal_Function_callback__Object_fileSelector | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_callback_ = event_value.callback_; + _argsSerializer.writeFunction(event_value_callback_); + const event_value_fileSelector = event_value.fileSelector; + _argsSerializer.writeCustomObject("Object", event_value_fileSelector); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: Literal_Object_detail) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Object_detail | undefined):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_detail = event_value.detail; - _argsSerializer.writeCustomObject("Object", event_value_detail); -} -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: Literal_Object_detail | undefined):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_detail = event_value.detail; + _argsSerializer.writeCustomObject("Object", event_value_detail); + } + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { let valueDeserializer : Deserializer = this @@ -14251,17 +14646,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnShowFileSelectorEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnShowFileSelectorEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnShowFileSelectorEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnShowFileSelectorEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRenderExitedEvent(): OnRenderExitedEvent { let valueDeserializer : Deserializer = this @@ -14273,70 +14669,73 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnRenderExitedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRenderExitedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRenderExitedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRenderExitedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: Literal_Function_handler_Object_error) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Function_handler_Object_error | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_handler = event_value.handler; - _argsSerializer.writeFunction(event_value_handler); - const event_value_error = event_value.error; - _argsSerializer.writeCustomObject("Object", event_value_error); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Literal_Function_handler_Object_error | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_handler = event_value.handler; + _argsSerializer.writeFunction(event_value_handler); + const event_value_error = event_value.error; + _argsSerializer.writeCustomObject("Object", event_value_error); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: Literal_Union_String_WebResourceRequest_data) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Union_String_WebResourceRequest_data | undefined):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_data = event_value.data; - let event_value_data_type : int32 = RuntimeType.UNDEFINED; - event_value_data_type = runtimeType(event_value_data); - if (((RuntimeType.STRING == event_value_data_type))) { - _argsSerializer.writeInt8(0 as int32); - const event_value_data_0 = event_value_data as string; - _argsSerializer.writeString(event_value_data_0); - } - else if (((RuntimeType.OBJECT == event_value_data_type))) { - _argsSerializer.writeInt8(1 as int32); - const event_value_data_1 = event_value_data as WebResourceRequest; - _argsSerializer.writeWebResourceRequest(event_value_data_1); - } -} -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: Literal_Union_String_WebResourceRequest_data | undefined):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_data = event_value.data; + let event_value_data_type : int32 = RuntimeType.UNDEFINED; + event_value_data_type = runtimeType(event_value_data); + if (RuntimeType.STRING == event_value_data_type) { + _argsSerializer.writeInt8(0 as int32); + const event_value_data_0 = event_value_data as string; + _argsSerializer.writeString(event_value_data_0); + } + else if (RuntimeType.OBJECT == event_value_data_type) { + _argsSerializer.writeInt8(1 as int32); + const event_value_data_1 = event_value_data as WebResourceRequest; + _argsSerializer.writeWebResourceRequest(event_value_data_1); + } + } + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { let valueDeserializer : Deserializer = this @@ -14349,14 +14748,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnRefreshAccessedHistoryEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRefreshAccessedHistoryEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDownloadStartEvent(): OnDownloadStartEvent { let valueDeserializer : Deserializer = this @@ -14372,14 +14772,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnDownloadStartEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDownloadStartEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDownloadStartEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDownloadStartEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { let valueDeserializer : Deserializer = this @@ -14392,14 +14793,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnHttpErrorReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnHttpErrorReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnErrorReceiveEvent(): OnErrorReceiveEvent { let valueDeserializer : Deserializer = this @@ -14412,14 +14814,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnErrorReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnErrorReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnConsoleEvent(): OnConsoleEvent { let valueDeserializer : Deserializer = this @@ -14431,17 +14834,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnConsoleEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConsoleEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConsoleEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConsoleEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnPromptEvent(): OnPromptEvent { let valueDeserializer : Deserializer = this @@ -14456,17 +14860,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPromptEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPromptEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnPromptEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPromptEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnConfirmEvent(): OnConfirmEvent { let valueDeserializer : Deserializer = this @@ -14480,17 +14885,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnConfirmEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConfirmEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConfirmEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConfirmEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { let valueDeserializer : Deserializer = this @@ -14504,17 +14910,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnBeforeUnloadEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnBeforeUnloadEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnBeforeUnloadEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnBeforeUnloadEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnAlertEvent(): OnAlertEvent { let valueDeserializer : Deserializer = this @@ -14528,17 +14935,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnAlertEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAlertEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnAlertEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAlertEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnGeolocationShowEvent(): OnGeolocationShowEvent { let valueDeserializer : Deserializer = this @@ -14551,14 +14959,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnGeolocationShowEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnGeolocationShowEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnGeolocationShowEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnGeolocationShowEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTitleReceiveEvent(): OnTitleReceiveEvent { let valueDeserializer : Deserializer = this @@ -14570,14 +14979,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnTitleReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTitleReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTitleReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTitleReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnProgressChangeEvent(): OnProgressChangeEvent { let valueDeserializer : Deserializer = this @@ -14589,14 +14999,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnProgressChangeEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnProgressChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnProgressChangeEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnProgressChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageBeginEvent(): OnPageBeginEvent { let valueDeserializer : Deserializer = this @@ -14608,14 +15019,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageBeginEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageBeginEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageBeginEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageBeginEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageEndEvent(): OnPageEndEvent { let valueDeserializer : Deserializer = this @@ -14627,14 +15039,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageEndEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageEndEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageEndEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageEndEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebMediaOptions(): WebMediaOptions { let valueDeserializer : Deserializer = this @@ -14749,11 +15162,6 @@ return; } let value : WebOptions = ({src: src_result,controller: controller_result,renderMode: renderMode_result,incognitoMode: incognitoMode_result,sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) return value } - readWebCookie(): WebCookie { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return WebCookieInternal.fromPtr(ptr) - } readHeader(): Header { let valueDeserializer : Deserializer = this const headerKey_result : string = (valueDeserializer.readString() as string) @@ -14771,14 +15179,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PlaybackInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePlaybackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PlaybackInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePlaybackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPreparedInfo(): PreparedInfo { let valueDeserializer : Deserializer = this @@ -14790,14 +15199,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PreparedInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePreparedInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreparedInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePreparedInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullscreenInfo(): FullscreenInfo { let valueDeserializer : Deserializer = this @@ -14809,14 +15219,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: FullscreenInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullscreenInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FullscreenInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullscreenInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVideoOptions(): VideoOptions { let valueDeserializer : Deserializer = this @@ -15105,59 +15516,61 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string | Array, index: number | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Array; - _argsSerializer.writeInt32(value_1.length as int32); - for (let i = 0; i < value_1.length; i++) { - const value_1_element : string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array, index: number | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); } -} -let index_type : int32 = RuntimeType.UNDEFINED; -index_type = runtimeType(index); -if (((RuntimeType.NUMBER == index_type))) { - _argsSerializer.writeInt8(0 as int32); - const index_0 = index as number; - _argsSerializer.writeNumber(index_0); -} -else if (((RuntimeType.OBJECT == index_type))) { - _argsSerializer.writeInt8(1 as int32); - const index_1 = index as Array; - _argsSerializer.writeInt32(index_1.length as int32); - for (let i = 0; i < index_1.length; i++) { - const index_1_element : number = index_1[i]; - _argsSerializer.writeNumber(index_1_element); + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Array; + _argsSerializer.writeInt32(value_1.length as int32); + for (let i = 0; i < value_1.length; i++) { + const value_1_element : string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + let index_type : int32 = RuntimeType.UNDEFINED; + index_type = runtimeType(index); + if (RuntimeType.NUMBER == index_type) { + _argsSerializer.writeInt8(0 as int32); + const index_0 = index as number; + _argsSerializer.writeNumber(index_0); + } + else if (RuntimeType.OBJECT == index_type) { + _argsSerializer.writeInt8(1 as int32); + const index_1 = index as Array; + _argsSerializer.writeInt32(index_1.length as int32); + for (let i = 0; i < index_1.length; i++) { + const index_1_element : number = index_1[i]; + _argsSerializer.writeNumber(index_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Number_Void(isSync: boolean = false): ((value: string,index: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { let valueDeserializer : Deserializer = this @@ -15365,15 +15778,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextInputOptions(): TextInputOptions { let valueDeserializer : Deserializer = this @@ -15423,10 +15837,11 @@ return; } let value : TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } - readLayoutManager(): LayoutManager { + readTextBox(): TextBox { let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutManagerInternal.fromPtr(ptr) + const _TextBoxStub_result : string = (valueDeserializer.readString() as string) + let value : TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) + return value } readStyledStringController(): StyledStringController { let valueDeserializer : Deserializer = this @@ -15466,48 +15881,51 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, event: PasteEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, event: PasteEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKeyType.valueOf() as int32)); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKeyType.valueOf() as int32)); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaOptions(): TextAreaOptions { let valueDeserializer : Deserializer = this @@ -15573,18 +15991,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (currentIndex: number, comingIndex: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(currentIndex); -_argsSerializer.writeNumber(comingIndex); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (currentIndex: number, comingIndex: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(currentIndex); + _argsSerializer.writeNumber(comingIndex); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTabContentTransitionProxy(): TabContentTransitionProxy { let valueDeserializer : Deserializer = this @@ -15595,18 +16014,19 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):TabContentAnimatedTransition | undefined => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue : TabContentAnimatedTransition | undefined; -const _continuationCallback : ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TabContentAnimatedTransition | undefined); } + return (from: number, to: number):TabContentAnimatedTransition | undefined => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue : TabContentAnimatedTransition | undefined; + const _continuationCallback : ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TabContentAnimatedTransition | undefined); } } readBarGridColumnOptions(): BarGridColumnOptions { let valueDeserializer : Deserializer = this @@ -15652,29 +16072,31 @@ return (_continuationValue as TabContentAnimatedTransition | undefined); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsAnimationEvent(): TabsAnimationEvent { let valueDeserializer : Deserializer = this @@ -15688,16 +16110,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsOptions(): TabsOptions { let valueDeserializer : Deserializer = this @@ -15759,17 +16182,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectedIndex: number, index: number, position: number, mainAxisLength: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectedIndex); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(position); -_argsSerializer.writeNumber(mainAxisLength); -(isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedIndex: number, index: number, position: number, mainAxisLength: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectedIndex); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(position); + _argsSerializer.writeNumber(mainAxisLength); + (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { let valueDeserializer : Deserializer = this @@ -15793,29 +16217,31 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperAnimationEvent(): SwiperAnimationEvent { let valueDeserializer : Deserializer = this @@ -15829,16 +16255,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIndicatorComponentController(): IndicatorComponentController { let valueDeserializer : Deserializer = this @@ -15916,15 +16343,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSliderOptions(): SliderOptions { let valueDeserializer : Deserializer = this @@ -16061,15 +16489,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, value: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, value: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSelectOption(): SelectOption { let valueDeserializer : Deserializer = this @@ -16117,14 +16546,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DeleteValue):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DeleteValue):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDeleteValue(): DeleteValue { let valueDeserializer : Deserializer = this @@ -16138,30 +16568,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DeleteValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: DeleteValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: InsertValue):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: InsertValue):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInsertValue(): InsertValue { let valueDeserializer : Deserializer = this @@ -16174,17 +16606,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: InsertValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: InsertValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTextDecorationOptions(): TextDecorationOptions { let valueDeserializer : Deserializer = this @@ -16227,90 +16660,88 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (content: string, event: PasteEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(content); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (content: string, event: PasteEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(content); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (totalOffsetX: number, totalOffsetY: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(totalOffsetX); -_argsSerializer.writeNumber(totalOffsetY); -(isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (totalOffsetX: number, totalOffsetY: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(totalOffsetX); + _argsSerializer.writeNumber(totalOffsetY); + (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectionStart: number, selectionEnd: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectionStart); -_argsSerializer.writeNumber(selectionEnd); -(isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readPreviewText(): PreviewText { - let valueDeserializer : Deserializer = this - const offset_result : number = (valueDeserializer.readNumber() as number) - const value_result : string = (valueDeserializer.readString() as string) - let value : PreviewText = ({offset: offset_result,value: value_result} as PreviewText) - return value + return (selectionStart: number, selectionEnd: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectionStart); + _argsSerializer.writeNumber(selectionEnd); + (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, previewText?: PreviewText | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -let previewText_type : int32 = RuntimeType.UNDEFINED; -previewText_type = runtimeType(previewText); -_argsSerializer.writeInt8(previewText_type as int32); -if ((RuntimeType.UNDEFINED) != (previewText_type)) { - const previewText_value = previewText!; - _argsSerializer.writePreviewText(previewText_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, previewText?: PreviewText | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + let previewText_type : int32 = RuntimeType.UNDEFINED; + previewText_type = runtimeType(previewText); + _argsSerializer.writeInt8(previewText_type as int32); + if ((RuntimeType.UNDEFINED) != (previewText_type)) { + const previewText_value = previewText!; + _argsSerializer.writePreviewText(previewText_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (searchContent: string, event?: SubmitEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(searchContent); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (searchContent: string, event?: SubmitEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(searchContent); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCaretStyle(): CaretStyle { let valueDeserializer : Deserializer = this @@ -16484,45 +16915,48 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32((state.valueOf() as int32)); -let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; -const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OnScrollFrameBeginHandlerResult); } + return (offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32((state.valueOf() as int32)); + let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; + const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OnScrollFrameBeginHandlerResult); } } readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (side: Edge):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((side.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (side: Edge):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((side.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent,result: SaveButtonOnClickResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: SaveButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: SaveButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSaveButtonOptions(): SaveButtonOptions { let valueDeserializer : Deserializer = this @@ -16610,14 +17044,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: CopyEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCopyEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CopyEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCopyEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCutEvent(): CutEvent { let valueDeserializer : Deserializer = this @@ -16635,14 +17070,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: CutEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCutEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CutEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCutEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorChangeValue(): RichEditorChangeValue { let valueDeserializer : Deserializer = this @@ -16672,17 +17108,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorChangeValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorChangeValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorChangeValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorChangeValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readSubmitEvent(): SubmitEvent { let valueDeserializer : Deserializer = this @@ -16693,15 +17130,16 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer : Deserializer = this @@ -16768,20 +17206,21 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: PasteEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writePasteEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: PasteEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writePasteEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorDeleteValue(): RichEditorDeleteValue { let valueDeserializer : Deserializer = this @@ -16812,43 +17251,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorDeleteValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorDeleteValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorDeleteValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorDeleteValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TextRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TextRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorTextSpanResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorTextSpanResult(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorTextSpanResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorTextSpanResult(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorInsertValue(): RichEditorInsertValue { let valueDeserializer : Deserializer = this @@ -16868,68 +17310,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorInsertValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorInsertValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorInsertValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorInsertValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readRichEditorSelection(): RichEditorSelection { - let valueDeserializer : Deserializer = this - const selection_buf_value0 : number = (valueDeserializer.readNumber() as number) - const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) - const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) - const spans_buf_length : int32 = valueDeserializer.readInt32() - let spans_buf : Array = new Array() - for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() - let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined - if (spans_buf_buf_selector == 0) { - spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() - } - else { - throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") - } - spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) - } - const spans_result : Array = spans_buf - let value : RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) - return value + return (parameter: RichEditorRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorSelection):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorSelection(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorSelection):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorSelection(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readStyledStringChangeValue(): StyledStringChangeValue { let valueDeserializer : Deserializer = this @@ -16945,6 +17365,15 @@ return; } let value : StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } + readRichEditorParagraphResult(): RichEditorParagraphResult { + let valueDeserializer : Deserializer = this + const style_result : RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() + const range_buf_value0 : number = (valueDeserializer.readNumber() as number) + const range_buf_value1 : number = (valueDeserializer.readNumber() as number) + const range_result : [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) + let value : RichEditorParagraphResult = ({style: style_result,range: range_result} as RichEditorParagraphResult) + return value + } readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -16988,14 +17417,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (state: RefreshStatus):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((state.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: RefreshStatus):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((state.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRefreshOptions(): RefreshOptions { let valueDeserializer : Deserializer = this @@ -17323,14 +17753,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: PluginErrorData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePluginErrorData(info); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: PluginErrorData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePluginErrorData(info); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPluginComponentOptions(): PluginComponentOptions { let valueDeserializer : Deserializer = this @@ -17343,18 +17774,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (input: Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(input.length as int32); -for (let i = 0; i < input.length; i++) { - const input_element : number = input[i]; - _argsSerializer.writeNumber(input_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (input: Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(input.length as int32); + for (let i = 0; i < input.length; i++) { + const input_element : number = input[i]; + _argsSerializer.writeNumber(input_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPatternLockController(): PatternLockController { let valueDeserializer : Deserializer = this @@ -17413,15 +17845,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: PasteButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: PasteButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPasteButtonOptions(): PasteButtonOptions { let valueDeserializer : Deserializer = this @@ -17453,16 +17886,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (width: number, height: number, mode: PanelMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(width); -_argsSerializer.writeNumber(height); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (width: number, height: number, mode: PanelMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(width); + _argsSerializer.writeNumber(height); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNodeController(): NodeController { let value : NodeController = ({} as NodeController) @@ -17571,14 +18005,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: NavDestinationContext):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavDestinationContext(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: NavDestinationContext):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavDestinationContext(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavigationMenuItem(): NavigationMenuItem { let valueDeserializer : Deserializer = this @@ -17640,16 +18075,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return ():boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer : Deserializer = this @@ -17753,15 +18189,16 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: LocationButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: LocationButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLocationButtonOptions(): LocationButtonOptions { let valueDeserializer : Deserializer = this @@ -17918,83 +18355,67 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (from: number, to: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } - } - readVisibleListContentInfo(): VisibleListContentInfo { - let valueDeserializer : Deserializer = this - const index_result : number = (valueDeserializer.readNumber() as number) - const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemGroupArea_buf : ListItemGroupArea | undefined - if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) - } - const itemGroupArea_result : ListItemGroupArea | undefined = itemGroupArea_buf - const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemIndexInGroup_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) - } - const itemIndexInGroup_result : number | undefined = itemIndexInGroup_buf - let value : VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) - return value + return (index: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: VisibleListContentInfo, end: VisibleListContentInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeVisibleListContentInfo(start); -_argsSerializer.writeVisibleListContentInfo(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: VisibleListContentInfo, end: VisibleListContentInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeVisibleListContentInfo(start); + _argsSerializer.writeVisibleListContentInfo(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number,end: number,center: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: number, end: number, center: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -_argsSerializer.writeNumber(center); -(isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number, center: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + _argsSerializer.writeNumber(center); + (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer : Deserializer = this @@ -18139,14 +18560,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (result: ImageLoadResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageLoadResult(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: ImageLoadResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageLoadResult(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageFrameInfo(): ImageFrameInfo { let valueDeserializer : Deserializer = this @@ -18265,50 +18687,52 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (error: ImageError):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageError(error); -(isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error: ImageError):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageError(error); + (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: Type_ImageAttribute_onComplete_callback_event) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Type_ImageAttribute_onComplete_callback_event | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_width = event_value.width; - _argsSerializer.writeNumber(event_value_width); - const event_value_height = event_value.height; - _argsSerializer.writeNumber(event_value_height); - const event_value_componentWidth = event_value.componentWidth; - _argsSerializer.writeNumber(event_value_componentWidth); - const event_value_componentHeight = event_value.componentHeight; - _argsSerializer.writeNumber(event_value_componentHeight); - const event_value_loadingStatus = event_value.loadingStatus; - _argsSerializer.writeNumber(event_value_loadingStatus); - const event_value_contentWidth = event_value.contentWidth; - _argsSerializer.writeNumber(event_value_contentWidth); - const event_value_contentHeight = event_value.contentHeight; - _argsSerializer.writeNumber(event_value_contentHeight); - const event_value_contentOffsetX = event_value.contentOffsetX; - _argsSerializer.writeNumber(event_value_contentOffsetX); - const event_value_contentOffsetY = event_value.contentOffsetY; - _argsSerializer.writeNumber(event_value_contentOffsetY); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Type_ImageAttribute_onComplete_callback_event | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_width = event_value.width; + _argsSerializer.writeNumber(event_value_width); + const event_value_height = event_value.height; + _argsSerializer.writeNumber(event_value_height); + const event_value_componentWidth = event_value.componentWidth; + _argsSerializer.writeNumber(event_value_componentWidth); + const event_value_componentHeight = event_value.componentHeight; + _argsSerializer.writeNumber(event_value_componentHeight); + const event_value_loadingStatus = event_value.loadingStatus; + _argsSerializer.writeNumber(event_value_loadingStatus); + const event_value_contentWidth = event_value.contentWidth; + _argsSerializer.writeNumber(event_value_contentWidth); + const event_value_contentHeight = event_value.contentHeight; + _argsSerializer.writeNumber(event_value_contentHeight); + const event_value_contentOffsetX = event_value.contentOffsetX; + _argsSerializer.writeNumber(event_value_contentOffsetX); + const event_value_contentOffsetY = event_value.contentOffsetY; + _argsSerializer.writeNumber(event_value_contentOffsetY); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageSourceSize(): ImageSourceSize { let valueDeserializer : Deserializer = this @@ -18513,76 +18937,81 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (offset: number, state: ScrollState):Literal_Number_offsetRemain => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32((state.valueOf() as int32)); -let _continuationValue : Literal_Number_offsetRemain | undefined; -const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Literal_Number_offsetRemain); } + return (offset: number, state: ScrollState):Literal_Number_offsetRemain => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32((state.valueOf() as int32)); + let _continuationValue : Literal_Number_offsetRemain | undefined; + const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Literal_Number_offsetRemain); } } readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -_argsSerializer.writeBoolean(isSuccess); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + _argsSerializer.writeBoolean(isSuccess); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readItemDragInfo(): ItemDragInfo { let valueDeserializer : Deserializer = this @@ -18595,18 +19024,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number) => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -let _continuationValue : CustomBuilder | undefined; -const _continuationCallback : ((value: CustomBuilder) => void) = (value: CustomBuilder):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder); } + return (event: ItemDragInfo, itemIndex: number) => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + let _continuationValue : CustomBuilder | undefined; + const _continuationCallback : ((value: CustomBuilder) => void) = (value: CustomBuilder):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder); } } readComputedBarAttribute(): ComputedBarAttribute { let valueDeserializer : Deserializer = this @@ -18619,18 +19049,19 @@ return (_continuationValue as CustomBuilder); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, offset: number):ComputedBarAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(offset); -let _continuationValue : ComputedBarAttribute | undefined; -const _continuationCallback : ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as ComputedBarAttribute); } + return (index: number, offset: number):ComputedBarAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(offset); + let _continuationValue : ComputedBarAttribute | undefined; + const _continuationCallback : ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as ComputedBarAttribute); } } readGridLayoutOptions(): GridLayoutOptions { let valueDeserializer : Deserializer = this @@ -18671,21 +19102,11 @@ return (_continuationValue as ComputedBarAttribute); } let ptr : KPointer = valueDeserializer.readPointer() return PanRecognizerInternal.fromPtr(ptr) } - readEventTargetInfo(): EventTargetInfo { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return EventTargetInfoInternal.fromPtr(ptr) - } readScrollableTargetInfo(): ScrollableTargetInfo { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return ScrollableTargetInfoInternal.fromPtr(ptr) } - readPanGestureOptions(): PanGestureOptions { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return PanGestureOptionsInternal.fromPtr(ptr) - } readGestureEvent(): GestureEvent { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -18875,30 +19296,32 @@ return (_continuationValue as ComputedBarAttribute); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: object):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCustomObject("Any", info); -(isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: object):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCustomObject("Any", info); + (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: Literal_Number_errcode_String_msg) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: Literal_Number_errcode_String_msg):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const info_errcode = info.errcode; -_argsSerializer.writeNumber(info_errcode); -const info_msg = info.msg; -_argsSerializer.writeString(info_msg); -(isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: Literal_Number_errcode_String_msg):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const info_errcode = info.errcode; + _argsSerializer.writeNumber(info_errcode); + const info_msg = info.msg; + _argsSerializer.writeString(info_msg); + (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormCallbackInfo(): FormCallbackInfo { let valueDeserializer : Deserializer = this @@ -18911,14 +19334,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: FormCallbackInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFormCallbackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FormCallbackInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFormCallbackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormInfo(): FormInfo { let valueDeserializer : Deserializer = this @@ -18989,14 +19413,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (param: HoverEventParam):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeHoverEventParam(param); -(isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (param: HoverEventParam):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeHoverEventParam(param); + (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { let valueDeserializer : Deserializer = this @@ -19008,14 +19433,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: OnFoldStatusChangeInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFoldStatusChangeInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: OnFoldStatusChangeInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFoldStatusChangeInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFolderStackOptions(): FolderStackOptions { let valueDeserializer : Deserializer = this @@ -19098,14 +19524,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TerminationInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTerminationInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TerminationInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTerminationInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEllipseOptions(): EllipseOptions { let valueDeserializer : Deserializer = this @@ -19887,37 +20314,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readOffsetResult(): OffsetResult { - let valueDeserializer : Deserializer = this - const xOffset_result : number = (valueDeserializer.readNumber() as number) - const yOffset_result : number = (valueDeserializer.readNumber() as number) - let value : OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) - return value + return (xOffset: number, yOffset: number, scrollState: ScrollState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Void(isSync: boolean = false): ((first: number,last: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (first: number, last: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(first); -_argsSerializer.writeNumber(last); -(isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (first: number, last: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(first); + _argsSerializer.writeNumber(last); + (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextContentControllerBase(): TextContentControllerBase { let valueDeserializer : Deserializer = this @@ -20021,38 +20443,40 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TouchEvent):HitTestMode => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(parameter); -let _continuationValue : HitTestMode | undefined; -const _continuationCallback : ((value: HitTestMode) => void) = (value: HitTestMode):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as HitTestMode); } + return (parameter: TouchEvent):HitTestMode => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(parameter); + let _continuationValue : HitTestMode | undefined; + const _continuationCallback : ((value: HitTestMode) => void) = (value: HitTestMode):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as HitTestMode); } } readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (current: GestureRecognizer, others: Array):GestureRecognizer => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(others.length as int32); -for (let i = 0; i < others.length; i++) { - const others_element : GestureRecognizer = others[i]; - _argsSerializer.writeGestureRecognizer(others_element); -} -let _continuationValue : GestureRecognizer | undefined; -const _continuationCallback : ((value: GestureRecognizer) => void) = (value: GestureRecognizer):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureRecognizer); } + return (current: GestureRecognizer, others: Array):GestureRecognizer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(others.length as int32); + for (let i = 0; i < others.length; i++) { + const others_element : GestureRecognizer = others[i]; + _argsSerializer.writeGestureRecognizer(others_element); + } + let _continuationValue : GestureRecognizer | undefined; + const _continuationCallback : ((value: GestureRecognizer) => void) = (value: GestureRecognizer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureRecognizer); } } readGestureRecognizer(): GestureRecognizer { let valueDeserializer : Deserializer = this @@ -20094,18 +20518,19 @@ return (_continuationValue as GestureRecognizer); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (gestureInfo: GestureInfo, event: BaseGestureEvent):GestureJudgeResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureInfo(gestureInfo); -_argsSerializer.writeBaseGestureEvent(event); -let _continuationValue : GestureJudgeResult | undefined; -const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (gestureInfo: GestureInfo, event: BaseGestureEvent):GestureJudgeResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureInfo(gestureInfo); + _argsSerializer.writeBaseGestureEvent(event); + let _continuationValue : GestureJudgeResult | undefined; + const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { let valueDeserializer : Deserializer = this @@ -20203,14 +20628,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PreDragStatus):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((parameter.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreDragStatus):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((parameter.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readUniformDataType(): UniformDataType { let valueDeserializer : Deserializer = this @@ -20222,44 +20648,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type : int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type as int32); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: DragEvent, extraParams?: string | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type : int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type as int32); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined):CustomBuilder | DragItemInfo => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type : int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type as int32); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -let _continuationValue : CustomBuilder | DragItemInfo | undefined; -const _continuationCallback : ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder | DragItemInfo); } + return (event: DragEvent, extraParams?: string | undefined):CustomBuilder | DragItemInfo => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type : int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type as int32); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + let _continuationValue : CustomBuilder | DragItemInfo | undefined; + const _continuationCallback : ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder | DragItemInfo); } } readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { let valueDeserializer : Deserializer = this @@ -20385,15 +20813,16 @@ return (_continuationValue as CustomBuilder | DragItemInfo); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (oldValue: Area, newValue: Area):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeArea(oldValue); -_argsSerializer.writeArea(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: Area, newValue: Area):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeArea(oldValue); + _argsSerializer.writeArea(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMotionBlurOptions(): MotionBlurOptions { let valueDeserializer : Deserializer = this @@ -20432,45 +20861,48 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: KeyEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: KeyEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: AccessibilityHoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeAccessibilityHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: AccessibilityHoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeAccessibilityHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean,event: HoverEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOutlineOptions(): OutlineOptions { let valueDeserializer : Deserializer = this @@ -21553,21 +21985,22 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Array):TouchResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length as int32); -for (let i = 0; i < value.length; i++) { - const value_element : TouchTestInfo = value[i]; - _argsSerializer.writeTouchTestInfo(value_element); -} -let _continuationValue : TouchResult | undefined; -const _continuationCallback : ((value: TouchResult) => void) = (value: TouchResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TouchResult); } + return (value: Array):TouchResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length as int32); + for (let i = 0; i < value.length; i++) { + const value_element : TouchTestInfo = value[i]; + _argsSerializer.writeTouchTestInfo(value_element); + } + let _continuationValue : TouchResult | undefined; + const _continuationCallback : ((value: TouchResult) => void) = (value: TouchResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TouchResult); } } readKeyEvent(): KeyEvent { let valueDeserializer : Deserializer = this @@ -21584,19 +22017,13 @@ return (_continuationValue as TouchResult); } let ptr : KPointer = valueDeserializer.readPointer() return PixelMapMockInternal.fromPtr(ptr) } - readTouchObject(): TouchObject { + readHistoricalPoint(): HistoricalPoint { let valueDeserializer : Deserializer = this - const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) - const id_result : number = (valueDeserializer.readNumber() as number) - const displayX_result : number = (valueDeserializer.readNumber() as number) - const displayY_result : number = (valueDeserializer.readNumber() as number) - const windowX_result : number = (valueDeserializer.readNumber() as number) - const windowY_result : number = (valueDeserializer.readNumber() as number) - const screenX_result : number = (valueDeserializer.readNumber() as number) - const screenY_result : number = (valueDeserializer.readNumber() as number) - const x_result : number = (valueDeserializer.readNumber() as number) - const y_result : number = (valueDeserializer.readNumber() as number) - let value : TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + const touchObject_result : TouchObject = valueDeserializer.readTouchObject() + const size_result : number = (valueDeserializer.readNumber() as number) + const force_result : number = (valueDeserializer.readNumber() as number) + const timestamp_result : number = (valueDeserializer.readNumber() as number) + let value : HistoricalPoint = ({touchObject: touchObject_result,size: size_result,force: force_result,timestamp: timestamp_result} as HistoricalPoint) return value } readAccessibilityHoverEvent(): AccessibilityHoverEvent { @@ -21725,14 +22152,15 @@ return (_continuationValue as TouchResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CheckboxGroupResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCheckboxGroupResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CheckboxGroupResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCheckboxGroupResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCheckboxGroupOptions(): CheckboxGroupOptions { let valueDeserializer : Deserializer = this @@ -21750,14 +22178,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMarkStyle(): MarkStyle { let valueDeserializer : Deserializer = this @@ -21828,15 +22257,15 @@ return; } let value : CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } - readCanvasRenderer(): CanvasRenderer { + readOffscreenCanvas(): OffscreenCanvas { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() - return CanvasRendererInternal.fromPtr(ptr) + return OffscreenCanvasInternal.fromPtr(ptr) } - readRenderingContextSettings(): RenderingContextSettings { + readCanvasRenderer(): CanvasRenderer { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() - return RenderingContextSettingsInternal.fromPtr(ptr) + return CanvasRendererInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer : Deserializer = this @@ -21898,14 +22327,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: CalendarRequestedData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarRequestedData(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarRequestedData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarRequestedData(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCalendarSelectedDate(): CalendarSelectedDate { let valueDeserializer : Deserializer = this @@ -21919,14 +22349,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: CalendarSelectedDate):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarSelectedDate(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarSelectedDate):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarSelectedDate(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWorkStateStyle(): WorkStateStyle { let valueDeserializer : Deserializer = this @@ -22660,43 +23091,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):Array => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : Array | undefined; -const _continuationCallback : ((value: Array) => void) = (value: Array):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Array); } + return (index: number):Array => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : Array | undefined; + const _continuationCallback : ((value: Array) => void) = (value: Array):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Array); } } readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer : Deserializer = this @@ -22884,6 +23318,11 @@ return; } let value : WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readSystemOps(): SystemOps { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return SystemOpsInternal.fromPtr(ptr) + } readLazyForEachOps(): LazyForEachOps { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index fee711b45..0de60e3a4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -13,55 +13,53 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, nullptr, KPointer } from "@koalaui/interop" -import { int32, float32, int64 } from "@koalaui/common" -import { unsafeCast } from "./../shared/generated-utils" -import { MaterializedBase } from "./../MaterializedBase" +import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, MaterializedBase, nullptr, KPointer } from "@koalaui/interop" +import { int32, float32, unsafeCast, int64 } from "@koalaui/common" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, DragBehavior, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, CaretOffset, MeasureResult, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, Summary, LayoutSafeAreaEdge, LayoutSafeAreaType, SafeAreaEdge, SafeAreaType, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, Context, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperDisplayMode } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, TextRange, StyledStringChangeValue, TextMenuItem, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, PreviewText, DeleteValue, InsertValue, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleMode, NavBarPosition } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorAttribute, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorDeleteDirection, RichEditorSpanStyleOptions, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebKeyboardAvoidMode, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType, WebLayoutMode, WebDarkMode, OverScrollMode, CacheMode, MixedMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, TextInputStyle, PasswordIcon, EnterKeyType, TextInputOptions, InputType } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions, ScrollDirection } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollSnapAlign, ScrollState, ListDividerOptions, ListItemGroupArea, ChainEdgeEffect, CloseSwipeActionOptions, VisibleListContentInfo, ChainAnimationOptions, ListOptions, StickyStyle, ListItemAlign } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, ScrollableBarModeOptions, BarMode, TabContentAnimatedTransition, AnimationMode, BarPosition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ListItemGroupArea, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType, SlideEffect } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, CancelButtonStyle, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonOptions, SearchOptions, SearchType } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChangeMode, SlideRange, SliderBlockStyle, SliderOptions, SliderInteraction } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, DirectionalEdgesT, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, ImageSize, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HitTestMode, HeightBreakpoint, WidthBreakpoint, TextSelectableMode, MarqueeUpdateStrategy, EllipsisMode, CopyOptions, TextCase, RelateType, Week, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Union_Number_Resource_Void, Callback_PanelMode_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Callback_MouseEvent_Void, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_Number_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMeasureInfo, CustomSpanMetrics, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" +import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -79,11 +77,11 @@ import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" import { PlaybackSpeed, SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions } from "./../ArkVideoInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerDialogOptions, TimePickerOptions } from "./../ArkTimePickerInterfaces" import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" -import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" @@ -91,8 +89,8 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" -import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" +import { Scene, Component3DAttribute, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureInfo, GestureJudgeResult, GestureMask, GestureRecognizerState, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -105,14 +103,27 @@ import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" @@ -126,7 +137,6 @@ import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandle import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" @@ -136,26 +146,30 @@ import { ToggleType, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextResponseType, TextSpanType, TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { MenuAlignType, ArrowPosition, SelectOption } from "./../ArkSelectInterfaces" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { ScrollBarDirection, ScrollBarOptions } from "./../ArkScrollBarInterfaces" import { SaveDescription, SaveIconStyle, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -168,32 +182,28 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" -import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" -import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { CalendarDialogOptions, CalendarOptions, CalendarAlign } from "./../ArkCalendarPickerInterfaces" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" @@ -211,8 +221,6 @@ import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDi import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" @@ -220,16 +228,13 @@ import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDi import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { ItemState } from "./../ArkStepperItemInterfaces" import { LayoutDirection, ColorMode } from "./../ArkStateManagementInterfaces" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { PolylineOptions } from "./../ArkPolylineInterfaces" @@ -248,7 +253,6 @@ import { LineOptions } from "./../ArkLineInterfaces" import { DataOperationType } from "./../ArkLazyForEachInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" @@ -265,15 +269,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -285,6 +287,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { @@ -444,12 +447,12 @@ export class Serializer extends SerializerBase { const value_radius = value.radius let value_radius_type : int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { valueSerializer.writeInt8(0 as int32) const value_radius_0 = value_radius as number valueSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.OBJECT == value_radius_type))) { + else if (RuntimeType.OBJECT == value_radius_type) { valueSerializer.writeInt8(1 as int32) const value_radius_1 = value_radius as Resource valueSerializer.writeResource(value_radius_1) @@ -470,17 +473,17 @@ export class Serializer extends SerializerBase { const value_color_value = value_color! let value_color_value_type : int32 = RuntimeType.UNDEFINED value_color_value_type = runtimeType(value_color_value) - if (((TypeChecker.isColor(value_color_value)))) { + if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as string valueSerializer.writeString(value_color_value_1) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as Resource valueSerializer.writeResource(value_color_value_2) @@ -499,12 +502,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -518,12 +521,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -623,12 +626,12 @@ export class Serializer extends SerializerBase { const value_weight_value_0 = value_weight_value as FontWeight valueSerializer.writeInt32((value_weight_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weight_value_type))) { + else if (RuntimeType.NUMBER == value_weight_value_type) { valueSerializer.writeInt8(1 as int32) const value_weight_value_1 = value_weight_value as number valueSerializer.writeNumber(value_weight_value_1) } - else if (((RuntimeType.STRING == value_weight_value_type))) { + else if (RuntimeType.STRING == value_weight_value_type) { valueSerializer.writeInt8(2 as int32) const value_weight_value_2 = value_weight_value as string valueSerializer.writeString(value_weight_value_2) @@ -642,12 +645,12 @@ export class Serializer extends SerializerBase { const value_family_value = value_family! let value_family_value_type : int32 = RuntimeType.UNDEFINED value_family_value_type = runtimeType(value_family_value) - if (((RuntimeType.STRING == value_family_value_type))) { + if (RuntimeType.STRING == value_family_value_type) { valueSerializer.writeInt8(0 as int32) const value_family_value_0 = value_family_value as string valueSerializer.writeString(value_family_value_0) } - else if (((RuntimeType.OBJECT == value_family_value_type))) { + else if (RuntimeType.OBJECT == value_family_value_type) { valueSerializer.writeInt8(1 as int32) const value_family_value_1 = value_family_value as Resource valueSerializer.writeResource(value_family_value_1) @@ -703,12 +706,12 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_1) @@ -838,17 +841,17 @@ export class Serializer extends SerializerBase { const value_color_0 = value_color as Color valueSerializer.writeInt32((value_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) const value_color_1 = value_color as number valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2 as int32) const value_color_2 = value_color as string valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3 as int32) const value_color_3 = value_color as Resource valueSerializer.writeResource(value_color_3) @@ -879,17 +882,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -919,17 +922,17 @@ export class Serializer extends SerializerBase { const value_top_value_0 = value_top_value as Color valueSerializer.writeInt32((value_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_top_value_type))) { + else if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_top_value_1 = value_top_value as number valueSerializer.writeNumber(value_top_value_1) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_top_value_2 = value_top_value as string valueSerializer.writeString(value_top_value_2) } - else if (((RuntimeType.OBJECT == value_top_value_type))) { + else if (RuntimeType.OBJECT == value_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_top_value_3 = value_top_value as Resource valueSerializer.writeResource(value_top_value_3) @@ -948,17 +951,17 @@ export class Serializer extends SerializerBase { const value_end_value_0 = value_end_value as Color valueSerializer.writeInt32((value_end_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_end_value_type))) { + else if (RuntimeType.NUMBER == value_end_value_type) { valueSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as number valueSerializer.writeNumber(value_end_value_1) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { valueSerializer.writeInt8(2 as int32) const value_end_value_2 = value_end_value as string valueSerializer.writeString(value_end_value_2) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(3 as int32) const value_end_value_3 = value_end_value as Resource valueSerializer.writeResource(value_end_value_3) @@ -977,17 +980,17 @@ export class Serializer extends SerializerBase { const value_bottom_value_0 = value_bottom_value as Color valueSerializer.writeInt32((value_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_bottom_value_1 = value_bottom_value as number valueSerializer.writeNumber(value_bottom_value_1) } - else if (((RuntimeType.STRING == value_bottom_value_type))) { + else if (RuntimeType.STRING == value_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_bottom_value_2 = value_bottom_value as string valueSerializer.writeString(value_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_bottom_value_3 = value_bottom_value as Resource valueSerializer.writeResource(value_bottom_value_3) @@ -1006,17 +1009,17 @@ export class Serializer extends SerializerBase { const value_start_value_0 = value_start_value as Color valueSerializer.writeInt32((value_start_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_start_value_type))) { + else if (RuntimeType.NUMBER == value_start_value_type) { valueSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as number valueSerializer.writeNumber(value_start_value_1) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { valueSerializer.writeInt8(2 as int32) const value_start_value_2 = value_start_value as string valueSerializer.writeString(value_start_value_2) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(3 as int32) const value_start_value_3 = value_start_value as Resource valueSerializer.writeResource(value_start_value_3) @@ -1063,12 +1066,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -1081,12 +1084,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -1489,17 +1492,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -1561,17 +1564,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -1590,12 +1593,12 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_0 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + else if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -1617,12 +1620,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_0) } - else if (((RuntimeType.STRING == value_fontFamily_value_type))) { + else if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_1) @@ -1641,17 +1644,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -1733,6 +1736,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeAffinity(value: Affinity): void { + let valueSerializer : Serializer = this + const value__AffinityStub = value._AffinityStub + valueSerializer.writeString(value__AffinityStub) + } writeTabBarIconStyle(value: TabBarIconStyle): void { let valueSerializer : Serializer = this const value_selectedColor = value.selectedColor @@ -1748,17 +1756,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -1777,17 +1785,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -1820,22 +1828,22 @@ export class Serializer extends SerializerBase { const value_minFontSize_value = value_minFontSize! let value_minFontSize_value_type : int32 = RuntimeType.UNDEFINED value_minFontSize_value_type = runtimeType(value_minFontSize_value) - if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + if (RuntimeType.NUMBER == value_minFontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_minFontSize_value_0 = value_minFontSize_value as number valueSerializer.writeNumber(value_minFontSize_value_0) } - else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { + else if ((RuntimeType.STRING == value_minFontSize_value_type) || (RuntimeType.OBJECT == value_minFontSize_value_type)) { valueSerializer.writeInt8(1 as int32) const value_minFontSize_value_1 = value_minFontSize_value as ResourceStr let value_minFontSize_value_1_type : int32 = RuntimeType.UNDEFINED value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) - if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { + if (RuntimeType.STRING == value_minFontSize_value_1_type) { valueSerializer.writeInt8(0 as int32) const value_minFontSize_value_1_0 = value_minFontSize_value_1 as string valueSerializer.writeString(value_minFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_minFontSize_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_minFontSize_value_1_1 = value_minFontSize_value_1 as Resource valueSerializer.writeResource(value_minFontSize_value_1_1) @@ -1850,22 +1858,22 @@ export class Serializer extends SerializerBase { const value_maxFontSize_value = value_maxFontSize! let value_maxFontSize_value_type : int32 = RuntimeType.UNDEFINED value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) - if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { + if (RuntimeType.NUMBER == value_maxFontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_maxFontSize_value_0 = value_maxFontSize_value as number valueSerializer.writeNumber(value_maxFontSize_value_0) } - else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { + else if ((RuntimeType.STRING == value_maxFontSize_value_type) || (RuntimeType.OBJECT == value_maxFontSize_value_type)) { valueSerializer.writeInt8(1 as int32) const value_maxFontSize_value_1 = value_maxFontSize_value as ResourceStr let value_maxFontSize_value_1_type : int32 = RuntimeType.UNDEFINED value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) - if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { + if (RuntimeType.STRING == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(0 as int32) const value_maxFontSize_value_1_0 = value_maxFontSize_value_1 as string valueSerializer.writeString(value_maxFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_maxFontSize_value_1_1 = value_maxFontSize_value_1 as Resource valueSerializer.writeResource(value_maxFontSize_value_1_1) @@ -1963,17 +1971,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -1992,17 +2000,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -2040,17 +2048,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -2064,12 +2072,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type : int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0 as int32) const value_src_value_0 = value_src_value as string valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1 as int32) const value_src_value_1 = value_src_value as Resource valueSerializer.writeResource(value_src_value_1) @@ -2162,17 +2170,17 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type : int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontSize_value_0 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as string valueSerializer.writeString(value_fontSize_value_1) } - else if (((RuntimeType.OBJECT == value_fontSize_value_type))) { + else if (RuntimeType.OBJECT == value_fontSize_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontSize_value_2 = value_fontSize_value as Resource valueSerializer.writeResource(value_fontSize_value_2) @@ -2194,17 +2202,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_element_0 = value_fontColor_value_element as Color valueSerializer.writeInt32((value_fontColor_value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_element_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_element_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_element_1 = value_fontColor_value_element as number valueSerializer.writeNumber(value_fontColor_value_element_1) } - else if (((RuntimeType.STRING == value_fontColor_value_element_type))) { + else if (RuntimeType.STRING == value_fontColor_value_element_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_element_2 = value_fontColor_value_element as string valueSerializer.writeString(value_fontColor_value_element_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_element_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_element_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_element_3 = value_fontColor_value_element as Resource valueSerializer.writeResource(value_fontColor_value_element_3) @@ -2219,7 +2227,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2229,7 +2237,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -2262,17 +2270,17 @@ export class Serializer extends SerializerBase { const value_fontColor_0 = value_fontColor as Color valueSerializer.writeInt32((value_fontColor_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_type))) { + else if (RuntimeType.NUMBER == value_fontColor_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_1 = value_fontColor as number valueSerializer.writeNumber(value_fontColor_1) } - else if (((RuntimeType.STRING == value_fontColor_type))) { + else if (RuntimeType.STRING == value_fontColor_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_2 = value_fontColor as string valueSerializer.writeString(value_fontColor_2) } - else if (((RuntimeType.OBJECT == value_fontColor_type))) { + else if (RuntimeType.OBJECT == value_fontColor_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_3 = value_fontColor as Resource valueSerializer.writeResource(value_fontColor_3) @@ -2377,17 +2385,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -2406,7 +2414,7 @@ export class Serializer extends SerializerBase { const value_fontSize_value_0 = value_fontSize_value as Length valueSerializer.writeLength(value_fontSize_value_0) } - else if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + else if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_1) @@ -2428,7 +2436,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2438,7 +2446,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -2452,12 +2460,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_1) @@ -2502,12 +2510,12 @@ export class Serializer extends SerializerBase { const value_letterSpacing_value = value_letterSpacing! let value_letterSpacing_value_type : int32 = RuntimeType.UNDEFINED value_letterSpacing_value_type = runtimeType(value_letterSpacing_value) - if (((RuntimeType.NUMBER == value_letterSpacing_value_type))) { + if (RuntimeType.NUMBER == value_letterSpacing_value_type) { valueSerializer.writeInt8(0 as int32) const value_letterSpacing_value_0 = value_letterSpacing_value as number valueSerializer.writeNumber(value_letterSpacing_value_0) } - else if (((RuntimeType.STRING == value_letterSpacing_value_type))) { + else if (RuntimeType.STRING == value_letterSpacing_value_type) { valueSerializer.writeInt8(1 as int32) const value_letterSpacing_value_1 = value_letterSpacing_value as string valueSerializer.writeString(value_letterSpacing_value_1) @@ -2521,17 +2529,17 @@ export class Serializer extends SerializerBase { const value_lineHeight_value = value_lineHeight! let value_lineHeight_value_type : int32 = RuntimeType.UNDEFINED value_lineHeight_value_type = runtimeType(value_lineHeight_value) - if (((RuntimeType.NUMBER == value_lineHeight_value_type))) { + if (RuntimeType.NUMBER == value_lineHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_lineHeight_value_0 = value_lineHeight_value as number valueSerializer.writeNumber(value_lineHeight_value_0) } - else if (((RuntimeType.STRING == value_lineHeight_value_type))) { + else if (RuntimeType.STRING == value_lineHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_lineHeight_value_1 = value_lineHeight_value as string valueSerializer.writeString(value_lineHeight_value_1) } - else if (((RuntimeType.OBJECT == value_lineHeight_value_type))) { + else if (RuntimeType.OBJECT == value_lineHeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_lineHeight_value_2 = value_lineHeight_value as Resource valueSerializer.writeResource(value_lineHeight_value_2) @@ -2827,17 +2835,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -2856,17 +2864,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -2885,17 +2893,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = value_strokeColor_value as Color valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeColor_value_1 = value_strokeColor_value as number valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeColor_value_2 = value_strokeColor_value as string valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_strokeColor_value_3 = value_strokeColor_value as Resource valueSerializer.writeResource(value_strokeColor_value_3) @@ -2963,17 +2971,17 @@ export class Serializer extends SerializerBase { const value_textColor_value_0 = value_textColor_value as Color valueSerializer.writeInt32((value_textColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_textColor_value_type))) { + else if (RuntimeType.NUMBER == value_textColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_textColor_value_1 = value_textColor_value as number valueSerializer.writeNumber(value_textColor_value_1) } - else if (((RuntimeType.STRING == value_textColor_value_type))) { + else if (RuntimeType.STRING == value_textColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_textColor_value_2 = value_textColor_value as string valueSerializer.writeString(value_textColor_value_2) } - else if (((RuntimeType.OBJECT == value_textColor_value_type))) { + else if (RuntimeType.OBJECT == value_textColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_textColor_value_3 = value_textColor_value as Resource valueSerializer.writeResource(value_textColor_value_3) @@ -3089,12 +3097,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type : int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerX_value_0 = value_centerX_value as number valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerX_value_1 = value_centerX_value as string valueSerializer.writeString(value_centerX_value_1) @@ -3108,12 +3116,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type : int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerY_value_0 = value_centerY_value as number valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerY_value_1 = value_centerY_value as string valueSerializer.writeString(value_centerY_value_1) @@ -3138,12 +3146,12 @@ export class Serializer extends SerializerBase { const value_angle = value.angle let value_angle_type : int32 = RuntimeType.UNDEFINED value_angle_type = runtimeType(value_angle) - if (((RuntimeType.NUMBER == value_angle_type))) { + if (RuntimeType.NUMBER == value_angle_type) { valueSerializer.writeInt8(0 as int32) const value_angle_0 = value_angle as number valueSerializer.writeNumber(value_angle_0) } - else if (((RuntimeType.STRING == value_angle_type))) { + else if (RuntimeType.STRING == value_angle_type) { valueSerializer.writeInt8(1 as int32) const value_angle_1 = value_angle as string valueSerializer.writeString(value_angle_1) @@ -3183,12 +3191,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type : int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerX_value_0 = value_centerX_value as number valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerX_value_1 = value_centerX_value as string valueSerializer.writeString(value_centerX_value_1) @@ -3202,12 +3210,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type : int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerY_value_0 = value_centerY_value as number valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerY_value_1 = value_centerY_value as string valueSerializer.writeString(value_centerY_value_1) @@ -3224,12 +3232,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type : int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0 as int32) const value_x_value_0 = value_x_value as number valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1 as int32) const value_x_value_1 = value_x_value as string valueSerializer.writeString(value_x_value_1) @@ -3243,12 +3251,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type : int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0 as int32) const value_y_value_0 = value_y_value as number valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1 as int32) const value_y_value_1 = value_y_value as string valueSerializer.writeString(value_y_value_1) @@ -3262,12 +3270,12 @@ export class Serializer extends SerializerBase { const value_z_value = value_z! let value_z_value_type : int32 = RuntimeType.UNDEFINED value_z_value_type = runtimeType(value_z_value) - if (((RuntimeType.NUMBER == value_z_value_type))) { + if (RuntimeType.NUMBER == value_z_value_type) { valueSerializer.writeInt8(0 as int32) const value_z_value_0 = value_z_value as number valueSerializer.writeNumber(value_z_value_0) } - else if (((RuntimeType.STRING == value_z_value_type))) { + else if (RuntimeType.STRING == value_z_value_type) { valueSerializer.writeInt8(1 as int32) const value_z_value_1 = value_z_value as string valueSerializer.writeString(value_z_value_1) @@ -3284,12 +3292,12 @@ export class Serializer extends SerializerBase { const value_angle_value = value_angle! let value_angle_value_type : int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { valueSerializer.writeInt8(0 as int32) const value_angle_value_0 = value_angle_value as number valueSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { valueSerializer.writeInt8(1 as int32) const value_angle_value_1 = value_angle_value as string valueSerializer.writeString(value_angle_value_1) @@ -3315,17 +3323,17 @@ export class Serializer extends SerializerBase { const value_colors_element_0_0 = value_colors_element_0 as Color valueSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { valueSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number valueSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { valueSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string valueSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { valueSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource valueSerializer.writeResource(value_colors_element_0_3) @@ -3423,12 +3431,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -3446,17 +3454,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -3475,17 +3483,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -3499,17 +3507,17 @@ export class Serializer extends SerializerBase { const value_dx = value.dx let value_dx_type : int32 = RuntimeType.UNDEFINED value_dx_type = runtimeType(value_dx) - if (((RuntimeType.NUMBER == value_dx_type))) { + if (RuntimeType.NUMBER == value_dx_type) { valueSerializer.writeInt8(0 as int32) const value_dx_0 = value_dx as number valueSerializer.writeNumber(value_dx_0) } - else if (((RuntimeType.STRING == value_dx_type))) { + else if (RuntimeType.STRING == value_dx_type) { valueSerializer.writeInt8(1 as int32) const value_dx_1 = value_dx as string valueSerializer.writeString(value_dx_1) } - else if (((RuntimeType.OBJECT == value_dx_type))) { + else if (RuntimeType.OBJECT == value_dx_type) { valueSerializer.writeInt8(2 as int32) const value_dx_2 = value_dx as Resource valueSerializer.writeResource(value_dx_2) @@ -3517,17 +3525,17 @@ export class Serializer extends SerializerBase { const value_dy = value.dy let value_dy_type : int32 = RuntimeType.UNDEFINED value_dy_type = runtimeType(value_dy) - if (((RuntimeType.NUMBER == value_dy_type))) { + if (RuntimeType.NUMBER == value_dy_type) { valueSerializer.writeInt8(0 as int32) const value_dy_0 = value_dy as number valueSerializer.writeNumber(value_dy_0) } - else if (((RuntimeType.STRING == value_dy_type))) { + else if (RuntimeType.STRING == value_dy_type) { valueSerializer.writeInt8(1 as int32) const value_dy_1 = value_dy as string valueSerializer.writeString(value_dy_1) } - else if (((RuntimeType.OBJECT == value_dy_type))) { + else if (RuntimeType.OBJECT == value_dy_type) { valueSerializer.writeInt8(2 as int32) const value_dy_2 = value_dy as Resource valueSerializer.writeResource(value_dy_2) @@ -3562,12 +3570,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -3797,6 +3805,19 @@ export class Serializer extends SerializerBase { const value__DrawContextStub = value._DrawContextStub valueSerializer.writeString(value__DrawContextStub) } + writeCustomSpanMetrics(value: CustomSpanMetrics): void { + let valueSerializer : Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + let value_height_type : int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer : Serializer = this const value_fontSize = value.fontSize @@ -3828,17 +3849,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -3929,6 +3950,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWaterFlowAttribute(value: WaterFlowAttribute): void { + } writeWaterFlowSections(value: WaterFlowSections): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -4080,17 +4103,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -4118,7 +4141,7 @@ export class Serializer extends SerializerBase { const value_shown = value.shown let value_shown_type : int32 = RuntimeType.UNDEFINED value_shown_type = runtimeType(value_shown) - if (((RuntimeType.STRING == value_shown_type))) { + if (RuntimeType.STRING == value_shown_type) { valueSerializer.writeInt8(0 as int32) const value_shown_0 = value_shown as string valueSerializer.writeString(value_shown_0) @@ -4136,7 +4159,7 @@ export class Serializer extends SerializerBase { const value_hidden = value.hidden let value_hidden_type : int32 = RuntimeType.UNDEFINED value_hidden_type = runtimeType(value_hidden) - if (((RuntimeType.STRING == value_hidden_type))) { + if (RuntimeType.STRING == value_hidden_type) { valueSerializer.writeInt8(0 as int32) const value_hidden_0 = value_hidden as string valueSerializer.writeString(value_hidden_0) @@ -4159,7 +4182,7 @@ export class Serializer extends SerializerBase { const value_switching_value = value_switching! let value_switching_value_type : int32 = RuntimeType.UNDEFINED value_switching_value_type = runtimeType(value_switching_value) - if (((RuntimeType.STRING == value_switching_value_type))) { + if (RuntimeType.STRING == value_switching_value_type) { valueSerializer.writeInt8(0 as int32) const value_switching_value_0 = value_switching_value as string valueSerializer.writeString(value_switching_value_0) @@ -4259,6 +4282,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_lock_value) } } + writeWindowSceneAttribute(value: WindowSceneAttribute): void { + } + writeWebAttribute(value: WebAttribute): void { + } writeSelectionMenuOptionsExt(value: SelectionMenuOptionsExt): void { let valueSerializer : Serializer = this const value_onAppear = value.onAppear @@ -4752,6 +4779,23 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWebCookie(value: WebCookie): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeScreenCaptureConfig(value: ScreenCaptureConfig): void { let valueSerializer : Serializer = this const value_captureMode = value.captureMode @@ -4904,17 +4948,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -4968,12 +5012,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -5079,12 +5123,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type : int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_value_0 = value_value_value as string valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_value_1 = value_value_value as Array valueSerializer.writeInt32(value_value_value_1.length as int32) @@ -5102,12 +5146,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type : int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0 as int32) const value_selected_value_0 = value_selected_value as number valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1 as int32) const value_selected_value_1 = value_selected_value as Array valueSerializer.writeInt32(value_selected_value_1.length as int32) @@ -5125,12 +5169,12 @@ export class Serializer extends SerializerBase { const value_defaultPickerItemHeight_value = value_defaultPickerItemHeight! let value_defaultPickerItemHeight_value_type : int32 = RuntimeType.UNDEFINED value_defaultPickerItemHeight_value_type = runtimeType(value_defaultPickerItemHeight_value) - if (((RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type))) { + if (RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_defaultPickerItemHeight_value_0 = value_defaultPickerItemHeight_value as number valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0) } - else if (((RuntimeType.STRING == value_defaultPickerItemHeight_value_type))) { + else if (RuntimeType.STRING == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_defaultPickerItemHeight_value_1 = value_defaultPickerItemHeight_value as string valueSerializer.writeString(value_defaultPickerItemHeight_value_1) @@ -5248,17 +5292,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -5312,12 +5356,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -5363,17 +5407,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -5396,6 +5440,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeTextInputAttribute(value: TextInputAttribute): void { + } writeInputCounterOptions(value: InputCounterOptions): void { let valueSerializer : Serializer = this const value_thresholdPercentage = value.thresholdPercentage @@ -5441,17 +5487,17 @@ export class Serializer extends SerializerBase { const value_typing_value_0 = value_typing_value as Color valueSerializer.writeInt32((value_typing_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_typing_value_type))) { + else if (RuntimeType.NUMBER == value_typing_value_type) { valueSerializer.writeInt8(1 as int32) const value_typing_value_1 = value_typing_value as number valueSerializer.writeNumber(value_typing_value_1) } - else if (((RuntimeType.STRING == value_typing_value_type))) { + else if (RuntimeType.STRING == value_typing_value_type) { valueSerializer.writeInt8(2 as int32) const value_typing_value_2 = value_typing_value as string valueSerializer.writeString(value_typing_value_2) } - else if (((RuntimeType.OBJECT == value_typing_value_type))) { + else if (RuntimeType.OBJECT == value_typing_value_type) { valueSerializer.writeInt8(3 as int32) const value_typing_value_3 = value_typing_value as Resource valueSerializer.writeResource(value_typing_value_3) @@ -5470,17 +5516,17 @@ export class Serializer extends SerializerBase { const value_normal_value_0 = value_normal_value as Color valueSerializer.writeInt32((value_normal_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_normal_value_type))) { + else if (RuntimeType.NUMBER == value_normal_value_type) { valueSerializer.writeInt8(1 as int32) const value_normal_value_1 = value_normal_value as number valueSerializer.writeNumber(value_normal_value_1) } - else if (((RuntimeType.STRING == value_normal_value_type))) { + else if (RuntimeType.STRING == value_normal_value_type) { valueSerializer.writeInt8(2 as int32) const value_normal_value_2 = value_normal_value as string valueSerializer.writeString(value_normal_value_2) } - else if (((RuntimeType.OBJECT == value_normal_value_type))) { + else if (RuntimeType.OBJECT == value_normal_value_type) { valueSerializer.writeInt8(3 as int32) const value_normal_value_3 = value_normal_value as Resource valueSerializer.writeResource(value_normal_value_3) @@ -5499,17 +5545,17 @@ export class Serializer extends SerializerBase { const value_error_value_0 = value_error_value as Color valueSerializer.writeInt32((value_error_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_error_value_type))) { + else if (RuntimeType.NUMBER == value_error_value_type) { valueSerializer.writeInt8(1 as int32) const value_error_value_1 = value_error_value as number valueSerializer.writeNumber(value_error_value_1) } - else if (((RuntimeType.STRING == value_error_value_type))) { + else if (RuntimeType.STRING == value_error_value_type) { valueSerializer.writeInt8(2 as int32) const value_error_value_2 = value_error_value as string valueSerializer.writeString(value_error_value_2) } - else if (((RuntimeType.OBJECT == value_error_value_type))) { + else if (RuntimeType.OBJECT == value_error_value_type) { valueSerializer.writeInt8(3 as int32) const value_error_value_3 = value_error_value as Resource valueSerializer.writeResource(value_error_value_3) @@ -5528,17 +5574,17 @@ export class Serializer extends SerializerBase { const value_disable_value_0 = value_disable_value as Color valueSerializer.writeInt32((value_disable_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_disable_value_type))) { + else if (RuntimeType.NUMBER == value_disable_value_type) { valueSerializer.writeInt8(1 as int32) const value_disable_value_1 = value_disable_value as number valueSerializer.writeNumber(value_disable_value_1) } - else if (((RuntimeType.STRING == value_disable_value_type))) { + else if (RuntimeType.STRING == value_disable_value_type) { valueSerializer.writeInt8(2 as int32) const value_disable_value_2 = value_disable_value as string valueSerializer.writeString(value_disable_value_2) } - else if (((RuntimeType.OBJECT == value_disable_value_type))) { + else if (RuntimeType.OBJECT == value_disable_value_type) { valueSerializer.writeInt8(3 as int32) const value_disable_value_3 = value_disable_value as Resource valueSerializer.writeResource(value_disable_value_3) @@ -5597,12 +5643,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type : int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0 as int32) const value_content_0 = value_content as string valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1 as int32) const value_content_1 = value_content as Resource valueSerializer.writeResource(value_content_1) @@ -5615,12 +5661,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -5629,6 +5675,59 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeTextMenuItemId(value_id) } + writeLineMetrics(value: LineMetrics): void { + let valueSerializer : Serializer = this + const value__LineMetricsStub = value._LineMetricsStub + valueSerializer.writeString(value__LineMetricsStub) + } + writePositionWithAffinity(value: PositionWithAffinity): void { + let valueSerializer : Serializer = this + const value_position = value.position + valueSerializer.writeNumber(value_position) + const value_affinity = value.affinity + valueSerializer.writeAffinity(value_affinity) + } + writeMutableStyledString(value: MutableStyledString): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writePreviewText(value: PreviewText): void { + let valueSerializer : Serializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeLayoutManager(value: LayoutManager): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeTextClockController(value: TextClockController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -5646,6 +5745,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAreaAttribute(value: TextAreaAttribute): void { + } writeTextAreaController(value: TextAreaController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -5663,6 +5764,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAttribute(value: TextAttribute): void { + } writeSelectionMenuOptions(value: SelectionMenuOptions): void { let valueSerializer : Serializer = this const value_onAppear = value.onAppear @@ -5728,17 +5831,17 @@ export class Serializer extends SerializerBase { const value__icon_value = value__icon! let value__icon_value_type : int32 = RuntimeType.UNDEFINED value__icon_value_type = runtimeType(value__icon_value) - if ((((RuntimeType.STRING == value__icon_value_type))) || (((RuntimeType.OBJECT == value__icon_value_type)))) { + if ((RuntimeType.STRING == value__icon_value_type) || (RuntimeType.OBJECT == value__icon_value_type)) { valueSerializer.writeInt8(0 as int32) const value__icon_value_0 = value__icon_value as ResourceStr let value__icon_value_0_type : int32 = RuntimeType.UNDEFINED value__icon_value_0_type = runtimeType(value__icon_value_0) - if (((RuntimeType.STRING == value__icon_value_0_type))) { + if (RuntimeType.STRING == value__icon_value_0_type) { valueSerializer.writeInt8(0 as int32) const value__icon_value_0_0 = value__icon_value_0 as string valueSerializer.writeString(value__icon_value_0_0) } - else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { + else if (RuntimeType.OBJECT == value__icon_value_0_type) { valueSerializer.writeInt8(1 as int32) const value__icon_value_0_1 = value__icon_value_0 as Resource valueSerializer.writeResource(value__icon_value_0_1) @@ -5758,12 +5861,12 @@ export class Serializer extends SerializerBase { const value__text_value = value__text! let value__text_value_type : int32 = RuntimeType.UNDEFINED value__text_value_type = runtimeType(value__text_value) - if (((RuntimeType.STRING == value__text_value_type))) { + if (RuntimeType.STRING == value__text_value_type) { valueSerializer.writeInt8(0 as int32) const value__text_value_0 = value__text_value as string valueSerializer.writeString(value__text_value_0) } - else if (((RuntimeType.OBJECT == value__text_value_type))) { + else if (RuntimeType.OBJECT == value__text_value_type) { valueSerializer.writeInt8(1 as int32) const value__text_value_1 = value__text_value as Resource valueSerializer.writeResource(value__text_value_1) @@ -5883,7 +5986,7 @@ export class Serializer extends SerializerBase { const value__content_value = value__content! let value__content_value_type : int32 = RuntimeType.UNDEFINED value__content_value_type = runtimeType(value__content_value) - if (((RuntimeType.STRING == value__content_value_type))) { + if (RuntimeType.STRING == value__content_value_type) { valueSerializer.writeInt8(0 as int32) const value__content_value_0 = value__content_value as string valueSerializer.writeString(value__content_value_0) @@ -6011,12 +6114,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -6030,18 +6133,20 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) } } } + writeTabsAttribute(value: TabsAttribute): void { + } writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { let valueSerializer : Serializer = this const value_colorMode = value.colorMode @@ -6097,17 +6202,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = value_inactiveColor_value as Color valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_inactiveColor_value_1 = value_inactiveColor_value as number valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_inactiveColor_value_2 = value_inactiveColor_value as string valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_inactiveColor_value_3 = value_inactiveColor_value as Resource valueSerializer.writeResource(value_inactiveColor_value_3) @@ -6163,6 +6268,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeSymbolGlyphAttribute(value: SymbolGlyphAttribute): void { + } writeSymbolEffect(value: SymbolEffect): void { } writeDigitIndicator(value: DigitIndicator): void { @@ -6228,17 +6335,17 @@ export class Serializer extends SerializerBase { const value__fontColor_value_0 = value__fontColor_value as Color valueSerializer.writeInt32((value__fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__fontColor_value_type))) { + else if (RuntimeType.NUMBER == value__fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__fontColor_value_1 = value__fontColor_value as number valueSerializer.writeNumber(value__fontColor_value_1) } - else if (((RuntimeType.STRING == value__fontColor_value_type))) { + else if (RuntimeType.STRING == value__fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__fontColor_value_2 = value__fontColor_value as string valueSerializer.writeString(value__fontColor_value_2) } - else if (((RuntimeType.OBJECT == value__fontColor_value_type))) { + else if (RuntimeType.OBJECT == value__fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__fontColor_value_3 = value__fontColor_value as Resource valueSerializer.writeResource(value__fontColor_value_3) @@ -6257,17 +6364,17 @@ export class Serializer extends SerializerBase { const value__selectedFontColor_value_0 = value__selectedFontColor_value as Color valueSerializer.writeInt32((value__selectedFontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__selectedFontColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedFontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__selectedFontColor_value_1 = value__selectedFontColor_value as number valueSerializer.writeNumber(value__selectedFontColor_value_1) } - else if (((RuntimeType.STRING == value__selectedFontColor_value_type))) { + else if (RuntimeType.STRING == value__selectedFontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__selectedFontColor_value_2 = value__selectedFontColor_value as string valueSerializer.writeString(value__selectedFontColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedFontColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedFontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__selectedFontColor_value_3 = value__selectedFontColor_value as Resource valueSerializer.writeResource(value__selectedFontColor_value_3) @@ -6393,17 +6500,17 @@ export class Serializer extends SerializerBase { const value__color_value_0 = value__color_value as Color valueSerializer.writeInt32((value__color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__color_value_type))) { + else if (RuntimeType.NUMBER == value__color_value_type) { valueSerializer.writeInt8(1 as int32) const value__color_value_1 = value__color_value as number valueSerializer.writeNumber(value__color_value_1) } - else if (((RuntimeType.STRING == value__color_value_type))) { + else if (RuntimeType.STRING == value__color_value_type) { valueSerializer.writeInt8(2 as int32) const value__color_value_2 = value__color_value as string valueSerializer.writeString(value__color_value_2) } - else if (((RuntimeType.OBJECT == value__color_value_type))) { + else if (RuntimeType.OBJECT == value__color_value_type) { valueSerializer.writeInt8(3 as int32) const value__color_value_3 = value__color_value as Resource valueSerializer.writeResource(value__color_value_3) @@ -6422,17 +6529,17 @@ export class Serializer extends SerializerBase { const value__selectedColor_value_0 = value__selectedColor_value as Color valueSerializer.writeInt32((value__selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__selectedColor_value_1 = value__selectedColor_value as number valueSerializer.writeNumber(value__selectedColor_value_1) } - else if (((RuntimeType.STRING == value__selectedColor_value_type))) { + else if (RuntimeType.STRING == value__selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__selectedColor_value_2 = value__selectedColor_value as string valueSerializer.writeString(value__selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__selectedColor_value_3 = value__selectedColor_value as Resource valueSerializer.writeResource(value__selectedColor_value_3) @@ -6447,17 +6554,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value) } } + writeSwiperAttribute(value: SwiperAttribute): void { + } writeSwiperAutoFill(value: SwiperAutoFill): void { let valueSerializer : Serializer = this const value_minSize = value.minSize let value_minSize_type : int32 = RuntimeType.UNDEFINED value_minSize_type = runtimeType(value_minSize) - if (((RuntimeType.STRING == value_minSize_type))) { + if (RuntimeType.STRING == value_minSize_type) { valueSerializer.writeInt8(0 as int32) const value_minSize_0 = value_minSize as string valueSerializer.writeString(value_minSize_0) } - else if (((RuntimeType.NUMBER == value_minSize_type))) { + else if (RuntimeType.NUMBER == value_minSize_type) { valueSerializer.writeInt8(1 as int32) const value_minSize_1 = value_minSize as number valueSerializer.writeNumber(value_minSize_1) @@ -6502,17 +6611,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -6539,23 +6648,29 @@ export class Serializer extends SerializerBase { const value_arrowColor_value_0 = value_arrowColor_value as Color valueSerializer.writeInt32((value_arrowColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_arrowColor_value_type))) { + else if (RuntimeType.NUMBER == value_arrowColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_arrowColor_value_1 = value_arrowColor_value as number valueSerializer.writeNumber(value_arrowColor_value_1) } - else if (((RuntimeType.STRING == value_arrowColor_value_type))) { + else if (RuntimeType.STRING == value_arrowColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_arrowColor_value_2 = value_arrowColor_value as string valueSerializer.writeString(value_arrowColor_value_2) } - else if (((RuntimeType.OBJECT == value_arrowColor_value_type))) { + else if (RuntimeType.OBJECT == value_arrowColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_arrowColor_value_3 = value_arrowColor_value as Resource valueSerializer.writeResource(value_arrowColor_value_3) } } } + writeSliderAttribute(value: SliderAttribute): void { + } + writeShapeAttribute(value: ShapeAttribute): void { + } + writeSelectAttribute(value: SelectAttribute): void { + } writeLocalizedEdges(value: LocalizedEdges): void { let valueSerializer : Serializer = this const value_top = value.top @@ -6626,6 +6741,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_right_value) } } + writeSearchAttribute(value: SearchAttribute): void { + } writeSearchButtonOptions(value: SearchButtonOptions): void { let valueSerializer : Serializer = this const value_fontSize = value.fontSize @@ -6649,17 +6766,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -6729,11 +6846,24 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeScrollAttribute(value: ScrollAttribute): void { + } writeEdgeEffectOptions(value: EdgeEffectOptions): void { let valueSerializer : Serializer = this const value_alwaysEnabled = value.alwaysEnabled valueSerializer.writeBoolean(value_alwaysEnabled) } + writeRectResult(value: RectResult): void { + let valueSerializer : Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeScrollToIndexOptions(value: ScrollToIndexOptions): void { let valueSerializer : Serializer = this const value_extraOffset = value.extraOffset @@ -6745,6 +6875,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value) } } + writeOffsetResult(value: OffsetResult): void { + let valueSerializer : Serializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } writeScrollPageOptions(value: ScrollPageOptions): void { let valueSerializer : Serializer = this const value_next = value.next @@ -6774,12 +6911,12 @@ export class Serializer extends SerializerBase { const value_xOffset = value.xOffset let value_xOffset_type : int32 = RuntimeType.UNDEFINED value_xOffset_type = runtimeType(value_xOffset) - if (((RuntimeType.NUMBER == value_xOffset_type))) { + if (RuntimeType.NUMBER == value_xOffset_type) { valueSerializer.writeInt8(0 as int32) const value_xOffset_0 = value_xOffset as number valueSerializer.writeNumber(value_xOffset_0) } - else if (((RuntimeType.STRING == value_xOffset_type))) { + else if (RuntimeType.STRING == value_xOffset_type) { valueSerializer.writeInt8(1 as int32) const value_xOffset_1 = value_xOffset as string valueSerializer.writeString(value_xOffset_1) @@ -6787,12 +6924,12 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset let value_yOffset_type : int32 = RuntimeType.UNDEFINED value_yOffset_type = runtimeType(value_yOffset) - if (((RuntimeType.NUMBER == value_yOffset_type))) { + if (RuntimeType.NUMBER == value_yOffset_type) { valueSerializer.writeInt8(0 as int32) const value_yOffset_0 = value_yOffset as number valueSerializer.writeNumber(value_yOffset_0) } - else if (((RuntimeType.STRING == value_yOffset_type))) { + else if (RuntimeType.STRING == value_yOffset_type) { valueSerializer.writeInt8(1 as int32) const value_yOffset_1 = value_yOffset as string valueSerializer.writeString(value_yOffset_1) @@ -6805,12 +6942,12 @@ export class Serializer extends SerializerBase { const value_animation_value = value_animation! let value_animation_value_type : int32 = RuntimeType.UNDEFINED value_animation_value_type = runtimeType(value_animation_value) - if (((RuntimeType.OBJECT == value_animation_value_type))) { + if (RuntimeType.OBJECT == value_animation_value_type) { valueSerializer.writeInt8(0 as int32) const value_animation_value_0 = value_animation_value as ScrollAnimationOptions valueSerializer.writeScrollAnimationOptions(value_animation_value_0) } - else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { + else if (RuntimeType.BOOLEAN == value_animation_value_type) { valueSerializer.writeInt8(1 as int32) const value_animation_value_1 = value_animation_value as boolean valueSerializer.writeBoolean(value_animation_value_1) @@ -6851,6 +6988,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeRichEditorAttribute(value: RichEditorAttribute): void { + } writePlaceholderStyle(value: PlaceholderStyle): void { let valueSerializer : Serializer = this const value_font = value.font @@ -6874,17 +7013,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -6911,12 +7050,12 @@ export class Serializer extends SerializerBase { const value_valueResourceStr_value = value_valueResourceStr! let value_valueResourceStr_value_type : int32 = RuntimeType.UNDEFINED value_valueResourceStr_value_type = runtimeType(value_valueResourceStr_value) - if (((RuntimeType.STRING == value_valueResourceStr_value_type))) { + if (RuntimeType.STRING == value_valueResourceStr_value_type) { valueSerializer.writeInt8(0 as int32) const value_valueResourceStr_value_0 = value_valueResourceStr_value as string valueSerializer.writeString(value_valueResourceStr_value_0) } - else if (((RuntimeType.OBJECT == value_valueResourceStr_value_type))) { + else if (RuntimeType.OBJECT == value_valueResourceStr_value_type) { valueSerializer.writeInt8(1 as int32) const value_valueResourceStr_value_1 = value_valueResourceStr_value as Resource valueSerializer.writeResource(value_valueResourceStr_value_1) @@ -7014,6 +7153,31 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_end_value) } } + writeRichEditorSelection(value: RichEditorSelection): void { + let valueSerializer : Serializer = this + const value_selection = value.selection + const value_selection_0 = value_selection[0] + valueSerializer.writeNumber(value_selection_0) + const value_selection_1 = value_selection[1] + valueSerializer.writeNumber(value_selection_1) + const value_spans = value.spans + valueSerializer.writeInt32(value_spans.length as int32) + for (let i = 0; i < value_spans.length; i++) { + const value_spans_element : RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] + let value_spans_element_type : int32 = RuntimeType.UNDEFINED + value_spans_element_type = runtimeType(value_spans_element) + if (TypeChecker.isRichEditorTextSpanResult(value_spans_element, true, false, false, true, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_spans_element_0 = value_spans_element as RichEditorTextSpanResult + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) + } + else if (TypeChecker.isRichEditorImageSpanResult(value_spans_element, true, false, false, false, true)) { + valueSerializer.writeInt8(1 as int32) + const value_spans_element_1 = value_spans_element as RichEditorImageSpanResult + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) + } + } + } writeRichEditorParagraphStyleOptions(value: RichEditorParagraphStyleOptions): void { let valueSerializer : Serializer = this const value_start = value.start @@ -7219,12 +7383,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -7238,12 +7402,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -7257,12 +7421,12 @@ export class Serializer extends SerializerBase { const value_radiusWidth_value = value_radiusWidth! let value_radiusWidth_value_type : int32 = RuntimeType.UNDEFINED value_radiusWidth_value_type = runtimeType(value_radiusWidth_value) - if (((RuntimeType.NUMBER == value_radiusWidth_value_type))) { + if (RuntimeType.NUMBER == value_radiusWidth_value_type) { valueSerializer.writeInt8(0 as int32) const value_radiusWidth_value_0 = value_radiusWidth_value as number valueSerializer.writeNumber(value_radiusWidth_value_0) } - else if (((RuntimeType.STRING == value_radiusWidth_value_type))) { + else if (RuntimeType.STRING == value_radiusWidth_value_type) { valueSerializer.writeInt8(1 as int32) const value_radiusWidth_value_1 = value_radiusWidth_value as string valueSerializer.writeString(value_radiusWidth_value_1) @@ -7276,12 +7440,12 @@ export class Serializer extends SerializerBase { const value_radiusHeight_value = value_radiusHeight! let value_radiusHeight_value_type : int32 = RuntimeType.UNDEFINED value_radiusHeight_value_type = runtimeType(value_radiusHeight_value) - if (((RuntimeType.NUMBER == value_radiusHeight_value_type))) { + if (RuntimeType.NUMBER == value_radiusHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_radiusHeight_value_0 = value_radiusHeight_value as number valueSerializer.writeNumber(value_radiusHeight_value_0) } - else if (((RuntimeType.STRING == value_radiusHeight_value_type))) { + else if (RuntimeType.STRING == value_radiusHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_radiusHeight_value_1 = value_radiusHeight_value as string valueSerializer.writeString(value_radiusHeight_value_1) @@ -7298,12 +7462,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -7317,12 +7481,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -7336,17 +7500,17 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.STRING == value_radius_value_type))) { + else if (RuntimeType.STRING == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as string valueSerializer.writeString(value_radius_value_1) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(2 as int32) const value_radius_value_2 = value_radius_value as Array valueSerializer.writeInt32(value_radius_value_2.length as int32) @@ -7354,12 +7518,12 @@ export class Serializer extends SerializerBase { const value_radius_value_2_element : number | string = value_radius_value_2[i] let value_radius_value_2_element_type : int32 = RuntimeType.UNDEFINED value_radius_value_2_element_type = runtimeType(value_radius_value_2_element) - if (((RuntimeType.NUMBER == value_radius_value_2_element_type))) { + if (RuntimeType.NUMBER == value_radius_value_2_element_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_2_element_0 = value_radius_value_2_element as number valueSerializer.writeNumber(value_radius_value_2_element_0) } - else if (((RuntimeType.STRING == value_radius_value_2_element_type))) { + else if (RuntimeType.STRING == value_radius_value_2_element_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_2_element_1 = value_radius_value_2_element as string valueSerializer.writeString(value_radius_value_2_element_1) @@ -7426,17 +7590,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = value_borderColor_value as Color valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1 = value_borderColor_value as number valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_2 = value_borderColor_value as string valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_3 = value_borderColor_value as Resource valueSerializer.writeResource(value_borderColor_value_3) @@ -7479,17 +7643,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -7565,17 +7729,17 @@ export class Serializer extends SerializerBase { const value_strokeRadius_value = value_strokeRadius! let value_strokeRadius_value_type : int32 = RuntimeType.UNDEFINED value_strokeRadius_value_type = runtimeType(value_strokeRadius_value) - if (((RuntimeType.STRING == value_strokeRadius_value_type))) { + if (RuntimeType.STRING == value_strokeRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_strokeRadius_value_0 = value_strokeRadius_value as string valueSerializer.writeString(value_strokeRadius_value_0) } - else if (((RuntimeType.NUMBER == value_strokeRadius_value_type))) { + else if (RuntimeType.NUMBER == value_strokeRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeRadius_value_1 = value_strokeRadius_value as number valueSerializer.writeNumber(value_strokeRadius_value_1) } - else if (((RuntimeType.OBJECT == value_strokeRadius_value_type))) { + else if (RuntimeType.OBJECT == value_strokeRadius_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeRadius_value_2 = value_strokeRadius_value as Resource valueSerializer.writeResource(value_strokeRadius_value_2) @@ -7604,17 +7768,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -7737,6 +7901,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_animated_value) } } + writeNavDestinationAttribute(value: NavDestinationAttribute): void { + } writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { let valueSerializer : Serializer = this const value_backgroundColor = value.backgroundColor @@ -7752,17 +7918,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7800,17 +7966,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7896,12 +8062,12 @@ export class Serializer extends SerializerBase { const value_main = value.main let value_main_type : int32 = RuntimeType.UNDEFINED value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { + if (RuntimeType.STRING == value_main_type) { valueSerializer.writeInt8(0 as int32) const value_main_0 = value_main as string valueSerializer.writeString(value_main_0) } - else if (((RuntimeType.OBJECT == value_main_type))) { + else if (RuntimeType.OBJECT == value_main_type) { valueSerializer.writeInt8(1 as int32) const value_main_1 = value_main as Resource valueSerializer.writeResource(value_main_1) @@ -7909,12 +8075,12 @@ export class Serializer extends SerializerBase { const value_sub = value.sub let value_sub_type : int32 = RuntimeType.UNDEFINED value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { + if (RuntimeType.STRING == value_sub_type) { valueSerializer.writeInt8(0 as int32) const value_sub_0 = value_sub as string valueSerializer.writeString(value_sub_0) } - else if (((RuntimeType.OBJECT == value_sub_type))) { + else if (RuntimeType.OBJECT == value_sub_type) { valueSerializer.writeInt8(1 as int32) const value_sub_1 = value_sub as Resource valueSerializer.writeResource(value_sub_1) @@ -7925,6 +8091,15 @@ export class Serializer extends SerializerBase { const value__SystemBarStyleStub = value._SystemBarStyleStub valueSerializer.writeString(value__SystemBarStyleStub) } + writeRouteMapConfig(value: RouteMapConfig): void { + let valueSerializer : Serializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_pageSourceFile = value.pageSourceFile + valueSerializer.writeString(value_pageSourceFile) + const value_data = value.data + valueSerializer.writeCustomObject("Object", value_data) + } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer : Serializer = this const value_startIcon = value.startIcon @@ -7935,12 +8110,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type : int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_startIcon_value_0 = value_startIcon_value as string valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_startIcon_value_1 = value_startIcon_value as Resource valueSerializer.writeResource(value_startIcon_value_1) @@ -7962,12 +8137,12 @@ export class Serializer extends SerializerBase { const value_content_value = value_content! let value_content_value_type : int32 = RuntimeType.UNDEFINED value_content_value_type = runtimeType(value_content_value) - if (((RuntimeType.STRING == value_content_value_type))) { + if (RuntimeType.STRING == value_content_value_type) { valueSerializer.writeInt8(0 as int32) const value_content_value_0 = value_content_value as string valueSerializer.writeString(value_content_value_0) } - else if (((RuntimeType.OBJECT == value_content_value_type))) { + else if (RuntimeType.OBJECT == value_content_value_type) { valueSerializer.writeInt8(1 as int32) const value_content_value_1 = value_content_value as Resource valueSerializer.writeResource(value_content_value_1) @@ -7981,12 +8156,12 @@ export class Serializer extends SerializerBase { const value_endIcon_value = value_endIcon! let value_endIcon_value_type : int32 = RuntimeType.UNDEFINED value_endIcon_value_type = runtimeType(value_endIcon_value) - if (((RuntimeType.STRING == value_endIcon_value_type))) { + if (RuntimeType.STRING == value_endIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_endIcon_value_0 = value_endIcon_value as string valueSerializer.writeString(value_endIcon_value_0) } - else if (((RuntimeType.OBJECT == value_endIcon_value_type))) { + else if (RuntimeType.OBJECT == value_endIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_endIcon_value_1 = value_endIcon_value as Resource valueSerializer.writeResource(value_endIcon_value_1) @@ -8008,12 +8183,12 @@ export class Serializer extends SerializerBase { const value_labelInfo_value = value_labelInfo! let value_labelInfo_value_type : int32 = RuntimeType.UNDEFINED value_labelInfo_value_type = runtimeType(value_labelInfo_value) - if (((RuntimeType.STRING == value_labelInfo_value_type))) { + if (RuntimeType.STRING == value_labelInfo_value_type) { valueSerializer.writeInt8(0 as int32) const value_labelInfo_value_0 = value_labelInfo_value as string valueSerializer.writeString(value_labelInfo_value_0) } - else if (((RuntimeType.OBJECT == value_labelInfo_value_type))) { + else if (RuntimeType.OBJECT == value_labelInfo_value_type) { valueSerializer.writeInt8(1 as int32) const value_labelInfo_value_1 = value_labelInfo_value as Resource valueSerializer.writeResource(value_labelInfo_value_1) @@ -8051,17 +8226,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -8134,17 +8309,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -8167,6 +8342,29 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeListAttribute(value: ListAttribute): void { + } + writeVisibleListContentInfo(value: VisibleListContentInfo): void { + let valueSerializer : Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_itemGroupArea = value.itemGroupArea + let value_itemGroupArea_type : int32 = RuntimeType.UNDEFINED + value_itemGroupArea_type = runtimeType(value_itemGroupArea) + valueSerializer.writeInt8(value_itemGroupArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { + const value_itemGroupArea_value = (value_itemGroupArea as ListItemGroupArea) + valueSerializer.writeInt32((value_itemGroupArea_value.valueOf() as int32)) + } + const value_itemIndexInGroup = value.itemIndexInGroup + let value_itemIndexInGroup_type : int32 = RuntimeType.UNDEFINED + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) + valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { + const value_itemIndexInGroup_value = value_itemIndexInGroup! + valueSerializer.writeNumber(value_itemIndexInGroup_value) + } + } writeCloseSwipeActionOptions(value: CloseSwipeActionOptions): void { let valueSerializer : Serializer = this const value_onFinish = value.onFinish @@ -8223,6 +8421,42 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_reference_value.valueOf() as int32)) } } + writeGridAttribute(value: GridAttribute): void { + } + writePanGestureOptions(value: PanGestureOptions): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeEventTargetInfo(value: EventTargetInfo): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer : Serializer = this const value__WindowStatusTypeStub = value._WindowStatusTypeStub @@ -8433,17 +8667,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8497,12 +8731,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -8559,17 +8793,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as string valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2 as int32) const value_curve_value_2 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_2) @@ -8624,6 +8858,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } + writeComponent3DAttribute(value: Component3DAttribute): void { + } + writeContext(value: Context): void { + let valueSerializer : Serializer = this + const value__ContextStub = value._ContextStub + valueSerializer.writeString(value__ContextStub) + } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { @@ -8659,6 +8900,33 @@ export class Serializer extends SerializerBase { const value__RectShapeStub = value._RectShapeStub valueSerializer.writeString(value__RectShapeStub) } + writeCaretOffset(value: CaretOffset): void { + let valueSerializer : Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeDirectionalEdgesT(value: DirectionalEdgesT): void { + let valueSerializer : Serializer = this + const value_start = value.start + valueSerializer.writeNumber(value_start) + const value_end = value.end + valueSerializer.writeNumber(value_end) + const value_top = value.top + valueSerializer.writeNumber(value_top) + const value_bottom = value.bottom + valueSerializer.writeNumber(value_bottom) + } + writeMeasureResult(value: MeasureResult): void { + let valueSerializer : Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer : Serializer = this const value_minWidth = value.minWidth @@ -8720,17 +8988,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8808,17 +9076,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_3) @@ -8898,12 +9166,12 @@ export class Serializer extends SerializerBase { const value_showClose_value = value_showClose! let value_showClose_value_type : int32 = RuntimeType.UNDEFINED value_showClose_value_type = runtimeType(value_showClose_value) - if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + if (RuntimeType.BOOLEAN == value_showClose_value_type) { valueSerializer.writeInt8(0 as int32) const value_showClose_value_0 = value_showClose_value as boolean valueSerializer.writeBoolean(value_showClose_value_0) } - else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + else if (RuntimeType.OBJECT == value_showClose_value_type) { valueSerializer.writeInt8(1 as int32) const value_showClose_value_1 = value_showClose_value as Resource valueSerializer.writeResource(value_showClose_value_1) @@ -8925,12 +9193,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.OBJECT == value_title_value_type))) { + if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as SheetTitleOptions valueSerializer.writeSheetTitleOptions(value_title_value_0) } - else if (((RuntimeType.FUNCTION == value_title_value_type))) { + else if (RuntimeType.FUNCTION == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_title_value_1)) @@ -9039,7 +9307,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -9049,17 +9317,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -9081,17 +9349,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -9110,17 +9378,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -9139,17 +9407,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -9168,17 +9436,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -9199,12 +9467,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -9249,12 +9517,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -9340,17 +9608,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9455,12 +9723,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type : int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((TypeChecker.isMenuPreviewMode(value_preview_value)))) { + if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) const value_preview_value_1 = value_preview_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9613,17 +9881,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9696,12 +9964,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type : int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((TypeChecker.isMenuPreviewMode(value_preview_value)))) { + if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) const value_preview_value_1 = value_preview_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9854,17 +10122,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9902,12 +10170,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -9947,17 +10215,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_1) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_2) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_3) @@ -9976,17 +10244,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = value_popupColor_value as Color valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_popupColor_value_1 = value_popupColor_value as string valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_popupColor_value_2 = value_popupColor_value as Resource valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_popupColor_value_3 = value_popupColor_value as number valueSerializer.writeNumber(value_popupColor_value_3) @@ -10040,12 +10308,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type : int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0 as int32) const value_mask_value_0 = value_mask_value as boolean valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1 = value_mask_value as Literal_ResourceColor_color const value_mask_value_1_color = value_mask_value_1.color @@ -10056,17 +10324,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = value_mask_value_1_color as Color valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1_color_1 = value_mask_value_1_color as number valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2 as int32) const value_mask_value_1_color_2 = value_mask_value_1_color as string valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3 as int32) const value_mask_value_1_color_3 = value_mask_value_1_color as Resource valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10137,12 +10405,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -10180,12 +10448,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type : int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0 as int32) const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1 as int32) const value_onWillDismiss_value_1 = value_onWillDismiss_value as ((parameter: DismissPopupAction) => void) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10282,12 +10550,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type : int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0 as int32) const value_mask_value_0 = value_mask_value as boolean valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1 = value_mask_value as Literal_ResourceColor_color const value_mask_value_1_color = value_mask_value_1.color @@ -10298,17 +10566,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = value_mask_value_1_color as Color valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1_color_1 = value_mask_value_1_color as number valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2 as int32) const value_mask_value_1_color_2 = value_mask_value_1_color as string valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3 as int32) const value_mask_value_1_color_3 = value_mask_value_1_color as Resource valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10360,17 +10628,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = value_popupColor_value as Color valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_popupColor_value_1 = value_popupColor_value as string valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_popupColor_value_2 = value_popupColor_value as Resource valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_popupColor_value_3 = value_popupColor_value as number valueSerializer.writeNumber(value_popupColor_value_3) @@ -10432,12 +10700,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -10467,12 +10735,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type : int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0 as int32) const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1 as int32) const value_onWillDismiss_value_1 = value_onWillDismiss_value as ((parameter: DismissPopupAction) => void) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10567,12 +10835,12 @@ export class Serializer extends SerializerBase { const value_mode_value = value_mode! let value_mode_value_type : int32 = RuntimeType.UNDEFINED value_mode_value_type = runtimeType(value_mode_value) - if (((TypeChecker.isDragPreviewMode(value_mode_value)))) { + if (TypeChecker.isDragPreviewMode(value_mode_value)) { valueSerializer.writeInt8(0 as int32) const value_mode_value_0 = value_mode_value as DragPreviewMode valueSerializer.writeInt32((value_mode_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_mode_value_type))) { + else if (RuntimeType.OBJECT == value_mode_value_type) { valueSerializer.writeInt8(1 as int32) const value_mode_value_1 = value_mode_value as Array valueSerializer.writeInt32(value_mode_value_1.length as int32) @@ -10598,12 +10866,12 @@ export class Serializer extends SerializerBase { const value_numberBadge_value = value_numberBadge! let value_numberBadge_value_type : int32 = RuntimeType.UNDEFINED value_numberBadge_value_type = runtimeType(value_numberBadge_value) - if (((RuntimeType.BOOLEAN == value_numberBadge_value_type))) { + if (RuntimeType.BOOLEAN == value_numberBadge_value_type) { valueSerializer.writeInt8(0 as int32) const value_numberBadge_value_0 = value_numberBadge_value as boolean valueSerializer.writeBoolean(value_numberBadge_value_0) } - else if (((RuntimeType.NUMBER == value_numberBadge_value_type))) { + else if (RuntimeType.NUMBER == value_numberBadge_value_type) { valueSerializer.writeInt8(1 as int32) const value_numberBadge_value_1 = value_numberBadge_value as number valueSerializer.writeNumber(value_numberBadge_value_1) @@ -10628,17 +10896,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as string valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2 as int32) const value_curve_value_2 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_2) @@ -10913,19 +11181,8 @@ export class Serializer extends SerializerBase { } writeDrawingLattice(value: DrawingLattice): void { let valueSerializer : Serializer = this - const value__DrawingLatticeStub = value._DrawingLatticeStub - valueSerializer.writeString(value__DrawingLatticeStub) - } - writeRectResult(value: RectResult): void { - let valueSerializer : Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_width = value.width - valueSerializer.writeNumber(value_width) - const value_height = value.height - valueSerializer.writeNumber(value_height) + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeDrawModifier(value: DrawModifier): void { let valueSerializer : Serializer = this @@ -10949,6 +11206,11 @@ export class Serializer extends SerializerBase { const value__IntentionCodeStub = value._IntentionCodeStub valueSerializer.writeString(value__IntentionCodeStub) } + writeSummary(value: Summary): void { + let valueSerializer : Serializer = this + const value__SummaryStub = value._SummaryStub + valueSerializer.writeString(value__SummaryStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -10966,6 +11228,29 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTouchObject(value: TouchObject): void { + let valueSerializer : Serializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.valueOf() as int32)) + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } writeColumnSplitDividerStyle(value: ColumnSplitDividerStyle): void { let valueSerializer : Serializer = this const value_startMargin = value.startMargin @@ -11008,17 +11293,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -11059,6 +11344,40 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeOffscreenCanvasRenderingContext2D(value: OffscreenCanvasRenderingContext2D): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeRenderingContextSettings(value: RenderingContextSettings): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeImageBitmap(value: ImageBitmap): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11076,6 +11395,35 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextMetrics(value: TextMetrics): void { + let valueSerializer : Serializer = this + const value_actualBoundingBoxAscent = value.actualBoundingBoxAscent + valueSerializer.writeNumber(value_actualBoundingBoxAscent) + const value_actualBoundingBoxDescent = value.actualBoundingBoxDescent + valueSerializer.writeNumber(value_actualBoundingBoxDescent) + const value_actualBoundingBoxLeft = value.actualBoundingBoxLeft + valueSerializer.writeNumber(value_actualBoundingBoxLeft) + const value_actualBoundingBoxRight = value.actualBoundingBoxRight + valueSerializer.writeNumber(value_actualBoundingBoxRight) + const value_alphabeticBaseline = value.alphabeticBaseline + valueSerializer.writeNumber(value_alphabeticBaseline) + const value_emHeightAscent = value.emHeightAscent + valueSerializer.writeNumber(value_emHeightAscent) + const value_emHeightDescent = value.emHeightDescent + valueSerializer.writeNumber(value_emHeightDescent) + const value_fontBoundingBoxAscent = value.fontBoundingBoxAscent + valueSerializer.writeNumber(value_fontBoundingBoxAscent) + const value_fontBoundingBoxDescent = value.fontBoundingBoxDescent + valueSerializer.writeNumber(value_fontBoundingBoxDescent) + const value_hangingBaseline = value.hangingBaseline + valueSerializer.writeNumber(value_hangingBaseline) + const value_ideographicBaseline = value.ideographicBaseline + valueSerializer.writeNumber(value_ideographicBaseline) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeImageData(value: ImageData): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11120,12 +11468,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type : int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_hintRadius_value_0 = value_hintRadius_value as number valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_hintRadius_value_1 = value_hintRadius_value as Resource valueSerializer.writeResource(value_hintRadius_value_1) @@ -11176,17 +11524,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11256,12 +11604,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -11284,6 +11632,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) } } + writeCalendarPickerAttribute(value: CalendarPickerAttribute): void { + } writeCalendarController(value: CalendarController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11329,17 +11679,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -11353,12 +11703,12 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type : int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontSize_value_0 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as string valueSerializer.writeString(value_fontSize_value_1) @@ -11372,12 +11722,12 @@ export class Serializer extends SerializerBase { const value_badgeSize_value = value_badgeSize! let value_badgeSize_value_type : int32 = RuntimeType.UNDEFINED value_badgeSize_value_type = runtimeType(value_badgeSize_value) - if (((RuntimeType.NUMBER == value_badgeSize_value_type))) { + if (RuntimeType.NUMBER == value_badgeSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_badgeSize_value_0 = value_badgeSize_value as number valueSerializer.writeNumber(value_badgeSize_value_0) } - else if (((RuntimeType.STRING == value_badgeSize_value_type))) { + else if (RuntimeType.STRING == value_badgeSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_badgeSize_value_1 = value_badgeSize_value as string valueSerializer.writeString(value_badgeSize_value_1) @@ -11396,17 +11746,17 @@ export class Serializer extends SerializerBase { const value_badgeColor_value_0 = value_badgeColor_value as Color valueSerializer.writeInt32((value_badgeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_badgeColor_value_type))) { + else if (RuntimeType.NUMBER == value_badgeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_badgeColor_value_1 = value_badgeColor_value as number valueSerializer.writeNumber(value_badgeColor_value_1) } - else if (((RuntimeType.STRING == value_badgeColor_value_type))) { + else if (RuntimeType.STRING == value_badgeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_badgeColor_value_2 = value_badgeColor_value as string valueSerializer.writeString(value_badgeColor_value_2) } - else if (((RuntimeType.OBJECT == value_badgeColor_value_type))) { + else if (RuntimeType.OBJECT == value_badgeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_badgeColor_value_3 = value_badgeColor_value as Resource valueSerializer.writeResource(value_badgeColor_value_3) @@ -11425,17 +11775,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = value_borderColor_value as Color valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1 = value_borderColor_value as number valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_2 = value_borderColor_value as string valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_3 = value_borderColor_value as Resource valueSerializer.writeResource(value_borderColor_value_3) @@ -11457,7 +11807,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -11467,13 +11817,15 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) } } } + writeAlphabetIndexerAttribute(value: AlphabetIndexerAttribute): void { + } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer : Serializer = this const value_title = value.title @@ -11484,12 +11836,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -11503,12 +11855,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -11517,12 +11869,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -11607,17 +11959,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11781,7 +12133,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -11791,17 +12143,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -11823,17 +12175,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -11852,17 +12204,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -11881,17 +12233,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -11910,17 +12262,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -11941,12 +12293,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -11991,12 +12343,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -12051,12 +12403,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -12070,12 +12422,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -12084,12 +12436,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -12174,17 +12526,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12348,7 +12700,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -12358,17 +12710,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12390,17 +12742,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12419,17 +12771,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -12448,17 +12800,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -12477,17 +12829,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -12508,12 +12860,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -12558,12 +12910,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -12608,12 +12960,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -12627,12 +12979,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -12641,12 +12993,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -12731,17 +13083,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12905,7 +13257,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -12915,17 +13267,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12947,17 +13299,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12976,17 +13328,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13005,17 +13357,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13034,17 +13386,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13065,12 +13417,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13115,12 +13467,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -13164,12 +13516,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -13182,12 +13534,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -13196,12 +13548,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -13289,17 +13641,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -13463,7 +13815,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -13473,17 +13825,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -13505,17 +13857,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -13534,17 +13886,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13563,17 +13915,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13592,17 +13944,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13623,12 +13975,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13673,12 +14025,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -13752,17 +14104,17 @@ export class Serializer extends SerializerBase { const value_curve = value.curve let value_curve_type : int32 = RuntimeType.UNDEFINED value_curve_type = runtimeType(value_curve) - if (((TypeChecker.isCurve(value_curve)))) { + if (TypeChecker.isCurve(value_curve)) { valueSerializer.writeInt8(0 as int32) const value_curve_0 = value_curve as Curve valueSerializer.writeInt32((value_curve_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_type))) { + else if (RuntimeType.STRING == value_curve_type) { valueSerializer.writeInt8(1 as int32) const value_curve_1 = value_curve as string valueSerializer.writeString(value_curve_1) } - else if (((RuntimeType.OBJECT == value_curve_type))) { + else if (RuntimeType.OBJECT == value_curve_type) { valueSerializer.writeInt8(2 as int32) const value_curve_2 = value_curve as ICurve valueSerializer.writeICurve(value_curve_2) @@ -13868,23 +14220,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeMutableStyledString(value: MutableStyledString): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeUrlStyle(value: UrlStyle): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -14134,17 +14469,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -14158,12 +14493,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_1) @@ -14185,7 +14520,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -14195,7 +14530,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -14457,12 +14792,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type : int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0 as int32) const value_content_0 = value_content as string valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1 as int32) const value_content_1 = value_content as Resource valueSerializer.writeResource(value_content_1) @@ -14475,12 +14810,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type : int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_startIcon_value_0 = value_startIcon_value as string valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_startIcon_value_1 = value_startIcon_value as Resource valueSerializer.writeResource(value_startIcon_value_1) @@ -15055,12 +15390,12 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type : int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0 as int32) const value_src_0 = value_src as string valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT == value_src_type))) { + else if (RuntimeType.OBJECT == value_src_type) { valueSerializer.writeInt8(1 as int32) const value_src_1 = value_src as Resource valueSerializer.writeResource(value_src_1) @@ -15103,23 +15438,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value) } } - writeWebCookie(value: WebCookie): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeHeader(value: Header): void { let valueSerializer : Serializer = this const value_headerKey = value.headerKey @@ -15152,12 +15470,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type : int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0 as int32) const value_src_value_0 = value_src_value as string valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1 as int32) const value_src_value_1 = value_src_value as Resource valueSerializer.writeResource(value_src_value_1) @@ -15171,12 +15489,12 @@ export class Serializer extends SerializerBase { const value_currentProgressRate_value = value_currentProgressRate! let value_currentProgressRate_value_type : int32 = RuntimeType.UNDEFINED value_currentProgressRate_value_type = runtimeType(value_currentProgressRate_value) - if (((RuntimeType.NUMBER == value_currentProgressRate_value_type))) { + if (RuntimeType.NUMBER == value_currentProgressRate_value_type) { valueSerializer.writeInt8(0 as int32) const value_currentProgressRate_value_0 = value_currentProgressRate_value as number valueSerializer.writeNumber(value_currentProgressRate_value_0) } - else if (((RuntimeType.STRING == value_currentProgressRate_value_type))) { + else if (RuntimeType.STRING == value_currentProgressRate_value_type) { valueSerializer.writeInt8(1 as int32) const value_currentProgressRate_value_1 = value_currentProgressRate_value as string valueSerializer.writeString(value_currentProgressRate_value_1) @@ -15195,7 +15513,7 @@ export class Serializer extends SerializerBase { const value_previewUri_value = value_previewUri! let value_previewUri_value_type : int32 = RuntimeType.UNDEFINED value_previewUri_value_type = runtimeType(value_previewUri_value) - if (((RuntimeType.STRING == value_previewUri_value_type))) { + if (RuntimeType.STRING == value_previewUri_value_type) { valueSerializer.writeInt8(0 as int32) const value_previewUri_value_0 = value_previewUri_value as string valueSerializer.writeString(value_previewUri_value_0) @@ -15238,12 +15556,12 @@ export class Serializer extends SerializerBase { const value_pointRadius_value = value_pointRadius! let value_pointRadius_value_type : int32 = RuntimeType.UNDEFINED value_pointRadius_value_type = runtimeType(value_pointRadius_value) - if (((RuntimeType.NUMBER == value_pointRadius_value_type))) { + if (RuntimeType.NUMBER == value_pointRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_pointRadius_value_0 = value_pointRadius_value as number valueSerializer.writeNumber(value_pointRadius_value_0) } - else if (((RuntimeType.OBJECT == value_pointRadius_value_type))) { + else if (RuntimeType.OBJECT == value_pointRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_pointRadius_value_1 = value_pointRadius_value as Resource valueSerializer.writeResource(value_pointRadius_value_1) @@ -15262,17 +15580,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -15291,17 +15609,17 @@ export class Serializer extends SerializerBase { const value_pointColor_value_0 = value_pointColor_value as Color valueSerializer.writeInt32((value_pointColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_pointColor_value_type))) { + else if (RuntimeType.NUMBER == value_pointColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_pointColor_value_1 = value_pointColor_value as number valueSerializer.writeNumber(value_pointColor_value_1) } - else if (((RuntimeType.STRING == value_pointColor_value_type))) { + else if (RuntimeType.STRING == value_pointColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_pointColor_value_2 = value_pointColor_value as string valueSerializer.writeString(value_pointColor_value_2) } - else if (((RuntimeType.OBJECT == value_pointColor_value_type))) { + else if (RuntimeType.OBJECT == value_pointColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_pointColor_value_3 = value_pointColor_value as Resource valueSerializer.writeResource(value_pointColor_value_3) @@ -15315,12 +15633,12 @@ export class Serializer extends SerializerBase { const value_trackBorderRadius_value = value_trackBorderRadius! let value_trackBorderRadius_value_type : int32 = RuntimeType.UNDEFINED value_trackBorderRadius_value_type = runtimeType(value_trackBorderRadius_value) - if (((RuntimeType.NUMBER == value_trackBorderRadius_value_type))) { + if (RuntimeType.NUMBER == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_trackBorderRadius_value_0 = value_trackBorderRadius_value as number valueSerializer.writeNumber(value_trackBorderRadius_value_0) } - else if (((RuntimeType.OBJECT == value_trackBorderRadius_value_type))) { + else if (RuntimeType.OBJECT == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_trackBorderRadius_value_1 = value_trackBorderRadius_value as Resource valueSerializer.writeResource(value_trackBorderRadius_value_1) @@ -15417,12 +15735,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Array valueSerializer.writeInt32(value_value_1.length as int32) @@ -15434,12 +15752,12 @@ export class Serializer extends SerializerBase { const value_index = value.index let value_index_type : int32 = RuntimeType.UNDEFINED value_index_type = runtimeType(value_index) - if (((RuntimeType.NUMBER == value_index_type))) { + if (RuntimeType.NUMBER == value_index_type) { valueSerializer.writeInt8(0 as int32) const value_index_0 = value_index as number valueSerializer.writeNumber(value_index_0) } - else if (((RuntimeType.OBJECT == value_index_type))) { + else if (RuntimeType.OBJECT == value_index_type) { valueSerializer.writeInt8(1 as int32) const value_index_1 = value_index as Array valueSerializer.writeInt32(value_index_1.length as int32) @@ -15471,12 +15789,12 @@ export class Serializer extends SerializerBase { const value_text = value.text let value_text_type : int32 = RuntimeType.UNDEFINED value_text_type = runtimeType(value_text) - if (((RuntimeType.STRING == value_text_type))) { + if (RuntimeType.STRING == value_text_type) { valueSerializer.writeInt8(0 as int32) const value_text_0 = value_text as string valueSerializer.writeString(value_text_0) } - else if (((RuntimeType.OBJECT == value_text_type))) { + else if (RuntimeType.OBJECT == value_text_type) { valueSerializer.writeInt8(1 as int32) const value_text_1 = value_text as Resource valueSerializer.writeResource(value_text_1) @@ -15499,12 +15817,12 @@ export class Serializer extends SerializerBase { const value_icon = value.icon let value_icon_type : int32 = RuntimeType.UNDEFINED value_icon_type = runtimeType(value_icon) - if (((RuntimeType.STRING == value_icon_type))) { + if (RuntimeType.STRING == value_icon_type) { valueSerializer.writeInt8(0 as int32) const value_icon_0 = value_icon as string valueSerializer.writeString(value_icon_0) } - else if (((RuntimeType.OBJECT == value_icon_type))) { + else if (RuntimeType.OBJECT == value_icon_type) { valueSerializer.writeInt8(1 as int32) const value_icon_1 = value_icon as Resource valueSerializer.writeResource(value_icon_1) @@ -15517,12 +15835,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -15587,12 +15905,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type : int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_value_0 = value_value_value as string valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_value_1 = value_value_value as Array valueSerializer.writeInt32(value_value_value_1.length as int32) @@ -15610,12 +15928,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type : int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0 as int32) const value_selected_value_0 = value_selected_value as number valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1 as int32) const value_selected_value_1 = value_selected_value as Array valueSerializer.writeInt32(value_selected_value_1.length as int32) @@ -15636,12 +15954,12 @@ export class Serializer extends SerializerBase { const value_onIconSrc_value = value_onIconSrc! let value_onIconSrc_value_type : int32 = RuntimeType.UNDEFINED value_onIconSrc_value_type = runtimeType(value_onIconSrc_value) - if (((RuntimeType.STRING == value_onIconSrc_value_type))) { + if (RuntimeType.STRING == value_onIconSrc_value_type) { valueSerializer.writeInt8(0 as int32) const value_onIconSrc_value_0 = value_onIconSrc_value as string valueSerializer.writeString(value_onIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_onIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_onIconSrc_value_type) { valueSerializer.writeInt8(1 as int32) const value_onIconSrc_value_1 = value_onIconSrc_value as Resource valueSerializer.writeResource(value_onIconSrc_value_1) @@ -15655,12 +15973,12 @@ export class Serializer extends SerializerBase { const value_offIconSrc_value = value_offIconSrc! let value_offIconSrc_value_type : int32 = RuntimeType.UNDEFINED value_offIconSrc_value_type = runtimeType(value_offIconSrc_value) - if (((RuntimeType.STRING == value_offIconSrc_value_type))) { + if (RuntimeType.STRING == value_offIconSrc_value_type) { valueSerializer.writeInt8(0 as int32) const value_offIconSrc_value_0 = value_offIconSrc_value as string valueSerializer.writeString(value_offIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_offIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_offIconSrc_value_type) { valueSerializer.writeInt8(1 as int32) const value_offIconSrc_value_1 = value_offIconSrc_value as Resource valueSerializer.writeResource(value_offIconSrc_value_1) @@ -15677,12 +15995,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -15696,12 +16014,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -15716,22 +16034,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_value) } } - writeLayoutManager(value: LayoutManager): void { + writeTextBox(value: TextBox): void { let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } + const value__TextBoxStub = value._TextBoxStub + valueSerializer.writeString(value__TextBoxStub) } writeStyledStringController(value: StyledStringController): void { let valueSerializer : Serializer = this @@ -15813,12 +16119,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -15832,12 +16138,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -16175,12 +16481,12 @@ export class Serializer extends SerializerBase { const value_image_value = value_image! let value_image_value_type : int32 = RuntimeType.UNDEFINED value_image_value_type = runtimeType(value_image_value) - if (((RuntimeType.STRING == value_image_value_type))) { + if (RuntimeType.STRING == value_image_value_type) { valueSerializer.writeInt8(0 as int32) const value_image_value_0 = value_image_value as string valueSerializer.writeString(value_image_value_0) } - else if (((RuntimeType.OBJECT == value_image_value_type))) { + else if (RuntimeType.OBJECT == value_image_value_type) { valueSerializer.writeInt8(1 as int32) const value_image_value_1 = value_image_value as Resource valueSerializer.writeResource(value_image_value_1) @@ -16264,12 +16570,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type : int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0 as int32) const value_x_value_0 = value_x_value as number valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1 as int32) const value_x_value_1 = value_x_value as string valueSerializer.writeString(value_x_value_1) @@ -16283,12 +16589,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type : int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0 as int32) const value_y_value_0 = value_y_value as number valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1 as int32) const value_y_value_1 = value_y_value as string valueSerializer.writeString(value_y_value_1) @@ -16302,12 +16608,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -16321,12 +16627,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -16338,12 +16644,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -16356,12 +16662,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -16409,17 +16715,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16434,13 +16740,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value.valueOf() as int32)) } } - writePreviewText(value: PreviewText): void { - let valueSerializer : Serializer = this - const value_offset = value.offset - valueSerializer.writeNumber(value_offset) - const value_value = value.value - valueSerializer.writeString(value_value) - } writeCaretStyle(value: CaretStyle): void { let valueSerializer : Serializer = this const value_width = value.width @@ -16464,17 +16763,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16499,12 +16798,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -16653,12 +16952,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as string valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as number valueSerializer.writeNumber(value_space_value_1) @@ -16785,17 +17084,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16862,31 +17161,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_previewText_value) } } - writeRichEditorSelection(value: RichEditorSelection): void { - let valueSerializer : Serializer = this - const value_selection = value.selection - const value_selection_0 = value_selection[0] - valueSerializer.writeNumber(value_selection_0) - const value_selection_1 = value_selection[1] - valueSerializer.writeNumber(value_selection_1) - const value_spans = value.spans - valueSerializer.writeInt32(value_spans.length as int32) - for (let i = 0; i < value_spans.length; i++) { - const value_spans_element : RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] - let value_spans_element_type : int32 = RuntimeType.UNDEFINED - value_spans_element_type = runtimeType(value_spans_element) - if (TypeChecker.isRichEditorTextSpanResult(value_spans_element, true, false, false, true, false, false, false, false)) { - valueSerializer.writeInt8(0 as int32) - const value_spans_element_0 = value_spans_element as RichEditorTextSpanResult - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) - } - else if (TypeChecker.isRichEditorImageSpanResult(value_spans_element, true, false, false, false, true)) { - valueSerializer.writeInt8(1 as int32) - const value_spans_element_1 = value_spans_element as RichEditorImageSpanResult - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) - } - } - } writeStyledStringChangeValue(value: StyledStringChangeValue): void { let valueSerializer : Serializer = this const value_range = value.range @@ -16902,6 +17176,16 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } + writeRichEditorParagraphResult(value: RichEditorParagraphResult): void { + let valueSerializer : Serializer = this + const value_style = value.style + valueSerializer.writeRichEditorParagraphStyle(value_style) + const value_range = value.range + const value_range_0 = value_range[0] + valueSerializer.writeNumber(value_range_0) + const value_range_1 = value_range[1] + valueSerializer.writeNumber(value_range_1) + } writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -16966,12 +17250,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type : int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0 as int32) const value_offset_value_0 = value_offset_value as number valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.STRING == value_offset_value_type))) { + else if (RuntimeType.STRING == value_offset_value_type) { valueSerializer.writeInt8(1 as int32) const value_offset_value_1 = value_offset_value as string valueSerializer.writeString(value_offset_value_1) @@ -16985,12 +17269,12 @@ export class Serializer extends SerializerBase { const value_friction_value = value_friction! let value_friction_value_type : int32 = RuntimeType.UNDEFINED value_friction_value_type = runtimeType(value_friction_value) - if (((RuntimeType.NUMBER == value_friction_value_type))) { + if (RuntimeType.NUMBER == value_friction_value_type) { valueSerializer.writeInt8(0 as int32) const value_friction_value_0 = value_friction_value as number valueSerializer.writeNumber(value_friction_value_0) } - else if (((RuntimeType.STRING == value_friction_value_type))) { + else if (RuntimeType.STRING == value_friction_value_type) { valueSerializer.writeInt8(1 as int32) const value_friction_value_1 = value_friction_value as string valueSerializer.writeString(value_friction_value_1) @@ -17004,12 +17288,12 @@ export class Serializer extends SerializerBase { const value_promptText_value = value_promptText! let value_promptText_value_type : int32 = RuntimeType.UNDEFINED value_promptText_value_type = runtimeType(value_promptText_value) - if (((RuntimeType.STRING == value_promptText_value_type))) { + if (RuntimeType.STRING == value_promptText_value_type) { valueSerializer.writeInt8(0 as int32) const value_promptText_value_0 = value_promptText_value as string valueSerializer.writeString(value_promptText_value_0) } - else if (((RuntimeType.OBJECT == value_promptText_value_type))) { + else if (RuntimeType.OBJECT == value_promptText_value_type) { valueSerializer.writeInt8(1 as int32) const value_promptText_value_1 = value_promptText_value as Resource valueSerializer.writeResource(value_promptText_value_1) @@ -17075,17 +17359,17 @@ export class Serializer extends SerializerBase { const value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value as Color valueSerializer.writeInt32((value_checkedBackgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_checkedBackgroundColor_value_1 = value_checkedBackgroundColor_value as number valueSerializer.writeNumber(value_checkedBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_checkedBackgroundColor_value_2 = value_checkedBackgroundColor_value as string valueSerializer.writeString(value_checkedBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_checkedBackgroundColor_value_3 = value_checkedBackgroundColor_value as Resource valueSerializer.writeResource(value_checkedBackgroundColor_value_3) @@ -17104,17 +17388,17 @@ export class Serializer extends SerializerBase { const value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value as Color valueSerializer.writeInt32((value_uncheckedBorderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.NUMBER == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_uncheckedBorderColor_value_1 = value_uncheckedBorderColor_value as number valueSerializer.writeNumber(value_uncheckedBorderColor_value_1) } - else if (((RuntimeType.STRING == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.STRING == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_uncheckedBorderColor_value_2 = value_uncheckedBorderColor_value as string valueSerializer.writeString(value_uncheckedBorderColor_value_2) } - else if (((RuntimeType.OBJECT == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.OBJECT == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_uncheckedBorderColor_value_3 = value_uncheckedBorderColor_value as Resource valueSerializer.writeResource(value_uncheckedBorderColor_value_3) @@ -17133,17 +17417,17 @@ export class Serializer extends SerializerBase { const value_indicatorColor_value_0 = value_indicatorColor_value as Color valueSerializer.writeInt32((value_indicatorColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_indicatorColor_value_type))) { + else if (RuntimeType.NUMBER == value_indicatorColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_indicatorColor_value_1 = value_indicatorColor_value as number valueSerializer.writeNumber(value_indicatorColor_value_1) } - else if (((RuntimeType.STRING == value_indicatorColor_value_type))) { + else if (RuntimeType.STRING == value_indicatorColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_indicatorColor_value_2 = value_indicatorColor_value as string valueSerializer.writeString(value_indicatorColor_value_2) } - else if (((RuntimeType.OBJECT == value_indicatorColor_value_type))) { + else if (RuntimeType.OBJECT == value_indicatorColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_indicatorColor_value_3 = value_indicatorColor_value as Resource valueSerializer.writeResource(value_indicatorColor_value_3) @@ -17212,12 +17496,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17231,12 +17515,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -17260,12 +17544,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17279,12 +17563,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -17332,12 +17616,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -17351,12 +17635,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -17435,12 +17719,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -17453,12 +17737,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -17496,12 +17780,12 @@ export class Serializer extends SerializerBase { const value_activeIcon_value = value_activeIcon! let value_activeIcon_value_type : int32 = RuntimeType.UNDEFINED value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { + if (RuntimeType.STRING == value_activeIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_activeIcon_value_0 = value_activeIcon_value as string valueSerializer.writeString(value_activeIcon_value_0) } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + else if (RuntimeType.OBJECT == value_activeIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_activeIcon_value_1 = value_activeIcon_value as Resource valueSerializer.writeResource(value_activeIcon_value_1) @@ -17521,12 +17805,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -17539,12 +17823,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -17592,23 +17876,23 @@ export class Serializer extends SerializerBase { const value_header_value = value_header! let value_header_value_type : int32 = RuntimeType.UNDEFINED value_header_value_type = runtimeType(value_header_value) - if (((RuntimeType.STRING == value_header_value_type)) || ((RuntimeType.OBJECT == value_header_value_type))) { + if ((RuntimeType.STRING == value_header_value_type) || (RuntimeType.OBJECT == value_header_value_type)) { valueSerializer.writeInt8(0 as int32) const value_header_value_0 = value_header_value as ResourceStr let value_header_value_0_type : int32 = RuntimeType.UNDEFINED value_header_value_0_type = runtimeType(value_header_value_0) - if (((RuntimeType.STRING == value_header_value_0_type))) { + if (RuntimeType.STRING == value_header_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_header_value_0_0 = value_header_value_0 as string valueSerializer.writeString(value_header_value_0_0) } - else if (((RuntimeType.OBJECT == value_header_value_0_type))) { + else if (RuntimeType.OBJECT == value_header_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_header_value_0_1 = value_header_value_0 as Resource valueSerializer.writeResource(value_header_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_header_value_type))) { + else if (RuntimeType.FUNCTION == value_header_value_type) { valueSerializer.writeInt8(1 as int32) const value_header_value_1 = value_header_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_header_value_1)) @@ -17622,23 +17906,23 @@ export class Serializer extends SerializerBase { const value_footer_value = value_footer! let value_footer_value_type : int32 = RuntimeType.UNDEFINED value_footer_value_type = runtimeType(value_footer_value) - if (((RuntimeType.STRING == value_footer_value_type)) || ((RuntimeType.OBJECT == value_footer_value_type))) { + if ((RuntimeType.STRING == value_footer_value_type) || (RuntimeType.OBJECT == value_footer_value_type)) { valueSerializer.writeInt8(0 as int32) const value_footer_value_0 = value_footer_value as ResourceStr let value_footer_value_0_type : int32 = RuntimeType.UNDEFINED value_footer_value_0_type = runtimeType(value_footer_value_0) - if (((RuntimeType.STRING == value_footer_value_0_type))) { + if (RuntimeType.STRING == value_footer_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_footer_value_0_0 = value_footer_value_0 as string valueSerializer.writeString(value_footer_value_0_0) } - else if (((RuntimeType.OBJECT == value_footer_value_0_type))) { + else if (RuntimeType.OBJECT == value_footer_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_footer_value_0_1 = value_footer_value_0 as Resource valueSerializer.writeResource(value_footer_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_footer_value_type))) { + else if (RuntimeType.FUNCTION == value_footer_value_type) { valueSerializer.writeInt8(1 as int32) const value_footer_value_1 = value_footer_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_footer_value_1)) @@ -17745,12 +18029,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as number valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as string valueSerializer.writeString(value_space_value_1) @@ -17775,12 +18059,12 @@ export class Serializer extends SerializerBase { const value_start_value = value_start! let value_start_value_type : int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.FUNCTION == value_start_value_type))) { + if (RuntimeType.FUNCTION == value_start_value_type) { valueSerializer.writeInt8(0 as int32) const value_start_value_0 = value_start_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_start_value_0)) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as SwipeActionItem valueSerializer.writeSwipeActionItem(value_start_value_1) @@ -17794,12 +18078,12 @@ export class Serializer extends SerializerBase { const value_end_value = value_end! let value_end_value_type : int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.FUNCTION == value_end_value_type))) { + if (RuntimeType.FUNCTION == value_end_value_type) { valueSerializer.writeInt8(0 as int32) const value_end_value_0 = value_end_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_end_value_0)) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as SwipeActionItem valueSerializer.writeSwipeActionItem(value_end_value_1) @@ -17833,27 +18117,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value.valueOf() as int32)) } } - writeVisibleListContentInfo(value: VisibleListContentInfo): void { - let valueSerializer : Serializer = this - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_itemGroupArea = value.itemGroupArea - let value_itemGroupArea_type : int32 = RuntimeType.UNDEFINED - value_itemGroupArea_type = runtimeType(value_itemGroupArea) - valueSerializer.writeInt8(value_itemGroupArea_type as int32) - if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { - const value_itemGroupArea_value = (value_itemGroupArea as ListItemGroupArea) - valueSerializer.writeInt32((value_itemGroupArea_value.valueOf() as int32)) - } - const value_itemIndexInGroup = value.itemIndexInGroup - let value_itemIndexInGroup_type : int32 = RuntimeType.UNDEFINED - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) - valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) - if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { - const value_itemIndexInGroup_value = value_itemIndexInGroup! - valueSerializer.writeNumber(value_itemIndexInGroup_value) - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer : Serializer = this const value_minSpace = value.minSpace @@ -17919,12 +18182,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as number valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as string valueSerializer.writeString(value_space_value_1) @@ -17966,12 +18229,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17985,12 +18248,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -18023,7 +18286,7 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type : int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0 as int32) const value_src_0 = value_src as string valueSerializer.writeString(value_src_0) @@ -18046,12 +18309,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -18065,12 +18328,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -18084,12 +18347,12 @@ export class Serializer extends SerializerBase { const value_top_value = value_top! let value_top_value_type : int32 = RuntimeType.UNDEFINED value_top_value_type = runtimeType(value_top_value) - if (((RuntimeType.NUMBER == value_top_value_type))) { + if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(0 as int32) const value_top_value_0 = value_top_value as number valueSerializer.writeNumber(value_top_value_0) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_top_value_1 = value_top_value as string valueSerializer.writeString(value_top_value_1) @@ -18103,12 +18366,12 @@ export class Serializer extends SerializerBase { const value_left_value = value_left! let value_left_value_type : int32 = RuntimeType.UNDEFINED value_left_value_type = runtimeType(value_left_value) - if (((RuntimeType.NUMBER == value_left_value_type))) { + if (RuntimeType.NUMBER == value_left_value_type) { valueSerializer.writeInt8(0 as int32) const value_left_value_0 = value_left_value as number valueSerializer.writeNumber(value_left_value_0) } - else if (((RuntimeType.STRING == value_left_value_type))) { + else if (RuntimeType.STRING == value_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_left_value_1 = value_left_value as string valueSerializer.writeString(value_left_value_1) @@ -18173,12 +18436,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type : int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0 as int32) const value_columns_value_0 = value_columns_value as number valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.OBJECT == value_columns_value_type))) { + else if (RuntimeType.OBJECT == value_columns_value_type) { valueSerializer.writeInt8(1 as int32) const value_columns_value_1 = value_columns_value as GridRowColumnOption valueSerializer.writeGridRowColumnOption(value_columns_value_1) @@ -18211,12 +18474,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type : int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0 as int32) const value_columns_value_0 = value_columns_value as number valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.STRING == value_columns_value_type))) { + else if (RuntimeType.STRING == value_columns_value_type) { valueSerializer.writeInt8(1 as int32) const value_columns_value_1 = value_columns_value as string valueSerializer.writeString(value_columns_value_1) @@ -18238,12 +18501,12 @@ export class Serializer extends SerializerBase { const value_gutter_value = value_gutter! let value_gutter_value_type : int32 = RuntimeType.UNDEFINED value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER == value_gutter_value_type))) { + if (RuntimeType.NUMBER == value_gutter_value_type) { valueSerializer.writeInt8(0 as int32) const value_gutter_value_0 = value_gutter_value as number valueSerializer.writeNumber(value_gutter_value_0) } - else if (((RuntimeType.STRING == value_gutter_value_type))) { + else if (RuntimeType.STRING == value_gutter_value_type) { valueSerializer.writeInt8(1 as int32) const value_gutter_value_1 = value_gutter_value as string valueSerializer.writeString(value_gutter_value_1) @@ -18257,12 +18520,12 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type : int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER == value_margin_value_type))) { + if (RuntimeType.NUMBER == value_margin_value_type) { valueSerializer.writeInt8(0 as int32) const value_margin_value_0 = value_margin_value as number valueSerializer.writeNumber(value_margin_value_0) } - else if (((RuntimeType.STRING == value_margin_value_type))) { + else if (RuntimeType.STRING == value_margin_value_type) { valueSerializer.writeInt8(1 as int32) const value_margin_value_1 = value_margin_value as string valueSerializer.writeString(value_margin_value_1) @@ -18279,12 +18542,12 @@ export class Serializer extends SerializerBase { const value_span_value = value_span! let value_span_value_type : int32 = RuntimeType.UNDEFINED value_span_value_type = runtimeType(value_span_value) - if (((RuntimeType.NUMBER == value_span_value_type))) { + if (RuntimeType.NUMBER == value_span_value_type) { valueSerializer.writeInt8(0 as int32) const value_span_value_0 = value_span_value as number valueSerializer.writeNumber(value_span_value_0) } - else if (((RuntimeType.OBJECT == value_span_value_type))) { + else if (RuntimeType.OBJECT == value_span_value_type) { valueSerializer.writeInt8(1 as int32) const value_span_value_1 = value_span_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_span_value_1) @@ -18298,12 +18561,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type : int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0 as int32) const value_offset_value_0 = value_offset_value as number valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.OBJECT == value_offset_value_type))) { + else if (RuntimeType.OBJECT == value_offset_value_type) { valueSerializer.writeInt8(1 as int32) const value_offset_value_1 = value_offset_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_offset_value_1) @@ -18317,12 +18580,12 @@ export class Serializer extends SerializerBase { const value_order_value = value_order! let value_order_value_type : int32 = RuntimeType.UNDEFINED value_order_value_type = runtimeType(value_order_value) - if (((RuntimeType.NUMBER == value_order_value_type))) { + if (RuntimeType.NUMBER == value_order_value_type) { valueSerializer.writeInt8(0 as int32) const value_order_value_0 = value_order_value as number valueSerializer.writeNumber(value_order_value_0) } - else if (((RuntimeType.OBJECT == value_order_value_type))) { + else if (RuntimeType.OBJECT == value_order_value_type) { valueSerializer.writeInt8(1 as int32) const value_order_value_1 = value_order_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_order_value_1) @@ -18407,23 +18670,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeEventTargetInfo(value: EventTargetInfo): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeScrollableTargetInfo(value: ScrollableTargetInfo): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -18441,23 +18687,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writePanGestureOptions(value: PanGestureOptions): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeGestureEvent(value: GestureEvent): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -18587,12 +18816,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -18617,12 +18846,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Resource valueSerializer.writeResource(value_radius_value_1) @@ -18636,12 +18865,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -18655,12 +18884,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -18745,12 +18974,12 @@ export class Serializer extends SerializerBase { const value_id = value.id let value_id_type : int32 = RuntimeType.UNDEFINED value_id_type = runtimeType(value_id) - if (((RuntimeType.NUMBER == value_id_type))) { + if (RuntimeType.NUMBER == value_id_type) { valueSerializer.writeInt8(0 as int32) const value_id_0 = value_id as number valueSerializer.writeNumber(value_id_0) } - else if (((RuntimeType.STRING == value_id_type))) { + else if (RuntimeType.STRING == value_id_type) { valueSerializer.writeInt8(1 as int32) const value_id_1 = value_id as string valueSerializer.writeString(value_id_1) @@ -18909,12 +19138,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -18928,12 +19157,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -19021,12 +19250,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Resource valueSerializer.writeResource(value_radius_value_1) @@ -19040,12 +19269,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -19059,12 +19288,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -19081,7 +19310,7 @@ export class Serializer extends SerializerBase { const value_colors_value_element : ResourceColor | LinearGradient = value_colors_value[i] let value_colors_value_element_type : int32 = RuntimeType.UNDEFINED value_colors_value_element_type = runtimeType(value_colors_value_element) - if ((TypeChecker.isColor(value_colors_value_element)) || (((RuntimeType.NUMBER == value_colors_value_element_type))) || (((RuntimeType.STRING == value_colors_value_element_type))) || (((RuntimeType.OBJECT == value_colors_value_element_type)))) { + if ((TypeChecker.isColor(value_colors_value_element)) || (RuntimeType.NUMBER == value_colors_value_element_type) || (RuntimeType.STRING == value_colors_value_element_type) || (RuntimeType.OBJECT == value_colors_value_element_type)) { valueSerializer.writeInt8(0 as int32) const value_colors_value_element_0 = value_colors_value_element as ResourceColor let value_colors_value_element_0_type : int32 = RuntimeType.UNDEFINED @@ -19091,17 +19320,17 @@ export class Serializer extends SerializerBase { const value_colors_value_element_0_0 = value_colors_value_element_0 as Color valueSerializer.writeInt32((value_colors_value_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_value_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_value_element_0_type) { valueSerializer.writeInt8(1 as int32) const value_colors_value_element_0_1 = value_colors_value_element_0 as number valueSerializer.writeNumber(value_colors_value_element_0_1) } - else if (((RuntimeType.STRING == value_colors_value_element_0_type))) { + else if (RuntimeType.STRING == value_colors_value_element_0_type) { valueSerializer.writeInt8(2 as int32) const value_colors_value_element_0_2 = value_colors_value_element_0 as string valueSerializer.writeString(value_colors_value_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_value_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_value_element_0_type) { valueSerializer.writeInt8(3 as int32) const value_colors_value_element_0_3 = value_colors_value_element_0 as Resource valueSerializer.writeResource(value_colors_value_element_0_3) @@ -19150,17 +19379,17 @@ export class Serializer extends SerializerBase { const value_color_0 = value_color as Color valueSerializer.writeInt32((value_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) const value_color_1 = value_color as number valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2 as int32) const value_color_2 = value_color as string valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3 as int32) const value_color_3 = value_color as Resource valueSerializer.writeResource(value_color_3) @@ -19236,17 +19465,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_3) @@ -19297,17 +19526,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -19453,7 +19682,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -19463,17 +19692,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -19495,17 +19724,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -19524,17 +19753,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -19553,17 +19782,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -19582,17 +19811,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -19608,12 +19837,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -19658,12 +19887,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -19746,17 +19975,17 @@ export class Serializer extends SerializerBase { const value_scene_value = value_scene! let value_scene_value_type : int32 = RuntimeType.UNDEFINED value_scene_value_type = runtimeType(value_scene_value) - if ((((RuntimeType.STRING == value_scene_value_type))) || (((RuntimeType.OBJECT == value_scene_value_type)))) { + if ((RuntimeType.STRING == value_scene_value_type) || (RuntimeType.OBJECT == value_scene_value_type)) { valueSerializer.writeInt8(0 as int32) const value_scene_value_0 = value_scene_value as ResourceStr let value_scene_value_0_type : int32 = RuntimeType.UNDEFINED value_scene_value_0_type = runtimeType(value_scene_value_0) - if (((RuntimeType.STRING == value_scene_value_0_type))) { + if (RuntimeType.STRING == value_scene_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_scene_value_0_0 = value_scene_value_0 as string valueSerializer.writeString(value_scene_value_0_0) } - else if (((RuntimeType.OBJECT == value_scene_value_0_type))) { + else if (RuntimeType.OBJECT == value_scene_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_scene_value_0_1 = value_scene_value_0 as Resource valueSerializer.writeResource(value_scene_value_0_1) @@ -19811,13 +20040,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeOffsetResult(value: OffsetResult): void { - let valueSerializer : Serializer = this - const value_xOffset = value.xOffset - valueSerializer.writeNumber(value_xOffset) - const value_yOffset = value.yOffset - valueSerializer.writeNumber(value_yOffset) - } writeTextContentControllerBase(value: TextContentControllerBase): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -19898,12 +20120,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -19916,12 +20138,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -20380,17 +20602,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_top_value_1 = value_color_value_0_top_value as number valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_top_value_2 = value_color_value_0_top_value as string valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20409,17 +20631,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_right_value_1 = value_color_value_0_right_value as number valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_right_value_2 = value_color_value_0_right_value as string valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20438,17 +20660,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20467,24 +20689,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_left_value_1 = value_color_value_0_left_value as number valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_left_value_2 = value_color_value_0_left_value as string valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((TypeChecker.isColor(value_color_value)) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((TypeChecker.isColor(value_color_value)) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as ResourceColor let value_color_value_1_type : int32 = RuntimeType.UNDEFINED @@ -20494,17 +20716,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = value_color_value_1 as Color valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1_1 = value_color_value_1 as number valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_1_2 = value_color_value_1 as string valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_1_3 = value_color_value_1 as Resource valueSerializer.writeResource(value_color_value_1_3) @@ -20574,7 +20796,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type : int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0 as int32) const value_style_value_0 = value_style_value as EdgeOutlineStyles const value_style_value_0_top = value_style_value_0.top @@ -20610,7 +20832,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) } } - else if (((TypeChecker.isOutlineStyle(value_style_value)))) { + else if (TypeChecker.isOutlineStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as OutlineStyle valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) @@ -20690,7 +20912,7 @@ export class Serializer extends SerializerBase { const value_source_value = value_source! let value_source_value_type : int32 = RuntimeType.UNDEFINED value_source_value_type = runtimeType(value_source_value) - if (((RuntimeType.STRING == value_source_value_type))) { + if (RuntimeType.STRING == value_source_value_type) { valueSerializer.writeInt8(0 as int32) const value_source_value_0 = value_source_value as string valueSerializer.writeString(value_source_value_0) @@ -20906,17 +21128,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_top_value_1 = value_color_value_0_top_value as number valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_top_value_2 = value_color_value_0_top_value as string valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20935,17 +21157,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_right_value_1 = value_color_value_0_right_value as number valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_right_value_2 = value_color_value_0_right_value as string valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20964,17 +21186,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20993,24 +21215,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_left_value_1 = value_color_value_0_left_value as number valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_left_value_2 = value_color_value_0_left_value as string valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((TypeChecker.isColor(value_color_value)) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((TypeChecker.isColor(value_color_value)) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as ResourceColor let value_color_value_1_type : int32 = RuntimeType.UNDEFINED @@ -21020,17 +21242,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = value_color_value_1 as Color valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1_1 = value_color_value_1 as number valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_1_2 = value_color_value_1 as string valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_1_3 = value_color_value_1 as Resource valueSerializer.writeResource(value_color_value_1_3) @@ -21105,7 +21327,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type : int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0 as int32) const value_style_value_0 = value_style_value as EdgeStyles const value_style_value_0_top = value_style_value_0.top @@ -21141,7 +21363,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) } } - else if (((TypeChecker.isBorderStyle(value_style_value)))) { + else if (TypeChecker.isBorderStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as BorderStyle valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) @@ -21356,17 +21578,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -21409,17 +21631,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = value_inactiveColor_value as Color valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_inactiveColor_value_1 = value_inactiveColor_value as number valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_inactiveColor_value_2 = value_inactiveColor_value as string valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_inactiveColor_value_3 = value_inactiveColor_value as Resource valueSerializer.writeResource(value_inactiveColor_value_3) @@ -21563,28 +21785,16 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTouchObject(value: TouchObject): void { + writeHistoricalPoint(value: HistoricalPoint): void { let valueSerializer : Serializer = this - const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - const value_windowX = value.windowX - valueSerializer.writeNumber(value_windowX) - const value_windowY = value.windowY - valueSerializer.writeNumber(value_windowY) - const value_screenX = value.screenX - valueSerializer.writeNumber(value_screenX) - const value_screenY = value.screenY - valueSerializer.writeNumber(value_screenY) - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) + const value_touchObject = value.touchObject + valueSerializer.writeTouchObject(value_touchObject) + const value_size = value.size + valueSerializer.writeNumber(value_size) + const value_force = value.force + valueSerializer.writeNumber(value_force) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) } writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): void { let valueSerializer : Serializer = this @@ -21691,12 +21901,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as string valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as number valueSerializer.writeNumber(value_space_value_1) @@ -21713,12 +21923,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -21732,12 +21942,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -21781,17 +21991,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = value_strokeColor_value as Color valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeColor_value_1 = value_strokeColor_value as number valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeColor_value_2 = value_strokeColor_value as string valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_strokeColor_value_3 = value_strokeColor_value as Resource valueSerializer.writeResource(value_strokeColor_value_3) @@ -21841,7 +22051,7 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } - writeCanvasRenderer(value: CanvasRenderer): void { + writeOffscreenCanvas(value: OffscreenCanvas): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -21858,7 +22068,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeRenderingContextSettings(value: RenderingContextSettings): void { + writeCanvasRenderer(value: CanvasRenderer): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -21924,12 +22134,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type : int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_hintRadius_value_0 = value_hintRadius_value as number valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_hintRadius_value_1 = value_hintRadius_value as Resource valueSerializer.writeResource(value_hintRadius_value_1) @@ -21981,17 +22191,17 @@ export class Serializer extends SerializerBase { const value_workDayMarkColor_value_0 = value_workDayMarkColor_value as Color valueSerializer.writeInt32((value_workDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_workDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_workDayMarkColor_value_1 = value_workDayMarkColor_value as number valueSerializer.writeNumber(value_workDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_workDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_workDayMarkColor_value_2 = value_workDayMarkColor_value as string valueSerializer.writeString(value_workDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_workDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_workDayMarkColor_value_3 = value_workDayMarkColor_value as Resource valueSerializer.writeResource(value_workDayMarkColor_value_3) @@ -22010,17 +22220,17 @@ export class Serializer extends SerializerBase { const value_offDayMarkColor_value_0 = value_offDayMarkColor_value as Color valueSerializer.writeInt32((value_offDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_offDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_offDayMarkColor_value_1 = value_offDayMarkColor_value as number valueSerializer.writeNumber(value_offDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_offDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_offDayMarkColor_value_2 = value_offDayMarkColor_value as string valueSerializer.writeString(value_offDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_offDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_offDayMarkColor_value_3 = value_offDayMarkColor_value as Resource valueSerializer.writeResource(value_offDayMarkColor_value_3) @@ -22082,17 +22292,17 @@ export class Serializer extends SerializerBase { const value_weekColor_value_0 = value_weekColor_value as Color valueSerializer.writeInt32((value_weekColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekColor_value_1 = value_weekColor_value as number valueSerializer.writeNumber(value_weekColor_value_1) } - else if (((RuntimeType.STRING == value_weekColor_value_type))) { + else if (RuntimeType.STRING == value_weekColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekColor_value_2 = value_weekColor_value as string valueSerializer.writeString(value_weekColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekColor_value_3 = value_weekColor_value as Resource valueSerializer.writeResource(value_weekColor_value_3) @@ -22111,17 +22321,17 @@ export class Serializer extends SerializerBase { const value_weekendDayColor_value_0 = value_weekendDayColor_value as Color valueSerializer.writeInt32((value_weekendDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekendDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekendDayColor_value_1 = value_weekendDayColor_value as number valueSerializer.writeNumber(value_weekendDayColor_value_1) } - else if (((RuntimeType.STRING == value_weekendDayColor_value_type))) { + else if (RuntimeType.STRING == value_weekendDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekendDayColor_value_2 = value_weekendDayColor_value as string valueSerializer.writeString(value_weekendDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekendDayColor_value_3 = value_weekendDayColor_value as Resource valueSerializer.writeResource(value_weekendDayColor_value_3) @@ -22140,17 +22350,17 @@ export class Serializer extends SerializerBase { const value_weekendLunarColor_value_0 = value_weekendLunarColor_value as Color valueSerializer.writeInt32((value_weekendLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekendLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekendLunarColor_value_1 = value_weekendLunarColor_value as number valueSerializer.writeNumber(value_weekendLunarColor_value_1) } - else if (((RuntimeType.STRING == value_weekendLunarColor_value_type))) { + else if (RuntimeType.STRING == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekendLunarColor_value_2 = value_weekendLunarColor_value as string valueSerializer.writeString(value_weekendLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekendLunarColor_value_3 = value_weekendLunarColor_value as Resource valueSerializer.writeResource(value_weekendLunarColor_value_3) @@ -22204,17 +22414,17 @@ export class Serializer extends SerializerBase { const value_focusedDayColor_value_0 = value_focusedDayColor_value as Color valueSerializer.writeInt32((value_focusedDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedDayColor_value_1 = value_focusedDayColor_value as number valueSerializer.writeNumber(value_focusedDayColor_value_1) } - else if (((RuntimeType.STRING == value_focusedDayColor_value_type))) { + else if (RuntimeType.STRING == value_focusedDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedDayColor_value_2 = value_focusedDayColor_value as string valueSerializer.writeString(value_focusedDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedDayColor_value_3 = value_focusedDayColor_value as Resource valueSerializer.writeResource(value_focusedDayColor_value_3) @@ -22233,17 +22443,17 @@ export class Serializer extends SerializerBase { const value_focusedLunarColor_value_0 = value_focusedLunarColor_value as Color valueSerializer.writeInt32((value_focusedLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedLunarColor_value_1 = value_focusedLunarColor_value as number valueSerializer.writeNumber(value_focusedLunarColor_value_1) } - else if (((RuntimeType.STRING == value_focusedLunarColor_value_type))) { + else if (RuntimeType.STRING == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedLunarColor_value_2 = value_focusedLunarColor_value as string valueSerializer.writeString(value_focusedLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedLunarColor_value_3 = value_focusedLunarColor_value as Resource valueSerializer.writeResource(value_focusedLunarColor_value_3) @@ -22262,17 +22472,17 @@ export class Serializer extends SerializerBase { const value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value as Color valueSerializer.writeInt32((value_focusedAreaBackgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedAreaBackgroundColor_value_1 = value_focusedAreaBackgroundColor_value as number valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedAreaBackgroundColor_value_2 = value_focusedAreaBackgroundColor_value as string valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedAreaBackgroundColor_value_3 = value_focusedAreaBackgroundColor_value as Resource valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3) @@ -22302,17 +22512,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthDayColor_value_1 = value_nonCurrentMonthDayColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthDayColor_value_2 = value_nonCurrentMonthDayColor_value as string valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthDayColor_value_3 = value_nonCurrentMonthDayColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3) @@ -22331,17 +22541,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthLunarColor_value_1 = value_nonCurrentMonthLunarColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthLunarColor_value_2 = value_nonCurrentMonthLunarColor_value as string valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthLunarColor_value_3 = value_nonCurrentMonthLunarColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3) @@ -22360,17 +22570,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthWorkDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_1 = value_nonCurrentMonthWorkDayMarkColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_2 = value_nonCurrentMonthWorkDayMarkColor_value as string valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_3 = value_nonCurrentMonthWorkDayMarkColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3) @@ -22389,17 +22599,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthOffDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthOffDayMarkColor_value_1 = value_nonCurrentMonthOffDayMarkColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthOffDayMarkColor_value_2 = value_nonCurrentMonthOffDayMarkColor_value as string valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthOffDayMarkColor_value_3 = value_nonCurrentMonthOffDayMarkColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3) @@ -22421,17 +22631,17 @@ export class Serializer extends SerializerBase { const value_dayColor_value_0 = value_dayColor_value as Color valueSerializer.writeInt32((value_dayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_dayColor_value_type))) { + else if (RuntimeType.NUMBER == value_dayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_dayColor_value_1 = value_dayColor_value as number valueSerializer.writeNumber(value_dayColor_value_1) } - else if (((RuntimeType.STRING == value_dayColor_value_type))) { + else if (RuntimeType.STRING == value_dayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_dayColor_value_2 = value_dayColor_value as string valueSerializer.writeString(value_dayColor_value_2) } - else if (((RuntimeType.OBJECT == value_dayColor_value_type))) { + else if (RuntimeType.OBJECT == value_dayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_dayColor_value_3 = value_dayColor_value as Resource valueSerializer.writeResource(value_dayColor_value_3) @@ -22450,17 +22660,17 @@ export class Serializer extends SerializerBase { const value_lunarColor_value_0 = value_lunarColor_value as Color valueSerializer.writeInt32((value_lunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_lunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_lunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_lunarColor_value_1 = value_lunarColor_value as number valueSerializer.writeNumber(value_lunarColor_value_1) } - else if (((RuntimeType.STRING == value_lunarColor_value_type))) { + else if (RuntimeType.STRING == value_lunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_lunarColor_value_2 = value_lunarColor_value as string valueSerializer.writeString(value_lunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_lunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_lunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_lunarColor_value_3 = value_lunarColor_value as Resource valueSerializer.writeResource(value_lunarColor_value_3) @@ -22479,17 +22689,17 @@ export class Serializer extends SerializerBase { const value_markLunarColor_value_0 = value_markLunarColor_value as Color valueSerializer.writeInt32((value_markLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_markLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_markLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_markLunarColor_value_1 = value_markLunarColor_value as number valueSerializer.writeNumber(value_markLunarColor_value_1) } - else if (((RuntimeType.STRING == value_markLunarColor_value_type))) { + else if (RuntimeType.STRING == value_markLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_markLunarColor_value_2 = value_markLunarColor_value as string valueSerializer.writeString(value_markLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_markLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_markLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_markLunarColor_value_3 = value_markLunarColor_value as Resource valueSerializer.writeResource(value_markLunarColor_value_3) @@ -22734,12 +22944,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type : int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((TypeChecker.isBadgePosition(value_position_value)))) { + if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) const value_position_value_1 = value_position_value as Position valueSerializer.writePosition(value_position_value_1) @@ -22760,12 +22970,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type : int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((TypeChecker.isBadgePosition(value_position_value)))) { + if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) const value_position_value_1 = value_position_value as Position valueSerializer.writePosition(value_position_value_1) @@ -22892,12 +23102,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -22915,17 +23125,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -22944,17 +23154,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -23000,12 +23210,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -23018,12 +23228,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -23124,6 +23334,23 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeSystemOps(value: SystemOps): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeLazyForEachOps(value: LazyForEachOps): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) diff --git a/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts b/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts deleted file mode 100644 index 1e2ceb4b3..000000000 --- a/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function unsafeCast(value: Object): T { - return value as T -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 59ba7bca8..0e3e6fd46 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -1,13 +1,13 @@ -import { KBoolean, KStringPtr, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../ArkAnimationExtenderInterfaces" -import { Curve, DialogButtonStyle, BorderStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, Color, ColoringStrategy, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, GradientDirection, Alignment, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" +import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BorderImageOption, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, IntentionCode, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" +import { SystemOps } from "./../ArkSystemOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" @@ -15,10 +15,10 @@ import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { Resource } from "./../ArkResourceInterfaces" import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Literal_Boolean_next_Axis_direction, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" import { GlobalScope_ohos_arkui_performanceMonitor } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { Position, VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Offset, Font, Length, LengthMetricsUnit, MarkStyle, Bias, Area, Margin, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, Offset, Font, LengthMetricsUnit, MarkStyle, Bias, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" import { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -27,9 +27,22 @@ import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { ClickEvent } from "./../ArkClickEventMaterialized" import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { SheetInfo, DismissDialogAction, ActionSheetButtonOptions, ActionSheetOffset, ActionSheetOptions } from "./../ArkActionSheetInterfaces" import { DialogAlignment, DialogButtonDirection, AlertDialogButtonBaseOptions, AlertDialogButtonOptions, TextStyle_alert_dialog, AlertDialogParam, AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./../ArkAlertDialogInterfaces" -import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" @@ -57,32 +70,21 @@ import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMateri import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { OffscreenCanvasRenderingContext2D } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { OffscreenCanvas } from "./../ArkOffscreenCanvasMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" import { CheckboxOptions, CheckBoxConfiguration, CheckboxInterface, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult, CheckboxGroupInterface, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback } from "./../ArkCheckboxgroupInterfaces" import { CircleOptions, CircleInterface, CircleAttribute } from "./../ArkCircleInterfaces" import { ColumnOptions, ColumnInterface, ColumnAttribute } from "./../ArkColumnInterfaces" import { ColumnSplitInterface, ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" -import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" -import { HoverEvent } from "./../ArkHoverEventMaterialized" -import { MouseEvent } from "./../ArkMouseEventMaterialized" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEvent } from "./../ArkTouchEventMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" -import { DragEvent } from "./../ArkDragEventMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" -import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" @@ -183,6 +185,7 @@ import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" @@ -233,7 +236,6 @@ import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextAreaOptions, TextAreaInterface, TextAreaAttribute, TextAreaType, ContentType, TextAreaSubmitCallback } from "./../ArkTextAreaInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockInterface, TextClockAttribute } from "./../ArkTextClockInterfaces" -import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SubmitEvent } from "./../ArkSubmitEventMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" @@ -343,16 +345,16 @@ export class TypeChecker { } } static isAccessibilityHoverType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AccessibilityHoverType.HOVER_ENTER))) { + if ((value) === (AccessibilityHoverType.HOVER_ENTER)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_MOVE))) { + else if ((value) === (AccessibilityHoverType.HOVER_MOVE)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_EXIT))) { + else if ((value) === (AccessibilityHoverType.HOVER_EXIT)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_CANCEL))) { + else if ((value) === (AccessibilityHoverType.HOVER_CANCEL)) { return true } else { @@ -482,10 +484,10 @@ export class TypeChecker { } } static isAdaptiveColor(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AdaptiveColor.DEFAULT))) { + if ((value) === (AdaptiveColor.DEFAULT)) { return true } - else if (((value) === (AdaptiveColor.AVERAGE))) { + else if ((value) === (AdaptiveColor.AVERAGE)) { return true } else { @@ -659,31 +661,31 @@ export class TypeChecker { } } static isAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Alignment.TopStart))) { + if ((value) === (Alignment.TopStart)) { return true } - else if (((value) === (Alignment.Top))) { + else if ((value) === (Alignment.Top)) { return true } - else if (((value) === (Alignment.TopEnd))) { + else if ((value) === (Alignment.TopEnd)) { return true } - else if (((value) === (Alignment.Start))) { + else if ((value) === (Alignment.Start)) { return true } - else if (((value) === (Alignment.Center))) { + else if ((value) === (Alignment.Center)) { return true } - else if (((value) === (Alignment.End))) { + else if ((value) === (Alignment.End)) { return true } - else if (((value) === (Alignment.BottomStart))) { + else if ((value) === (Alignment.BottomStart)) { return true } - else if (((value) === (Alignment.Bottom))) { + else if ((value) === (Alignment.Bottom)) { return true } - else if (((value) === (Alignment.BottomEnd))) { + else if ((value) === (Alignment.BottomEnd)) { return true } else { @@ -852,13 +854,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof AnimationExtender") } static isAnimationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AnimationMode.CONTENT_FIRST))) { + if ((value) === (AnimationMode.CONTENT_FIRST)) { return true } - else if (((value) === (AnimationMode.ACTION_FIRST))) { + else if ((value) === (AnimationMode.ACTION_FIRST)) { return true } - else if (((value) === (AnimationMode.NO_ANIMATION))) { + else if ((value) === (AnimationMode.NO_ANIMATION)) { return true } else { @@ -866,16 +868,16 @@ export class TypeChecker { } } static isAnimationStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AnimationStatus.Initial))) { + if ((value) === (AnimationStatus.Initial)) { return true } - else if (((value) === (AnimationStatus.Running))) { + else if ((value) === (AnimationStatus.Running)) { return true } - else if (((value) === (AnimationStatus.Paused))) { + else if ((value) === (AnimationStatus.Paused)) { return true } - else if (((value) === (AnimationStatus.Stopped))) { + else if ((value) === (AnimationStatus.Stopped)) { return true } else { @@ -941,16 +943,16 @@ export class TypeChecker { } } static isAppRotation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AppRotation.ROTATION_0))) { + if ((value) === (AppRotation.ROTATION_0)) { return true } - else if (((value) === (AppRotation.ROTATION_90))) { + else if ((value) === (AppRotation.ROTATION_90)) { return true } - else if (((value) === (AppRotation.ROTATION_180))) { + else if ((value) === (AppRotation.ROTATION_180)) { return true } - else if (((value) === (AppRotation.ROTATION_270))) { + else if ((value) === (AppRotation.ROTATION_270)) { return true } else { @@ -975,13 +977,13 @@ export class TypeChecker { } } static isArrowPointPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ArrowPointPosition.START))) { + if ((value) === (ArrowPointPosition.START)) { return true } - else if (((value) === (ArrowPointPosition.CENTER))) { + else if ((value) === (ArrowPointPosition.CENTER)) { return true } - else if (((value) === (ArrowPointPosition.END))) { + else if ((value) === (ArrowPointPosition.END)) { return true } else { @@ -989,10 +991,10 @@ export class TypeChecker { } } static isArrowPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ArrowPosition.END))) { + if ((value) === (ArrowPosition.END)) { return true } - else if (((value) === (ArrowPosition.START))) { + else if ((value) === (ArrowPosition.START)) { return true } else { @@ -1037,10 +1039,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof AttributeModifier") } static isAxis(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Axis.Vertical))) { + if ((value) === (Axis.Vertical)) { return true } - else if (((value) === (Axis.Horizontal))) { + else if ((value) === (Axis.Horizontal)) { return true } else { @@ -1143,13 +1145,13 @@ export class TypeChecker { } } static isBadgePosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BadgePosition.RightTop))) { + if ((value) === (BadgePosition.RightTop)) { return true } - else if (((value) === (BadgePosition.Right))) { + else if ((value) === (BadgePosition.Right)) { return true } - else if (((value) === (BadgePosition.Left))) { + else if ((value) === (BadgePosition.Left)) { return true } else { @@ -1203,10 +1205,10 @@ export class TypeChecker { } } static isBarMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarMode.Scrollable))) { + if ((value) === (BarMode.Scrollable)) { return true } - else if (((value) === (BarMode.Fixed))) { + else if ((value) === (BarMode.Fixed)) { return true } else { @@ -1214,10 +1216,10 @@ export class TypeChecker { } } static isBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarPosition.Start))) { + if ((value) === (BarPosition.Start)) { return true } - else if (((value) === (BarPosition.End))) { + else if ((value) === (BarPosition.End)) { return true } else { @@ -1225,16 +1227,16 @@ export class TypeChecker { } } static isBarrierDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarrierDirection.LEFT))) { + if ((value) === (BarrierDirection.LEFT)) { return true } - else if (((value) === (BarrierDirection.RIGHT))) { + else if ((value) === (BarrierDirection.RIGHT)) { return true } - else if (((value) === (BarrierDirection.TOP))) { + else if ((value) === (BarrierDirection.TOP)) { return true } - else if (((value) === (BarrierDirection.BOTTOM))) { + else if ((value) === (BarrierDirection.BOTTOM)) { return true } else { @@ -1256,13 +1258,13 @@ export class TypeChecker { } } static isBarState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarState.Off))) { + if ((value) === (BarState.Off)) { return true } - else if (((value) === (BarState.Auto))) { + else if ((value) === (BarState.Auto)) { return true } - else if (((value) === (BarState.On))) { + else if ((value) === (BarState.On)) { return true } else { @@ -1270,13 +1272,13 @@ export class TypeChecker { } } static isBarStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarStyle.STANDARD))) { + if ((value) === (BarStyle.STANDARD)) { return true } - else if (((value) === (BarStyle.STACK))) { + else if ((value) === (BarStyle.STACK)) { return true } - else if (((value) === (BarStyle.SAFE_AREA_PADDING))) { + else if ((value) === (BarStyle.SAFE_AREA_PADDING)) { return true } else { @@ -1388,10 +1390,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof BlankInterface") } static isBlendApplyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlendApplyType.FAST))) { + if ((value) === (BlendApplyType.FAST)) { return true } - else if (((value) === (BlendApplyType.OFFSCREEN))) { + else if ((value) === (BlendApplyType.OFFSCREEN)) { return true } else { @@ -1407,94 +1409,94 @@ export class TypeChecker { } } static isBlendMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlendMode.NONE))) { + if ((value) === (BlendMode.NONE)) { return true } - else if (((value) === (BlendMode.CLEAR))) { + else if ((value) === (BlendMode.CLEAR)) { return true } - else if (((value) === (BlendMode.SRC))) { + else if ((value) === (BlendMode.SRC)) { return true } - else if (((value) === (BlendMode.DST))) { + else if ((value) === (BlendMode.DST)) { return true } - else if (((value) === (BlendMode.SRC_OVER))) { + else if ((value) === (BlendMode.SRC_OVER)) { return true } - else if (((value) === (BlendMode.DST_OVER))) { + else if ((value) === (BlendMode.DST_OVER)) { return true } - else if (((value) === (BlendMode.SRC_IN))) { + else if ((value) === (BlendMode.SRC_IN)) { return true } - else if (((value) === (BlendMode.DST_IN))) { + else if ((value) === (BlendMode.DST_IN)) { return true } - else if (((value) === (BlendMode.SRC_OUT))) { + else if ((value) === (BlendMode.SRC_OUT)) { return true } - else if (((value) === (BlendMode.DST_OUT))) { + else if ((value) === (BlendMode.DST_OUT)) { return true } - else if (((value) === (BlendMode.SRC_ATOP))) { + else if ((value) === (BlendMode.SRC_ATOP)) { return true } - else if (((value) === (BlendMode.DST_ATOP))) { + else if ((value) === (BlendMode.DST_ATOP)) { return true } - else if (((value) === (BlendMode.XOR))) { + else if ((value) === (BlendMode.XOR)) { return true } - else if (((value) === (BlendMode.PLUS))) { + else if ((value) === (BlendMode.PLUS)) { return true } - else if (((value) === (BlendMode.MODULATE))) { + else if ((value) === (BlendMode.MODULATE)) { return true } - else if (((value) === (BlendMode.SCREEN))) { + else if ((value) === (BlendMode.SCREEN)) { return true } - else if (((value) === (BlendMode.OVERLAY))) { + else if ((value) === (BlendMode.OVERLAY)) { return true } - else if (((value) === (BlendMode.DARKEN))) { + else if ((value) === (BlendMode.DARKEN)) { return true } - else if (((value) === (BlendMode.LIGHTEN))) { + else if ((value) === (BlendMode.LIGHTEN)) { return true } - else if (((value) === (BlendMode.COLOR_DODGE))) { + else if ((value) === (BlendMode.COLOR_DODGE)) { return true } - else if (((value) === (BlendMode.COLOR_BURN))) { + else if ((value) === (BlendMode.COLOR_BURN)) { return true } - else if (((value) === (BlendMode.HARD_LIGHT))) { + else if ((value) === (BlendMode.HARD_LIGHT)) { return true } - else if (((value) === (BlendMode.SOFT_LIGHT))) { + else if ((value) === (BlendMode.SOFT_LIGHT)) { return true } - else if (((value) === (BlendMode.DIFFERENCE))) { + else if ((value) === (BlendMode.DIFFERENCE)) { return true } - else if (((value) === (BlendMode.EXCLUSION))) { + else if ((value) === (BlendMode.EXCLUSION)) { return true } - else if (((value) === (BlendMode.MULTIPLY))) { + else if ((value) === (BlendMode.MULTIPLY)) { return true } - else if (((value) === (BlendMode.HUE))) { + else if ((value) === (BlendMode.HUE)) { return true } - else if (((value) === (BlendMode.SATURATION))) { + else if ((value) === (BlendMode.SATURATION)) { return true } - else if (((value) === (BlendMode.COLOR))) { + else if ((value) === (BlendMode.COLOR)) { return true } - else if (((value) === (BlendMode.LUMINOSITY))) { + else if ((value) === (BlendMode.LUMINOSITY)) { return true } else { @@ -1510,43 +1512,43 @@ export class TypeChecker { } } static isBlurStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlurStyle.Thin))) { + if ((value) === (BlurStyle.Thin)) { return true } - else if (((value) === (BlurStyle.Regular))) { + else if ((value) === (BlurStyle.Regular)) { return true } - else if (((value) === (BlurStyle.Thick))) { + else if ((value) === (BlurStyle.Thick)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_THIN))) { + else if ((value) === (BlurStyle.BACKGROUND_THIN)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_REGULAR))) { + else if ((value) === (BlurStyle.BACKGROUND_REGULAR)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_THICK))) { + else if ((value) === (BlurStyle.BACKGROUND_THICK)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_ULTRA_THICK))) { + else if ((value) === (BlurStyle.BACKGROUND_ULTRA_THICK)) { return true } - else if (((value) === (BlurStyle.NONE))) { + else if ((value) === (BlurStyle.NONE)) { return true } - else if (((value) === (BlurStyle.COMPONENT_ULTRA_THIN))) { + else if ((value) === (BlurStyle.COMPONENT_ULTRA_THIN)) { return true } - else if (((value) === (BlurStyle.COMPONENT_THIN))) { + else if ((value) === (BlurStyle.COMPONENT_THIN)) { return true } - else if (((value) === (BlurStyle.COMPONENT_REGULAR))) { + else if ((value) === (BlurStyle.COMPONENT_REGULAR)) { return true } - else if (((value) === (BlurStyle.COMPONENT_THICK))) { + else if ((value) === (BlurStyle.COMPONENT_THICK)) { return true } - else if (((value) === (BlurStyle.COMPONENT_ULTRA_THICK))) { + else if ((value) === (BlurStyle.COMPONENT_ULTRA_THICK)) { return true } else { @@ -1554,13 +1556,13 @@ export class TypeChecker { } } static isBlurStyleActivePolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE))) { + if ((value) === (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE)) { return true } - else if (((value) === (BlurStyleActivePolicy.ALWAYS_ACTIVE))) { + else if ((value) === (BlurStyleActivePolicy.ALWAYS_ACTIVE)) { return true } - else if (((value) === (BlurStyleActivePolicy.ALWAYS_INACTIVE))) { + else if ((value) === (BlurStyleActivePolicy.ALWAYS_INACTIVE)) { return true } else { @@ -1656,13 +1658,13 @@ export class TypeChecker { } } static isBorderStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BorderStyle.Dotted))) { + if ((value) === (BorderStyle.Dotted)) { return true } - else if (((value) === (BorderStyle.Dashed))) { + else if ((value) === (BorderStyle.Dashed)) { return true } - else if (((value) === (BorderStyle.Solid))) { + else if ((value) === (BorderStyle.Solid)) { return true } else { @@ -1695,10 +1697,10 @@ export class TypeChecker { } } static isBreakpointsReference(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BreakpointsReference.WindowSize))) { + if ((value) === (BreakpointsReference.WindowSize)) { return true } - else if (((value) === (BreakpointsReference.ComponentSize))) { + else if ((value) === (BreakpointsReference.ComponentSize)) { return true } else { @@ -1798,10 +1800,10 @@ export class TypeChecker { } } static isButtonRole(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonRole.NORMAL))) { + if ((value) === (ButtonRole.NORMAL)) { return true } - else if (((value) === (ButtonRole.ERROR))) { + else if ((value) === (ButtonRole.ERROR)) { return true } else { @@ -1829,13 +1831,13 @@ export class TypeChecker { } } static isButtonStyleMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonStyleMode.NORMAL))) { + if ((value) === (ButtonStyleMode.NORMAL)) { return true } - else if (((value) === (ButtonStyleMode.EMPHASIZED))) { + else if ((value) === (ButtonStyleMode.EMPHASIZED)) { return true } - else if (((value) === (ButtonStyleMode.TEXTUAL))) { + else if ((value) === (ButtonStyleMode.TEXTUAL)) { return true } else { @@ -1843,16 +1845,16 @@ export class TypeChecker { } } static isButtonType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonType.Capsule))) { + if ((value) === (ButtonType.Capsule)) { return true } - else if (((value) === (ButtonType.Circle))) { + else if ((value) === (ButtonType.Circle)) { return true } - else if (((value) === (ButtonType.Normal))) { + else if ((value) === (ButtonType.Normal)) { return true } - else if (((value) === (ButtonType.ROUNDED_RECTANGLE))) { + else if ((value) === (ButtonType.ROUNDED_RECTANGLE)) { return true } else { @@ -1860,16 +1862,16 @@ export class TypeChecker { } } static isCacheMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CacheMode.Default))) { + if ((value) === (CacheMode.Default)) { return true } - else if (((value) === (CacheMode.None))) { + else if ((value) === (CacheMode.None)) { return true } - else if (((value) === (CacheMode.Online))) { + else if ((value) === (CacheMode.Online)) { return true } - else if (((value) === (CacheMode.Only))) { + else if ((value) === (CacheMode.Only)) { return true } else { @@ -1877,13 +1879,13 @@ export class TypeChecker { } } static isCalendarAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CalendarAlign.START))) { + if ((value) === (CalendarAlign.START)) { return true } - else if (((value) === (CalendarAlign.CENTER))) { + else if ((value) === (CalendarAlign.CENTER)) { return true } - else if (((value) === (CalendarAlign.END))) { + else if ((value) === (CalendarAlign.END)) { return true } else { @@ -2102,13 +2104,13 @@ export class TypeChecker { } } static isCancelButtonStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CancelButtonStyle.CONSTANT))) { + if ((value) === (CancelButtonStyle.CONSTANT)) { return true } - else if (((value) === (CancelButtonStyle.INVISIBLE))) { + else if ((value) === (CancelButtonStyle.INVISIBLE)) { return true } - else if (((value) === (CancelButtonStyle.INPUT))) { + else if ((value) === (CancelButtonStyle.INPUT)) { return true } else { @@ -2303,10 +2305,10 @@ export class TypeChecker { } } static isChainEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ChainEdgeEffect.DEFAULT))) { + if ((value) === (ChainEdgeEffect.DEFAULT)) { return true } - else if (((value) === (ChainEdgeEffect.STRETCH))) { + else if ((value) === (ChainEdgeEffect.STRETCH)) { return true } else { @@ -2314,13 +2316,13 @@ export class TypeChecker { } } static isChainStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ChainStyle.SPREAD))) { + if ((value) === (ChainStyle.SPREAD)) { return true } - else if (((value) === (ChainStyle.SPREAD_INSIDE))) { + else if ((value) === (ChainStyle.SPREAD_INSIDE)) { return true } - else if (((value) === (ChainStyle.PACKED))) { + else if ((value) === (ChainStyle.PACKED)) { return true } else { @@ -2441,10 +2443,10 @@ export class TypeChecker { } } static isCheckBoxShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CheckBoxShape.CIRCLE))) { + if ((value) === (CheckBoxShape.CIRCLE)) { return true } - else if (((value) === (CheckBoxShape.ROUNDED_SQUARE))) { + else if ((value) === (CheckBoxShape.ROUNDED_SQUARE)) { return true } else { @@ -2510,13 +2512,13 @@ export class TypeChecker { } } static isClickEffectLevel(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ClickEffectLevel.LIGHT))) { + if ((value) === (ClickEffectLevel.LIGHT)) { return true } - else if (((value) === (ClickEffectLevel.MIDDLE))) { + else if ((value) === (ClickEffectLevel.MIDDLE)) { return true } - else if (((value) === (ClickEffectLevel.HEAVY))) { + else if ((value) === (ClickEffectLevel.HEAVY)) { return true } else { @@ -2567,40 +2569,40 @@ export class TypeChecker { } } static isColor(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Color.White))) { + if ((value) === (Color.White)) { return true } - else if (((value) === (Color.Black))) { + else if ((value) === (Color.Black)) { return true } - else if (((value) === (Color.Blue))) { + else if ((value) === (Color.Blue)) { return true } - else if (((value) === (Color.Brown))) { + else if ((value) === (Color.Brown)) { return true } - else if (((value) === (Color.Gray))) { + else if ((value) === (Color.Gray)) { return true } - else if (((value) === (Color.Green))) { + else if ((value) === (Color.Green)) { return true } - else if (((value) === (Color.Grey))) { + else if ((value) === (Color.Grey)) { return true } - else if (((value) === (Color.Orange))) { + else if ((value) === (Color.Orange)) { return true } - else if (((value) === (Color.Pink))) { + else if ((value) === (Color.Pink)) { return true } - else if (((value) === (Color.Red))) { + else if ((value) === (Color.Red)) { return true } - else if (((value) === (Color.Yellow))) { + else if ((value) === (Color.Yellow)) { return true } - else if (((value) === (Color.Transparent))) { + else if ((value) === (Color.Transparent)) { return true } else { @@ -2611,13 +2613,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ColorFilter") } static isColoringStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ColoringStrategy.INVERT))) { + if ((value) === (ColoringStrategy.INVERT)) { return true } - else if (((value) === (ColoringStrategy.AVERAGE))) { + else if ((value) === (ColoringStrategy.AVERAGE)) { return true } - else if (((value) === (ColoringStrategy.PRIMARY))) { + else if ((value) === (ColoringStrategy.PRIMARY)) { return true } else { @@ -2633,10 +2635,10 @@ export class TypeChecker { } } static isColorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ColorMode.LIGHT))) { + if ((value) === (ColorMode.LIGHT)) { return true } - else if (((value) === (ColorMode.DARK))) { + else if ((value) === (ColorMode.DARK)) { return true } else { @@ -3337,13 +3339,13 @@ export class TypeChecker { } } static isContentClipMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContentClipMode.CONTENT_ONLY))) { + if ((value) === (ContentClipMode.CONTENT_ONLY)) { return true } - else if (((value) === (ContentClipMode.BOUNDARY))) { + else if ((value) === (ContentClipMode.BOUNDARY)) { return true } - else if (((value) === (ContentClipMode.SAFE_AREA))) { + else if ((value) === (ContentClipMode.SAFE_AREA)) { return true } else { @@ -3379,67 +3381,67 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ContentSlotInterface") } static isContentType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContentType.USER_NAME))) { + if ((value) === (ContentType.USER_NAME)) { return true } - else if (((value) === (ContentType.PASSWORD))) { + else if ((value) === (ContentType.PASSWORD)) { return true } - else if (((value) === (ContentType.NEW_PASSWORD))) { + else if ((value) === (ContentType.NEW_PASSWORD)) { return true } - else if (((value) === (ContentType.FULL_STREET_ADDRESS))) { + else if ((value) === (ContentType.FULL_STREET_ADDRESS)) { return true } - else if (((value) === (ContentType.HOUSE_NUMBER))) { + else if ((value) === (ContentType.HOUSE_NUMBER)) { return true } - else if (((value) === (ContentType.DISTRICT_ADDRESS))) { + else if ((value) === (ContentType.DISTRICT_ADDRESS)) { return true } - else if (((value) === (ContentType.CITY_ADDRESS))) { + else if ((value) === (ContentType.CITY_ADDRESS)) { return true } - else if (((value) === (ContentType.PROVINCE_ADDRESS))) { + else if ((value) === (ContentType.PROVINCE_ADDRESS)) { return true } - else if (((value) === (ContentType.COUNTRY_ADDRESS))) { + else if ((value) === (ContentType.COUNTRY_ADDRESS)) { return true } - else if (((value) === (ContentType.PERSON_FULL_NAME))) { + else if ((value) === (ContentType.PERSON_FULL_NAME)) { return true } - else if (((value) === (ContentType.PERSON_LAST_NAME))) { + else if ((value) === (ContentType.PERSON_LAST_NAME)) { return true } - else if (((value) === (ContentType.PERSON_FIRST_NAME))) { + else if ((value) === (ContentType.PERSON_FIRST_NAME)) { return true } - else if (((value) === (ContentType.PHONE_NUMBER))) { + else if ((value) === (ContentType.PHONE_NUMBER)) { return true } - else if (((value) === (ContentType.PHONE_COUNTRY_CODE))) { + else if ((value) === (ContentType.PHONE_COUNTRY_CODE)) { return true } - else if (((value) === (ContentType.FULL_PHONE_NUMBER))) { + else if ((value) === (ContentType.FULL_PHONE_NUMBER)) { return true } - else if (((value) === (ContentType.EMAIL_ADDRESS))) { + else if ((value) === (ContentType.EMAIL_ADDRESS)) { return true } - else if (((value) === (ContentType.BANK_CARD_NUMBER))) { + else if ((value) === (ContentType.BANK_CARD_NUMBER)) { return true } - else if (((value) === (ContentType.ID_CARD_NUMBER))) { + else if ((value) === (ContentType.ID_CARD_NUMBER)) { return true } - else if (((value) === (ContentType.NICKNAME))) { + else if ((value) === (ContentType.NICKNAME)) { return true } - else if (((value) === (ContentType.DETAIL_INFO_WITHOUT_STREET))) { + else if ((value) === (ContentType.DETAIL_INFO_WITHOUT_STREET)) { return true } - else if (((value) === (ContentType.FORMAT_ADDRESS))) { + else if ((value) === (ContentType.FORMAT_ADDRESS)) { return true } else { @@ -3472,19 +3474,19 @@ export class TypeChecker { } } static isContextMenuEditStateFlags(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuEditStateFlags.NONE))) { + if ((value) === (ContextMenuEditStateFlags.NONE)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_CUT))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_CUT)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_COPY))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_COPY)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_PASTE))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_PASTE)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_SELECT_ALL))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_SELECT_ALL)) { return true } else { @@ -3492,22 +3494,22 @@ export class TypeChecker { } } static isContextMenuInputFieldType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuInputFieldType.None))) { + if ((value) === (ContextMenuInputFieldType.None)) { return true } - else if (((value) === (ContextMenuInputFieldType.PlainText))) { + else if ((value) === (ContextMenuInputFieldType.PlainText)) { return true } - else if (((value) === (ContextMenuInputFieldType.Password))) { + else if ((value) === (ContextMenuInputFieldType.Password)) { return true } - else if (((value) === (ContextMenuInputFieldType.Number))) { + else if ((value) === (ContextMenuInputFieldType.Number)) { return true } - else if (((value) === (ContextMenuInputFieldType.Telephone))) { + else if ((value) === (ContextMenuInputFieldType.Telephone)) { return true } - else if (((value) === (ContextMenuInputFieldType.Other))) { + else if ((value) === (ContextMenuInputFieldType.Other)) { return true } else { @@ -3515,10 +3517,10 @@ export class TypeChecker { } } static isContextMenuMediaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuMediaType.None))) { + if ((value) === (ContextMenuMediaType.None)) { return true } - else if (((value) === (ContextMenuMediaType.Image))) { + else if ((value) === (ContextMenuMediaType.Image)) { return true } else { @@ -3579,13 +3581,13 @@ export class TypeChecker { } } static isContextMenuSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuSourceType.None))) { + if ((value) === (ContextMenuSourceType.None)) { return true } - else if (((value) === (ContextMenuSourceType.Mouse))) { + else if ((value) === (ContextMenuSourceType.Mouse)) { return true } - else if (((value) === (ContextMenuSourceType.LongPress))) { + else if ((value) === (ContextMenuSourceType.LongPress)) { return true } else { @@ -3596,10 +3598,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ControllerHandler") } static isControlSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ControlSize.SMALL))) { + if ((value) === (ControlSize.SMALL)) { return true } - else if (((value) === (ControlSize.NORMAL))) { + else if ((value) === (ControlSize.NORMAL)) { return true } else { @@ -3615,16 +3617,16 @@ export class TypeChecker { } } static isCopyOptions(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CopyOptions.None))) { + if ((value) === (CopyOptions.None)) { return true } - else if (((value) === (CopyOptions.InApp))) { + else if ((value) === (CopyOptions.InApp)) { return true } - else if (((value) === (CopyOptions.LocalDevice))) { + else if ((value) === (CopyOptions.LocalDevice)) { return true } - else if (((value) === (CopyOptions.CROSS_DEVICE))) { + else if ((value) === (CopyOptions.CROSS_DEVICE)) { return true } else { @@ -3726,43 +3728,43 @@ export class TypeChecker { } } static isCurve(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Curve.Linear))) { + if ((value) === (Curve.Linear)) { return true } - else if (((value) === (Curve.Ease))) { + else if ((value) === (Curve.Ease)) { return true } - else if (((value) === (Curve.EaseIn))) { + else if ((value) === (Curve.EaseIn)) { return true } - else if (((value) === (Curve.EaseOut))) { + else if ((value) === (Curve.EaseOut)) { return true } - else if (((value) === (Curve.EaseInOut))) { + else if ((value) === (Curve.EaseInOut)) { return true } - else if (((value) === (Curve.FastOutSlowIn))) { + else if ((value) === (Curve.FastOutSlowIn)) { return true } - else if (((value) === (Curve.LinearOutSlowIn))) { + else if ((value) === (Curve.LinearOutSlowIn)) { return true } - else if (((value) === (Curve.FastOutLinearIn))) { + else if ((value) === (Curve.FastOutLinearIn)) { return true } - else if (((value) === (Curve.ExtremeDeceleration))) { + else if ((value) === (Curve.ExtremeDeceleration)) { return true } - else if (((value) === (Curve.Sharp))) { + else if ((value) === (Curve.Sharp)) { return true } - else if (((value) === (Curve.Rhythm))) { + else if ((value) === (Curve.Rhythm)) { return true } - else if (((value) === (Curve.Smooth))) { + else if ((value) === (Curve.Smooth)) { return true } - else if (((value) === (Curve.Friction))) { + else if ((value) === (Curve.Friction)) { return true } else { @@ -4041,22 +4043,22 @@ export class TypeChecker { } } static isDataOperationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DataOperationType.ADD))) { + if ((value) === (DataOperationType.ADD)) { return true } - else if (((value) === (DataOperationType.DELETE))) { + else if ((value) === (DataOperationType.DELETE)) { return true } - else if (((value) === (DataOperationType.EXCHANGE))) { + else if ((value) === (DataOperationType.EXCHANGE)) { return true } - else if (((value) === (DataOperationType.MOVE))) { + else if ((value) === (DataOperationType.MOVE)) { return true } - else if (((value) === (DataOperationType.CHANGE))) { + else if ((value) === (DataOperationType.CHANGE)) { return true } - else if (((value) === (DataOperationType.RELOAD))) { + else if ((value) === (DataOperationType.RELOAD)) { return true } else { @@ -4123,10 +4125,10 @@ export class TypeChecker { } } static isDataPanelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DataPanelType.Line))) { + if ((value) === (DataPanelType.Line)) { return true } - else if (((value) === (DataPanelType.Circle))) { + else if ((value) === (DataPanelType.Circle)) { return true } else { @@ -4347,34 +4349,34 @@ export class TypeChecker { } } static isDialogAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogAlignment.Top))) { + if ((value) === (DialogAlignment.Top)) { return true } - else if (((value) === (DialogAlignment.Center))) { + else if ((value) === (DialogAlignment.Center)) { return true } - else if (((value) === (DialogAlignment.Bottom))) { + else if ((value) === (DialogAlignment.Bottom)) { return true } - else if (((value) === (DialogAlignment.Default))) { + else if ((value) === (DialogAlignment.Default)) { return true } - else if (((value) === (DialogAlignment.TopStart))) { + else if ((value) === (DialogAlignment.TopStart)) { return true } - else if (((value) === (DialogAlignment.TopEnd))) { + else if ((value) === (DialogAlignment.TopEnd)) { return true } - else if (((value) === (DialogAlignment.CenterStart))) { + else if ((value) === (DialogAlignment.CenterStart)) { return true } - else if (((value) === (DialogAlignment.CenterEnd))) { + else if ((value) === (DialogAlignment.CenterEnd)) { return true } - else if (((value) === (DialogAlignment.BottomStart))) { + else if ((value) === (DialogAlignment.BottomStart)) { return true } - else if (((value) === (DialogAlignment.BottomEnd))) { + else if ((value) === (DialogAlignment.BottomEnd)) { return true } else { @@ -4382,13 +4384,13 @@ export class TypeChecker { } } static isDialogButtonDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogButtonDirection.AUTO))) { + if ((value) === (DialogButtonDirection.AUTO)) { return true } - else if (((value) === (DialogButtonDirection.HORIZONTAL))) { + else if ((value) === (DialogButtonDirection.HORIZONTAL)) { return true } - else if (((value) === (DialogButtonDirection.VERTICAL))) { + else if ((value) === (DialogButtonDirection.VERTICAL)) { return true } else { @@ -4396,10 +4398,10 @@ export class TypeChecker { } } static isDialogButtonStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogButtonStyle.DEFAULT))) { + if ((value) === (DialogButtonStyle.DEFAULT)) { return true } - else if (((value) === (DialogButtonStyle.HIGHLIGHT))) { + else if ((value) === (DialogButtonStyle.HIGHLIGHT)) { return true } else { @@ -4410,13 +4412,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DigitIndicator") } static isDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Direction.Ltr))) { + if ((value) === (Direction.Ltr)) { return true } - else if (((value) === (Direction.Rtl))) { + else if ((value) === (Direction.Rtl)) { return true } - else if (((value) === (Direction.Auto))) { + else if ((value) === (Direction.Auto)) { return true } else { @@ -4482,16 +4484,16 @@ export class TypeChecker { } } static isDismissReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DismissReason.PRESS_BACK))) { + if ((value) === (DismissReason.PRESS_BACK)) { return true } - else if (((value) === (DismissReason.TOUCH_OUTSIDE))) { + else if ((value) === (DismissReason.TOUCH_OUTSIDE)) { return true } - else if (((value) === (DismissReason.CLOSE_BUTTON))) { + else if ((value) === (DismissReason.CLOSE_BUTTON)) { return true } - else if (((value) === (DismissReason.SLIDE_DOWN))) { + else if ((value) === (DismissReason.SLIDE_DOWN)) { return true } else { @@ -4510,10 +4512,10 @@ export class TypeChecker { } } static isDistributionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DistributionType.UNIFORM))) { + if ((value) === (DistributionType.UNIFORM)) { return true } - else if (((value) === (DistributionType.GAUSSIAN))) { + else if ((value) === (DistributionType.GAUSSIAN)) { return true } else { @@ -4521,13 +4523,13 @@ export class TypeChecker { } } static isDisturbanceFieldShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DisturbanceFieldShape.RECT))) { + if ((value) === (DisturbanceFieldShape.RECT)) { return true } - else if (((value) === (DisturbanceFieldShape.CIRCLE))) { + else if ((value) === (DisturbanceFieldShape.CIRCLE)) { return true } - else if (((value) === (DisturbanceFieldShape.ELLIPSE))) { + else if ((value) === (DisturbanceFieldShape.ELLIPSE)) { return true } else { @@ -4638,10 +4640,10 @@ export class TypeChecker { } } static isDpiFollowStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DpiFollowStrategy.FOLLOW_HOST_DPI))) { + if ((value) === (DpiFollowStrategy.FOLLOW_HOST_DPI)) { return true } - else if (((value) === (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI))) { + else if ((value) === (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI)) { return true } else { @@ -4649,10 +4651,10 @@ export class TypeChecker { } } static isDragBehavior(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragBehavior.COPY))) { + if ((value) === (DragBehavior.COPY)) { return true } - else if (((value) === (DragBehavior.MOVE))) { + else if ((value) === (DragBehavior.MOVE)) { return true } else { @@ -4696,16 +4698,16 @@ export class TypeChecker { } } static isDragPreviewMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragPreviewMode.AUTO))) { + if ((value) === (DragPreviewMode.AUTO)) { return true } - else if (((value) === (DragPreviewMode.DISABLE_SCALE))) { + else if ((value) === (DragPreviewMode.DISABLE_SCALE)) { return true } - else if (((value) === (DragPreviewMode.ENABLE_DEFAULT_SHADOW))) { + else if ((value) === (DragPreviewMode.ENABLE_DEFAULT_SHADOW)) { return true } - else if (((value) === (DragPreviewMode.ENABLE_DEFAULT_RADIUS))) { + else if ((value) === (DragPreviewMode.ENABLE_DEFAULT_RADIUS)) { return true } else { @@ -4727,19 +4729,19 @@ export class TypeChecker { } } static isDragResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragResult.DRAG_SUCCESSFUL))) { + if ((value) === (DragResult.DRAG_SUCCESSFUL)) { return true } - else if (((value) === (DragResult.DRAG_FAILED))) { + else if ((value) === (DragResult.DRAG_FAILED)) { return true } - else if (((value) === (DragResult.DRAG_CANCELED))) { + else if ((value) === (DragResult.DRAG_CANCELED)) { return true } - else if (((value) === (DragResult.DROP_ENABLED))) { + else if ((value) === (DragResult.DROP_ENABLED)) { return true } - else if (((value) === (DragResult.DROP_DISABLED))) { + else if ((value) === (DragResult.DROP_DISABLED)) { return true } else { @@ -4799,13 +4801,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DynamicNode") } static isDynamicRangeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DynamicRangeMode.HIGH))) { + if ((value) === (DynamicRangeMode.HIGH)) { return true } - else if (((value) === (DynamicRangeMode.CONSTRAINT))) { + else if ((value) === (DynamicRangeMode.CONSTRAINT)) { return true } - else if (((value) === (DynamicRangeMode.STANDARD))) { + else if ((value) === (DynamicRangeMode.STANDARD)) { return true } else { @@ -4816,25 +4818,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EclipseStyleOptions") } static isEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Edge.Top))) { + if ((value) === (Edge.Top)) { return true } - else if (((value) === (Edge.Center))) { + else if ((value) === (Edge.Center)) { return true } - else if (((value) === (Edge.Bottom))) { + else if ((value) === (Edge.Bottom)) { return true } - else if (((value) === (Edge.Baseline))) { + else if ((value) === (Edge.Baseline)) { return true } - else if (((value) === (Edge.Start))) { + else if ((value) === (Edge.Start)) { return true } - else if (((value) === (Edge.Middle))) { + else if ((value) === (Edge.Middle)) { return true } - else if (((value) === (Edge.End))) { + else if ((value) === (Edge.End)) { return true } else { @@ -4859,13 +4861,13 @@ export class TypeChecker { } } static isEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EdgeEffect.Spring))) { + if ((value) === (EdgeEffect.Spring)) { return true } - else if (((value) === (EdgeEffect.Fade))) { + else if ((value) === (EdgeEffect.Fade)) { return true } - else if (((value) === (EdgeEffect.None))) { + else if ((value) === (EdgeEffect.None)) { return true } else { @@ -4969,13 +4971,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EditMenuOptions") } static isEditMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EditMode.None))) { + if ((value) === (EditMode.None)) { return true } - else if (((value) === (EditMode.Deletable))) { + else if ((value) === (EditMode.Deletable)) { return true } - else if (((value) === (EditMode.Movable))) { + else if ((value) === (EditMode.Movable)) { return true } else { @@ -4989,10 +4991,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EffectComponentInterface") } static isEffectDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectDirection.DOWN))) { + if ((value) === (EffectDirection.DOWN)) { return true } - else if (((value) === (EffectDirection.UP))) { + else if ((value) === (EffectDirection.UP)) { return true } else { @@ -5000,10 +5002,10 @@ export class TypeChecker { } } static isEffectFillStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectFillStyle.CUMULATIVE))) { + if ((value) === (EffectFillStyle.CUMULATIVE)) { return true } - else if (((value) === (EffectFillStyle.ITERATIVE))) { + else if ((value) === (EffectFillStyle.ITERATIVE)) { return true } else { @@ -5011,10 +5013,10 @@ export class TypeChecker { } } static isEffectScope(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectScope.LAYER))) { + if ((value) === (EffectScope.LAYER)) { return true } - else if (((value) === (EffectScope.WHOLE))) { + else if ((value) === (EffectScope.WHOLE)) { return true } else { @@ -5022,10 +5024,10 @@ export class TypeChecker { } } static isEffectType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectType.DEFAULT))) { + if ((value) === (EffectType.DEFAULT)) { return true } - else if (((value) === (EffectType.WINDOW_EFFECT))) { + else if ((value) === (EffectType.WINDOW_EFFECT)) { return true } else { @@ -5058,13 +5060,13 @@ export class TypeChecker { } } static isEllipsisMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EllipsisMode.START))) { + if ((value) === (EllipsisMode.START)) { return true } - else if (((value) === (EllipsisMode.CENTER))) { + else if ((value) === (EllipsisMode.CENTER)) { return true } - else if (((value) === (EllipsisMode.END))) { + else if ((value) === (EllipsisMode.END)) { return true } else { @@ -5086,7 +5088,7 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EmbeddedComponentInterface") } static isEmbeddedType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EmbeddedType.EMBEDDED_UI_EXTENSION))) { + if ((value) === (EmbeddedType.EMBEDDED_UI_EXTENSION)) { return true } else { @@ -5122,25 +5124,25 @@ export class TypeChecker { } } static isEnterKeyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EnterKeyType.Go))) { + if ((value) === (EnterKeyType.Go)) { return true } - else if (((value) === (EnterKeyType.Search))) { + else if ((value) === (EnterKeyType.Search)) { return true } - else if (((value) === (EnterKeyType.Send))) { + else if ((value) === (EnterKeyType.Send)) { return true } - else if (((value) === (EnterKeyType.Next))) { + else if ((value) === (EnterKeyType.Next)) { return true } - else if (((value) === (EnterKeyType.Done))) { + else if ((value) === (EnterKeyType.Done)) { return true } - else if (((value) === (EnterKeyType.PREVIOUS))) { + else if ((value) === (EnterKeyType.PREVIOUS)) { return true } - else if (((value) === (EnterKeyType.NEW_LINE))) { + else if ((value) === (EnterKeyType.NEW_LINE)) { return true } else { @@ -5242,16 +5244,16 @@ export class TypeChecker { } } static isFileSelectorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FileSelectorMode.FileOpenMode))) { + if ((value) === (FileSelectorMode.FileOpenMode)) { return true } - else if (((value) === (FileSelectorMode.FileOpenMultipleMode))) { + else if ((value) === (FileSelectorMode.FileOpenMultipleMode)) { return true } - else if (((value) === (FileSelectorMode.FileOpenFolderMode))) { + else if ((value) === (FileSelectorMode.FileOpenFolderMode)) { return true } - else if (((value) === (FileSelectorMode.FileSaveMode))) { + else if ((value) === (FileSelectorMode.FileSaveMode)) { return true } else { @@ -5265,16 +5267,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FileSelectorResult") } static isFillMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FillMode.None))) { + if ((value) === (FillMode.None)) { return true } - else if (((value) === (FillMode.Forwards))) { + else if ((value) === (FillMode.Forwards)) { return true } - else if (((value) === (FillMode.Backwards))) { + else if ((value) === (FillMode.Backwards)) { return true } - else if (((value) === (FillMode.Both))) { + else if ((value) === (FillMode.Both)) { return true } else { @@ -5316,10 +5318,10 @@ export class TypeChecker { } } static isFinishCallbackType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FinishCallbackType.REMOVED))) { + if ((value) === (FinishCallbackType.REMOVED)) { return true } - else if (((value) === (FinishCallbackType.LOGICALLY))) { + else if ((value) === (FinishCallbackType.LOGICALLY)) { return true } else { @@ -5338,22 +5340,22 @@ export class TypeChecker { } } static isFlexAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexAlign.Start))) { + if ((value) === (FlexAlign.Start)) { return true } - else if (((value) === (FlexAlign.Center))) { + else if ((value) === (FlexAlign.Center)) { return true } - else if (((value) === (FlexAlign.End))) { + else if ((value) === (FlexAlign.End)) { return true } - else if (((value) === (FlexAlign.SpaceBetween))) { + else if ((value) === (FlexAlign.SpaceBetween)) { return true } - else if (((value) === (FlexAlign.SpaceAround))) { + else if ((value) === (FlexAlign.SpaceAround)) { return true } - else if (((value) === (FlexAlign.SpaceEvenly))) { + else if ((value) === (FlexAlign.SpaceEvenly)) { return true } else { @@ -5369,16 +5371,16 @@ export class TypeChecker { } } static isFlexDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexDirection.Row))) { + if ((value) === (FlexDirection.Row)) { return true } - else if (((value) === (FlexDirection.Column))) { + else if ((value) === (FlexDirection.Column)) { return true } - else if (((value) === (FlexDirection.RowReverse))) { + else if ((value) === (FlexDirection.RowReverse)) { return true } - else if (((value) === (FlexDirection.ColumnReverse))) { + else if ((value) === (FlexDirection.ColumnReverse)) { return true } else { @@ -5423,13 +5425,13 @@ export class TypeChecker { } } static isFlexWrap(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexWrap.NoWrap))) { + if ((value) === (FlexWrap.NoWrap)) { return true } - else if (((value) === (FlexWrap.Wrap))) { + else if ((value) === (FlexWrap.Wrap)) { return true } - else if (((value) === (FlexWrap.WrapReverse))) { + else if ((value) === (FlexWrap.WrapReverse)) { return true } else { @@ -5457,13 +5459,13 @@ export class TypeChecker { } } static isFocusPriority(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FocusPriority.AUTO))) { + if ((value) === (FocusPriority.AUTO)) { return true } - else if (((value) === (FocusPriority.PRIOR))) { + else if ((value) === (FocusPriority.PRIOR)) { return true } - else if (((value) === (FocusPriority.PREVIOUS))) { + else if ((value) === (FocusPriority.PREVIOUS)) { return true } else { @@ -5502,16 +5504,16 @@ export class TypeChecker { } } static isFoldStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FoldStatus.FOLD_STATUS_UNKNOWN))) { + if ((value) === (FoldStatus.FOLD_STATUS_UNKNOWN)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_EXPANDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_EXPANDED)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_FOLDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_FOLDED)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_HALF_FOLDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_HALF_FOLDED)) { return true } else { @@ -5544,10 +5546,10 @@ export class TypeChecker { } } static isFontStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FontStyle.Normal))) { + if ((value) === (FontStyle.Normal)) { return true } - else if (((value) === (FontStyle.Italic))) { + else if ((value) === (FontStyle.Italic)) { return true } else { @@ -5555,22 +5557,22 @@ export class TypeChecker { } } static isFontWeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FontWeight.Lighter))) { + if ((value) === (FontWeight.Lighter)) { return true } - else if (((value) === (FontWeight.Normal))) { + else if ((value) === (FontWeight.Normal)) { return true } - else if (((value) === (FontWeight.Regular))) { + else if ((value) === (FontWeight.Regular)) { return true } - else if (((value) === (FontWeight.Medium))) { + else if ((value) === (FontWeight.Medium)) { return true } - else if (((value) === (FontWeight.Bold))) { + else if ((value) === (FontWeight.Bold)) { return true } - else if (((value) === (FontWeight.Bolder))) { + else if ((value) === (FontWeight.Bolder)) { return true } else { @@ -5638,25 +5640,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FormComponentInterface") } static isFormDimension(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormDimension.Dimension_1_2))) { + if ((value) === (FormDimension.Dimension_1_2)) { return true } - else if (((value) === (FormDimension.Dimension_2_2))) { + else if ((value) === (FormDimension.Dimension_2_2)) { return true } - else if (((value) === (FormDimension.Dimension_2_4))) { + else if ((value) === (FormDimension.Dimension_2_4)) { return true } - else if (((value) === (FormDimension.Dimension_4_4))) { + else if ((value) === (FormDimension.Dimension_4_4)) { return true } - else if (((value) === (FormDimension.Dimension_2_1))) { + else if ((value) === (FormDimension.Dimension_2_1)) { return true } - else if (((value) === (FormDimension.DIMENSION_1_1))) { + else if ((value) === (FormDimension.DIMENSION_1_1)) { return true } - else if (((value) === (FormDimension.DIMENSION_6_4))) { + else if ((value) === (FormDimension.DIMENSION_6_4)) { return true } else { @@ -5728,10 +5730,10 @@ export class TypeChecker { } } static isFormRenderingMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormRenderingMode.FULL_COLOR))) { + if ((value) === (FormRenderingMode.FULL_COLOR)) { return true } - else if (((value) === (FormRenderingMode.SINGLE_COLOR))) { + else if ((value) === (FormRenderingMode.SINGLE_COLOR)) { return true } else { @@ -5739,10 +5741,10 @@ export class TypeChecker { } } static isFormShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormShape.RECT))) { + if ((value) === (FormShape.RECT)) { return true } - else if (((value) === (FormShape.CIRCLE))) { + else if ((value) === (FormShape.CIRCLE)) { return true } else { @@ -5781,58 +5783,58 @@ export class TypeChecker { } } static isFunctionKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FunctionKey.ESC))) { + if ((value) === (FunctionKey.ESC)) { return true } - else if (((value) === (FunctionKey.F1))) { + else if ((value) === (FunctionKey.F1)) { return true } - else if (((value) === (FunctionKey.F2))) { + else if ((value) === (FunctionKey.F2)) { return true } - else if (((value) === (FunctionKey.F3))) { + else if ((value) === (FunctionKey.F3)) { return true } - else if (((value) === (FunctionKey.F4))) { + else if ((value) === (FunctionKey.F4)) { return true } - else if (((value) === (FunctionKey.F5))) { + else if ((value) === (FunctionKey.F5)) { return true } - else if (((value) === (FunctionKey.F6))) { + else if ((value) === (FunctionKey.F6)) { return true } - else if (((value) === (FunctionKey.F7))) { + else if ((value) === (FunctionKey.F7)) { return true } - else if (((value) === (FunctionKey.F8))) { + else if ((value) === (FunctionKey.F8)) { return true } - else if (((value) === (FunctionKey.F9))) { + else if ((value) === (FunctionKey.F9)) { return true } - else if (((value) === (FunctionKey.F10))) { + else if ((value) === (FunctionKey.F10)) { return true } - else if (((value) === (FunctionKey.F11))) { + else if ((value) === (FunctionKey.F11)) { return true } - else if (((value) === (FunctionKey.F12))) { + else if ((value) === (FunctionKey.F12)) { return true } - else if (((value) === (FunctionKey.TAB))) { + else if ((value) === (FunctionKey.TAB)) { return true } - else if (((value) === (FunctionKey.DPAD_UP))) { + else if ((value) === (FunctionKey.DPAD_UP)) { return true } - else if (((value) === (FunctionKey.DPAD_DOWN))) { + else if ((value) === (FunctionKey.DPAD_DOWN)) { return true } - else if (((value) === (FunctionKey.DPAD_LEFT))) { + else if ((value) === (FunctionKey.DPAD_LEFT)) { return true } - else if (((value) === (FunctionKey.DPAD_RIGHT))) { + else if ((value) === (FunctionKey.DPAD_RIGHT)) { return true } else { @@ -5945,28 +5947,28 @@ export class TypeChecker { } } static isGestureControl_GestureType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureControl_GestureType.TAP_GESTURE))) { + if ((value) === (GestureControl_GestureType.TAP_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.LONG_PRESS_GESTURE))) { + else if ((value) === (GestureControl_GestureType.LONG_PRESS_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.PAN_GESTURE))) { + else if ((value) === (GestureControl_GestureType.PAN_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.PINCH_GESTURE))) { + else if ((value) === (GestureControl_GestureType.PINCH_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.SWIPE_GESTURE))) { + else if ((value) === (GestureControl_GestureType.SWIPE_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.ROTATION_GESTURE))) { + else if ((value) === (GestureControl_GestureType.ROTATION_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.DRAG))) { + else if ((value) === (GestureControl_GestureType.DRAG)) { return true } - else if (((value) === (GestureControl_GestureType.CLICK))) { + else if ((value) === (GestureControl_GestureType.CLICK)) { return true } else { @@ -6046,10 +6048,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureInterface") } static isGestureJudgeResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureJudgeResult.CONTINUE))) { + if ((value) === (GestureJudgeResult.CONTINUE)) { return true } - else if (((value) === (GestureJudgeResult.REJECT))) { + else if ((value) === (GestureJudgeResult.REJECT)) { return true } else { @@ -6057,10 +6059,10 @@ export class TypeChecker { } } static isGestureMask(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureMask.Normal))) { + if ((value) === (GestureMask.Normal)) { return true } - else if (((value) === (GestureMask.IgnoreInternal))) { + else if ((value) === (GestureMask.IgnoreInternal)) { return true } else { @@ -6068,13 +6070,13 @@ export class TypeChecker { } } static isGestureMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureMode.Sequence))) { + if ((value) === (GestureMode.Sequence)) { return true } - else if (((value) === (GestureMode.Parallel))) { + else if ((value) === (GestureMode.Parallel)) { return true } - else if (((value) === (GestureMode.Exclusive))) { + else if ((value) === (GestureMode.Exclusive)) { return true } else { @@ -6085,10 +6087,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureModifier") } static isGesturePriority(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GesturePriority.NORMAL))) { + if ((value) === (GesturePriority.NORMAL)) { return true } - else if (((value) === (GesturePriority.PRIORITY))) { + else if ((value) === (GesturePriority.PRIORITY)) { return true } else { @@ -6099,22 +6101,22 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureRecognizer") } static isGestureRecognizerState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureRecognizerState.READY))) { + if ((value) === (GestureRecognizerState.READY)) { return true } - else if (((value) === (GestureRecognizerState.DETECTING))) { + else if ((value) === (GestureRecognizerState.DETECTING)) { return true } - else if (((value) === (GestureRecognizerState.PENDING))) { + else if ((value) === (GestureRecognizerState.PENDING)) { return true } - else if (((value) === (GestureRecognizerState.BLOCKED))) { + else if ((value) === (GestureRecognizerState.BLOCKED)) { return true } - else if (((value) === (GestureRecognizerState.SUCCESSFUL))) { + else if ((value) === (GestureRecognizerState.SUCCESSFUL)) { return true } - else if (((value) === (GestureRecognizerState.FAILED))) { + else if ((value) === (GestureRecognizerState.FAILED)) { return true } else { @@ -6142,31 +6144,31 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GlobalScope_ohos_arkui_performanceMonitor") } static isGradientDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GradientDirection.Left))) { + if ((value) === (GradientDirection.Left)) { return true } - else if (((value) === (GradientDirection.Top))) { + else if ((value) === (GradientDirection.Top)) { return true } - else if (((value) === (GradientDirection.Right))) { + else if ((value) === (GradientDirection.Right)) { return true } - else if (((value) === (GradientDirection.Bottom))) { + else if ((value) === (GradientDirection.Bottom)) { return true } - else if (((value) === (GradientDirection.LeftTop))) { + else if ((value) === (GradientDirection.LeftTop)) { return true } - else if (((value) === (GradientDirection.LeftBottom))) { + else if ((value) === (GradientDirection.LeftBottom)) { return true } - else if (((value) === (GradientDirection.RightTop))) { + else if ((value) === (GradientDirection.RightTop)) { return true } - else if (((value) === (GradientDirection.RightBottom))) { + else if ((value) === (GradientDirection.RightBottom)) { return true } - else if (((value) === (GradientDirection.None))) { + else if ((value) === (GradientDirection.None)) { return true } else { @@ -6352,16 +6354,16 @@ export class TypeChecker { } } static isGridDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridDirection.Row))) { + if ((value) === (GridDirection.Row)) { return true } - else if (((value) === (GridDirection.Column))) { + else if ((value) === (GridDirection.Column)) { return true } - else if (((value) === (GridDirection.RowReverse))) { + else if ((value) === (GridDirection.RowReverse)) { return true } - else if (((value) === (GridDirection.ColumnReverse))) { + else if ((value) === (GridDirection.ColumnReverse)) { return true } else { @@ -6372,10 +6374,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GridInterface") } static isGridItemAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridItemAlignment.DEFAULT))) { + if ((value) === (GridItemAlignment.DEFAULT)) { return true } - else if (((value) === (GridItemAlignment.STRETCH))) { + else if ((value) === (GridItemAlignment.STRETCH)) { return true } else { @@ -6423,10 +6425,10 @@ export class TypeChecker { } } static isGridItemStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridItemStyle.NONE))) { + if ((value) === (GridItemStyle.NONE)) { return true } - else if (((value) === (GridItemStyle.PLAIN))) { + else if ((value) === (GridItemStyle.PLAIN)) { return true } else { @@ -6485,10 +6487,10 @@ export class TypeChecker { } } static isGridRowDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridRowDirection.Row))) { + if ((value) === (GridRowDirection.Row)) { return true } - else if (((value) === (GridRowDirection.RowReverse))) { + else if ((value) === (GridRowDirection.RowReverse)) { return true } else { @@ -6586,13 +6588,13 @@ export class TypeChecker { } } static isHeightBreakpoint(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HeightBreakpoint.HEIGHT_SM))) { + if ((value) === (HeightBreakpoint.HEIGHT_SM)) { return true } - else if (((value) === (HeightBreakpoint.HEIGHT_MD))) { + else if ((value) === (HeightBreakpoint.HEIGHT_MD)) { return true } - else if (((value) === (HeightBreakpoint.HEIGHT_LG))) { + else if ((value) === (HeightBreakpoint.HEIGHT_LG)) { return true } else { @@ -6625,16 +6627,16 @@ export class TypeChecker { } } static isHitTestMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HitTestMode.Default))) { + if ((value) === (HitTestMode.Default)) { return true } - else if (((value) === (HitTestMode.Block))) { + else if ((value) === (HitTestMode.Block)) { return true } - else if (((value) === (HitTestMode.Transparent))) { + else if ((value) === (HitTestMode.Transparent)) { return true } - else if (((value) === (HitTestMode.None))) { + else if ((value) === (HitTestMode.None)) { return true } else { @@ -6642,28 +6644,28 @@ export class TypeChecker { } } static isHitTestType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HitTestType.EditText))) { + if ((value) === (HitTestType.EditText)) { return true } - else if (((value) === (HitTestType.Email))) { + else if ((value) === (HitTestType.Email)) { return true } - else if (((value) === (HitTestType.HttpAnchor))) { + else if ((value) === (HitTestType.HttpAnchor)) { return true } - else if (((value) === (HitTestType.HttpAnchorImg))) { + else if ((value) === (HitTestType.HttpAnchorImg)) { return true } - else if (((value) === (HitTestType.Img))) { + else if ((value) === (HitTestType.Img)) { return true } - else if (((value) === (HitTestType.Map))) { + else if ((value) === (HitTestType.Map)) { return true } - else if (((value) === (HitTestType.Phone))) { + else if ((value) === (HitTestType.Phone)) { return true } - else if (((value) === (HitTestType.Unknown))) { + else if ((value) === (HitTestType.Unknown)) { return true } else { @@ -6671,13 +6673,13 @@ export class TypeChecker { } } static isHorizontalAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HorizontalAlign.Start))) { + if ((value) === (HorizontalAlign.Start)) { return true } - else if (((value) === (HorizontalAlign.Center))) { + else if ((value) === (HorizontalAlign.Center)) { return true } - else if (((value) === (HorizontalAlign.End))) { + else if ((value) === (HorizontalAlign.End)) { return true } else { @@ -6685,16 +6687,16 @@ export class TypeChecker { } } static isHoverEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HoverEffect.Auto))) { + if ((value) === (HoverEffect.Auto)) { return true } - else if (((value) === (HoverEffect.Scale))) { + else if ((value) === (HoverEffect.Scale)) { return true } - else if (((value) === (HoverEffect.Highlight))) { + else if ((value) === (HoverEffect.Highlight)) { return true } - else if (((value) === (HoverEffect.None))) { + else if ((value) === (HoverEffect.None)) { return true } else { @@ -6727,10 +6729,10 @@ export class TypeChecker { } } static isHoverModeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HoverModeAreaType.TOP_SCREEN))) { + if ((value) === (HoverModeAreaType.TOP_SCREEN)) { return true } - else if (((value) === (HoverModeAreaType.BOTTOM_SCREEN))) { + else if ((value) === (HoverModeAreaType.BOTTOM_SCREEN)) { return true } else { @@ -6769,22 +6771,22 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ICurve") } static isIlluminatedType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (IlluminatedType.NONE))) { + if ((value) === (IlluminatedType.NONE)) { return true } - else if (((value) === (IlluminatedType.BORDER))) { + else if ((value) === (IlluminatedType.BORDER)) { return true } - else if (((value) === (IlluminatedType.CONTENT))) { + else if ((value) === (IlluminatedType.CONTENT)) { return true } - else if (((value) === (IlluminatedType.BORDER_CONTENT))) { + else if ((value) === (IlluminatedType.BORDER_CONTENT)) { return true } - else if (((value) === (IlluminatedType.BLOOM_BORDER))) { + else if ((value) === (IlluminatedType.BLOOM_BORDER)) { return true } - else if (((value) === (IlluminatedType.BLOOM_BORDER_CONTENT))) { + else if ((value) === (IlluminatedType.BLOOM_BORDER_CONTENT)) { return true } else { @@ -6814,13 +6816,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageAnalyzerController") } static isImageAnalyzerType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageAnalyzerType.SUBJECT))) { + if ((value) === (ImageAnalyzerType.SUBJECT)) { return true } - else if (((value) === (ImageAnalyzerType.TEXT))) { + else if ((value) === (ImageAnalyzerType.TEXT)) { return true } - else if (((value) === (ImageAnalyzerType.OBJECT_LOOKUP))) { + else if ((value) === (ImageAnalyzerType.OBJECT_LOOKUP)) { return true } else { @@ -7020,7 +7022,7 @@ export class TypeChecker { } } static isImageContent(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageContent.EMPTY))) { + if ((value) === (ImageContent.EMPTY)) { return true } else { @@ -7056,49 +7058,49 @@ export class TypeChecker { } } static isImageFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageFit.Contain))) { + if ((value) === (ImageFit.Contain)) { return true } - else if (((value) === (ImageFit.Cover))) { + else if ((value) === (ImageFit.Cover)) { return true } - else if (((value) === (ImageFit.Auto))) { + else if ((value) === (ImageFit.Auto)) { return true } - else if (((value) === (ImageFit.Fill))) { + else if ((value) === (ImageFit.Fill)) { return true } - else if (((value) === (ImageFit.ScaleDown))) { + else if ((value) === (ImageFit.ScaleDown)) { return true } - else if (((value) === (ImageFit.None))) { + else if ((value) === (ImageFit.None)) { return true } - else if (((value) === (ImageFit.TOP_START))) { + else if ((value) === (ImageFit.TOP_START)) { return true } - else if (((value) === (ImageFit.TOP))) { + else if ((value) === (ImageFit.TOP)) { return true } - else if (((value) === (ImageFit.TOP_END))) { + else if ((value) === (ImageFit.TOP_END)) { return true } - else if (((value) === (ImageFit.START))) { + else if ((value) === (ImageFit.START)) { return true } - else if (((value) === (ImageFit.CENTER))) { + else if ((value) === (ImageFit.CENTER)) { return true } - else if (((value) === (ImageFit.END))) { + else if ((value) === (ImageFit.END)) { return true } - else if (((value) === (ImageFit.BOTTOM_START))) { + else if ((value) === (ImageFit.BOTTOM_START)) { return true } - else if (((value) === (ImageFit.BOTTOM))) { + else if ((value) === (ImageFit.BOTTOM)) { return true } - else if (((value) === (ImageFit.BOTTOM_END))) { + else if ((value) === (ImageFit.BOTTOM_END)) { return true } else { @@ -7132,16 +7134,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageInterface") } static isImageInterpolation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageInterpolation.None))) { + if ((value) === (ImageInterpolation.None)) { return true } - else if (((value) === (ImageInterpolation.Low))) { + else if ((value) === (ImageInterpolation.Low)) { return true } - else if (((value) === (ImageInterpolation.Medium))) { + else if ((value) === (ImageInterpolation.Medium)) { return true } - else if (((value) === (ImageInterpolation.High))) { + else if ((value) === (ImageInterpolation.High)) { return true } else { @@ -7203,10 +7205,10 @@ export class TypeChecker { } } static isImageRenderMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageRenderMode.Original))) { + if ((value) === (ImageRenderMode.Original)) { return true } - else if (((value) === (ImageRenderMode.Template))) { + else if ((value) === (ImageRenderMode.Template)) { return true } else { @@ -7214,16 +7216,16 @@ export class TypeChecker { } } static isImageRepeat(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageRepeat.NoRepeat))) { + if ((value) === (ImageRepeat.NoRepeat)) { return true } - else if (((value) === (ImageRepeat.X))) { + else if ((value) === (ImageRepeat.X)) { return true } - else if (((value) === (ImageRepeat.Y))) { + else if ((value) === (ImageRepeat.Y)) { return true } - else if (((value) === (ImageRepeat.XY))) { + else if ((value) === (ImageRepeat.XY)) { return true } else { @@ -7231,16 +7233,16 @@ export class TypeChecker { } } static isImageSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageSize.Auto))) { + if ((value) === (ImageSize.Auto)) { return true } - else if (((value) === (ImageSize.Cover))) { + else if ((value) === (ImageSize.Cover)) { return true } - else if (((value) === (ImageSize.Contain))) { + else if ((value) === (ImageSize.Contain)) { return true } - else if (((value) === (ImageSize.FILL))) { + else if ((value) === (ImageSize.FILL)) { return true } else { @@ -7259,16 +7261,16 @@ export class TypeChecker { } } static isImageSpanAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageSpanAlignment.BASELINE))) { + if ((value) === (ImageSpanAlignment.BASELINE)) { return true } - else if (((value) === (ImageSpanAlignment.BOTTOM))) { + else if ((value) === (ImageSpanAlignment.BOTTOM)) { return true } - else if (((value) === (ImageSpanAlignment.CENTER))) { + else if ((value) === (ImageSpanAlignment.CENTER)) { return true } - else if (((value) === (ImageSpanAlignment.TOP))) { + else if ((value) === (ImageSpanAlignment.TOP)) { return true } else { @@ -7302,16 +7304,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageSpanInterface") } static isIndexerAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (IndexerAlign.Left))) { + if ((value) === (IndexerAlign.Left)) { return true } - else if (((value) === (IndexerAlign.Right))) { + else if ((value) === (IndexerAlign.Right)) { return true } - else if (((value) === (IndexerAlign.START))) { + else if ((value) === (IndexerAlign.START)) { return true } - else if (((value) === (IndexerAlign.END))) { + else if ((value) === (IndexerAlign.END)) { return true } else { @@ -7391,37 +7393,37 @@ export class TypeChecker { } } static isInputType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (InputType.Normal))) { + if ((value) === (InputType.Normal)) { return true } - else if (((value) === (InputType.Number))) { + else if ((value) === (InputType.Number)) { return true } - else if (((value) === (InputType.PhoneNumber))) { + else if ((value) === (InputType.PhoneNumber)) { return true } - else if (((value) === (InputType.Email))) { + else if ((value) === (InputType.Email)) { return true } - else if (((value) === (InputType.Password))) { + else if ((value) === (InputType.Password)) { return true } - else if (((value) === (InputType.NUMBER_PASSWORD))) { + else if ((value) === (InputType.NUMBER_PASSWORD)) { return true } - else if (((value) === (InputType.SCREEN_LOCK_PASSWORD))) { + else if ((value) === (InputType.SCREEN_LOCK_PASSWORD)) { return true } - else if (((value) === (InputType.USER_NAME))) { + else if ((value) === (InputType.USER_NAME)) { return true } - else if (((value) === (InputType.NEW_PASSWORD))) { + else if ((value) === (InputType.NEW_PASSWORD)) { return true } - else if (((value) === (InputType.NUMBER_DECIMAL))) { + else if ((value) === (InputType.NUMBER_DECIMAL)) { return true } - else if (((value) === (InputType.URL))) { + else if ((value) === (InputType.URL)) { return true } else { @@ -7501,22 +7503,22 @@ export class TypeChecker { } } static isItemAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ItemAlign.Auto))) { + if ((value) === (ItemAlign.Auto)) { return true } - else if (((value) === (ItemAlign.Start))) { + else if ((value) === (ItemAlign.Start)) { return true } - else if (((value) === (ItemAlign.Center))) { + else if ((value) === (ItemAlign.Center)) { return true } - else if (((value) === (ItemAlign.End))) { + else if ((value) === (ItemAlign.End)) { return true } - else if (((value) === (ItemAlign.Baseline))) { + else if ((value) === (ItemAlign.Baseline)) { return true } - else if (((value) === (ItemAlign.Stretch))) { + else if ((value) === (ItemAlign.Stretch)) { return true } else { @@ -7535,16 +7537,16 @@ export class TypeChecker { } } static isItemState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ItemState.Normal))) { + if ((value) === (ItemState.Normal)) { return true } - else if (((value) === (ItemState.Disabled))) { + else if ((value) === (ItemState.Disabled)) { return true } - else if (((value) === (ItemState.Waiting))) { + else if ((value) === (ItemState.Waiting)) { return true } - else if (((value) === (ItemState.Skip))) { + else if ((value) === (ItemState.Skip)) { return true } else { @@ -7581,10 +7583,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof JsResult") } static isKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeyboardAvoidMode.DEFAULT))) { + if ((value) === (KeyboardAvoidMode.DEFAULT)) { return true } - else if (((value) === (KeyboardAvoidMode.NONE))) { + else if ((value) === (KeyboardAvoidMode.NONE)) { return true } else { @@ -7663,10 +7665,10 @@ export class TypeChecker { } } static isKeySource(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeySource.Unknown))) { + if ((value) === (KeySource.Unknown)) { return true } - else if (((value) === (KeySource.Keyboard))) { + else if ((value) === (KeySource.Keyboard)) { return true } else { @@ -7674,10 +7676,10 @@ export class TypeChecker { } } static isKeyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeyType.Down))) { + if ((value) === (KeyType.Down)) { return true } - else if (((value) === (KeyType.Up))) { + else if ((value) === (KeyType.Up)) { return true } else { @@ -7731,16 +7733,16 @@ export class TypeChecker { } } static isLaunchMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LaunchMode.STANDARD))) { + if ((value) === (LaunchMode.STANDARD)) { return true } - else if (((value) === (LaunchMode.MOVE_TO_TOP_SINGLETON))) { + else if ((value) === (LaunchMode.MOVE_TO_TOP_SINGLETON)) { return true } - else if (((value) === (LaunchMode.POP_TO_SINGLETON))) { + else if ((value) === (LaunchMode.POP_TO_SINGLETON)) { return true } - else if (((value) === (LaunchMode.NEW_INSTANCE))) { + else if ((value) === (LaunchMode.NEW_INSTANCE)) { return true } else { @@ -7778,13 +7780,13 @@ export class TypeChecker { } } static isLayoutDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutDirection.LTR))) { + if ((value) === (LayoutDirection.LTR)) { return true } - else if (((value) === (LayoutDirection.RTL))) { + else if ((value) === (LayoutDirection.RTL)) { return true } - else if (((value) === (LayoutDirection.Auto))) { + else if ((value) === (LayoutDirection.Auto)) { return true } else { @@ -7806,13 +7808,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LayoutManager") } static isLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutMode.AUTO))) { + if ((value) === (LayoutMode.AUTO)) { return true } - else if (((value) === (LayoutMode.VERTICAL))) { + else if ((value) === (LayoutMode.VERTICAL)) { return true } - else if (((value) === (LayoutMode.HORIZONTAL))) { + else if ((value) === (LayoutMode.HORIZONTAL)) { return true } else { @@ -7820,10 +7822,10 @@ export class TypeChecker { } } static isLayoutSafeAreaEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutSafeAreaEdge.TOP))) { + if ((value) === (LayoutSafeAreaEdge.TOP)) { return true } - else if (((value) === (LayoutSafeAreaEdge.BOTTOM))) { + else if ((value) === (LayoutSafeAreaEdge.BOTTOM)) { return true } else { @@ -7831,7 +7833,7 @@ export class TypeChecker { } } static isLayoutSafeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutSafeAreaType.SYSTEM))) { + if ((value) === (LayoutSafeAreaType.SYSTEM)) { return true } else { @@ -7839,13 +7841,13 @@ export class TypeChecker { } } static isLayoutStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutStyle.ALWAYS_CENTER))) { + if ((value) === (LayoutStyle.ALWAYS_CENTER)) { return true } - else if (((value) === (LayoutStyle.ALWAYS_AVERAGE_SPLIT))) { + else if ((value) === (LayoutStyle.ALWAYS_AVERAGE_SPLIT)) { return true } - else if (((value) === (LayoutStyle.SPACE_BETWEEN_OR_CENTER))) { + else if ((value) === (LayoutStyle.SPACE_BETWEEN_OR_CENTER)) { return true } else { @@ -7897,19 +7899,19 @@ export class TypeChecker { } } static isLengthUnit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LengthUnit.PX))) { + if ((value) === (LengthUnit.PX)) { return true } - else if (((value) === (LengthUnit.VP))) { + else if ((value) === (LengthUnit.VP)) { return true } - else if (((value) === (LengthUnit.FP))) { + else if ((value) === (LengthUnit.FP)) { return true } - else if (((value) === (LengthUnit.PERCENT))) { + else if ((value) === (LengthUnit.PERCENT)) { return true } - else if (((value) === (LengthUnit.LPX))) { + else if ((value) === (LengthUnit.LPX)) { return true } else { @@ -8049,13 +8051,13 @@ export class TypeChecker { } } static isLineBreakStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineBreakStrategy.GREEDY))) { + if ((value) === (LineBreakStrategy.GREEDY)) { return true } - else if (((value) === (LineBreakStrategy.HIGH_QUALITY))) { + else if ((value) === (LineBreakStrategy.HIGH_QUALITY)) { return true } - else if (((value) === (LineBreakStrategy.BALANCED))) { + else if ((value) === (LineBreakStrategy.BALANCED)) { return true } else { @@ -8063,13 +8065,13 @@ export class TypeChecker { } } static isLineCapStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineCapStyle.Butt))) { + if ((value) === (LineCapStyle.Butt)) { return true } - else if (((value) === (LineCapStyle.Round))) { + else if ((value) === (LineCapStyle.Round)) { return true } - else if (((value) === (LineCapStyle.Square))) { + else if ((value) === (LineCapStyle.Square)) { return true } else { @@ -8088,13 +8090,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LineInterface") } static isLineJoinStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineJoinStyle.Miter))) { + if ((value) === (LineJoinStyle.Miter)) { return true } - else if (((value) === (LineJoinStyle.Round))) { + else if ((value) === (LineJoinStyle.Round)) { return true } - else if (((value) === (LineJoinStyle.Bevel))) { + else if ((value) === (LineJoinStyle.Bevel)) { return true } else { @@ -8245,13 +8247,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ListInterface") } static isListItemAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemAlign.Start))) { + if ((value) === (ListItemAlign.Start)) { return true } - else if (((value) === (ListItemAlign.Center))) { + else if ((value) === (ListItemAlign.Center)) { return true } - else if (((value) === (ListItemAlign.End))) { + else if ((value) === (ListItemAlign.End)) { return true } else { @@ -8282,16 +8284,16 @@ export class TypeChecker { } } static isListItemGroupArea(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemGroupArea.NONE))) { + if ((value) === (ListItemGroupArea.NONE)) { return true } - else if (((value) === (ListItemGroupArea.IN_LIST_ITEM_AREA))) { + else if ((value) === (ListItemGroupArea.IN_LIST_ITEM_AREA)) { return true } - else if (((value) === (ListItemGroupArea.IN_HEADER_AREA))) { + else if ((value) === (ListItemGroupArea.IN_HEADER_AREA)) { return true } - else if (((value) === (ListItemGroupArea.IN_FOOTER_AREA))) { + else if ((value) === (ListItemGroupArea.IN_FOOTER_AREA)) { return true } else { @@ -8336,10 +8338,10 @@ export class TypeChecker { } } static isListItemGroupStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemGroupStyle.NONE))) { + if ((value) === (ListItemGroupStyle.NONE)) { return true } - else if (((value) === (ListItemGroupStyle.CARD))) { + else if ((value) === (ListItemGroupStyle.CARD)) { return true } else { @@ -8358,10 +8360,10 @@ export class TypeChecker { } } static isListItemStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemStyle.NONE))) { + if ((value) === (ListItemStyle.NONE)) { return true } - else if (((value) === (ListItemStyle.CARD))) { + else if ((value) === (ListItemStyle.CARD)) { return true } else { @@ -8800,13 +8802,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LoadingProgressInterface") } static isLoadingProgressStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LoadingProgressStyle.Default))) { + if ((value) === (LoadingProgressStyle.Default)) { return true } - else if (((value) === (LoadingProgressStyle.Circular))) { + else if ((value) === (LoadingProgressStyle.Circular)) { return true } - else if (((value) === (LoadingProgressStyle.Orbital))) { + else if ((value) === (LoadingProgressStyle.Orbital)) { return true } else { @@ -8840,16 +8842,16 @@ export class TypeChecker { } } static isLocalizedBarrierDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocalizedBarrierDirection.START))) { + if ((value) === (LocalizedBarrierDirection.START)) { return true } - else if (((value) === (LocalizedBarrierDirection.END))) { + else if ((value) === (LocalizedBarrierDirection.END)) { return true } - else if (((value) === (LocalizedBarrierDirection.TOP))) { + else if ((value) === (LocalizedBarrierDirection.TOP)) { return true } - else if (((value) === (LocalizedBarrierDirection.BOTTOM))) { + else if ((value) === (LocalizedBarrierDirection.BOTTOM)) { return true } else { @@ -8991,10 +8993,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LocationButtonInterface") } static isLocationButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationButtonOnClickResult.SUCCESS))) { + if ((value) === (LocationButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -9016,37 +9018,37 @@ export class TypeChecker { } } static isLocationDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationDescription.CURRENT_LOCATION))) { + if ((value) === (LocationDescription.CURRENT_LOCATION)) { return true } - else if (((value) === (LocationDescription.ADD_LOCATION))) { + else if ((value) === (LocationDescription.ADD_LOCATION)) { return true } - else if (((value) === (LocationDescription.SELECT_LOCATION))) { + else if ((value) === (LocationDescription.SELECT_LOCATION)) { return true } - else if (((value) === (LocationDescription.SHARE_LOCATION))) { + else if ((value) === (LocationDescription.SHARE_LOCATION)) { return true } - else if (((value) === (LocationDescription.SEND_LOCATION))) { + else if ((value) === (LocationDescription.SEND_LOCATION)) { return true } - else if (((value) === (LocationDescription.LOCATING))) { + else if ((value) === (LocationDescription.LOCATING)) { return true } - else if (((value) === (LocationDescription.LOCATION))) { + else if ((value) === (LocationDescription.LOCATION)) { return true } - else if (((value) === (LocationDescription.SEND_CURRENT_LOCATION))) { + else if ((value) === (LocationDescription.SEND_CURRENT_LOCATION)) { return true } - else if (((value) === (LocationDescription.RELOCATION))) { + else if ((value) === (LocationDescription.RELOCATION)) { return true } - else if (((value) === (LocationDescription.PUNCH_IN))) { + else if ((value) === (LocationDescription.PUNCH_IN)) { return true } - else if (((value) === (LocationDescription.CURRENT_POSITION))) { + else if ((value) === (LocationDescription.CURRENT_POSITION)) { return true } else { @@ -9054,10 +9056,10 @@ export class TypeChecker { } } static isLocationIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationIconStyle.FULL_FILLED))) { + if ((value) === (LocationIconStyle.FULL_FILLED)) { return true } - else if (((value) === (LocationIconStyle.LINES))) { + else if ((value) === (LocationIconStyle.LINES)) { return true } else { @@ -9176,10 +9178,10 @@ export class TypeChecker { } } static isMarqueeUpdateStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MarqueeUpdateStrategy.DEFAULT))) { + if ((value) === (MarqueeUpdateStrategy.DEFAULT)) { return true } - else if (((value) === (MarqueeUpdateStrategy.PRESERVE_POSITION))) { + else if ((value) === (MarqueeUpdateStrategy.PRESERVE_POSITION)) { return true } else { @@ -9222,13 +9224,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof MediaCachedImageInterface") } static isMenuAlignType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuAlignType.START))) { + if ((value) === (MenuAlignType.START)) { return true } - else if (((value) === (MenuAlignType.CENTER))) { + else if ((value) === (MenuAlignType.CENTER)) { return true } - else if (((value) === (MenuAlignType.END))) { + else if ((value) === (MenuAlignType.END)) { return true } else { @@ -9388,13 +9390,13 @@ export class TypeChecker { } } static isMenuPolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuPolicy.DEFAULT))) { + if ((value) === (MenuPolicy.DEFAULT)) { return true } - else if (((value) === (MenuPolicy.HIDE))) { + else if ((value) === (MenuPolicy.HIDE)) { return true } - else if (((value) === (MenuPolicy.SHOW))) { + else if ((value) === (MenuPolicy.SHOW)) { return true } else { @@ -9402,10 +9404,10 @@ export class TypeChecker { } } static isMenuPreviewMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuPreviewMode.NONE))) { + if ((value) === (MenuPreviewMode.NONE)) { return true } - else if (((value) === (MenuPreviewMode.IMAGE))) { + else if ((value) === (MenuPreviewMode.IMAGE)) { return true } else { @@ -9413,10 +9415,10 @@ export class TypeChecker { } } static isMenuType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuType.SELECTION_MENU))) { + if ((value) === (MenuType.SELECTION_MENU)) { return true } - else if (((value) === (MenuType.PREVIEW_MENU))) { + else if ((value) === (MenuType.PREVIEW_MENU)) { return true } else { @@ -9424,19 +9426,19 @@ export class TypeChecker { } } static isMessageLevel(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MessageLevel.Debug))) { + if ((value) === (MessageLevel.Debug)) { return true } - else if (((value) === (MessageLevel.Error))) { + else if ((value) === (MessageLevel.Error)) { return true } - else if (((value) === (MessageLevel.Info))) { + else if ((value) === (MessageLevel.Info)) { return true } - else if (((value) === (MessageLevel.Log))) { + else if ((value) === (MessageLevel.Log)) { return true } - else if (((value) === (MessageLevel.Warn))) { + else if ((value) === (MessageLevel.Warn)) { return true } else { @@ -9444,13 +9446,13 @@ export class TypeChecker { } } static isMixedMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MixedMode.All))) { + if ((value) === (MixedMode.All)) { return true } - else if (((value) === (MixedMode.Compatible))) { + else if ((value) === (MixedMode.Compatible)) { return true } - else if (((value) === (MixedMode.None))) { + else if ((value) === (MixedMode.None)) { return true } else { @@ -9458,13 +9460,13 @@ export class TypeChecker { } } static isModalTransition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModalTransition.DEFAULT))) { + if ((value) === (ModalTransition.DEFAULT)) { return true } - else if (((value) === (ModalTransition.NONE))) { + else if ((value) === (ModalTransition.NONE)) { return true } - else if (((value) === (ModalTransition.ALPHA))) { + else if ((value) === (ModalTransition.ALPHA)) { return true } else { @@ -9472,10 +9474,10 @@ export class TypeChecker { } } static isModelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModelType.TEXTURE))) { + if ((value) === (ModelType.TEXTURE)) { return true } - else if (((value) === (ModelType.SURFACE))) { + else if ((value) === (ModelType.SURFACE)) { return true } else { @@ -9483,13 +9485,13 @@ export class TypeChecker { } } static isModifierKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModifierKey.CTRL))) { + if ((value) === (ModifierKey.CTRL)) { return true } - else if (((value) === (ModifierKey.SHIFT))) { + else if ((value) === (ModifierKey.SHIFT)) { return true } - else if (((value) === (ModifierKey.ALT))) { + else if ((value) === (ModifierKey.ALT)) { return true } else { @@ -9550,16 +9552,16 @@ export class TypeChecker { } } static isMouseAction(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MouseAction.Press))) { + if ((value) === (MouseAction.Press)) { return true } - else if (((value) === (MouseAction.Release))) { + else if ((value) === (MouseAction.Release)) { return true } - else if (((value) === (MouseAction.Move))) { + else if ((value) === (MouseAction.Move)) { return true } - else if (((value) === (MouseAction.Hover))) { + else if ((value) === (MouseAction.Hover)) { return true } else { @@ -9567,22 +9569,22 @@ export class TypeChecker { } } static isMouseButton(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MouseButton.Left))) { + if ((value) === (MouseButton.Left)) { return true } - else if (((value) === (MouseButton.Right))) { + else if ((value) === (MouseButton.Right)) { return true } - else if (((value) === (MouseButton.Middle))) { + else if ((value) === (MouseButton.Middle)) { return true } - else if (((value) === (MouseButton.Back))) { + else if ((value) === (MouseButton.Back)) { return true } - else if (((value) === (MouseButton.Forward))) { + else if ((value) === (MouseButton.Forward)) { return true } - else if (((value) === (MouseButton.None))) { + else if ((value) === (MouseButton.None)) { return true } else { @@ -9705,19 +9707,19 @@ export class TypeChecker { } } static isNativeEmbedStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NativeEmbedStatus.CREATE))) { + if ((value) === (NativeEmbedStatus.CREATE)) { return true } - else if (((value) === (NativeEmbedStatus.UPDATE))) { + else if ((value) === (NativeEmbedStatus.UPDATE)) { return true } - else if (((value) === (NativeEmbedStatus.DESTROY))) { + else if ((value) === (NativeEmbedStatus.DESTROY)) { return true } - else if (((value) === (NativeEmbedStatus.ENTER_BFCACHE))) { + else if ((value) === (NativeEmbedStatus.ENTER_BFCACHE)) { return true } - else if (((value) === (NativeEmbedStatus.LEAVE_BFCACHE))) { + else if ((value) === (NativeEmbedStatus.LEAVE_BFCACHE)) { return true } else { @@ -9761,10 +9763,10 @@ export class TypeChecker { } } static isNavBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavBarPosition.Start))) { + if ((value) === (NavBarPosition.Start)) { return true } - else if (((value) === (NavBarPosition.End))) { + else if ((value) === (NavBarPosition.End)) { return true } else { @@ -9889,10 +9891,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavDestinationInterface") } static isNavDestinationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavDestinationMode.STANDARD))) { + if ((value) === (NavDestinationMode.STANDARD)) { return true } - else if (((value) === (NavDestinationMode.DIALOG))) { + else if ((value) === (NavDestinationMode.DIALOG)) { return true } else { @@ -10058,13 +10060,13 @@ export class TypeChecker { } } static isNavigationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationMode.Stack))) { + if ((value) === (NavigationMode.Stack)) { return true } - else if (((value) === (NavigationMode.Split))) { + else if ((value) === (NavigationMode.Split)) { return true } - else if (((value) === (NavigationMode.Auto))) { + else if ((value) === (NavigationMode.Auto)) { return true } else { @@ -10072,13 +10074,13 @@ export class TypeChecker { } } static isNavigationOperation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationOperation.PUSH))) { + if ((value) === (NavigationOperation.PUSH)) { return true } - else if (((value) === (NavigationOperation.POP))) { + else if ((value) === (NavigationOperation.POP)) { return true } - else if (((value) === (NavigationOperation.REPLACE))) { + else if ((value) === (NavigationOperation.REPLACE)) { return true } else { @@ -10097,16 +10099,16 @@ export class TypeChecker { } } static isNavigationSystemTransitionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationSystemTransitionType.DEFAULT))) { + if ((value) === (NavigationSystemTransitionType.DEFAULT)) { return true } - else if (((value) === (NavigationSystemTransitionType.NONE))) { + else if ((value) === (NavigationSystemTransitionType.NONE)) { return true } - else if (((value) === (NavigationSystemTransitionType.TITLE))) { + else if ((value) === (NavigationSystemTransitionType.TITLE)) { return true } - else if (((value) === (NavigationSystemTransitionType.CONTENT))) { + else if ((value) === (NavigationSystemTransitionType.CONTENT)) { return true } else { @@ -10114,13 +10116,13 @@ export class TypeChecker { } } static isNavigationTitleMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationTitleMode.Free))) { + if ((value) === (NavigationTitleMode.Free)) { return true } - else if (((value) === (NavigationTitleMode.Full))) { + else if ((value) === (NavigationTitleMode.Full)) { return true } - else if (((value) === (NavigationTitleMode.Mini))) { + else if ((value) === (NavigationTitleMode.Mini)) { return true } else { @@ -10185,13 +10187,13 @@ export class TypeChecker { } } static isNavigationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationType.Push))) { + if ((value) === (NavigationType.Push)) { return true } - else if (((value) === (NavigationType.Back))) { + else if ((value) === (NavigationType.Back)) { return true } - else if (((value) === (NavigationType.Replace))) { + else if ((value) === (NavigationType.Replace)) { return true } else { @@ -10239,13 +10241,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavPathStack") } static isNavRouteMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavRouteMode.PUSH_WITH_RECREATE))) { + if ((value) === (NavRouteMode.PUSH_WITH_RECREATE)) { return true } - else if (((value) === (NavRouteMode.PUSH))) { + else if ((value) === (NavRouteMode.PUSH)) { return true } - else if (((value) === (NavRouteMode.REPLACE))) { + else if ((value) === (NavRouteMode.REPLACE)) { return true } else { @@ -10267,16 +10269,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavRouterInterface") } static isNestedScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NestedScrollMode.SELF_ONLY))) { + if ((value) === (NestedScrollMode.SELF_ONLY)) { return true } - else if (((value) === (NestedScrollMode.SELF_FIRST))) { + else if ((value) === (NestedScrollMode.SELF_FIRST)) { return true } - else if (((value) === (NestedScrollMode.PARENT_FIRST))) { + else if ((value) === (NestedScrollMode.PARENT_FIRST)) { return true } - else if (((value) === (NestedScrollMode.PARALLEL))) { + else if ((value) === (NestedScrollMode.PARALLEL)) { return true } else { @@ -10338,13 +10340,27 @@ export class TypeChecker { } } static isObscuredReasons(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ObscuredReasons.PLACEHOLDER))) { + if ((value) === (ObscuredReasons.PLACEHOLDER)) { return true } else { throw new Error("Can not discriminate value typeof ObscuredReasons") } } + static isOffscreenCanvas(value: object|string|number|undefined|null|boolean, duplicated_height: boolean, duplicated_width: boolean): boolean { + if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OffscreenCanvas") + } + } + static isOffscreenCanvasRenderingContext2D(value: object|string|number|undefined|null|boolean): boolean { + throw new Error("Can not discriminate value typeof OffscreenCanvasRenderingContext2D") + } static isOffset(value: object|string|number|undefined|null|boolean, duplicated_dx: boolean, duplicated_dy: boolean): boolean { if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { return true @@ -10802,10 +10818,10 @@ export class TypeChecker { } } static isOptionWidthMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OptionWidthMode.FIT_CONTENT))) { + if ((value) === (OptionWidthMode.FIT_CONTENT)) { return true } - else if (((value) === (OptionWidthMode.FIT_TRIGGER))) { + else if ((value) === (OptionWidthMode.FIT_TRIGGER)) { return true } else { @@ -10847,13 +10863,13 @@ export class TypeChecker { } } static isOutlineStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OutlineStyle.SOLID))) { + if ((value) === (OutlineStyle.SOLID)) { return true } - else if (((value) === (OutlineStyle.DASHED))) { + else if ((value) === (OutlineStyle.DASHED)) { return true } - else if (((value) === (OutlineStyle.DOTTED))) { + else if ((value) === (OutlineStyle.DOTTED)) { return true } else { @@ -10883,10 +10899,10 @@ export class TypeChecker { } } static isOverScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OverScrollMode.NEVER))) { + if ((value) === (OverScrollMode.NEVER)) { return true } - else if (((value) === (OverScrollMode.ALWAYS))) { + else if ((value) === (OverScrollMode.ALWAYS)) { return true } else { @@ -10934,28 +10950,28 @@ export class TypeChecker { } } static isPanDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanDirection.None))) { + if ((value) === (PanDirection.None)) { return true } - else if (((value) === (PanDirection.Horizontal))) { + else if ((value) === (PanDirection.Horizontal)) { return true } - else if (((value) === (PanDirection.Left))) { + else if ((value) === (PanDirection.Left)) { return true } - else if (((value) === (PanDirection.Right))) { + else if ((value) === (PanDirection.Right)) { return true } - else if (((value) === (PanDirection.Vertical))) { + else if ((value) === (PanDirection.Vertical)) { return true } - else if (((value) === (PanDirection.Up))) { + else if ((value) === (PanDirection.Up)) { return true } - else if (((value) === (PanDirection.Down))) { + else if ((value) === (PanDirection.Down)) { return true } - else if (((value) === (PanDirection.All))) { + else if ((value) === (PanDirection.All)) { return true } else { @@ -11004,7 +11020,7 @@ export class TypeChecker { } } static isPanelHeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelHeight.WRAP_CONTENT))) { + if ((value) === (PanelHeight.WRAP_CONTENT)) { return true } else { @@ -11015,13 +11031,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PanelInterface") } static isPanelMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelMode.Mini))) { + if ((value) === (PanelMode.Mini)) { return true } - else if (((value) === (PanelMode.Half))) { + else if ((value) === (PanelMode.Half)) { return true } - else if (((value) === (PanelMode.Full))) { + else if ((value) === (PanelMode.Full)) { return true } else { @@ -11029,16 +11045,16 @@ export class TypeChecker { } } static isPanelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelType.Minibar))) { + if ((value) === (PanelType.Minibar)) { return true } - else if (((value) === (PanelType.Foldable))) { + else if ((value) === (PanelType.Foldable)) { return true } - else if (((value) === (PanelType.Temporary))) { + else if ((value) === (PanelType.Temporary)) { return true } - else if (((value) === (PanelType.CUSTOM))) { + else if ((value) === (PanelType.CUSTOM)) { return true } else { @@ -11172,13 +11188,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ParticleConfigs") } static isParticleEmitterShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleEmitterShape.RECTANGLE))) { + if ((value) === (ParticleEmitterShape.RECTANGLE)) { return true } - else if (((value) === (ParticleEmitterShape.CIRCLE))) { + else if ((value) === (ParticleEmitterShape.CIRCLE)) { return true } - else if (((value) === (ParticleEmitterShape.ELLIPSE))) { + else if ((value) === (ParticleEmitterShape.ELLIPSE)) { return true } else { @@ -11209,10 +11225,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ParticlePropertyUpdaterConfigs") } static isParticleType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleType.POINT))) { + if ((value) === (ParticleType.POINT)) { return true } - else if (((value) === (ParticleType.IMAGE))) { + else if ((value) === (ParticleType.IMAGE)) { return true } else { @@ -11220,13 +11236,13 @@ export class TypeChecker { } } static isParticleUpdater(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleUpdater.NONE))) { + if ((value) === (ParticleUpdater.NONE)) { return true } - else if (((value) === (ParticleUpdater.RANDOM))) { + else if ((value) === (ParticleUpdater.RANDOM)) { return true } - else if (((value) === (ParticleUpdater.CURVE))) { + else if ((value) === (ParticleUpdater.CURVE)) { return true } else { @@ -11267,10 +11283,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PasteButtonInterface") } static isPasteButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteButtonOnClickResult.SUCCESS))) { + if ((value) === (PasteButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -11292,7 +11308,7 @@ export class TypeChecker { } } static isPasteDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteDescription.PASTE))) { + if ((value) === (PasteDescription.PASTE)) { return true } else { @@ -11308,7 +11324,7 @@ export class TypeChecker { } } static isPasteIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteIconStyle.LINES))) { + if ((value) === (PasteIconStyle.LINES)) { return true } else { @@ -11393,10 +11409,10 @@ export class TypeChecker { } } static isPatternLockChallengeResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PatternLockChallengeResult.CORRECT))) { + if ((value) === (PatternLockChallengeResult.CORRECT)) { return true } - else if (((value) === (PatternLockChallengeResult.WRONG))) { + else if ((value) === (PatternLockChallengeResult.WRONG)) { return true } else { @@ -11410,13 +11426,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PatternLockInterface") } static isPerfMonitorActionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PerfMonitorActionType.LAST_DOWN))) { + if ((value) === (PerfMonitorActionType.LAST_DOWN)) { return true } - else if (((value) === (PerfMonitorActionType.LAST_UP))) { + else if ((value) === (PerfMonitorActionType.LAST_UP)) { return true } - else if (((value) === (PerfMonitorActionType.FIRST_MOVE))) { + else if ((value) === (PerfMonitorActionType.FIRST_MOVE)) { return true } else { @@ -11424,19 +11440,19 @@ export class TypeChecker { } } static isPerfMonitorSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PerfMonitorSourceType.PERF_TOUCH_EVENT))) { + if ((value) === (PerfMonitorSourceType.PERF_TOUCH_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_MOUSE_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_MOUSE_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_TOUCHPAD_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_TOUCHPAD_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_JOYSTICK_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_JOYSTICK_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_KEY_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_KEY_EVENT)) { return true } else { @@ -11552,13 +11568,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PixelMapMock") } static isPixelRoundCalcPolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PixelRoundCalcPolicy.NO_FORCE_ROUND))) { + if ((value) === (PixelRoundCalcPolicy.NO_FORCE_ROUND)) { return true } - else if (((value) === (PixelRoundCalcPolicy.FORCE_CEIL))) { + else if ((value) === (PixelRoundCalcPolicy.FORCE_CEIL)) { return true } - else if (((value) === (PixelRoundCalcPolicy.FORCE_FLOOR))) { + else if ((value) === (PixelRoundCalcPolicy.FORCE_FLOOR)) { return true } else { @@ -11611,40 +11627,40 @@ export class TypeChecker { } } static isPlacement(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Placement.Left))) { + if ((value) === (Placement.Left)) { return true } - else if (((value) === (Placement.Right))) { + else if ((value) === (Placement.Right)) { return true } - else if (((value) === (Placement.Top))) { + else if ((value) === (Placement.Top)) { return true } - else if (((value) === (Placement.Bottom))) { + else if ((value) === (Placement.Bottom)) { return true } - else if (((value) === (Placement.TopLeft))) { + else if ((value) === (Placement.TopLeft)) { return true } - else if (((value) === (Placement.TopRight))) { + else if ((value) === (Placement.TopRight)) { return true } - else if (((value) === (Placement.BottomLeft))) { + else if ((value) === (Placement.BottomLeft)) { return true } - else if (((value) === (Placement.BottomRight))) { + else if ((value) === (Placement.BottomRight)) { return true } - else if (((value) === (Placement.LeftTop))) { + else if ((value) === (Placement.LeftTop)) { return true } - else if (((value) === (Placement.LeftBottom))) { + else if ((value) === (Placement.LeftBottom)) { return true } - else if (((value) === (Placement.RightTop))) { + else if ((value) === (Placement.RightTop)) { return true } - else if (((value) === (Placement.RightBottom))) { + else if ((value) === (Placement.RightBottom)) { return true } else { @@ -11660,19 +11676,19 @@ export class TypeChecker { } } static isPlaybackSpeed(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PlaybackSpeed.Speed_Forward_0_75_X))) { + if ((value) === (PlaybackSpeed.Speed_Forward_0_75_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_00_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_00_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_25_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_25_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_75_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_75_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_2_00_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_2_00_X)) { return true } else { @@ -11680,16 +11696,16 @@ export class TypeChecker { } } static isPlayMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PlayMode.Normal))) { + if ((value) === (PlayMode.Normal)) { return true } - else if (((value) === (PlayMode.Reverse))) { + else if ((value) === (PlayMode.Reverse)) { return true } - else if (((value) === (PlayMode.Alternate))) { + else if ((value) === (PlayMode.Alternate)) { return true } - else if (((value) === (PlayMode.AlternateReverse))) { + else if ((value) === (PlayMode.AlternateReverse)) { return true } else { @@ -11755,136 +11771,136 @@ export class TypeChecker { } } static isPointerStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PointerStyle.DEFAULT))) { + if ((value) === (PointerStyle.DEFAULT)) { return true } - else if (((value) === (PointerStyle.EAST))) { + else if ((value) === (PointerStyle.EAST)) { return true } - else if (((value) === (PointerStyle.WEST))) { + else if ((value) === (PointerStyle.WEST)) { return true } - else if (((value) === (PointerStyle.SOUTH))) { + else if ((value) === (PointerStyle.SOUTH)) { return true } - else if (((value) === (PointerStyle.NORTH))) { + else if ((value) === (PointerStyle.NORTH)) { return true } - else if (((value) === (PointerStyle.WEST_EAST))) { + else if ((value) === (PointerStyle.WEST_EAST)) { return true } - else if (((value) === (PointerStyle.NORTH_SOUTH))) { + else if ((value) === (PointerStyle.NORTH_SOUTH)) { return true } - else if (((value) === (PointerStyle.NORTH_EAST))) { + else if ((value) === (PointerStyle.NORTH_EAST)) { return true } - else if (((value) === (PointerStyle.NORTH_WEST))) { + else if ((value) === (PointerStyle.NORTH_WEST)) { return true } - else if (((value) === (PointerStyle.SOUTH_EAST))) { + else if ((value) === (PointerStyle.SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.SOUTH_WEST))) { + else if ((value) === (PointerStyle.SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.NORTH_EAST_SOUTH_WEST))) { + else if ((value) === (PointerStyle.NORTH_EAST_SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.NORTH_WEST_SOUTH_EAST))) { + else if ((value) === (PointerStyle.NORTH_WEST_SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.CROSS))) { + else if ((value) === (PointerStyle.CROSS)) { return true } - else if (((value) === (PointerStyle.CURSOR_COPY))) { + else if ((value) === (PointerStyle.CURSOR_COPY)) { return true } - else if (((value) === (PointerStyle.CURSOR_FORBID))) { + else if ((value) === (PointerStyle.CURSOR_FORBID)) { return true } - else if (((value) === (PointerStyle.COLOR_SUCKER))) { + else if ((value) === (PointerStyle.COLOR_SUCKER)) { return true } - else if (((value) === (PointerStyle.HAND_GRABBING))) { + else if ((value) === (PointerStyle.HAND_GRABBING)) { return true } - else if (((value) === (PointerStyle.HAND_OPEN))) { + else if ((value) === (PointerStyle.HAND_OPEN)) { return true } - else if (((value) === (PointerStyle.HAND_POINTING))) { + else if ((value) === (PointerStyle.HAND_POINTING)) { return true } - else if (((value) === (PointerStyle.HELP))) { + else if ((value) === (PointerStyle.HELP)) { return true } - else if (((value) === (PointerStyle.MOVE))) { + else if ((value) === (PointerStyle.MOVE)) { return true } - else if (((value) === (PointerStyle.RESIZE_LEFT_RIGHT))) { + else if ((value) === (PointerStyle.RESIZE_LEFT_RIGHT)) { return true } - else if (((value) === (PointerStyle.RESIZE_UP_DOWN))) { + else if ((value) === (PointerStyle.RESIZE_UP_DOWN)) { return true } - else if (((value) === (PointerStyle.SCREENSHOT_CHOOSE))) { + else if ((value) === (PointerStyle.SCREENSHOT_CHOOSE)) { return true } - else if (((value) === (PointerStyle.SCREENSHOT_CURSOR))) { + else if ((value) === (PointerStyle.SCREENSHOT_CURSOR)) { return true } - else if (((value) === (PointerStyle.TEXT_CURSOR))) { + else if ((value) === (PointerStyle.TEXT_CURSOR)) { return true } - else if (((value) === (PointerStyle.ZOOM_IN))) { + else if ((value) === (PointerStyle.ZOOM_IN)) { return true } - else if (((value) === (PointerStyle.ZOOM_OUT))) { + else if ((value) === (PointerStyle.ZOOM_OUT)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST)) { return true } - else if (((value) === (PointerStyle.HORIZONTAL_TEXT_CURSOR))) { + else if ((value) === (PointerStyle.HORIZONTAL_TEXT_CURSOR)) { return true } - else if (((value) === (PointerStyle.CURSOR_CROSS))) { + else if ((value) === (PointerStyle.CURSOR_CROSS)) { return true } - else if (((value) === (PointerStyle.CURSOR_CIRCLE))) { + else if ((value) === (PointerStyle.CURSOR_CIRCLE)) { return true } - else if (((value) === (PointerStyle.LOADING))) { + else if ((value) === (PointerStyle.LOADING)) { return true } - else if (((value) === (PointerStyle.RUNNING))) { + else if ((value) === (PointerStyle.RUNNING)) { return true } else { @@ -12085,25 +12101,25 @@ export class TypeChecker { } } static isPreDragStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PreDragStatus.ACTION_DETECTING_STATUS))) { + if ((value) === (PreDragStatus.ACTION_DETECTING_STATUS)) { return true } - else if (((value) === (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION))) { + else if ((value) === (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LIFT_STARTED))) { + else if ((value) === (PreDragStatus.PREVIEW_LIFT_STARTED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LIFT_FINISHED))) { + else if ((value) === (PreDragStatus.PREVIEW_LIFT_FINISHED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LANDING_STARTED))) { + else if ((value) === (PreDragStatus.PREVIEW_LANDING_STARTED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LANDING_FINISHED))) { + else if ((value) === (PreDragStatus.PREVIEW_LANDING_FINISHED)) { return true } - else if (((value) === (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG))) { + else if ((value) === (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG)) { return true } else { @@ -12216,10 +12232,10 @@ export class TypeChecker { } } static isProgressStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressStatus.LOADING))) { + if ((value) === (ProgressStatus.LOADING)) { return true } - else if (((value) === (ProgressStatus.PROGRESSING))) { + else if ((value) === (ProgressStatus.PROGRESSING)) { return true } else { @@ -12227,19 +12243,19 @@ export class TypeChecker { } } static isProgressStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressStyle.Linear))) { + if ((value) === (ProgressStyle.Linear)) { return true } - else if (((value) === (ProgressStyle.Ring))) { + else if ((value) === (ProgressStyle.Ring)) { return true } - else if (((value) === (ProgressStyle.Eclipse))) { + else if ((value) === (ProgressStyle.Eclipse)) { return true } - else if (((value) === (ProgressStyle.ScaleRing))) { + else if ((value) === (ProgressStyle.ScaleRing)) { return true } - else if (((value) === (ProgressStyle.Capsule))) { + else if ((value) === (ProgressStyle.Capsule)) { return true } else { @@ -12264,19 +12280,19 @@ export class TypeChecker { } } static isProgressType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressType.Linear))) { + if ((value) === (ProgressType.Linear)) { return true } - else if (((value) === (ProgressType.Ring))) { + else if ((value) === (ProgressType.Ring)) { return true } - else if (((value) === (ProgressType.Eclipse))) { + else if ((value) === (ProgressType.Eclipse)) { return true } - else if (((value) === (ProgressType.ScaleRing))) { + else if ((value) === (ProgressType.ScaleRing)) { return true } - else if (((value) === (ProgressType.Capsule))) { + else if ((value) === (ProgressType.Capsule)) { return true } else { @@ -12284,16 +12300,16 @@ export class TypeChecker { } } static isProtectedResourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProtectedResourceType.MidiSysex))) { + if ((value) === (ProtectedResourceType.MidiSysex)) { return true } - else if (((value) === (ProtectedResourceType.VIDEO_CAPTURE))) { + else if ((value) === (ProtectedResourceType.VIDEO_CAPTURE)) { return true } - else if (((value) === (ProtectedResourceType.AUDIO_CAPTURE))) { + else if ((value) === (ProtectedResourceType.AUDIO_CAPTURE)) { return true } - else if (((value) === (ProtectedResourceType.SENSOR))) { + else if ((value) === (ProtectedResourceType.SENSOR)) { return true } else { @@ -12360,13 +12376,13 @@ export class TypeChecker { } } static isRadioIndicatorType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RadioIndicatorType.TICK))) { + if ((value) === (RadioIndicatorType.TICK)) { return true } - else if (((value) === (RadioIndicatorType.DOT))) { + else if ((value) === (RadioIndicatorType.DOT)) { return true } - else if (((value) === (RadioIndicatorType.CUSTOM))) { + else if ((value) === (RadioIndicatorType.CUSTOM)) { return true } else { @@ -12515,22 +12531,22 @@ export class TypeChecker { } } static isRectHeightStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RectHeightStyle.TIGHT))) { + if ((value) === (RectHeightStyle.TIGHT)) { return true } - else if (((value) === (RectHeightStyle.MAX))) { + else if ((value) === (RectHeightStyle.MAX)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_TOP))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_TOP)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM)) { return true } - else if (((value) === (RectHeightStyle.STRUT))) { + else if ((value) === (RectHeightStyle.STRUT)) { return true } else { @@ -12580,10 +12596,10 @@ export class TypeChecker { } } static isRectWidthStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RectWidthStyle.TIGHT))) { + if ((value) === (RectWidthStyle.TIGHT)) { return true } - else if (((value) === (RectWidthStyle.MAX))) { + else if ((value) === (RectWidthStyle.MAX)) { return true } else { @@ -12640,19 +12656,19 @@ export class TypeChecker { } } static isRefreshStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RefreshStatus.Inactive))) { + if ((value) === (RefreshStatus.Inactive)) { return true } - else if (((value) === (RefreshStatus.Drag))) { + else if ((value) === (RefreshStatus.Drag)) { return true } - else if (((value) === (RefreshStatus.OverDrag))) { + else if ((value) === (RefreshStatus.OverDrag)) { return true } - else if (((value) === (RefreshStatus.Refresh))) { + else if ((value) === (RefreshStatus.Refresh)) { return true } - else if (((value) === (RefreshStatus.Done))) { + else if ((value) === (RefreshStatus.Done)) { return true } else { @@ -12660,10 +12676,10 @@ export class TypeChecker { } } static isRelateType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RelateType.FILL))) { + if ((value) === (RelateType.FILL)) { return true } - else if (((value) === (RelateType.FIT))) { + else if ((value) === (RelateType.FIT)) { return true } else { @@ -12691,19 +12707,19 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RemoteWindowInterface") } static isRenderExitReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderExitReason.ProcessAbnormalTermination))) { + if ((value) === (RenderExitReason.ProcessAbnormalTermination)) { return true } - else if (((value) === (RenderExitReason.ProcessWasKilled))) { + else if ((value) === (RenderExitReason.ProcessWasKilled)) { return true } - else if (((value) === (RenderExitReason.ProcessCrashed))) { + else if ((value) === (RenderExitReason.ProcessCrashed)) { return true } - else if (((value) === (RenderExitReason.ProcessOom))) { + else if ((value) === (RenderExitReason.ProcessOom)) { return true } - else if (((value) === (RenderExitReason.ProcessExitUnknown))) { + else if ((value) === (RenderExitReason.ProcessExitUnknown)) { return true } else { @@ -12711,52 +12727,52 @@ export class TypeChecker { } } static isRenderFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderFit.CENTER))) { + if ((value) === (RenderFit.CENTER)) { return true } - else if (((value) === (RenderFit.TOP))) { + else if ((value) === (RenderFit.TOP)) { return true } - else if (((value) === (RenderFit.BOTTOM))) { + else if ((value) === (RenderFit.BOTTOM)) { return true } - else if (((value) === (RenderFit.LEFT))) { + else if ((value) === (RenderFit.LEFT)) { return true } - else if (((value) === (RenderFit.RIGHT))) { + else if ((value) === (RenderFit.RIGHT)) { return true } - else if (((value) === (RenderFit.TOP_LEFT))) { + else if ((value) === (RenderFit.TOP_LEFT)) { return true } - else if (((value) === (RenderFit.TOP_RIGHT))) { + else if ((value) === (RenderFit.TOP_RIGHT)) { return true } - else if (((value) === (RenderFit.BOTTOM_LEFT))) { + else if ((value) === (RenderFit.BOTTOM_LEFT)) { return true } - else if (((value) === (RenderFit.BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.BOTTOM_RIGHT)) { return true } - else if (((value) === (RenderFit.RESIZE_FILL))) { + else if ((value) === (RenderFit.RESIZE_FILL)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN_TOP_LEFT))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN_TOP_LEFT)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER))) { + else if ((value) === (RenderFit.RESIZE_COVER)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER_TOP_LEFT))) { + else if ((value) === (RenderFit.RESIZE_COVER_TOP_LEFT)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER_BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.RESIZE_COVER_BOTTOM_RIGHT)) { return true } else { @@ -12772,10 +12788,10 @@ export class TypeChecker { } } static isRenderMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderMode.ASYNC_RENDER))) { + if ((value) === (RenderMode.ASYNC_RENDER)) { return true } - else if (((value) === (RenderMode.SYNC_RENDER))) { + else if ((value) === (RenderMode.SYNC_RENDER)) { return true } else { @@ -12797,10 +12813,10 @@ export class TypeChecker { } } static isRenderProcessNotRespondingReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderProcessNotRespondingReason.INPUT_TIMEOUT))) { + if ((value) === (RenderProcessNotRespondingReason.INPUT_TIMEOUT)) { return true } - else if (((value) === (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT))) { + else if ((value) === (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT)) { return true } else { @@ -12808,16 +12824,16 @@ export class TypeChecker { } } static isRepeatMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RepeatMode.Repeat))) { + if ((value) === (RepeatMode.Repeat)) { return true } - else if (((value) === (RepeatMode.Stretch))) { + else if ((value) === (RepeatMode.Stretch)) { return true } - else if (((value) === (RepeatMode.Round))) { + else if ((value) === (RepeatMode.Round)) { return true } - else if (((value) === (RepeatMode.Space))) { + else if ((value) === (RepeatMode.Space)) { return true } else { @@ -12872,10 +12888,10 @@ export class TypeChecker { } } static isResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ResponseType.RightClick))) { + if ((value) === (ResponseType.RightClick)) { return true } - else if (((value) === (ResponseType.LongPress))) { + else if ((value) === (ResponseType.LongPress)) { return true } else { @@ -13005,10 +13021,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RichEditorController") } static isRichEditorDeleteDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorDeleteDirection.BACKWARD))) { + if ((value) === (RichEditorDeleteDirection.BACKWARD)) { return true } - else if (((value) === (RichEditorDeleteDirection.FORWARD))) { + else if ((value) === (RichEditorDeleteDirection.FORWARD)) { return true } else { @@ -13209,13 +13225,13 @@ export class TypeChecker { } } static isRichEditorResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorResponseType.RIGHT_CLICK))) { + if ((value) === (RichEditorResponseType.RIGHT_CLICK)) { return true } - else if (((value) === (RichEditorResponseType.LONG_PRESS))) { + else if ((value) === (RichEditorResponseType.LONG_PRESS)) { return true } - else if (((value) === (RichEditorResponseType.SELECT))) { + else if ((value) === (RichEditorResponseType.SELECT)) { return true } else { @@ -13248,16 +13264,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RichEditorSpanStyleOptions") } static isRichEditorSpanType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorSpanType.TEXT))) { + if ((value) === (RichEditorSpanType.TEXT)) { return true } - else if (((value) === (RichEditorSpanType.IMAGE))) { + else if ((value) === (RichEditorSpanType.IMAGE)) { return true } - else if (((value) === (RichEditorSpanType.MIXED))) { + else if ((value) === (RichEditorSpanType.MIXED)) { return true } - else if (((value) === (RichEditorSpanType.BUILDER))) { + else if ((value) === (RichEditorSpanType.BUILDER)) { return true } else { @@ -13625,13 +13641,13 @@ export class TypeChecker { } } static isRouteType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RouteType.None))) { + if ((value) === (RouteType.None)) { return true } - else if (((value) === (RouteType.Push))) { + else if ((value) === (RouteType.Push)) { return true } - else if (((value) === (RouteType.Pop))) { + else if ((value) === (RouteType.Pop)) { return true } else { @@ -13698,16 +13714,16 @@ export class TypeChecker { } } static isSafeAreaEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SafeAreaEdge.TOP))) { + if ((value) === (SafeAreaEdge.TOP)) { return true } - else if (((value) === (SafeAreaEdge.BOTTOM))) { + else if ((value) === (SafeAreaEdge.BOTTOM)) { return true } - else if (((value) === (SafeAreaEdge.START))) { + else if ((value) === (SafeAreaEdge.START)) { return true } - else if (((value) === (SafeAreaEdge.END))) { + else if ((value) === (SafeAreaEdge.END)) { return true } else { @@ -13715,13 +13731,13 @@ export class TypeChecker { } } static isSafeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SafeAreaType.SYSTEM))) { + if ((value) === (SafeAreaType.SYSTEM)) { return true } - else if (((value) === (SafeAreaType.CUTOUT))) { + else if ((value) === (SafeAreaType.CUTOUT)) { return true } - else if (((value) === (SafeAreaType.KEYBOARD))) { + else if ((value) === (SafeAreaType.KEYBOARD)) { return true } else { @@ -13740,10 +13756,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SaveButtonInterface") } static isSaveButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveButtonOnClickResult.SUCCESS))) { + if ((value) === (SaveButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -13765,40 +13781,40 @@ export class TypeChecker { } } static isSaveDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveDescription.DOWNLOAD))) { + if ((value) === (SaveDescription.DOWNLOAD)) { return true } - else if (((value) === (SaveDescription.DOWNLOAD_FILE))) { + else if ((value) === (SaveDescription.DOWNLOAD_FILE)) { return true } - else if (((value) === (SaveDescription.SAVE))) { + else if ((value) === (SaveDescription.SAVE)) { return true } - else if (((value) === (SaveDescription.SAVE_IMAGE))) { + else if ((value) === (SaveDescription.SAVE_IMAGE)) { return true } - else if (((value) === (SaveDescription.SAVE_FILE))) { + else if ((value) === (SaveDescription.SAVE_FILE)) { return true } - else if (((value) === (SaveDescription.DOWNLOAD_AND_SHARE))) { + else if ((value) === (SaveDescription.DOWNLOAD_AND_SHARE)) { return true } - else if (((value) === (SaveDescription.RECEIVE))) { + else if ((value) === (SaveDescription.RECEIVE)) { return true } - else if (((value) === (SaveDescription.CONTINUE_TO_RECEIVE))) { + else if ((value) === (SaveDescription.CONTINUE_TO_RECEIVE)) { return true } - else if (((value) === (SaveDescription.SAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.SAVE_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.EXPORT_TO_GALLERY))) { + else if ((value) === (SaveDescription.EXPORT_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.QUICK_SAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.QUICK_SAVE_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.RESAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.RESAVE_TO_GALLERY)) { return true } else { @@ -13806,13 +13822,13 @@ export class TypeChecker { } } static isSaveIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveIconStyle.FULL_FILLED))) { + if ((value) === (SaveIconStyle.FULL_FILLED)) { return true } - else if (((value) === (SaveIconStyle.LINES))) { + else if ((value) === (SaveIconStyle.LINES)) { return true } - else if (((value) === (SaveIconStyle.PICTURE))) { + else if ((value) === (SaveIconStyle.PICTURE)) { return true } else { @@ -13984,16 +14000,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ScrollableTargetInfo") } static isScrollAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollAlign.START))) { + if ((value) === (ScrollAlign.START)) { return true } - else if (((value) === (ScrollAlign.CENTER))) { + else if ((value) === (ScrollAlign.CENTER)) { return true } - else if (((value) === (ScrollAlign.END))) { + else if ((value) === (ScrollAlign.END)) { return true } - else if (((value) === (ScrollAlign.AUTO))) { + else if ((value) === (ScrollAlign.AUTO)) { return true } else { @@ -14082,10 +14098,10 @@ export class TypeChecker { } } static isScrollBarDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollBarDirection.Vertical))) { + if ((value) === (ScrollBarDirection.Vertical)) { return true } - else if (((value) === (ScrollBarDirection.Horizontal))) { + else if ((value) === (ScrollBarDirection.Horizontal)) { return true } else { @@ -14110,16 +14126,16 @@ export class TypeChecker { } } static isScrollDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollDirection.Vertical))) { + if ((value) === (ScrollDirection.Vertical)) { return true } - else if (((value) === (ScrollDirection.Horizontal))) { + else if ((value) === (ScrollDirection.Horizontal)) { return true } - else if (((value) === (ScrollDirection.Free))) { + else if ((value) === (ScrollDirection.Free)) { return true } - else if (((value) === (ScrollDirection.None))) { + else if ((value) === (ScrollDirection.None)) { return true } else { @@ -14177,10 +14193,10 @@ export class TypeChecker { } } static isScrollSizeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSizeMode.FOLLOW_DETENT))) { + if ((value) === (ScrollSizeMode.FOLLOW_DETENT)) { return true } - else if (((value) === (ScrollSizeMode.CONTINUOUS))) { + else if ((value) === (ScrollSizeMode.CONTINUOUS)) { return true } else { @@ -14188,16 +14204,16 @@ export class TypeChecker { } } static isScrollSnapAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSnapAlign.NONE))) { + if ((value) === (ScrollSnapAlign.NONE)) { return true } - else if (((value) === (ScrollSnapAlign.START))) { + else if ((value) === (ScrollSnapAlign.START)) { return true } - else if (((value) === (ScrollSnapAlign.CENTER))) { + else if ((value) === (ScrollSnapAlign.CENTER)) { return true } - else if (((value) === (ScrollSnapAlign.END))) { + else if ((value) === (ScrollSnapAlign.END)) { return true } else { @@ -14222,28 +14238,28 @@ export class TypeChecker { } } static isScrollSource(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSource.DRAG))) { + if ((value) === (ScrollSource.DRAG)) { return true } - else if (((value) === (ScrollSource.FLING))) { + else if ((value) === (ScrollSource.FLING)) { return true } - else if (((value) === (ScrollSource.EDGE_EFFECT))) { + else if ((value) === (ScrollSource.EDGE_EFFECT)) { return true } - else if (((value) === (ScrollSource.OTHER_USER_INPUT))) { + else if ((value) === (ScrollSource.OTHER_USER_INPUT)) { return true } - else if (((value) === (ScrollSource.SCROLL_BAR))) { + else if ((value) === (ScrollSource.SCROLL_BAR)) { return true } - else if (((value) === (ScrollSource.SCROLL_BAR_FLING))) { + else if ((value) === (ScrollSource.SCROLL_BAR_FLING)) { return true } - else if (((value) === (ScrollSource.SCROLLER))) { + else if ((value) === (ScrollSource.SCROLLER)) { return true } - else if (((value) === (ScrollSource.SCROLLER_ANIMATION))) { + else if ((value) === (ScrollSource.SCROLLER_ANIMATION)) { return true } else { @@ -14251,13 +14267,13 @@ export class TypeChecker { } } static isScrollState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollState.Idle))) { + if ((value) === (ScrollState.Idle)) { return true } - else if (((value) === (ScrollState.Scroll))) { + else if ((value) === (ScrollState.Scroll)) { return true } - else if (((value) === (ScrollState.Fling))) { + else if ((value) === (ScrollState.Fling)) { return true } else { @@ -14426,22 +14442,22 @@ export class TypeChecker { } } static isSearchType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SearchType.NORMAL))) { + if ((value) === (SearchType.NORMAL)) { return true } - else if (((value) === (SearchType.NUMBER))) { + else if ((value) === (SearchType.NUMBER)) { return true } - else if (((value) === (SearchType.PHONE_NUMBER))) { + else if ((value) === (SearchType.PHONE_NUMBER)) { return true } - else if (((value) === (SearchType.EMAIL))) { + else if ((value) === (SearchType.EMAIL)) { return true } - else if (((value) === (SearchType.NUMBER_DECIMAL))) { + else if ((value) === (SearchType.NUMBER_DECIMAL)) { return true } - else if (((value) === (SearchType.URL))) { + else if ((value) === (SearchType.URL)) { return true } else { @@ -14472,10 +14488,10 @@ export class TypeChecker { } } static isSecurityComponentLayoutDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SecurityComponentLayoutDirection.HORIZONTAL))) { + if ((value) === (SecurityComponentLayoutDirection.HORIZONTAL)) { return true } - else if (((value) === (SecurityComponentLayoutDirection.VERTICAL))) { + else if ((value) === (SecurityComponentLayoutDirection.VERTICAL)) { return true } else { @@ -14557,16 +14573,16 @@ export class TypeChecker { } } static isSeekMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SeekMode.PreviousKeyframe))) { + if ((value) === (SeekMode.PreviousKeyframe)) { return true } - else if (((value) === (SeekMode.NextKeyframe))) { + else if ((value) === (SeekMode.NextKeyframe)) { return true } - else if (((value) === (SeekMode.ClosestKeyframe))) { + else if ((value) === (SeekMode.ClosestKeyframe)) { return true } - else if (((value) === (SeekMode.Accurate))) { + else if ((value) === (SeekMode.Accurate)) { return true } else { @@ -14639,10 +14655,10 @@ export class TypeChecker { } } static isSelectedMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SelectedMode.INDICATOR))) { + if ((value) === (SelectedMode.INDICATOR)) { return true } - else if (((value) === (SelectedMode.BOARD))) { + else if ((value) === (SelectedMode.BOARD)) { return true } else { @@ -14706,13 +14722,13 @@ export class TypeChecker { } } static isSelectStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SelectStatus.All))) { + if ((value) === (SelectStatus.All)) { return true } - else if (((value) === (SelectStatus.Part))) { + else if ((value) === (SelectStatus.Part)) { return true } - else if (((value) === (SelectStatus.None))) { + else if ((value) === (SelectStatus.None)) { return true } else { @@ -14743,22 +14759,22 @@ export class TypeChecker { } } static isShadowStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ShadowStyle.OUTER_DEFAULT_XS))) { + if ((value) === (ShadowStyle.OUTER_DEFAULT_XS)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_SM))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_SM)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_MD))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_MD)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_LG))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_LG)) { return true } - else if (((value) === (ShadowStyle.OUTER_FLOATING_SM))) { + else if ((value) === (ShadowStyle.OUTER_FLOATING_SM)) { return true } - else if (((value) === (ShadowStyle.OUTER_FLOATING_MD))) { + else if ((value) === (ShadowStyle.OUTER_FLOATING_MD)) { return true } else { @@ -14766,10 +14782,10 @@ export class TypeChecker { } } static isShadowType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ShadowType.COLOR))) { + if ((value) === (ShadowType.COLOR)) { return true } - else if (((value) === (ShadowType.BLUR))) { + else if ((value) === (ShadowType.BLUR)) { return true } else { @@ -14821,10 +14837,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ShapeInterface") } static isSharedTransitionEffectType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SharedTransitionEffectType.Static))) { + if ((value) === (SharedTransitionEffectType.Static)) { return true } - else if (((value) === (SharedTransitionEffectType.Exchange))) { + else if ((value) === (SharedTransitionEffectType.Exchange)) { return true } else { @@ -14877,16 +14893,16 @@ export class TypeChecker { } } static isSheetKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetKeyboardAvoidMode.NONE))) { + if ((value) === (SheetKeyboardAvoidMode.NONE)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE))) { + else if ((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.RESIZE_ONLY))) { + else if ((value) === (SheetKeyboardAvoidMode.RESIZE_ONLY)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL))) { + else if ((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL)) { return true } else { @@ -14894,10 +14910,10 @@ export class TypeChecker { } } static isSheetMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetMode.OVERLAY))) { + if ((value) === (SheetMode.OVERLAY)) { return true } - else if (((value) === (SheetMode.EMBEDDED))) { + else if ((value) === (SheetMode.EMBEDDED)) { return true } else { @@ -14985,13 +15001,13 @@ export class TypeChecker { } } static isSheetSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetSize.MEDIUM))) { + if ((value) === (SheetSize.MEDIUM)) { return true } - else if (((value) === (SheetSize.LARGE))) { + else if ((value) === (SheetSize.LARGE)) { return true } - else if (((value) === (SheetSize.FIT_CONTENT))) { + else if ((value) === (SheetSize.FIT_CONTENT)) { return true } else { @@ -15010,13 +15026,13 @@ export class TypeChecker { } } static isSheetType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetType.BOTTOM))) { + if ((value) === (SheetType.BOTTOM)) { return true } - else if (((value) === (SheetType.CENTER))) { + else if ((value) === (SheetType.CENTER)) { return true } - else if (((value) === (SheetType.POPUP))) { + else if ((value) === (SheetType.POPUP)) { return true } else { @@ -15065,13 +15081,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SideBarContainerInterface") } static isSideBarContainerType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SideBarContainerType.Embed))) { + if ((value) === (SideBarContainerType.Embed)) { return true } - else if (((value) === (SideBarContainerType.Overlay))) { + else if ((value) === (SideBarContainerType.Overlay)) { return true } - else if (((value) === (SideBarContainerType.AUTO))) { + else if ((value) === (SideBarContainerType.AUTO)) { return true } else { @@ -15079,10 +15095,10 @@ export class TypeChecker { } } static isSideBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SideBarPosition.Start))) { + if ((value) === (SideBarPosition.Start)) { return true } - else if (((value) === (SideBarPosition.End))) { + else if ((value) === (SideBarPosition.End)) { return true } else { @@ -15123,19 +15139,19 @@ export class TypeChecker { } } static isSizeType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SizeType.Auto))) { + if ((value) === (SizeType.Auto)) { return true } - else if (((value) === (SizeType.XS))) { + else if ((value) === (SizeType.XS)) { return true } - else if (((value) === (SizeType.SM))) { + else if ((value) === (SizeType.SM)) { return true } - else if (((value) === (SizeType.MD))) { + else if ((value) === (SizeType.MD)) { return true } - else if (((value) === (SizeType.LG))) { + else if ((value) === (SizeType.LG)) { return true } else { @@ -15143,22 +15159,22 @@ export class TypeChecker { } } static isSlideEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SlideEffect.Left))) { + if ((value) === (SlideEffect.Left)) { return true } - else if (((value) === (SlideEffect.Right))) { + else if ((value) === (SlideEffect.Right)) { return true } - else if (((value) === (SlideEffect.Top))) { + else if ((value) === (SlideEffect.Top)) { return true } - else if (((value) === (SlideEffect.Bottom))) { + else if ((value) === (SlideEffect.Bottom)) { return true } - else if (((value) === (SlideEffect.START))) { + else if ((value) === (SlideEffect.START)) { return true } - else if (((value) === (SlideEffect.END))) { + else if ((value) === (SlideEffect.END)) { return true } else { @@ -15256,13 +15272,13 @@ export class TypeChecker { } } static isSliderBlockType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderBlockType.DEFAULT))) { + if ((value) === (SliderBlockType.DEFAULT)) { return true } - else if (((value) === (SliderBlockType.IMAGE))) { + else if ((value) === (SliderBlockType.IMAGE)) { return true } - else if (((value) === (SliderBlockType.SHAPE))) { + else if ((value) === (SliderBlockType.SHAPE)) { return true } else { @@ -15270,16 +15286,16 @@ export class TypeChecker { } } static isSliderChangeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderChangeMode.Begin))) { + if ((value) === (SliderChangeMode.Begin)) { return true } - else if (((value) === (SliderChangeMode.Moving))) { + else if ((value) === (SliderChangeMode.Moving)) { return true } - else if (((value) === (SliderChangeMode.End))) { + else if ((value) === (SliderChangeMode.End)) { return true } - else if (((value) === (SliderChangeMode.Click))) { + else if ((value) === (SliderChangeMode.Click)) { return true } else { @@ -15307,13 +15323,13 @@ export class TypeChecker { } } static isSliderInteraction(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderInteraction.SLIDE_AND_CLICK))) { + if ((value) === (SliderInteraction.SLIDE_AND_CLICK)) { return true } - else if (((value) === (SliderInteraction.SLIDE_ONLY))) { + else if ((value) === (SliderInteraction.SLIDE_ONLY)) { return true } - else if (((value) === (SliderInteraction.SLIDE_AND_CLICK_UP))) { + else if ((value) === (SliderInteraction.SLIDE_AND_CLICK_UP)) { return true } else { @@ -15350,13 +15366,13 @@ export class TypeChecker { } } static isSliderStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderStyle.OutSet))) { + if ((value) === (SliderStyle.OutSet)) { return true } - else if (((value) === (SliderStyle.InSet))) { + else if ((value) === (SliderStyle.InSet)) { return true } - else if (((value) === (SliderStyle.NONE))) { + else if ((value) === (SliderStyle.NONE)) { return true } else { @@ -15375,22 +15391,22 @@ export class TypeChecker { } } static isSourceTool(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SourceTool.Unknown))) { + if ((value) === (SourceTool.Unknown)) { return true } - else if (((value) === (SourceTool.Finger))) { + else if ((value) === (SourceTool.Finger)) { return true } - else if (((value) === (SourceTool.Pen))) { + else if ((value) === (SourceTool.Pen)) { return true } - else if (((value) === (SourceTool.MOUSE))) { + else if ((value) === (SourceTool.MOUSE)) { return true } - else if (((value) === (SourceTool.TOUCHPAD))) { + else if ((value) === (SourceTool.TOUCHPAD)) { return true } - else if (((value) === (SourceTool.JOYSTICK))) { + else if ((value) === (SourceTool.JOYSTICK)) { return true } else { @@ -15398,13 +15414,13 @@ export class TypeChecker { } } static isSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SourceType.Unknown))) { + if ((value) === (SourceType.Unknown)) { return true } - else if (((value) === (SourceType.Mouse))) { + else if ((value) === (SourceType.Mouse)) { return true } - else if (((value) === (SourceType.TouchScreen))) { + else if ((value) === (SourceType.TouchScreen)) { return true } else { @@ -15484,16 +15500,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SpringProp") } static isSslError(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SslError.Invalid))) { + if ((value) === (SslError.Invalid)) { return true } - else if (((value) === (SslError.HostMismatch))) { + else if ((value) === (SslError.HostMismatch)) { return true } - else if (((value) === (SslError.DateInvalid))) { + else if ((value) === (SslError.DateInvalid)) { return true } - else if (((value) === (SslError.Untrusted))) { + else if ((value) === (SslError.Untrusted)) { return true } else { @@ -15629,13 +15645,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StepperItemInterface") } static isSticky(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Sticky.None))) { + if ((value) === (Sticky.None)) { return true } - else if (((value) === (Sticky.Normal))) { + else if ((value) === (Sticky.Normal)) { return true } - else if (((value) === (Sticky.Opacity))) { + else if ((value) === (Sticky.Opacity)) { return true } else { @@ -15643,13 +15659,13 @@ export class TypeChecker { } } static isStickyStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (StickyStyle.None))) { + if ((value) === (StickyStyle.None)) { return true } - else if (((value) === (StickyStyle.Header))) { + else if ((value) === (StickyStyle.Header)) { return true } - else if (((value) === (StickyStyle.Footer))) { + else if ((value) === (StickyStyle.Footer)) { return true } else { @@ -15693,43 +15709,43 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StyledStringController") } static isStyledStringKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (StyledStringKey.FONT))) { + if ((value) === (StyledStringKey.FONT)) { return true } - else if (((value) === (StyledStringKey.DECORATION))) { + else if ((value) === (StyledStringKey.DECORATION)) { return true } - else if (((value) === (StyledStringKey.BASELINE_OFFSET))) { + else if ((value) === (StyledStringKey.BASELINE_OFFSET)) { return true } - else if (((value) === (StyledStringKey.LETTER_SPACING))) { + else if ((value) === (StyledStringKey.LETTER_SPACING)) { return true } - else if (((value) === (StyledStringKey.TEXT_SHADOW))) { + else if ((value) === (StyledStringKey.TEXT_SHADOW)) { return true } - else if (((value) === (StyledStringKey.LINE_HEIGHT))) { + else if ((value) === (StyledStringKey.LINE_HEIGHT)) { return true } - else if (((value) === (StyledStringKey.BACKGROUND_COLOR))) { + else if ((value) === (StyledStringKey.BACKGROUND_COLOR)) { return true } - else if (((value) === (StyledStringKey.URL))) { + else if ((value) === (StyledStringKey.URL)) { return true } - else if (((value) === (StyledStringKey.GESTURE))) { + else if ((value) === (StyledStringKey.GESTURE)) { return true } - else if (((value) === (StyledStringKey.PARAGRAPH_STYLE))) { + else if ((value) === (StyledStringKey.PARAGRAPH_STYLE)) { return true } - else if (((value) === (StyledStringKey.IMAGE))) { + else if ((value) === (StyledStringKey.IMAGE)) { return true } - else if (((value) === (StyledStringKey.CUSTOM_SPAN))) { + else if ((value) === (StyledStringKey.CUSTOM_SPAN)) { return true } - else if (((value) === (StyledStringKey.USER_DATA))) { + else if ((value) === (StyledStringKey.USER_DATA)) { return true } else { @@ -15762,13 +15778,13 @@ export class TypeChecker { } } static isSubMenuExpandingMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SubMenuExpandingMode.SIDE_EXPAND))) { + if ((value) === (SubMenuExpandingMode.SIDE_EXPAND)) { return true } - else if (((value) === (SubMenuExpandingMode.EMBEDDED_EXPAND))) { + else if ((value) === (SubMenuExpandingMode.EMBEDDED_EXPAND)) { return true } - else if (((value) === (SubMenuExpandingMode.STACK_EXPAND))) { + else if ((value) === (SubMenuExpandingMode.STACK_EXPAND)) { return true } else { @@ -15863,13 +15879,13 @@ export class TypeChecker { } } static isSwipeActionState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeActionState.COLLAPSED))) { + if ((value) === (SwipeActionState.COLLAPSED)) { return true } - else if (((value) === (SwipeActionState.EXPANDED))) { + else if ((value) === (SwipeActionState.EXPANDED)) { return true } - else if (((value) === (SwipeActionState.ACTIONING))) { + else if ((value) === (SwipeActionState.ACTIONING)) { return true } else { @@ -15877,16 +15893,16 @@ export class TypeChecker { } } static isSwipeDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeDirection.None))) { + if ((value) === (SwipeDirection.None)) { return true } - else if (((value) === (SwipeDirection.Horizontal))) { + else if ((value) === (SwipeDirection.Horizontal)) { return true } - else if (((value) === (SwipeDirection.Vertical))) { + else if ((value) === (SwipeDirection.Vertical)) { return true } - else if (((value) === (SwipeDirection.All))) { + else if ((value) === (SwipeDirection.All)) { return true } else { @@ -15894,10 +15910,10 @@ export class TypeChecker { } } static isSwipeEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeEdgeEffect.Spring))) { + if ((value) === (SwipeEdgeEffect.Spring)) { return true } - else if (((value) === (SwipeEdgeEffect.None))) { + else if ((value) === (SwipeEdgeEffect.None)) { return true } else { @@ -16060,16 +16076,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SwiperController") } static isSwiperDisplayMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwiperDisplayMode.Stretch))) { + if ((value) === (SwiperDisplayMode.Stretch)) { return true } - else if (((value) === (SwiperDisplayMode.AutoLinear))) { + else if ((value) === (SwiperDisplayMode.AutoLinear)) { return true } - else if (((value) === (SwiperDisplayMode.STRETCH))) { + else if ((value) === (SwiperDisplayMode.STRETCH)) { return true } - else if (((value) === (SwiperDisplayMode.AUTO_LINEAR))) { + else if ((value) === (SwiperDisplayMode.AUTO_LINEAR)) { return true } else { @@ -16080,10 +16096,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SwiperInterface") } static isSwiperNestedScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwiperNestedScrollMode.SELF_ONLY))) { + if ((value) === (SwiperNestedScrollMode.SELF_ONLY)) { return true } - else if (((value) === (SwiperNestedScrollMode.SELF_FIRST))) { + else if ((value) === (SwiperNestedScrollMode.SELF_FIRST)) { return true } else { @@ -16111,13 +16127,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SymbolEffect") } static isSymbolEffectStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SymbolEffectStrategy.NONE))) { + if ((value) === (SymbolEffectStrategy.NONE)) { return true } - else if (((value) === (SymbolEffectStrategy.SCALE))) { + else if ((value) === (SymbolEffectStrategy.SCALE)) { return true } - else if (((value) === (SymbolEffectStrategy.HIERARCHICAL))) { + else if ((value) === (SymbolEffectStrategy.HIERARCHICAL)) { return true } else { @@ -16156,13 +16172,13 @@ export class TypeChecker { } } static isSymbolRenderingStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SymbolRenderingStrategy.SINGLE))) { + if ((value) === (SymbolRenderingStrategy.SINGLE)) { return true } - else if (((value) === (SymbolRenderingStrategy.MULTIPLE_COLOR))) { + else if ((value) === (SymbolRenderingStrategy.MULTIPLE_COLOR)) { return true } - else if (((value) === (SymbolRenderingStrategy.MULTIPLE_OPACITY))) { + else if ((value) === (SymbolRenderingStrategy.MULTIPLE_OPACITY)) { return true } else { @@ -16203,6 +16219,9 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SystemBarStyle") } } + static isSystemOps(value: object|string|number|undefined|null|boolean): boolean { + throw new Error("Can not discriminate value typeof SystemOps") + } static isTabBarIconStyle(value: object|string|number|undefined|null|boolean, duplicated_selectedColor: boolean, duplicated_unselectedColor: boolean): boolean { if ((!duplicated_selectedColor) && (value?.hasOwnProperty("selectedColor"))) { return true @@ -16437,16 +16456,16 @@ export class TypeChecker { } } static isTextAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextAlign.Center))) { + if ((value) === (TextAlign.Center)) { return true } - else if (((value) === (TextAlign.Start))) { + else if ((value) === (TextAlign.Start)) { return true } - else if (((value) === (TextAlign.End))) { + else if ((value) === (TextAlign.End)) { return true } - else if (((value) === (TextAlign.JUSTIFY))) { + else if ((value) === (TextAlign.JUSTIFY)) { return true } else { @@ -16626,22 +16645,22 @@ export class TypeChecker { } } static isTextAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextAreaType.NORMAL))) { + if ((value) === (TextAreaType.NORMAL)) { return true } - else if (((value) === (TextAreaType.NUMBER))) { + else if ((value) === (TextAreaType.NUMBER)) { return true } - else if (((value) === (TextAreaType.PHONE_NUMBER))) { + else if ((value) === (TextAreaType.PHONE_NUMBER)) { return true } - else if (((value) === (TextAreaType.EMAIL))) { + else if ((value) === (TextAreaType.EMAIL)) { return true } - else if (((value) === (TextAreaType.NUMBER_DECIMAL))) { + else if ((value) === (TextAreaType.NUMBER_DECIMAL)) { return true } - else if (((value) === (TextAreaType.URL))) { + else if ((value) === (TextAreaType.URL)) { return true } else { @@ -16804,13 +16823,13 @@ export class TypeChecker { } } static isTextCase(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextCase.Normal))) { + if ((value) === (TextCase.Normal)) { return true } - else if (((value) === (TextCase.LowerCase))) { + else if ((value) === (TextCase.LowerCase)) { return true } - else if (((value) === (TextCase.UpperCase))) { + else if ((value) === (TextCase.UpperCase)) { return true } else { @@ -16890,10 +16909,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextContentControllerBase") } static isTextContentStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextContentStyle.DEFAULT))) { + if ((value) === (TextContentStyle.DEFAULT)) { return true } - else if (((value) === (TextContentStyle.INLINE))) { + else if ((value) === (TextContentStyle.INLINE)) { return true } else { @@ -16921,19 +16940,19 @@ export class TypeChecker { } } static isTextDataDetectorType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDataDetectorType.PHONE_NUMBER))) { + if ((value) === (TextDataDetectorType.PHONE_NUMBER)) { return true } - else if (((value) === (TextDataDetectorType.URL))) { + else if ((value) === (TextDataDetectorType.URL)) { return true } - else if (((value) === (TextDataDetectorType.EMAIL))) { + else if ((value) === (TextDataDetectorType.EMAIL)) { return true } - else if (((value) === (TextDataDetectorType.ADDRESS))) { + else if ((value) === (TextDataDetectorType.ADDRESS)) { return true } - else if (((value) === (TextDataDetectorType.DATE_TIME))) { + else if ((value) === (TextDataDetectorType.DATE_TIME)) { return true } else { @@ -16955,19 +16974,19 @@ export class TypeChecker { } } static isTextDecorationStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDecorationStyle.SOLID))) { + if ((value) === (TextDecorationStyle.SOLID)) { return true } - else if (((value) === (TextDecorationStyle.DOUBLE))) { + else if ((value) === (TextDecorationStyle.DOUBLE)) { return true } - else if (((value) === (TextDecorationStyle.DOTTED))) { + else if ((value) === (TextDecorationStyle.DOTTED)) { return true } - else if (((value) === (TextDecorationStyle.DASHED))) { + else if ((value) === (TextDecorationStyle.DASHED)) { return true } - else if (((value) === (TextDecorationStyle.WAVY))) { + else if ((value) === (TextDecorationStyle.WAVY)) { return true } else { @@ -16975,16 +16994,16 @@ export class TypeChecker { } } static isTextDecorationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDecorationType.None))) { + if ((value) === (TextDecorationType.None)) { return true } - else if (((value) === (TextDecorationType.Underline))) { + else if ((value) === (TextDecorationType.Underline)) { return true } - else if (((value) === (TextDecorationType.Overline))) { + else if ((value) === (TextDecorationType.Overline)) { return true } - else if (((value) === (TextDecorationType.LineThrough))) { + else if ((value) === (TextDecorationType.LineThrough)) { return true } else { @@ -16992,10 +17011,10 @@ export class TypeChecker { } } static isTextDeleteDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDeleteDirection.BACKWARD))) { + if ((value) === (TextDeleteDirection.BACKWARD)) { return true } - else if (((value) === (TextDeleteDirection.FORWARD))) { + else if ((value) === (TextDeleteDirection.FORWARD)) { return true } else { @@ -17006,13 +17025,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextEditControllerEx") } static isTextHeightAdaptivePolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextHeightAdaptivePolicy.MAX_LINES_FIRST))) { + if ((value) === (TextHeightAdaptivePolicy.MAX_LINES_FIRST)) { return true } - else if (((value) === (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST))) { + else if ((value) === (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST)) { return true } - else if (((value) === (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST))) { + else if ((value) === (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST)) { return true } else { @@ -17228,10 +17247,10 @@ export class TypeChecker { } } static isTextInputStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextInputStyle.Default))) { + if ((value) === (TextInputStyle.Default)) { return true } - else if (((value) === (TextInputStyle.Inline))) { + else if ((value) === (TextInputStyle.Inline)) { return true } else { @@ -17314,16 +17333,16 @@ export class TypeChecker { } } static isTextOverflow(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextOverflow.None))) { + if ((value) === (TextOverflow.None)) { return true } - else if (((value) === (TextOverflow.Clip))) { + else if ((value) === (TextOverflow.Clip)) { return true } - else if (((value) === (TextOverflow.Ellipsis))) { + else if ((value) === (TextOverflow.Ellipsis)) { return true } - else if (((value) === (TextOverflow.MARQUEE))) { + else if ((value) === (TextOverflow.MARQUEE)) { return true } else { @@ -17501,13 +17520,13 @@ export class TypeChecker { } } static isTextResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextResponseType.RIGHT_CLICK))) { + if ((value) === (TextResponseType.RIGHT_CLICK)) { return true } - else if (((value) === (TextResponseType.LONG_PRESS))) { + else if ((value) === (TextResponseType.LONG_PRESS)) { return true } - else if (((value) === (TextResponseType.SELECT))) { + else if ((value) === (TextResponseType.SELECT)) { return true } else { @@ -17515,13 +17534,13 @@ export class TypeChecker { } } static isTextSelectableMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextSelectableMode.SELECTABLE_UNFOCUSABLE))) { + if ((value) === (TextSelectableMode.SELECTABLE_UNFOCUSABLE)) { return true } - else if (((value) === (TextSelectableMode.SELECTABLE_FOCUSABLE))) { + else if ((value) === (TextSelectableMode.SELECTABLE_FOCUSABLE)) { return true } - else if (((value) === (TextSelectableMode.UNSELECTABLE))) { + else if ((value) === (TextSelectableMode.UNSELECTABLE)) { return true } else { @@ -17537,13 +17556,13 @@ export class TypeChecker { } } static isTextSpanType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextSpanType.TEXT))) { + if ((value) === (TextSpanType.TEXT)) { return true } - else if (((value) === (TextSpanType.IMAGE))) { + else if ((value) === (TextSpanType.IMAGE)) { return true } - else if (((value) === (TextSpanType.MIXED))) { + else if ((value) === (TextSpanType.MIXED)) { return true } else { @@ -17676,13 +17695,13 @@ export class TypeChecker { } } static isThemeColorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ThemeColorMode.SYSTEM))) { + if ((value) === (ThemeColorMode.SYSTEM)) { return true } - else if (((value) === (ThemeColorMode.LIGHT))) { + else if ((value) === (ThemeColorMode.LIGHT)) { return true } - else if (((value) === (ThemeColorMode.DARK))) { + else if ((value) === (ThemeColorMode.DARK)) { return true } else { @@ -17690,16 +17709,16 @@ export class TypeChecker { } } static isThreatType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ThreatType.THREAT_ILLEGAL))) { + if ((value) === (ThreatType.THREAT_ILLEGAL)) { return true } - else if (((value) === (ThreatType.THREAT_FRAUD))) { + else if ((value) === (ThreatType.THREAT_FRAUD)) { return true } - else if (((value) === (ThreatType.THREAT_RISK))) { + else if ((value) === (ThreatType.THREAT_RISK)) { return true } - else if (((value) === (ThreatType.THREAT_WARNING))) { + else if ((value) === (ThreatType.THREAT_WARNING)) { return true } else { @@ -17810,10 +17829,10 @@ export class TypeChecker { } } static isTimePickerFormat(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TimePickerFormat.HOUR_MINUTE))) { + if ((value) === (TimePickerFormat.HOUR_MINUTE)) { return true } - else if (((value) === (TimePickerFormat.HOUR_MINUTE_SECOND))) { + else if ((value) === (TimePickerFormat.HOUR_MINUTE_SECOND)) { return true } else { @@ -17849,10 +17868,10 @@ export class TypeChecker { } } static isTitleHeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TitleHeight.MainOnly))) { + if ((value) === (TitleHeight.MainOnly)) { return true } - else if (((value) === (TitleHeight.MainWithSub))) { + else if ((value) === (TitleHeight.MainWithSub)) { return true } else { @@ -17925,13 +17944,13 @@ export class TypeChecker { } } static isToggleType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ToggleType.Checkbox))) { + if ((value) === (ToggleType.Checkbox)) { return true } - else if (((value) === (ToggleType.Switch))) { + else if ((value) === (ToggleType.Switch)) { return true } - else if (((value) === (ToggleType.Button))) { + else if ((value) === (ToggleType.Button)) { return true } else { @@ -17965,13 +17984,13 @@ export class TypeChecker { } } static isToolbarItemStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ToolbarItemStatus.NORMAL))) { + if ((value) === (ToolbarItemStatus.NORMAL)) { return true } - else if (((value) === (ToolbarItemStatus.DISABLED))) { + else if ((value) === (ToolbarItemStatus.DISABLED)) { return true } - else if (((value) === (ToolbarItemStatus.ACTIVE))) { + else if ((value) === (ToolbarItemStatus.ACTIVE)) { return true } else { @@ -18085,13 +18104,13 @@ export class TypeChecker { } } static isTouchTestStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TouchTestStrategy.DEFAULT))) { + if ((value) === (TouchTestStrategy.DEFAULT)) { return true } - else if (((value) === (TouchTestStrategy.FORWARD_COMPETITION))) { + else if ((value) === (TouchTestStrategy.FORWARD_COMPETITION)) { return true } - else if (((value) === (TouchTestStrategy.FORWARD))) { + else if ((value) === (TouchTestStrategy.FORWARD)) { return true } else { @@ -18099,16 +18118,16 @@ export class TypeChecker { } } static isTouchType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TouchType.Down))) { + if ((value) === (TouchType.Down)) { return true } - else if (((value) === (TouchType.Up))) { + else if ((value) === (TouchType.Up)) { return true } - else if (((value) === (TouchType.Move))) { + else if ((value) === (TouchType.Move)) { return true } - else if (((value) === (TouchType.Cancel))) { + else if ((value) === (TouchType.Cancel)) { return true } else { @@ -18116,16 +18135,16 @@ export class TypeChecker { } } static isTransitionEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionEdge.TOP))) { + if ((value) === (TransitionEdge.TOP)) { return true } - else if (((value) === (TransitionEdge.BOTTOM))) { + else if ((value) === (TransitionEdge.BOTTOM)) { return true } - else if (((value) === (TransitionEdge.START))) { + else if ((value) === (TransitionEdge.START)) { return true } - else if (((value) === (TransitionEdge.END))) { + else if ((value) === (TransitionEdge.END)) { return true } else { @@ -18165,10 +18184,10 @@ export class TypeChecker { } } static isTransitionHierarchyStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionHierarchyStrategy.NONE))) { + if ((value) === (TransitionHierarchyStrategy.NONE)) { return true } - else if (((value) === (TransitionHierarchyStrategy.ADAPTIVE))) { + else if ((value) === (TransitionHierarchyStrategy.ADAPTIVE)) { return true } else { @@ -18196,13 +18215,13 @@ export class TypeChecker { } } static isTransitionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionType.All))) { + if ((value) === (TransitionType.All)) { return true } - else if (((value) === (TransitionType.Insert))) { + else if ((value) === (TransitionType.Insert)) { return true } - else if (((value) === (TransitionType.Delete))) { + else if ((value) === (TransitionType.Delete)) { return true } else { @@ -18460,13 +18479,13 @@ export class TypeChecker { } } static isVerticalAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (VerticalAlign.Top))) { + if ((value) === (VerticalAlign.Top)) { return true } - else if (((value) === (VerticalAlign.Center))) { + else if ((value) === (VerticalAlign.Center)) { return true } - else if (((value) === (VerticalAlign.Bottom))) { + else if ((value) === (VerticalAlign.Bottom)) { return true } else { @@ -18559,13 +18578,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof View") } static isViewportFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ViewportFit.AUTO))) { + if ((value) === (ViewportFit.AUTO)) { return true } - else if (((value) === (ViewportFit.CONTAINS))) { + else if ((value) === (ViewportFit.CONTAINS)) { return true } - else if (((value) === (ViewportFit.COVER))) { + else if ((value) === (ViewportFit.COVER)) { return true } else { @@ -18598,13 +18617,13 @@ export class TypeChecker { } } static isVisibility(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Visibility.Visible))) { + if ((value) === (Visibility.Visible)) { return true } - else if (((value) === (Visibility.Hidden))) { + else if ((value) === (Visibility.Hidden)) { return true } - else if (((value) === (Visibility.None))) { + else if ((value) === (Visibility.None)) { return true } else { @@ -18730,10 +18749,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WaterFlowInterface") } static isWaterFlowLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WaterFlowLayoutMode.ALWAYS_TOP_DOWN))) { + if ((value) === (WaterFlowLayoutMode.ALWAYS_TOP_DOWN)) { return true } - else if (((value) === (WaterFlowLayoutMode.SLIDING_WINDOW))) { + else if ((value) === (WaterFlowLayoutMode.SLIDING_WINDOW)) { return true } else { @@ -19120,7 +19139,7 @@ export class TypeChecker { } } static isWebCaptureMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebCaptureMode.HOME_SCREEN))) { + if ((value) === (WebCaptureMode.HOME_SCREEN)) { return true } else { @@ -19140,13 +19159,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebCookie") } static isWebDarkMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebDarkMode.Off))) { + if ((value) === (WebDarkMode.Off)) { return true } - else if (((value) === (WebDarkMode.On))) { + else if ((value) === (WebDarkMode.On)) { return true } - else if (((value) === (WebDarkMode.Auto))) { + else if ((value) === (WebDarkMode.Auto)) { return true } else { @@ -19154,7 +19173,7 @@ export class TypeChecker { } } static isWebElementType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebElementType.IMAGE))) { + if ((value) === (WebElementType.IMAGE)) { return true } else { @@ -19176,13 +19195,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebInterface") } static isWebKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebKeyboardAvoidMode.RESIZE_VISUAL))) { + if ((value) === (WebKeyboardAvoidMode.RESIZE_VISUAL)) { return true } - else if (((value) === (WebKeyboardAvoidMode.RESIZE_CONTENT))) { + else if ((value) === (WebKeyboardAvoidMode.RESIZE_CONTENT)) { return true } - else if (((value) === (WebKeyboardAvoidMode.OVERLAYS_CONTENT))) { + else if ((value) === (WebKeyboardAvoidMode.OVERLAYS_CONTENT)) { return true } else { @@ -19218,10 +19237,10 @@ export class TypeChecker { } } static isWebLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebLayoutMode.NONE))) { + if ((value) === (WebLayoutMode.NONE)) { return true } - else if (((value) === (WebLayoutMode.FIT_CONTENT))) { + else if ((value) === (WebLayoutMode.FIT_CONTENT)) { return true } else { @@ -19240,19 +19259,19 @@ export class TypeChecker { } } static isWebNavigationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebNavigationType.UNKNOWN))) { + if ((value) === (WebNavigationType.UNKNOWN)) { return true } - else if (((value) === (WebNavigationType.MAIN_FRAME_NEW_ENTRY))) { + else if ((value) === (WebNavigationType.MAIN_FRAME_NEW_ENTRY)) { return true } - else if (((value) === (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY))) { + else if ((value) === (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY)) { return true } - else if (((value) === (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME))) { + else if ((value) === (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME)) { return true } - else if (((value) === (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME))) { + else if ((value) === (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME)) { return true } else { @@ -19289,7 +19308,7 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebResourceResponse") } static isWebResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebResponseType.LONG_PRESS))) { + if ((value) === (WebResponseType.LONG_PRESS)) { return true } else { @@ -19300,25 +19319,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebviewController") } static isWeek(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Week.Mon))) { + if ((value) === (Week.Mon)) { return true } - else if (((value) === (Week.Tue))) { + else if ((value) === (Week.Tue)) { return true } - else if (((value) === (Week.Wed))) { + else if ((value) === (Week.Wed)) { return true } - else if (((value) === (Week.Thur))) { + else if ((value) === (Week.Thur)) { return true } - else if (((value) === (Week.Fri))) { + else if ((value) === (Week.Fri)) { return true } - else if (((value) === (Week.Sat))) { + else if ((value) === (Week.Sat)) { return true } - else if (((value) === (Week.Sun))) { + else if ((value) === (Week.Sun)) { return true } else { @@ -19352,19 +19371,19 @@ export class TypeChecker { } } static isWidthBreakpoint(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WidthBreakpoint.WIDTH_XS))) { + if ((value) === (WidthBreakpoint.WIDTH_XS)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_SM))) { + else if ((value) === (WidthBreakpoint.WIDTH_SM)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_MD))) { + else if ((value) === (WidthBreakpoint.WIDTH_MD)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_LG))) { + else if ((value) === (WidthBreakpoint.WIDTH_LG)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_XL))) { + else if ((value) === (WidthBreakpoint.WIDTH_XL)) { return true } else { @@ -19417,13 +19436,13 @@ export class TypeChecker { } } static isWordBreak(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WordBreak.NORMAL))) { + if ((value) === (WordBreak.NORMAL)) { return true } - else if (((value) === (WordBreak.BREAK_ALL))) { + else if ((value) === (WordBreak.BREAK_ALL)) { return true } - else if (((value) === (WordBreak.BREAK_WORD))) { + else if ((value) === (WordBreak.BREAK_WORD)) { return true } else { @@ -19494,16 +19513,16 @@ export class TypeChecker { } } static isXComponentType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (XComponentType.SURFACE))) { + if ((value) === (XComponentType.SURFACE)) { return true } - else if (((value) === (XComponentType.COMPONENT))) { + else if ((value) === (XComponentType.COMPONENT)) { return true } - else if (((value) === (XComponentType.TEXTURE))) { + else if ((value) === (XComponentType.TEXTURE)) { return true } - else if (((value) === (XComponentType.NODE))) { + else if ((value) === (XComponentType.NODE)) { return true } else { diff --git a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts b/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts index ea1ac2b7a..d5974c568 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts +++ b/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts @@ -15,7 +15,7 @@ import { int32 } from "@koalaui/common" import { contextNode, remember, scheduleCallback } from "@koalaui/runtime" -import { PeerNode, PeerNodeType } from "../generated/PeerNode" +import { PeerNode, PeerNodeType } from "../PeerNode" import { CurrentRouter, CurrentRouterTransitionState, diff --git a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts index 911c83fd6..8bc94db1d 100644 --- a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts @@ -18,7 +18,7 @@ import { int32 } from "@koalaui/common" import { KPointer } from "@koalaui/interop" -import { ComponentBase } from "../generated/ComponentBase" +import { ComponentBase } from "../ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./../generated/peers/ArkCommonPeer" import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, InterceptionModeCallback, NavigationInterception, NavigationInterface, ToolbarItemStatus, ToolbarItem, BarStyle, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./../generated/ArkNavigationInterfaces" @@ -28,7 +28,7 @@ import { Length, ResourceStr, Dimension } from "./../generated/ArkUnitsInterface import { NavPathStack } from "./../generated/ArkNavPathStackMaterialized" import { PixelMap } from "./../generated/ArkPixelMapMaterialized" -import { PeerNode } from "../generated/PeerNode" +import { PeerNode } from "../PeerNode" export class ArkNavigationPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts index 3a7ba1c6c..6ac3f2326 100644 --- a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts @@ -15,12 +15,11 @@ import { int32 } from "@koalaui/common" import { InteropNativeModule, KPointer } from "@koalaui/interop" -import { ComponentBase } from "../generated/ComponentBase" +import { ComponentBase } from "../ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "../generated/peers/ArkCommonPeer" -import { PeerNode } from "../generated/PeerNode" +import { PeerNode } from "../PeerNode" import { TestComponentOptions } from "../ArkTestComponent" -import { UserView } from "../UserView" export class ArkTestComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 228f2bfde..069fd9a02 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -256,6 +256,10 @@ declare class LazyForEachOps { static SetCurrentIndex(node: number|bigint, index: number): void; static Prepare(node: number|bigint): void; } +declare class SystemOps { + static StartFrame(): number|bigint; + static EndFrame(root: number|bigint): void; +} declare class DrawingCanvas { constructor(pixelmap: PixelMap); drawRect(left: number, top: number, right: number, bottom: number): void; @@ -352,8 +356,8 @@ declare class FrameNode { getPositionToWindowWithTransform(): Position; } declare interface PixelMap { - isEditable: number; - isStrideAlignment: number; + readonly isEditable: boolean; + readonly isStrideAlignment: boolean; readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } @@ -2257,9 +2261,9 @@ declare interface Layoutable { } declare interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult; - getMargin(): DirectionalEdgesT; - getPadding(): DirectionalEdgesT; - getBorderWidth(): DirectionalEdgesT; + getMargin(): DirectionalEdgesT; + getPadding(): DirectionalEdgesT; + getBorderWidth(): DirectionalEdgesT; } declare interface SizeResult { width: number; @@ -2454,6 +2458,13 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare function getContext(component?: Object): Context; declare function postCardAction(component: Object, action: Object): void; declare function $r(value: string, ...params: any[]): Resource; @@ -2466,15 +2477,6 @@ declare function fp2px(value: number): number; declare function px2fp(value: number): number; declare function lpx2px(value: number): number; declare function px2lpx(value: number): number; -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; -} -declare namespace cursorControl { - function restoreDefault(): void; -} declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -7528,11 +7530,11 @@ declare interface TouchPoint { x: Dimension; y: Dimension; } -declare interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +declare interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } declare interface DividerStyleOptions { strokeWidth?: LengthMetrics; @@ -8850,14 +8852,12 @@ declare type OnLinearIndicatorChangeCallback = ((index: number, progress: number declare namespace Profiler { type Callback_String_Void = ((info: string) => void); } -declare function getInspectorNodes(): Object; -declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { function registerVsyncCallback(callback_: ((info: string) => void)): void; -} -declare namespace Profiler { function unregisterVsyncCallback(): void; } +declare function getInspectorNodes(): Object; +declare function getInspectorNodeById(id: number): Object; declare function setAppBgColor(value: string): void; declare interface RawFileDescriptor { fd: number; diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 209353a2d..5077b0651 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -16,8 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -declare function $$ (value: T): T - declare const Component: ClassDecorator & ((options: ComponentOptions) => ClassDecorator); declare const ComponentV2: ClassDecorator & ((options: ComponentOptions) => ClassDecorator); @@ -328,6 +326,10 @@ declare class LazyForEachOps { static SetCurrentIndex(node: number|bigint, index: number): void; static Prepare(node: number|bigint): void; } +declare class SystemOps { + static StartFrame(): number|bigint; + static EndFrame(root: number|bigint): void; +} declare class DrawingCanvas { constructor(pixelmap: PixelMap); drawRect(left: number, top: number, right: number, bottom: number): void; @@ -424,8 +426,8 @@ declare class FrameNode { getPositionToWindowWithTransform(): Position; } declare interface PixelMap { - isEditable: number; - isStrideAlignment: number; + readonly isEditable: boolean; + readonly isStrideAlignment: boolean; readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } @@ -2329,9 +2331,9 @@ declare interface Layoutable { } declare interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult; - getMargin(): DirectionalEdgesT; - getPadding(): DirectionalEdgesT; - getBorderWidth(): DirectionalEdgesT; + getMargin(): DirectionalEdgesT; + getPadding(): DirectionalEdgesT; + getBorderWidth(): DirectionalEdgesT; } declare interface SizeResult { width: number; @@ -2526,6 +2528,13 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare function getContext(component?: Object): Context; declare function postCardAction(component: Object, action: Object): void; declare function $r(value: string, ...params: any[]): Resource; @@ -2538,15 +2547,6 @@ declare function fp2px(value: number): number; declare function px2fp(value: number): number; declare function lpx2px(value: number): number; declare function px2lpx(value: number): number; -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; -} -declare namespace cursorControl { - function restoreDefault(): void; -} declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -7600,11 +7600,11 @@ declare interface TouchPoint { x: Dimension; y: Dimension; } -declare interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +declare interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } declare interface DividerStyleOptions { strokeWidth?: LengthMetrics; @@ -8922,14 +8922,12 @@ declare type OnLinearIndicatorChangeCallback = ((index: number, progress: number declare namespace Profiler { type Callback_String_Void = ((info: string) => void); } -declare function getInspectorNodes(): Object; -declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { function registerVsyncCallback(callback_: ((info: string) => void)): void; -} -declare namespace Profiler { function unregisterVsyncCallback(): void; } +declare function getInspectorNodes(): Object; +declare function getInspectorNodeById(id: number): Object; declare function setAppBgColor(value: string): void; declare interface RawFileDescriptor { fd: number; diff --git a/arkoala/arkui/src/ArkArkui-customInterfaces.ts b/arkoala/arkui/src/ArkArkui-customInterfaces.ts index 8f0552f61..f0660afe0 100644 --- a/arkoala/arkui/src/ArkArkui-customInterfaces.ts +++ b/arkoala/arkui/src/ArkArkui-customInterfaces.ts @@ -1,6 +1,6 @@ -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" -import { NodeAttach, remember } from "@koalaui/runtime" +import { int32 } from "@koalaui/common" +import { KPointer } from "@koalaui/interop" + export enum PointerStyle { DEFAULT, EAST = 1, diff --git a/arkoala/arkui/src/ArkArkui-externalInterfaces.ts b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts index c7b9c18bc..82e1d152e 100644 --- a/arkoala/arkui/src/ArkArkui-externalInterfaces.ts +++ b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts @@ -1,6 +1,3 @@ -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" -import { NodeAttach, remember } from "@koalaui/runtime" export interface NodeController { } export interface TextModifier { diff --git a/arkoala/arkui/src/ArkComponentRoot.ts b/arkoala/arkui/src/ArkComponentRoot.ts index 4ed0595e7..0dcdbbfb7 100644 --- a/arkoala/arkui/src/ArkComponentRoot.ts +++ b/arkoala/arkui/src/ArkComponentRoot.ts @@ -20,9 +20,7 @@ import { WithRouterTransitionState } from "@koalaui/arkui-common" import { ArkCustomComponent } from "./ArkCustomComponent" -import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" -import { ArkUINodeType } from "./peers/ArkUINodeType" -import { ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkComponentRootPeer } from "./generated/peers/ArkStaticComponentsPeer" /** @memo */ export function ArkComponentRoot( diff --git a/arkoala/arkui/src/ArkGesture.ts b/arkoala/arkui/src/ArkGesture.ts index af685b42e..9e03f1dba 100644 --- a/arkoala/arkui/src/ArkGesture.ts +++ b/arkoala/arkui/src/ArkGesture.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { GestureAsyncEventSubKind, GesturePeerEvent, UseProperties } from "@koalaui/arkoala" +import { GesturePeerEvent, UseProperties } from "@koalaui/arkoala" import { Access, KPointer, withIntArray } from "@koalaui/interop" import { makeEventTarget } from "./Events" diff --git a/arkoala/arkui/src/ArkNavigation.ts b/arkoala/arkui/src/ArkNavigation.ts index 1cdf7b74d..04f73a282 100644 --- a/arkoala/arkui/src/ArkNavigation.ts +++ b/arkoala/arkui/src/ArkNavigation.ts @@ -16,13 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { contextLocalScope, mutableState, MutableState, NodeAttach, remember, rememberMutableState, StateContext } from "@koalaui/runtime" -import { ArkCommonMethodComponent } from "./ArkCommon" +import { contextLocalScope, MutableState, NodeAttach, remember, rememberMutableState } from "@koalaui/runtime" +import { ArkCommonMethodComponent } from "./generated/ArkCommon" import { ArkNavigationPeer } from "./peers/ArkNavigationPeer" import { runtimeType, RuntimeType } from "@koalaui/interop" -import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { NavExtender } from "./ArkNavExtenderMaterialized" -import { PathData } from "./handwritten/ArkNavPathStack" +import { NavPathStack } from "./generated/ArkNavPathStackMaterialized" +import { NavExtender } from "./generated/ArkNavExtenderMaterialized" +import { PathData } from "./handwritten" /** @memo:stable */ export class ArkNavigationComponent extends ArkCommonMethodComponent { diff --git a/arkoala/arkui/src/ArkState.ts b/arkoala/arkui/src/ArkState.ts index 4de8bc5b2..43f8e5f7c 100644 --- a/arkoala/arkui/src/ArkState.ts +++ b/arkoala/arkui/src/ArkState.ts @@ -14,7 +14,6 @@ */ import { mutableState, MutableState } from "@koalaui/runtime" -import { ArkCommon } from "./ArkCommon" import { observableProxy } from "@koalaui/common" export { contextLocalStateOf, propState, objectLinkState, SyncedProperty } from "@koalaui/arkui-common" diff --git a/arkoala/arkui/src/ArkStructCommon.ts b/arkoala/arkui/src/ArkStructCommon.ts index 290f82386..022ca9a66 100644 --- a/arkoala/arkui/src/ArkStructCommon.ts +++ b/arkoala/arkui/src/ArkStructCommon.ts @@ -16,7 +16,7 @@ import { remember } from "@koalaui/runtime" import { CustomComponentImpl } from "./CustomComponent"; import { ArkComponentRoot } from "./ArkComponentRoot"; -import { ArkCommonMethodComponent } from "./ArkCommon"; +import { ArkCommonMethodComponent } from "./generated/ArkCommon"; /** base class for user's structs */ export abstract class ArkStructBase extends CustomComponentImpl { diff --git a/arkoala/arkui/src/CanvasPattern.ts b/arkoala/arkui/src/CanvasPattern.ts index 0585bcc7a..5e9e26a4e 100644 --- a/arkoala/arkui/src/CanvasPattern.ts +++ b/arkoala/arkui/src/CanvasPattern.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { Matrix2D } from "./generated/ArkMatrix2DMaterialized" // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! diff --git a/arkoala/arkui/src/ComponentBase.ts b/arkoala/arkui/src/ComponentBase.ts index 04bbd794c..fe4e8203c 100644 --- a/arkoala/arkui/src/ComponentBase.ts +++ b/arkoala/arkui/src/ComponentBase.ts @@ -13,9 +13,9 @@ * limitations under the License. */ -import { ArkUINativeModule, ComponentAsyncEventSubKind, NativePeerNode, PeerNode } from "@koalaui/arkoala" +import { ArkUINativeModule, NativePeerNode, PeerNode } from "@koalaui/arkoala" import { PeerReceiver } from "./peers/PeerReceiver" -import { ArkCommonAttributes, ArkCommonMethodAttributes, ArkCommonPeer } from "./peers/ArkCommonPeer" +import { ArkCommonMethodAttributes } from "./generated/peers/ArkCommonPeer" import { int32 } from "@koalaui/compat" import { KoalaCallsiteKey } from "@koalaui/common" import { __id, NodeAttach } from "@koalaui/runtime" diff --git a/arkoala/arkui/src/EnumsImpl.ts b/arkoala/arkui/src/EnumsImpl.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/arkoala/arkui/src/LazyForEach.ts b/arkoala/arkui/src/LazyForEach.ts index 80145614c..d23cb6ddf 100644 --- a/arkoala/arkui/src/LazyForEach.ts +++ b/arkoala/arkui/src/LazyForEach.ts @@ -17,7 +17,7 @@ import { __context, contextNode, memoEntry2, remember, rememberMutableState, sch import { hashCodeFromString, int32 } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; import { PeerNode } from "./PeerNode"; -import { LazyForEachOps } from "./ArkLazyForEachOpsMaterialized" +import { LazyForEachOps } from "./generated/ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts export interface DataChangeListener { diff --git a/arkoala/arkui/src/NativeModuleRecorder.ts b/arkoala/arkui/src/NativeModuleRecorder.ts index 8302e8b7d..82fa0b603 100644 --- a/arkoala/arkui/src/NativeModuleRecorder.ts +++ b/arkoala/arkui/src/NativeModuleRecorder.ts @@ -1,9 +1,8 @@ import { RuntimeType } from "./peers/SerializerBase" import { Deserializer } from "./peers/Deserializer" -import { unsafeCast } from "./shared/generated-utils" -import { int32, asFloat64, CustomTextEncoder } from "@koalaui/common" -import { encodeToData, KFloat, KFloat32ArrayPtr, KInt, KInt32ArrayPtr, KPointer, KStringPtr, KUint8ArrayPtr, nullptr, pointer, KBoolean } from "@koalaui/interop" -import { NodePointer, NativeModuleEmpty } from "@koalaui/arkoala" +import { int32, CustomTextEncoder } from "@koalaui/common" +import { encodeToData, KInt, KPointer, KStringPtr, nullptr, pointer } from "@koalaui/interop" +import { NativeModuleEmpty } from "@koalaui/arkoala" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UIElement { nodeId: int32 diff --git a/arkoala/arkui/src/StyledStringController.ts b/arkoala/arkui/src/StyledStringController.ts index 96a7442c7..70f155296 100644 --- a/arkoala/arkui/src/StyledStringController.ts +++ b/arkoala/arkui/src/StyledStringController.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" -import { StyledString } from "./ArkStyledStringMaterialized" +import { MutableStyledString } from "./generated/ArkMutableStyledStringMaterialized" +import { StyledString } from "./generated/ArkStyledStringMaterialized" // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! diff --git a/arkoala/arkui/src/ArkAbilityComponent.ts b/arkoala/arkui/src/generated/ArkAbilityComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkAbilityComponent.ts rename to arkoala/arkui/src/generated/ArkAbilityComponent.ts index 37eeab222..3b3c62eba 100644 --- a/arkoala/arkui/src/ArkAbilityComponent.ts +++ b/arkoala/arkui/src/generated/ArkAbilityComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAbilityComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts index 3f05dda0a..05da652d9 100644 --- a/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index 48ad391c8..04fee6913 100644 --- a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -85,13 +84,13 @@ export class AccessibilityHoverEventInternal extends BaseEventInternal implement set windowY(windowY: number) { this.setWindowY(windowY) } - static ctor(): KPointer { + static ctor_accessibilityhoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = AccessibilityHoverEventInternal.ctor() + const ctorPtr: KPointer = AccessibilityHoverEventInternal.ctor_accessibilityhoverevent() this.peer = new Finalizable(ctorPtr, AccessibilityHoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkActionSheetInterfaces.ts b/arkoala/arkui/src/generated/ArkActionSheetInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkActionSheetInterfaces.ts rename to arkoala/arkui/src/generated/ArkActionSheetInterfaces.ts diff --git a/arkoala/arkui/src/ArkActionSheetMaterialized.ts b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkActionSheetMaterialized.ts rename to arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts index aeac07f1b..3e6243b0c 100644 --- a/arkoala/arkui/src/ArkActionSheetMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -26,21 +26,26 @@ import { BorderStyle, DialogButtonStyle, Color, ColoringStrategy, Curve, PlayMod import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ActionSheetInternal { + public static fromPtr(ptr: KPointer): ActionSheet { + const obj: ActionSheet = new ActionSheet() + obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) + return obj + } +} export class ActionSheet implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_actionsheet(): KPointer { const retval = ArkUIGeneratedNativeModule._ActionSheet_ctor() return retval } @@ -48,7 +53,7 @@ export class ActionSheet implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = ActionSheet.ctor() + const ctorPtr: KPointer = ActionSheet.ctor_actionsheet() this.peer = new Finalizable(ctorPtr, ActionSheet.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +71,3 @@ export class ActionSheet implements MaterializedBase { return retval } } -export class ActionSheetInternal { - public static fromPtr(ptr: KPointer): ActionSheet { - const obj: ActionSheet = new ActionSheet() - obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAlertDialogInterfaces.ts b/arkoala/arkui/src/generated/ArkAlertDialogInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkAlertDialogInterfaces.ts rename to arkoala/arkui/src/generated/ArkAlertDialogInterfaces.ts diff --git a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkAlertDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts index 5540521ca..7b8693e1c 100644 --- a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -26,21 +26,26 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterial import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AlertDialogInternal { + public static fromPtr(ptr: KPointer): AlertDialog { + const obj: AlertDialog = new AlertDialog() + obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) + return obj + } +} export class AlertDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_alertdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._AlertDialog_ctor() return retval } @@ -48,7 +53,7 @@ export class AlertDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = AlertDialog.ctor() + const ctorPtr: KPointer = AlertDialog.ctor_alertdialog() this.peer = new Finalizable(ctorPtr, AlertDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,17 +67,17 @@ export class AlertDialog implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("confirm"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("confirm")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithConfirm(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("primaryButton"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("primaryButton")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithButtons(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("buttons"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("buttons")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithOptions(value_2) @@ -82,10 +87,3 @@ export class AlertDialog implements MaterializedBase { return retval } } -export class AlertDialogInternal { - public static fromPtr(ptr: KPointer): AlertDialog { - const obj: AlertDialog = new AlertDialog() - obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAlphabetIndexer.ts b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts similarity index 98% rename from arkoala/arkui/src/ArkAlphabetIndexer.ts rename to arkoala/arkui/src/generated/ArkAlphabetIndexer.ts index a89b75665..103208fca 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexer.ts +++ b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts b/arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts rename to arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts index 141a5e292..f54d8e108 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts b/arkoala/arkui/src/generated/ArkAnimationExtenderInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts rename to arkoala/arkui/src/generated/ArkAnimationExtenderInterfaces.ts diff --git a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts rename to arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 1651af2bb..82f47b69e 100644 --- a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -20,21 +20,26 @@ import { AnimateParam, TranslateOptions, FinishCallbackType, ExpectedFrameRateRa import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./ArkAnimationExtenderInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AnimationExtenderInternal { + public static fromPtr(ptr: KPointer): AnimationExtender { + const obj: AnimationExtender = new AnimationExtender() + obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) + return obj + } +} export class AnimationExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_animationextender(): KPointer { const retval = ArkUIGeneratedNativeModule._AnimationExtender_ctor() return retval } @@ -42,7 +47,7 @@ export class AnimationExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = AnimationExtender.ctor() + const ctorPtr: KPointer = AnimationExtender.ctor_animationextender() this.peer = new Finalizable(ctorPtr, AnimationExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class AnimationExtender implements MaterializedBase { thisSerializer.release() } } -export class AnimationExtenderInternal { - public static fromPtr(ptr: KPointer): AnimationExtender { - const obj: AnimationExtender = new AnimationExtender() - obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAnimator.ts b/arkoala/arkui/src/generated/ArkAnimator.ts similarity index 98% rename from arkoala/arkui/src/ArkAnimator.ts rename to arkoala/arkui/src/generated/ArkAnimator.ts index 902087bc5..23a9ed5ce 100644 --- a/arkoala/arkui/src/ArkAnimator.ts +++ b/arkoala/arkui/src/generated/ArkAnimator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAnimatorInterfaces.ts b/arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAnimatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts index 3638ded1c..512983a62 100644 --- a/arkoala/arkui/src/ArkAnimatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index 4514a4513..80535796f 100644 --- a/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AppearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): AppearSymbolEffect { + const obj: AppearSymbolEffect = new AppearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) + return obj + } +} export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_appearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = AppearSymbolEffect.ctor(scope) + const ctorPtr: KPointer = AppearSymbolEffect.ctor_appearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class AppearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): AppearSymbolEffect { - const obj: AppearSymbolEffect = new AppearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkArkuiCustomInterfaces.ts b/arkoala/arkui/src/generated/ArkArkuiCustomInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkArkuiCustomInterfaces.ts rename to arkoala/arkui/src/generated/ArkArkuiCustomInterfaces.ts diff --git a/arkoala/arkui/src/ArkArkuiExternalInterfaces.ts b/arkoala/arkui/src/generated/ArkArkuiExternalInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkArkuiExternalInterfaces.ts rename to arkoala/arkui/src/generated/ArkArkuiExternalInterfaces.ts diff --git a/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts similarity index 86% rename from arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index 54979c6cc..059677987 100644 --- a/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,15 +18,20 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BackgroundColorStyleInternal { + public static fromPtr(ptr: KPointer): BackgroundColorStyle { + const obj: BackgroundColorStyle = new BackgroundColorStyle(undefined) + obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) + return obj + } +} export class BackgroundColorStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,7 +40,7 @@ export class BackgroundColorStyle implements MaterializedBase { get textBackgroundStyle(): TextBackgroundStyle { throw new Error("Not implemented") } - static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + static ctor_backgroundcolorstyle(textBackgroundStyle: TextBackgroundStyle): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -43,9 +48,9 @@ export class BackgroundColorStyle implements MaterializedBase { return retval } constructor(textBackgroundStyle?: TextBackgroundStyle) { - if (((textBackgroundStyle) !== (undefined))) + if ((textBackgroundStyle) !== (undefined)) { - const ctorPtr: KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + const ctorPtr: KPointer = BackgroundColorStyle.ctor_backgroundcolorstyle(textBackgroundStyle) this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) } } @@ -53,10 +58,3 @@ export class BackgroundColorStyle implements MaterializedBase { return ArkUIGeneratedNativeModule._BackgroundColorStyle_getFinalizer() } } -export class BackgroundColorStyleInternal { - public static fromPtr(ptr: KPointer): BackgroundColorStyle { - const obj: BackgroundColorStyle = new BackgroundColorStyle(undefined) - obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkBadge.ts b/arkoala/arkui/src/generated/ArkBadge.ts similarity index 95% rename from arkoala/arkui/src/ArkBadge.ts rename to arkoala/arkui/src/generated/ArkBadge.ts index c22d14139..2e1268980 100644 --- a/arkoala/arkui/src/ArkBadge.ts +++ b/arkoala/arkui/src/generated/ArkBadge.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,12 +60,12 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("count")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("count")))) { const value_casted = value as (BadgeParamWithNumber) this.getPeer()?.setBadgeOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("value")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("value")))) { const value_casted = value as (BadgeParamWithString) this.getPeer()?.setBadgeOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkBadgeInterfaces.ts b/arkoala/arkui/src/generated/ArkBadgeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkBadgeInterfaces.ts rename to arkoala/arkui/src/generated/ArkBadgeInterfaces.ts index ac19006ac..bb241e908 100644 --- a/arkoala/arkui/src/ArkBadgeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkBadgeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBaseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkBaseEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts index ba0a67b32..781b06055 100644 --- a/arkoala/arkui/src/ArkBaseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -18,12 +18,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -108,12 +107,12 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { const deviceId_NonNull = (deviceId as number) this.setDeviceId(deviceId_NonNull) } - static ctor(): KPointer { + static ctor_baseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = BaseEventInternal.ctor() + const ctorPtr: KPointer = BaseEventInternal.ctor_baseevent() this.peer = new Finalizable(ctorPtr, BaseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts similarity index 84% rename from arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 7c3ac210c..c4fec198f 100644 --- a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,23 +42,30 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater set fingerList(fingerList: Array) { this.setFingerList(fingerList) } - static ctor(): KPointer { + static ctor_basegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = BaseGestureEventInternal.ctor() + const ctorPtr: KPointer = BaseGestureEventInternal.ctor_basegestureevent() this.peer = new Finalizable(ctorPtr, BaseGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseGestureEvent_getFinalizer() } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this?.setFingerList_serialize(fingerList_casted) return } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length) diff --git a/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index 05b45b840..c8be49371 100644 --- a/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BaselineOffsetStyleInternal { + public static fromPtr(ptr: KPointer): BaselineOffsetStyle { + const obj: BaselineOffsetStyle = new BaselineOffsetStyle(undefined) + obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) + return obj + } +} export class BaselineOffsetStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class BaselineOffsetStyle implements MaterializedBase { get baselineOffset(): number { return this.getBaselineOffset() } - static ctor(value: LengthMetrics): KPointer { + static ctor_baselineoffsetstyle(value: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = BaselineOffsetStyle.ctor(value) + const ctorPtr: KPointer = BaselineOffsetStyle.ctor_baselineoffsetstyle(value) this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } } -export class BaselineOffsetStyleInternal { - public static fromPtr(ptr: KPointer): BaselineOffsetStyle { - const obj: BaselineOffsetStyle = new BaselineOffsetStyle(undefined) - obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkBlank.ts b/arkoala/arkui/src/generated/ArkBlank.ts similarity index 97% rename from arkoala/arkui/src/ArkBlank.ts rename to arkoala/arkui/src/generated/ArkBlank.ts index e0a1446e2..470f8ba35 100644 --- a/arkoala/arkui/src/ArkBlank.ts +++ b/arkoala/arkui/src/generated/ArkBlank.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBlankInterfaces.ts b/arkoala/arkui/src/generated/ArkBlankInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkBlankInterfaces.ts rename to arkoala/arkui/src/generated/ArkBlankInterfaces.ts index 0ba7d6365..15e05a0b4 100644 --- a/arkoala/arkui/src/ArkBlankInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkBlankInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts b/arkoala/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts rename to arkoala/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts diff --git a/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index 382c01b39..ed5a3ea76 100644 --- a/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BounceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): BounceSymbolEffect { + const obj: BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) + return obj + } +} export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_bouncesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -66,7 +71,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr: KPointer = BounceSymbolEffect.ctor(scope, direction) + const ctorPtr: KPointer = BounceSymbolEffect.ctor_bouncesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, direction) } } -export class BounceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): BounceSymbolEffect { - const obj: BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkButton.ts b/arkoala/arkui/src/generated/ArkButton.ts similarity index 95% rename from arkoala/arkui/src/ArkButton.ts rename to arkoala/arkui/src/generated/ArkButton.ts index 3aedec305..22565dc5e 100644 --- a/arkoala/arkui/src/ArkButton.ts +++ b/arkoala/arkui/src/generated/ArkButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,16 +61,16 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == label_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.UNDEFINED == label_type) && (RuntimeType.UNDEFINED == options_type)) { this.getPeer()?.setButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT) == (label_type)) && (((label!.hasOwnProperty("type")) || (label!.hasOwnProperty("stateEffect")) || (label!.hasOwnProperty("buttonStyle")) || (label!.hasOwnProperty("controlSize")) || (label!.hasOwnProperty("role"))))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.OBJECT) == (label_type)) && (((label!.hasOwnProperty("type")) || (label!.hasOwnProperty("stateEffect")) || (label!.hasOwnProperty("buttonStyle")) || (label!.hasOwnProperty("controlSize")) || (label!.hasOwnProperty("role"))))) && (RuntimeType.UNDEFINED == options_type)) { const options_casted = label as (ButtonOptions) this.getPeer()?.setButtonOptions1Attribute(options_casted) return this } - if (((((RuntimeType.STRING == label_type))) || (((RuntimeType.OBJECT == label_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.STRING == label_type) || (RuntimeType.OBJECT == label_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const label_casted = label as (ResourceStr) const options_casted = options as (ButtonOptions | undefined) this.getPeer()?.setButtonOptions2Attribute(label_casted, options_casted) diff --git a/arkoala/arkui/src/ArkButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkButtonInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkButtonInterfaces.ts index de9e11987..394bca609 100644 --- a/arkoala/arkui/src/ArkButtonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkButtonInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCalendar.ts b/arkoala/arkui/src/generated/ArkCalendar.ts similarity index 97% rename from arkoala/arkui/src/ArkCalendar.ts rename to arkoala/arkui/src/generated/ArkCalendar.ts index e471793d9..e2d130ca7 100644 --- a/arkoala/arkui/src/ArkCalendar.ts +++ b/arkoala/arkui/src/generated/ArkCalendar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" import { UseEventsProperties } from "./use_properties" import { Axis } from "./ArkEnumsInterfaces" diff --git a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCalendarControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 21fde01f6..195c9a734 100644 --- a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CalendarControllerInternal { + public static fromPtr(ptr: KPointer): CalendarController { + const obj: CalendarController = new CalendarController() + obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) + return obj + } +} export class CalendarController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarController_ctor() return retval } constructor() { - const ctorPtr: KPointer = CalendarController.ctor() + const ctorPtr: KPointer = CalendarController.ctor_calendarcontroller() this.peer = new Finalizable(ctorPtr, CalendarController.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class CalendarController implements MaterializedBase { return retval } } -export class CalendarControllerInternal { - public static fromPtr(ptr: KPointer): CalendarController { - const obj: CalendarController = new CalendarController() - obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCalendarInterfaces.ts b/arkoala/arkui/src/generated/ArkCalendarInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCalendarInterfaces.ts rename to arkoala/arkui/src/generated/ArkCalendarInterfaces.ts diff --git a/arkoala/arkui/src/ArkCalendarPicker.ts b/arkoala/arkui/src/generated/ArkCalendarPicker.ts similarity index 97% rename from arkoala/arkui/src/ArkCalendarPicker.ts rename to arkoala/arkui/src/generated/ArkCalendarPicker.ts index 71e5a491f..003f409a5 100644 --- a/arkoala/arkui/src/ArkCalendarPicker.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 68be03512..2b1f1965d 100644 --- a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -22,21 +22,26 @@ import { VoidCallback, ResourceColor, Length, BorderRadiuses } from "./ArkUnitsI import { BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CalendarPickerDialogInternal { + public static fromPtr(ptr: KPointer): CalendarPickerDialog { + const obj: CalendarPickerDialog = new CalendarPickerDialog() + obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) + return obj + } +} export class CalendarPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarPickerDialog_ctor() return retval } @@ -44,7 +49,7 @@ export class CalendarPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = CalendarPickerDialog.ctor() + const ctorPtr: KPointer = CalendarPickerDialog.ctor_calendarpickerdialog() this.peer = new Finalizable(ctorPtr, CalendarPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class CalendarPickerDialog implements MaterializedBase { thisSerializer.release() } } -export class CalendarPickerDialogInternal { - public static fromPtr(ptr: KPointer): CalendarPickerDialog { - const obj: CalendarPickerDialog = new CalendarPickerDialog() - obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts b/arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCalendarPickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts index f5fc53e41..32ddeb450 100644 --- a/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCanvas.ts b/arkoala/arkui/src/generated/ArkCanvas.ts similarity index 95% rename from arkoala/arkui/src/ArkCanvas.ts rename to arkoala/arkui/src/generated/ArkCanvas.ts index 568768a36..873f94b99 100644 --- a/arkoala/arkui/src/ArkCanvas.ts +++ b/arkoala/arkui/src/generated/ArkCanvas.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -78,13 +77,13 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (context_type)) && (context instanceof CanvasRenderingContext2D)) || (((RuntimeType.OBJECT) == (context_type)) && (context instanceof DrawingRenderingContext))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (context_type)) && (context instanceof CanvasRenderingContext2D)) || (((RuntimeType.OBJECT) == (context_type)) && (context instanceof DrawingRenderingContext))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setCanvasOptions1Attribute(context_casted, imageAIOptions_casted) return this } - if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type)) || ((RuntimeType.UNDEFINED == context_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((RuntimeType.OBJECT == context_type) || (RuntimeType.OBJECT == context_type) || (RuntimeType.UNDEFINED == context_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext | undefined) this.getPeer()?.setCanvasOptions0Attribute(context_casted) return this diff --git a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkCanvasGradientMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 6db4502d6..b9ea6812e 100644 --- a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasGradientInternal { + public static fromPtr(ptr: KPointer): CanvasGradient { + const obj: CanvasGradient = new CanvasGradient() + obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) + return obj + } +} export class CanvasGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvasgradient(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasGradient_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasGradient.ctor() + const ctorPtr: KPointer = CanvasGradient.ctor_canvasgradient() this.peer = new Finalizable(ctorPtr, CanvasGradient.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +56,3 @@ export class CanvasGradient implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasGradient_addColorStop(this.peer!.ptr, offset, color) } } -export class CanvasGradientInternal { - public static fromPtr(ptr: KPointer): CanvasGradient { - const obj: CanvasGradient = new CanvasGradient() - obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasInterfaces.ts b/arkoala/arkui/src/generated/ArkCanvasInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCanvasInterfaces.ts rename to arkoala/arkui/src/generated/ArkCanvasInterfaces.ts index 91e65b587..2722131a6 100644 --- a/arkoala/arkui/src/ArkCanvasInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCanvasInterfaces.ts @@ -44,7 +44,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkCanvasPathMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts index ade5e15e3..48c319aee 100644 --- a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasPathInternal { + public static fromPtr(ptr: KPointer): CanvasPath { + const obj: CanvasPath = new CanvasPath() + obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) + return obj + } +} export class CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspath(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPath_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasPath.ctor() + const ctorPtr: KPointer = CanvasPath.ctor_canvaspath() this.peer = new Finalizable(ctorPtr, CanvasPath.getFinalizer()) } static getFinalizer(): KPointer { @@ -160,10 +165,3 @@ export class CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h) } } -export class CanvasPathInternal { - public static fromPtr(ptr: KPointer): CanvasPath { - const obj: CanvasPath = new CanvasPath() - obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCanvasPatternMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts index 8c847a623..3327f62be 100644 --- a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,12 +18,10 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -35,12 +33,12 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspattern(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPattern_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasPatternInternal.ctor() + const ctorPtr: KPointer = CanvasPatternInternal.ctor_canvaspattern() this.peer = new Finalizable(ctorPtr, CanvasPatternInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCanvasRendererMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts index 4a4a085fd..e6affb6fd 100644 --- a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,15 +26,20 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasRendererInternal { + public static fromPtr(ptr: KPointer): CanvasRenderer { + const obj: CanvasRenderer = new CanvasRenderer() + obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) + return obj + } +} export class CanvasRenderer extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -160,13 +165,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { set textBaseline(textBaseline: CanvasTextBaseline) { this.setTextBaseline(textBaseline) } - static ctor(): KPointer { + static ctor_canvasrenderer(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = CanvasRenderer.ctor() + const ctorPtr: KPointer = CanvasRenderer.ctor_canvasrenderer() this.peer = new Finalizable(ctorPtr, CanvasRenderer.getFinalizer()) } static getFinalizer(): KPointer { @@ -182,14 +187,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dy_type = runtimeType(dy) const dw_type = runtimeType(dw) const dh_type = runtimeType(dh) - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.UNDEFINED == sw_type))) && (((RuntimeType.UNDEFINED == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.UNDEFINED == sw_type) && (RuntimeType.UNDEFINED == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) this?.drawImage0_serialize(image_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) @@ -198,7 +203,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.drawImage1_serialize(image_casted, dx_casted, dy_casted, dw_casted, dh_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.NUMBER == dx_type))) && (((RuntimeType.NUMBER == dy_type))) && (((RuntimeType.NUMBER == dw_type))) && (((RuntimeType.NUMBER == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.NUMBER == dx_type) && (RuntimeType.NUMBER == dy_type) && (RuntimeType.NUMBER == dw_type) && (RuntimeType.NUMBER == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const sx_casted = sx as (number) const sy_casted = sy as (number) @@ -220,12 +225,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this?.clip0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this?.clip1_serialize(path_casted, fillRule_casted) @@ -236,12 +241,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this?.fill0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this?.fill1_serialize(path_casted, fillRule_casted) @@ -251,11 +256,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } public stroke(path?: Path2D): void { const path_type = runtimeType(path) - if ((((RuntimeType.UNDEFINED == path_type)))) { + if (RuntimeType.UNDEFINED == path_type) { this?.stroke0_serialize() return } - if ((((RuntimeType.OBJECT == path_type)))) { + if (RuntimeType.OBJECT == path_type) { const path_casted = path as (Path2D) this?.stroke1_serialize(path_casted) return @@ -292,11 +297,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public createImageData(sw: ImageData | number, sh?: number): ImageData { const sw_type = runtimeType(sw) const sh_type = runtimeType(sh) - if ((((RuntimeType.OBJECT == sw_type))) && (((RuntimeType.UNDEFINED == sh_type)))) { + if ((RuntimeType.OBJECT == sw_type) && (RuntimeType.UNDEFINED == sh_type)) { const imagedata_casted = sw as (ImageData) return this.createImageData1_serialize(imagedata_casted) } - if ((((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type)))) { + if ((RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type)) { const sw_casted = sw as (number) const sh_casted = sh as (number) return this.createImageData0_serialize(sw_casted, sh_casted) @@ -325,14 +330,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dirtyY_type = runtimeType(dirtyY) const dirtyWidth_type = runtimeType(dirtyWidth) const dirtyHeight_type = runtimeType(dirtyHeight) - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.UNDEFINED == dirtyX_type))) && (((RuntimeType.UNDEFINED == dirtyY_type))) && (((RuntimeType.UNDEFINED == dirtyWidth_type))) && (((RuntimeType.UNDEFINED == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && (RuntimeType.UNDEFINED == dirtyX_type) && (RuntimeType.UNDEFINED == dirtyY_type) && (RuntimeType.UNDEFINED == dirtyWidth_type) && (RuntimeType.UNDEFINED == dirtyHeight_type)) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) this?.putImageData0_serialize(imagedata_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.NUMBER == dirtyX_type)) || ((RuntimeType.STRING == dirtyX_type))) && (((RuntimeType.NUMBER == dirtyY_type)) || ((RuntimeType.STRING == dirtyY_type))) && (((RuntimeType.NUMBER == dirtyWidth_type)) || ((RuntimeType.STRING == dirtyWidth_type))) && (((RuntimeType.NUMBER == dirtyHeight_type)) || ((RuntimeType.STRING == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && ((RuntimeType.NUMBER == dirtyX_type) || (RuntimeType.STRING == dirtyX_type)) && ((RuntimeType.NUMBER == dirtyY_type) || (RuntimeType.STRING == dirtyY_type)) && ((RuntimeType.NUMBER == dirtyWidth_type) || (RuntimeType.STRING == dirtyWidth_type)) && ((RuntimeType.NUMBER == dirtyHeight_type) || (RuntimeType.STRING == dirtyHeight_type))) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) @@ -430,12 +435,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const d_type = runtimeType(d) const e_type = runtimeType(e) const f_type = runtimeType(f) - if ((((RuntimeType.OBJECT == a_type)) || ((RuntimeType.UNDEFINED == a_type))) && (((RuntimeType.UNDEFINED == b_type))) && (((RuntimeType.UNDEFINED == c_type))) && (((RuntimeType.UNDEFINED == d_type))) && (((RuntimeType.UNDEFINED == e_type))) && (((RuntimeType.UNDEFINED == f_type)))) { + if (((RuntimeType.OBJECT == a_type) || (RuntimeType.UNDEFINED == a_type)) && (RuntimeType.UNDEFINED == b_type) && (RuntimeType.UNDEFINED == c_type) && (RuntimeType.UNDEFINED == d_type) && (RuntimeType.UNDEFINED == e_type) && (RuntimeType.UNDEFINED == f_type)) { const transform_casted = a as (Matrix2D | undefined) this?.setTransform1_serialize(transform_casted) return } - if ((((RuntimeType.NUMBER == a_type))) && (((RuntimeType.NUMBER == b_type))) && (((RuntimeType.NUMBER == c_type))) && (((RuntimeType.NUMBER == d_type))) && (((RuntimeType.NUMBER == e_type))) && (((RuntimeType.NUMBER == f_type)))) { + if ((RuntimeType.NUMBER == a_type) && (RuntimeType.NUMBER == b_type) && (RuntimeType.NUMBER == c_type) && (RuntimeType.NUMBER == d_type) && (RuntimeType.NUMBER == e_type) && (RuntimeType.NUMBER == f_type)) { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -648,7 +653,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -665,7 +670,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -682,7 +687,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -802,24 +807,24 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type: int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0) const dx_0 = unsafeCast(dx) thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1) const dx_1 = unsafeCast(dx) thisSerializer.writeString(dx_1) } let dy_type: int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0) const dy_0 = unsafeCast(dy) thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1) const dy_1 = unsafeCast(dy) thisSerializer.writeString(dy_1) @@ -832,72 +837,72 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type: int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0) const dx_0 = unsafeCast(dx) thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1) const dx_1 = unsafeCast(dx) thisSerializer.writeString(dx_1) } let dy_type: int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0) const dy_0 = unsafeCast(dy) thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1) const dy_1 = unsafeCast(dy) thisSerializer.writeString(dy_1) } let dirtyX_type: int32 = RuntimeType.UNDEFINED dirtyX_type = runtimeType(dirtyX) - if (((RuntimeType.NUMBER == dirtyX_type))) { + if (RuntimeType.NUMBER == dirtyX_type) { thisSerializer.writeInt8(0) const dirtyX_0 = unsafeCast(dirtyX) thisSerializer.writeNumber(dirtyX_0) } - else if (((RuntimeType.STRING == dirtyX_type))) { + else if (RuntimeType.STRING == dirtyX_type) { thisSerializer.writeInt8(1) const dirtyX_1 = unsafeCast(dirtyX) thisSerializer.writeString(dirtyX_1) } let dirtyY_type: int32 = RuntimeType.UNDEFINED dirtyY_type = runtimeType(dirtyY) - if (((RuntimeType.NUMBER == dirtyY_type))) { + if (RuntimeType.NUMBER == dirtyY_type) { thisSerializer.writeInt8(0) const dirtyY_0 = unsafeCast(dirtyY) thisSerializer.writeNumber(dirtyY_0) } - else if (((RuntimeType.STRING == dirtyY_type))) { + else if (RuntimeType.STRING == dirtyY_type) { thisSerializer.writeInt8(1) const dirtyY_1 = unsafeCast(dirtyY) thisSerializer.writeString(dirtyY_1) } let dirtyWidth_type: int32 = RuntimeType.UNDEFINED dirtyWidth_type = runtimeType(dirtyWidth) - if (((RuntimeType.NUMBER == dirtyWidth_type))) { + if (RuntimeType.NUMBER == dirtyWidth_type) { thisSerializer.writeInt8(0) const dirtyWidth_0 = unsafeCast(dirtyWidth) thisSerializer.writeNumber(dirtyWidth_0) } - else if (((RuntimeType.STRING == dirtyWidth_type))) { + else if (RuntimeType.STRING == dirtyWidth_type) { thisSerializer.writeInt8(1) const dirtyWidth_1 = unsafeCast(dirtyWidth) thisSerializer.writeString(dirtyWidth_1) } let dirtyHeight_type: int32 = RuntimeType.UNDEFINED dirtyHeight_type = runtimeType(dirtyHeight) - if (((RuntimeType.NUMBER == dirtyHeight_type))) { + if (RuntimeType.NUMBER == dirtyHeight_type) { thisSerializer.writeInt8(0) const dirtyHeight_0 = unsafeCast(dirtyHeight) thisSerializer.writeNumber(dirtyHeight_0) } - else if (((RuntimeType.STRING == dirtyHeight_type))) { + else if (RuntimeType.STRING == dirtyHeight_type) { thisSerializer.writeInt8(1) const dirtyHeight_1 = unsafeCast(dirtyHeight) thisSerializer.writeString(dirtyHeight_1) @@ -948,7 +953,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readTextMetrics() } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer: Serializer = Serializer.hold() @@ -1041,12 +1046,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let fillStyle_type: int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) - if (((RuntimeType.STRING == fillStyle_type))) { + if (RuntimeType.STRING == fillStyle_type) { thisSerializer.writeInt8(0) const fillStyle_0 = unsafeCast(fillStyle) thisSerializer.writeString(fillStyle_0) } - else if (((RuntimeType.NUMBER == fillStyle_type))) { + else if (RuntimeType.NUMBER == fillStyle_type) { thisSerializer.writeInt8(1) const fillStyle_1 = unsafeCast(fillStyle) thisSerializer.writeNumber(fillStyle_1) @@ -1056,7 +1061,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const fillStyle_2 = unsafeCast(fillStyle) thisSerializer.writeCanvasGradient(fillStyle_2) } - else if (((RuntimeType.OBJECT == fillStyle_type))) { + else if (RuntimeType.OBJECT == fillStyle_type) { thisSerializer.writeInt8(3) const fillStyle_3 = unsafeCast(fillStyle) thisSerializer.writeCanvasPattern(fillStyle_3) @@ -1068,12 +1073,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let strokeStyle_type: int32 = RuntimeType.UNDEFINED strokeStyle_type = runtimeType(strokeStyle) - if (((RuntimeType.STRING == strokeStyle_type))) { + if (RuntimeType.STRING == strokeStyle_type) { thisSerializer.writeInt8(0) const strokeStyle_0 = unsafeCast(strokeStyle) thisSerializer.writeString(strokeStyle_0) } - else if (((RuntimeType.NUMBER == strokeStyle_type))) { + else if (RuntimeType.NUMBER == strokeStyle_type) { thisSerializer.writeInt8(1) const strokeStyle_1 = unsafeCast(strokeStyle) thisSerializer.writeNumber(strokeStyle_1) @@ -1083,7 +1088,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const strokeStyle_2 = unsafeCast(strokeStyle) thisSerializer.writeCanvasGradient(strokeStyle_2) } - else if (((RuntimeType.OBJECT == strokeStyle_type))) { + else if (RuntimeType.OBJECT == strokeStyle_type) { thisSerializer.writeInt8(3) const strokeStyle_3 = unsafeCast(strokeStyle) thisSerializer.writeCanvasPattern(strokeStyle_3) @@ -1204,10 +1209,3 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasRenderer_setTextBaseline(this.peer!.ptr, textBaseline) } } -export class CanvasRendererInternal { - public static fromPtr(ptr: KPointer): CanvasRenderer { - const obj: CanvasRenderer = new CanvasRenderer() - obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 66d72c511..e94011ffc 100644 --- a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -31,15 +31,20 @@ import { RenderingContextSettings, RenderingContextSettingsInternal } from "./Ar import { LengthMetricsUnit, Position, Length } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { UIContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { + const obj: CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) + obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) + return obj + } +} export class CanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -54,7 +59,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material get canvas(): FrameNode { throw new Error("Not implemented") } - static ctor(settings?: RenderingContextSettings): KPointer { + static ctor_canvasrenderingcontext2d(settings?: RenderingContextSettings): KPointer { const thisSerializer: Serializer = Serializer.hold() let settings_type: int32 = RuntimeType.UNDEFINED settings_type = runtimeType(settings) @@ -69,7 +74,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material } constructor(settings?: RenderingContextSettings) { super() - const ctorPtr: KPointer = CanvasRenderingContext2D.ctor(settings) + const ctorPtr: KPointer = CanvasRenderingContext2D.ctor_canvasrenderingcontext2d(settings) this.peer = new Finalizable(ctorPtr, CanvasRenderingContext2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -196,10 +201,3 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material return retval } } -export class CanvasRenderingContext2DInternal { - public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { - const obj: CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) - obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCheckbox.ts b/arkoala/arkui/src/generated/ArkCheckbox.ts similarity index 98% rename from arkoala/arkui/src/ArkCheckbox.ts rename to arkoala/arkui/src/generated/ArkCheckbox.ts index 971329daa..1855697b7 100644 --- a/arkoala/arkui/src/ArkCheckbox.ts +++ b/arkoala/arkui/src/generated/ArkCheckbox.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxInterfaces.ts b/arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCheckboxInterfaces.ts rename to arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts index b250d39fd..e4a7b2dea 100644 --- a/arkoala/arkui/src/ArkCheckboxInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxgroup.ts b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts similarity index 97% rename from arkoala/arkui/src/ArkCheckboxgroup.ts rename to arkoala/arkui/src/generated/ArkCheckboxgroup.ts index df435783b..6b8527f87 100644 --- a/arkoala/arkui/src/ArkCheckboxgroup.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts b/arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts index 329f9c3eb..518782226 100644 --- a/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts rename to arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index bb3e70a43..9d39e5ca2 100644 --- a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ChildrenMainSizeInternal { + public static fromPtr(ptr: KPointer): ChildrenMainSize { + const obj: ChildrenMainSize = new ChildrenMainSize(undefined) + obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) + return obj + } +} export class ChildrenMainSize implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,14 +41,14 @@ export class ChildrenMainSize implements MaterializedBase { set childDefaultSize(childDefaultSize: number) { this.setChildDefaultSize(childDefaultSize) } - static ctor(childDefaultSize: number): KPointer { + static ctor_childrenmainsize(childDefaultSize: number): KPointer { const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_ctor(childDefaultSize) return retval } constructor(childDefaultSize?: number) { - if (((childDefaultSize) !== (undefined))) + if ((childDefaultSize) !== (undefined)) { - const ctorPtr: KPointer = ChildrenMainSize.ctor(childDefaultSize) + const ctorPtr: KPointer = ChildrenMainSize.ctor_childrenmainsize(childDefaultSize) this.peer = new Finalizable(ctorPtr, ChildrenMainSize.getFinalizer()) } } @@ -105,10 +110,3 @@ export class ChildrenMainSize implements MaterializedBase { ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) } } -export class ChildrenMainSizeInternal { - public static fromPtr(ptr: KPointer): ChildrenMainSize { - const obj: ChildrenMainSize = new ChildrenMainSize(undefined) - obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCircle.ts b/arkoala/arkui/src/generated/ArkCircle.ts similarity index 97% rename from arkoala/arkui/src/ArkCircle.ts rename to arkoala/arkui/src/generated/ArkCircle.ts index 750dcc522..e86c9986a 100644 --- a/arkoala/arkui/src/ArkCircle.ts +++ b/arkoala/arkui/src/generated/ArkCircle.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCircleInterfaces.ts b/arkoala/arkui/src/generated/ArkCircleInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCircleInterfaces.ts rename to arkoala/arkui/src/generated/ArkCircleInterfaces.ts index 3bd2ca391..7f4b20d29 100644 --- a/arkoala/arkui/src/ArkCircleInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCircleInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkClickEventMaterialized.ts b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkClickEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkClickEventMaterialized.ts index 3fcdcce13..3a6def6eb 100644 --- a/arkoala/arkui/src/ArkClickEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts @@ -19,12 +19,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -98,13 +97,13 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_clickevent(): KPointer { const retval = ArkUIGeneratedNativeModule._ClickEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ClickEventInternal.ctor() + const ctorPtr: KPointer = ClickEventInternal.ctor_clickevent() this.peer = new Finalizable(ctorPtr, ClickEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index dc7919562..5698e63d2 100644 --- a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ClientAuthenticationHandlerInternal { + public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { + const obj: ClientAuthenticationHandler = new ClientAuthenticationHandler() + obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) + return obj + } +} export class ClientAuthenticationHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_clientauthenticationhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ClientAuthenticationHandler.ctor() + const ctorPtr: KPointer = ClientAuthenticationHandler.ctor_clientauthenticationhandler() this.peer = new Finalizable(ctorPtr, ClientAuthenticationHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -44,12 +49,12 @@ export class ClientAuthenticationHandler implements MaterializedBase { public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) - if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { + if (RuntimeType.UNDEFINED == certChainFile_type) { const authUri_casted = priKeyFile as (string) this?.confirm1_serialize(authUri_casted) return } - if ((((RuntimeType.STRING == certChainFile_type)))) { + if (RuntimeType.STRING == certChainFile_type) { const priKeyFile_casted = priKeyFile as (string) const certChainFile_casted = certChainFile as (string) this?.confirm0_serialize(priKeyFile_casted, certChainFile_casted) @@ -78,10 +83,3 @@ export class ClientAuthenticationHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ignore(this.peer!.ptr) } } -export class ClientAuthenticationHandlerInternal { - public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { - const obj: ClientAuthenticationHandler = new ClientAuthenticationHandler() - obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkColorFilterMaterialized.ts b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkColorFilterMaterialized.ts rename to arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts index b94bac485..18bec7439 100644 --- a/arkoala/arkui/src/ArkColorFilterMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -16,21 +16,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ColorFilterInternal { + public static fromPtr(ptr: KPointer): ColorFilter { + const obj: ColorFilter = new ColorFilter(undefined) + obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) + return obj + } +} export class ColorFilter implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: Array): KPointer { + static ctor_colorfilter(value: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(value.length) for (let i = 0; i < value.length; i++) { @@ -42,9 +47,9 @@ export class ColorFilter implements MaterializedBase { return retval } constructor(value?: Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = ColorFilter.ctor(value) + const ctorPtr: KPointer = ColorFilter.ctor_colorfilter(value) this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) } } @@ -52,10 +57,3 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export class ColorFilterInternal { - public static fromPtr(ptr: KPointer): ColorFilter { - const obj: ColorFilter = new ColorFilter(undefined) - obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkColumn.ts b/arkoala/arkui/src/generated/ArkColumn.ts similarity index 97% rename from arkoala/arkui/src/ArkColumn.ts rename to arkoala/arkui/src/generated/ArkColumn.ts index 25918358a..ee2619199 100644 --- a/arkoala/arkui/src/ArkColumn.ts +++ b/arkoala/arkui/src/generated/ArkColumn.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnInterfaces.ts b/arkoala/arkui/src/generated/ArkColumnInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkColumnInterfaces.ts rename to arkoala/arkui/src/generated/ArkColumnInterfaces.ts index de314d67f..88a0fca33 100644 --- a/arkoala/arkui/src/ArkColumnInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkColumnInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnSplit.ts b/arkoala/arkui/src/generated/ArkColumnSplit.ts similarity index 97% rename from arkoala/arkui/src/ArkColumnSplit.ts rename to arkoala/arkui/src/generated/ArkColumnSplit.ts index bf7ed7934..6298dcb2b 100644 --- a/arkoala/arkui/src/ArkColumnSplit.ts +++ b/arkoala/arkui/src/generated/ArkColumnSplit.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnSplitInterfaces.ts b/arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkColumnSplitInterfaces.ts rename to arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts index 259674358..58eaa40f3 100644 --- a/arkoala/arkui/src/ArkColumnSplitInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCommon.ts b/arkoala/arkui/src/generated/ArkCommon.ts similarity index 95% rename from arkoala/arkui/src/ArkCommon.ts rename to arkoala/arkui/src/generated/ArkCommon.ts index c2baa4f42..fe67f23e5 100644 --- a/arkoala/arkui/src/ArkCommon.ts +++ b/arkoala/arkui/src/generated/ArkCommon.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -414,13 +413,13 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) - if ((((RuntimeType.UNDEFINED == distanceThreshold_type)))) { + if (RuntimeType.UNDEFINED == distanceThreshold_type) { const value_casted = event as (((event: ClickEvent) => void)) UseEventsProperties({CommonMethod_onClick0: value_casted}) this.getPeer()?.onClick0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == distanceThreshold_type)))) { + if (RuntimeType.NUMBER == distanceThreshold_type) { const event_casted = event as (((event: ClickEvent) => void)) const distanceThreshold_casted = distanceThreshold as (number) UseEventsProperties({CommonMethod_onClick1: event_casted}) @@ -588,12 +587,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) - if (((((RuntimeType.OBJECT) == (effect_type)) && (((effect!.hasOwnProperty("type")) || (effect!.hasOwnProperty("opacity")) || (effect!.hasOwnProperty("translate")) || (effect!.hasOwnProperty("scale")) || (effect!.hasOwnProperty("rotate"))))) || (((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect))) && (((RuntimeType.UNDEFINED == onFinish_type)))) { + if (((((RuntimeType.OBJECT) == (effect_type)) && (((effect!.hasOwnProperty("type")) || (effect!.hasOwnProperty("opacity")) || (effect!.hasOwnProperty("translate")) || (effect!.hasOwnProperty("scale")) || (effect!.hasOwnProperty("rotate"))))) || (((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect))) && (RuntimeType.UNDEFINED == onFinish_type)) { const value_casted = effect as (TransitionOptions | TransitionEffect) this.getPeer()?.transition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect)) && (((RuntimeType.FUNCTION == onFinish_type)) || ((RuntimeType.UNDEFINED == onFinish_type)))) { + if ((((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect)) && ((RuntimeType.FUNCTION == onFinish_type) || (RuntimeType.UNDEFINED == onFinish_type))) { const effect_casted = effect as (TransitionEffect) const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) this.getPeer()?.transition1Attribute(effect_casted, onFinish_casted) @@ -698,12 +697,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) - if ((((RuntimeType.UNDEFINED == effectType_type)))) { + if (RuntimeType.UNDEFINED == effectType_type) { const value_casted = useEffect as (boolean) this.getPeer()?.useEffect0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == effectType_type)))) { + if (RuntimeType.NUMBER == effectType_type) { const useEffect_casted = useEffect as (boolean) const effectType_casted = effectType as (EffectType) this.getPeer()?.useEffect1Attribute(useEffect_casted, effectType_casted) @@ -965,12 +964,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { if (this.checkPriority("alignRules")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right"))))) { const value_casted = value as (AlignRuleOption) this.getPeer()?.alignRules0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end"))))) { const value_casted = value as (LocalizedAlignRuleOptions) this.getPeer()?.alignRules1Attribute(value_casted) return this @@ -1143,12 +1142,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this @@ -1170,12 +1169,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this @@ -1216,12 +1215,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = id as (string) this.getPeer()?.geometryTransition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const id_casted = id as (string) const options_casted = options as (GeometryTransitionOptions | undefined) this.getPeer()?.geometryTransition1Attribute(id_casted, options_casted) @@ -1281,12 +1280,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) - if ((((RuntimeType.UNDEFINED == accessibilityOptions_type)))) { + if (RuntimeType.UNDEFINED == accessibilityOptions_type) { const value_casted = isGroup as (boolean) this.getPeer()?.accessibilityGroup0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == accessibilityOptions_type)))) { + if (RuntimeType.OBJECT == accessibilityOptions_type) { const isGroup_casted = isGroup as (boolean) const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions) this.getPeer()?.accessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) @@ -1300,12 +1299,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityText0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityText1Attribute(value_casted) return this @@ -1327,12 +1326,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityDescription0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityDescription1Attribute(value_casted) return this @@ -1438,13 +1437,13 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) - if ((((RuntimeType.UNDEFINED == exposeInnerGesture_type)))) { + if (RuntimeType.UNDEFINED == exposeInnerGesture_type) { const value_casted = callback_ as (GestureRecognizerJudgeBeginCallback) UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin0: value_casted}) this.getPeer()?.onGestureRecognizerJudgeBegin0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == exposeInnerGesture_type)))) { + if (RuntimeType.BOOLEAN == exposeInnerGesture_type) { const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback) const exposeInnerGesture_casted = exposeInnerGesture as (boolean) UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin1: callback__casted}) @@ -1561,13 +1560,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) const arrowStepOut_type = runtimeType(arrowStepOut) - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && (RuntimeType.UNDEFINED == arrowStepOut_type)) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) this.getPeer()?.focusScopeId0Attribute(id_casted, isGroup_casted) return this } - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.BOOLEAN == arrowStepOut_type)) || ((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && ((RuntimeType.BOOLEAN == arrowStepOut_type) || (RuntimeType.UNDEFINED == arrowStepOut_type))) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) const arrowStepOut_casted = arrowStepOut as (boolean | undefined) @@ -1732,13 +1731,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) const options_type = runtimeType(options) - if ((((RuntimeType.OBJECT == isShow_type)) || ((RuntimeType.FUNCTION == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.OBJECT == isShow_type) || (RuntimeType.FUNCTION == isShow_type)) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.UNDEFINED == content_type)) && (RuntimeType.UNDEFINED == options_type)) { const content_casted = isShow as (Array | CustomBuilder) const options_casted = content as (MenuOptions | undefined) this.getPeer()?.bindMenu0Attribute(content_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type))) && ((((RuntimeType.OBJECT == content_type))) || (((RuntimeType.FUNCTION == content_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == isShow_type) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.FUNCTION == content_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShow_casted = isShow as (boolean) const content_casted = content as (Array | CustomBuilder) const options_casted = options as (MenuOptions | undefined) @@ -1755,7 +1754,7 @@ export class ArkCommonMethodComponent extends ComponentBase { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) const options_type = runtimeType(options) - if ((((RuntimeType.FUNCTION == content_type))) && (((RuntimeType.NUMBER == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.FUNCTION == content_type) && (RuntimeType.NUMBER == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType) const options_casted = options as (ContextMenuOptions | undefined) @@ -1763,7 +1762,7 @@ export class ArkCommonMethodComponent extends ComponentBase { this.getPeer()?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == content_type))) && (((RuntimeType.FUNCTION == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == content_type) && (RuntimeType.FUNCTION == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShown_casted = content as (boolean) const content_casted = responseType as (CustomBuilder) const options_casted = options as (ContextMenuOptions | undefined) @@ -1781,7 +1780,7 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) const type_type = runtimeType(type) - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.NUMBER == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.NUMBER == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const type_casted = type as (ModalTransition | undefined) @@ -1789,7 +1788,7 @@ export class ArkCommonMethodComponent extends ComponentBase { this.getPeer()?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = type as (ContentCoverOptions | undefined) diff --git a/arkoala/arkui/src/ArkCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkCommonInterfaces.ts index f5b2e1f9a..882662d66 100644 --- a/arkoala/arkui/src/ArkCommonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts @@ -38,7 +38,7 @@ import { DrawModifier } from "./ArkDrawModifierMaterialized" import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { ClickEvent } from "./ArkClickEventMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" diff --git a/arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts rename to arkoala/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts diff --git a/arkoala/arkui/src/ArkComponent3d.ts b/arkoala/arkui/src/generated/ArkComponent3d.ts similarity index 97% rename from arkoala/arkui/src/ArkComponent3d.ts rename to arkoala/arkui/src/generated/ArkComponent3d.ts index 611cbc1a5..15cce97af 100644 --- a/arkoala/arkui/src/ArkComponent3d.ts +++ b/arkoala/arkui/src/generated/ArkComponent3d.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkComponent3dInterfaces.ts b/arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkComponent3dInterfaces.ts rename to arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts index 58961e662..053662892 100644 --- a/arkoala/arkui/src/ArkComponent3dInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkConsoleMessageMaterialized.ts rename to arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts index a4772167e..c206c538d 100644 --- a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -17,28 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { MessageLevel } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ConsoleMessageInternal { + public static fromPtr(ptr: KPointer): ConsoleMessage { + const obj: ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) + return obj + } +} export class ConsoleMessage implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { + static ctor_consolemessage(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, messageLevel) return retval } constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { if (((message) !== (undefined)) && ((sourceId) !== (undefined)) && ((lineNumber) !== (undefined)) && ((messageLevel) !== (undefined))) { - const ctorPtr: KPointer = ConsoleMessage.ctor(message, sourceId, lineNumber, messageLevel) + const ctorPtr: KPointer = ConsoleMessage.ctor_consolemessage(message, sourceId, lineNumber, messageLevel) this.peer = new Finalizable(ctorPtr, ConsoleMessage.getFinalizer()) } } @@ -74,10 +79,3 @@ export class ConsoleMessage implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ConsoleMessageInternal { - public static fromPtr(ptr: KPointer): ConsoleMessage { - const obj: ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkContainerSpan.ts b/arkoala/arkui/src/generated/ArkContainerSpan.ts similarity index 93% rename from arkoala/arkui/src/ArkContainerSpan.ts rename to arkoala/arkui/src/generated/ArkContainerSpan.ts index 519391964..2b69b1c08 100644 --- a/arkoala/arkui/src/ArkContainerSpan.ts +++ b/arkoala/arkui/src/generated/ArkContainerSpan.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { ContainerSpanAttribute } from "./ArkContainerSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" /** @memo:stable */ diff --git a/arkoala/arkui/src/ArkContainerSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts similarity index 96% rename from arkoala/arkui/src/ArkContainerSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts index 15a15144f..7fdd7ba22 100644 --- a/arkoala/arkui/src/ArkContainerSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" export type ContainerSpanInterface = () => ContainerSpanAttribute; export interface ContainerSpanAttribute { diff --git a/arkoala/arkui/src/ArkContentSlotInterfaces.ts b/arkoala/arkui/src/generated/ArkContentSlotInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkContentSlotInterfaces.ts rename to arkoala/arkui/src/generated/ArkContentSlotInterfaces.ts diff --git a/arkoala/arkui/src/ArkContextMenuMaterialized.ts b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkContextMenuMaterialized.ts rename to arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts index eb97c9b74..e4971e5ca 100644 --- a/arkoala/arkui/src/ArkContextMenuMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -16,21 +16,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ContextMenuInternal { + public static fromPtr(ptr: KPointer): ContextMenu { + const obj: ContextMenu = new ContextMenu() + obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) + return obj + } +} export class ContextMenu implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_contextmenu(): KPointer { const retval = ArkUIGeneratedNativeModule._ContextMenu_ctor() return retval } @@ -38,7 +43,7 @@ export class ContextMenu implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = ContextMenu.ctor() + const ctorPtr: KPointer = ContextMenu.ctor_contextmenu() this.peer = new Finalizable(ctorPtr, ContextMenu.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +57,3 @@ export class ContextMenu implements MaterializedBase { return retval } } -export class ContextMenuInternal { - public static fromPtr(ptr: KPointer): ContextMenu { - const obj: ContextMenu = new ContextMenu() - obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkControllerHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts index 4fe650371..e0495fcd0 100644 --- a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -19,26 +19,31 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ControllerHandlerInternal { + public static fromPtr(ptr: KPointer): ControllerHandler { + const obj: ControllerHandler = new ControllerHandler() + obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) + return obj + } +} export class ControllerHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_controllerhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ControllerHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ControllerHandler.ctor() + const ctorPtr: KPointer = ControllerHandler.ctor_controllerhandler() this.peer = new Finalizable(ctorPtr, ControllerHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class ControllerHandler implements MaterializedBase { thisSerializer.release() } } -export class ControllerHandlerInternal { - public static fromPtr(ptr: KPointer): ControllerHandler { - const obj: ControllerHandler = new ControllerHandler() - obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCounter.ts b/arkoala/arkui/src/generated/ArkCounter.ts similarity index 97% rename from arkoala/arkui/src/ArkCounter.ts rename to arkoala/arkui/src/generated/ArkCounter.ts index 7e5dea1d4..b8e7b8b7d 100644 --- a/arkoala/arkui/src/ArkCounter.ts +++ b/arkoala/arkui/src/generated/ArkCounter.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCounterInterfaces.ts b/arkoala/arkui/src/generated/ArkCounterInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCounterInterfaces.ts rename to arkoala/arkui/src/generated/ArkCounterInterfaces.ts index 021e30900..a960c23ac 100644 --- a/arkoala/arkui/src/ArkCounterInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCounterInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts new file mode 100644 index 000000000..9b80e9eba --- /dev/null +++ b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { PointerStyle } from "./ArkArkuiCustomInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace cursorControl { + export class GlobalScope_cursorControl_common { + public static setCursor(value: PointerStyle): void { + const value_casted = value as (PointerStyle) + GlobalScope_cursorControl_common.setCursor_serialize(value_casted) + return + } + public static restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault_serialize() + return + } + private static setCursor_serialize(value: PointerStyle): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_setCursor(value) + } + private static restoreDefault_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_restoreDefault() + } + } +} +export namespace cursorControl { + export function setCursor(value: PointerStyle): void { + GlobalScope_cursorControl_common.setCursor(value) + } + export function restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault() + } +} diff --git a/arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts b/arkoala/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts rename to arkoala/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts diff --git a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index 7c06f4fd7..4e3f32311 100644 --- a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -24,21 +24,26 @@ import { BorderStyle, Curve, PlayMode, Color, ColoringStrategy } from "./ArkEnum import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { DismissDialogAction } from "./ArkActionSheetInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CustomDialogControllerInternal { + public static fromPtr(ptr: KPointer): CustomDialogController { + const obj: CustomDialogController = new CustomDialogController(undefined) + obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) + return obj + } +} export class CustomDialogController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: CustomDialogControllerOptions): KPointer { + static ctor_customdialogcontroller(value: CustomDialogControllerOptions): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeCustomDialogControllerOptions(value) const retval = ArkUIGeneratedNativeModule._CustomDialogController_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -46,9 +51,9 @@ export class CustomDialogController implements MaterializedBase { return retval } constructor(value?: CustomDialogControllerOptions) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = CustomDialogController.ctor(value) + const ctorPtr: KPointer = CustomDialogController.ctor_customdialogcontroller(value) this.peer = new Finalizable(ctorPtr, CustomDialogController.getFinalizer()) } } @@ -70,10 +75,3 @@ export class CustomDialogController implements MaterializedBase { return retval } } -export class CustomDialogControllerInternal { - public static fromPtr(ptr: KPointer): CustomDialogController { - const obj: CustomDialogController = new CustomDialogController(undefined) - obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCustomSpanMaterialized.ts rename to arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts index 40e0197b9..8d7ee26b0 100644 --- a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -18,26 +18,31 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CustomSpanInternal { + public static fromPtr(ptr: KPointer): CustomSpan { + const obj: CustomSpan = new CustomSpan() + obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) + return obj + } +} export class CustomSpan implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_customspan(): KPointer { const retval = ArkUIGeneratedNativeModule._CustomSpan_ctor() return retval } constructor() { - const ctorPtr: KPointer = CustomSpan.ctor() + const ctorPtr: KPointer = CustomSpan.ctor_customspan() this.peer = new Finalizable(ctorPtr, CustomSpan.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,7 +67,7 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readCustomSpanMetrics() } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer: Serializer = Serializer.hold() @@ -75,10 +80,3 @@ export class CustomSpan implements MaterializedBase { ArkUIGeneratedNativeModule._CustomSpan_invalidate(this.peer!.ptr) } } -export class CustomSpanInternal { - public static fromPtr(ptr: KPointer): CustomSpan { - const obj: CustomSpan = new CustomSpan() - obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDataPanel.ts b/arkoala/arkui/src/generated/ArkDataPanel.ts similarity index 97% rename from arkoala/arkui/src/ArkDataPanel.ts rename to arkoala/arkui/src/generated/ArkDataPanel.ts index 64d336400..fea30acc7 100644 --- a/arkoala/arkui/src/ArkDataPanel.ts +++ b/arkoala/arkui/src/generated/ArkDataPanel.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDataPanelInterfaces.ts b/arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDataPanelInterfaces.ts rename to arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts index 7614adc97..b01d741a2 100644 --- a/arkoala/arkui/src/ArkDataPanelInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index 1d21bd95d..f96084bde 100644 --- a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DataResubmissionHandlerInternal { + public static fromPtr(ptr: KPointer): DataResubmissionHandler { + const obj: DataResubmissionHandler = new DataResubmissionHandler() + obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) + return obj + } +} export class DataResubmissionHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dataresubmissionhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._DataResubmissionHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = DataResubmissionHandler.ctor() + const ctorPtr: KPointer = DataResubmissionHandler.ctor_dataresubmissionhandler() this.peer = new Finalizable(ctorPtr, DataResubmissionHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class DataResubmissionHandler implements MaterializedBase { ArkUIGeneratedNativeModule._DataResubmissionHandler_cancel(this.peer!.ptr) } } -export class DataResubmissionHandlerInternal { - public static fromPtr(ptr: KPointer): DataResubmissionHandler { - const obj: DataResubmissionHandler = new DataResubmissionHandler() - obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDatePicker.ts b/arkoala/arkui/src/generated/ArkDatePicker.ts similarity index 98% rename from arkoala/arkui/src/ArkDatePicker.ts rename to arkoala/arkui/src/generated/ArkDatePicker.ts index 0eec52abc..2167a9545 100644 --- a/arkoala/arkui/src/ArkDatePicker.ts +++ b/arkoala/arkui/src/generated/ArkDatePicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index 6ffe8405e..db44ef50b 100644 --- a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -24,21 +24,26 @@ import { DateTimeOptions } from "./ArkTimePickerInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DatePickerDialogInternal { + public static fromPtr(ptr: KPointer): DatePickerDialog { + const obj: DatePickerDialog = new DatePickerDialog() + obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) + return obj + } +} export class DatePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_datepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._DatePickerDialog_ctor() return retval } @@ -46,7 +51,7 @@ export class DatePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = DatePickerDialog.ctor() + const ctorPtr: KPointer = DatePickerDialog.ctor_datepickerdialog() this.peer = new Finalizable(ctorPtr, DatePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +75,3 @@ export class DatePickerDialog implements MaterializedBase { return retval } } -export class DatePickerDialogInternal { - public static fromPtr(ptr: KPointer): DatePickerDialog { - const obj: DatePickerDialog = new DatePickerDialog() - obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDatePickerInterfaces.ts b/arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDatePickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts index 95e880fc2..2664a63f8 100644 --- a/arkoala/arkui/src/ArkDatePickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkDecorationStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts index 68e1c7eab..8a9c5857c 100644 --- a/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -20,15 +20,20 @@ import { TextDecorationType, TextDecorationStyle, Color } from "./ArkEnumsInterf import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DecorationStyleInternal { + public static fromPtr(ptr: KPointer): DecorationStyle { + const obj: DecorationStyle = new DecorationStyle(undefined) + obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) + return obj + } +} export class DecorationStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,7 +48,7 @@ export class DecorationStyle implements MaterializedBase { get style(): TextDecorationStyle { return this.getStyle() } - static ctor(value: DecorationStyleInterface): KPointer { + static ctor_decorationstyle(value: DecorationStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeDecorationStyleInterface(value) const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -51,9 +56,9 @@ export class DecorationStyle implements MaterializedBase { return retval } constructor(value?: DecorationStyleInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = DecorationStyle.ctor(value) + const ctorPtr: KPointer = DecorationStyle.ctor_decorationstyle(value) this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) } } @@ -75,10 +80,3 @@ export class DecorationStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DecorationStyleInternal { - public static fromPtr(ptr: KPointer): DecorationStyle { - const obj: DecorationStyle = new DecorationStyle(undefined) - obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkDigitIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkDigitIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkDigitIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index d6dabd63a..cafe1f2d7 100644 --- a/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DisappearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): DisappearSymbolEffect { + const obj: DisappearSymbolEffect = new DisappearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) + return obj + } +} export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_disappearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = DisappearSymbolEffect.ctor(scope) + const ctorPtr: KPointer = DisappearSymbolEffect.ctor_disappearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class DisappearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): DisappearSymbolEffect { - const obj: DisappearSymbolEffect = new DisappearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDivider.ts b/arkoala/arkui/src/generated/ArkDivider.ts similarity index 97% rename from arkoala/arkui/src/ArkDivider.ts rename to arkoala/arkui/src/generated/ArkDivider.ts index c16926aee..e50cbd47e 100644 --- a/arkoala/arkui/src/ArkDivider.ts +++ b/arkoala/arkui/src/generated/ArkDivider.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDividerInterfaces.ts b/arkoala/arkui/src/generated/ArkDividerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDividerInterfaces.ts rename to arkoala/arkui/src/generated/ArkDividerInterfaces.ts index 888379d19..82314ce51 100644 --- a/arkoala/arkui/src/ArkDividerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDividerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDotIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkDotIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkDotIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkDotIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkDragEventMaterialized.ts b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkDragEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkDragEventMaterialized.ts index f6e245835..f9fea9ad0 100644 --- a/arkoala/arkui/src/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts @@ -19,12 +19,11 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -65,12 +64,12 @@ export class DragEventInternal implements MaterializedBase,DragEvent { set useCustomDropAnimation(useCustomDropAnimation: boolean) { this.setUseCustomDropAnimation(useCustomDropAnimation) } - static ctor(): KPointer { + static ctor_dragevent(): KPointer { const retval = ArkUIGeneratedNativeModule._DragEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = DragEventInternal.ctor() + const ctorPtr: KPointer = DragEventInternal.ctor_dragevent() this.peer = new Finalizable(ctorPtr, DragEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -181,7 +180,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readSummary() } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, dragResult) @@ -192,7 +191,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRectangle() } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkDrawModifierMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts index ad2be30b0..9517a2a96 100644 --- a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawModifierInternal { + public static fromPtr(ptr: KPointer): DrawModifier { + const obj: DrawModifier = new DrawModifier() + obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) + return obj + } +} export class DrawModifier implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_drawmodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._DrawModifier_ctor() return retval } constructor() { - const ctorPtr: KPointer = DrawModifier.ctor() + const ctorPtr: KPointer = DrawModifier.ctor_drawmodifier() this.peer = new Finalizable(ctorPtr, DrawModifier.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class DrawModifier implements MaterializedBase { ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) } } -export class DrawModifierInternal { - public static fromPtr(ptr: KPointer): DrawModifier { - const obj: DrawModifier = new DrawModifier() - obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index 542d34301..bb2fc63d4 100644 --- a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawingCanvasInternal { + public static fromPtr(ptr: KPointer): DrawingCanvas { + const obj: DrawingCanvas = new DrawingCanvas(undefined) + obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) + return obj + } +} export class DrawingCanvas implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(pixelmap: PixelMap): KPointer { + static ctor_drawingcanvas(pixelmap: PixelMap): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writePixelMap(pixelmap) const retval = ArkUIGeneratedNativeModule._DrawingCanvas_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -39,9 +44,9 @@ export class DrawingCanvas implements MaterializedBase { return retval } constructor(pixelmap?: PixelMap) { - if (((pixelmap) !== (undefined))) + if ((pixelmap) !== (undefined)) { - const ctorPtr: KPointer = DrawingCanvas.ctor(pixelmap) + const ctorPtr: KPointer = DrawingCanvas.ctor_drawingcanvas(pixelmap) this.peer = new Finalizable(ctorPtr, DrawingCanvas.getFinalizer()) } } @@ -60,10 +65,3 @@ export class DrawingCanvas implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingCanvas_drawRect(this.peer!.ptr, left, top, right, bottom) } } -export class DrawingCanvasInternal { - public static fromPtr(ptr: KPointer): DrawingCanvas { - const obj: DrawingCanvas = new DrawingCanvas(undefined) - obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index aa2970a4f..b5d647867 100644 --- a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,15 +20,20 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawingRenderingContextInternal { + public static fromPtr(ptr: KPointer): DrawingRenderingContext { + const obj: DrawingRenderingContext = new DrawingRenderingContext(undefined) + obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) + return obj + } +} export class DrawingRenderingContext implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -40,7 +45,7 @@ export class DrawingRenderingContext implements MaterializedBase { get canvas(): DrawingCanvas { throw new Error("Not implemented") } - static ctor(unit?: LengthMetricsUnit): KPointer { + static ctor_drawingrenderingcontext(unit?: LengthMetricsUnit): KPointer { const thisSerializer: Serializer = Serializer.hold() let unit_type: int32 = RuntimeType.UNDEFINED unit_type = runtimeType(unit) @@ -54,7 +59,7 @@ export class DrawingRenderingContext implements MaterializedBase { return retval } constructor(unit?: LengthMetricsUnit) { - const ctorPtr: KPointer = DrawingRenderingContext.ctor(unit) + const ctorPtr: KPointer = DrawingRenderingContext.ctor_drawingrenderingcontext(unit) this.peer = new Finalizable(ctorPtr, DrawingRenderingContext.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class DrawingRenderingContext implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingRenderingContext_invalidate(this.peer!.ptr) } } -export class DrawingRenderingContextInternal { - public static fromPtr(ptr: KPointer): DrawingRenderingContext { - const obj: DrawingRenderingContext = new DrawingRenderingContext(undefined) - obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkDynamicNodeMaterialized.ts rename to arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts index 79b47879c..beff44b35 100644 --- a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { OnMoveHandler } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DynamicNodeInternal { + public static fromPtr(ptr: KPointer): DynamicNode { + const obj: DynamicNode = new DynamicNode() + obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) + return obj + } +} export class DynamicNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dynamicnode(): KPointer { const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() return retval } constructor() { - const ctorPtr: KPointer = DynamicNode.ctor() + const ctorPtr: KPointer = DynamicNode.ctor_dynamicnode() this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) } static getFinalizer(): KPointer { @@ -60,10 +65,3 @@ export class DynamicNode implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj: DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index dff3d3684..045c52244 100644 --- a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -20,12 +20,10 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { ResourceStr } from "./ArkUnitsInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./ArkTextMenuItemIdMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_editmenuoptions(): KPointer { const retval = ArkUIGeneratedNativeModule._EditMenuOptions_ctor() return retval } constructor() { - const ctorPtr: KPointer = EditMenuOptionsInternal.ctor() + const ctorPtr: KPointer = EditMenuOptionsInternal.ctor_editmenuoptions() this.peer = new Finalizable(ctorPtr, EditMenuOptionsInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkEffectComponent.ts b/arkoala/arkui/src/generated/ArkEffectComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkEffectComponent.ts rename to arkoala/arkui/src/generated/ArkEffectComponent.ts index 174dd20e3..4bc1be8e2 100644 --- a/arkoala/arkui/src/ArkEffectComponent.ts +++ b/arkoala/arkui/src/generated/ArkEffectComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEffectComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEffectComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts index e6ab52291..a77cdd653 100644 --- a/arkoala/arkui/src/ArkEffectComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEllipse.ts b/arkoala/arkui/src/generated/ArkEllipse.ts similarity index 97% rename from arkoala/arkui/src/ArkEllipse.ts rename to arkoala/arkui/src/generated/ArkEllipse.ts index 9df03fe3f..971cb0b17 100644 --- a/arkoala/arkui/src/ArkEllipse.ts +++ b/arkoala/arkui/src/generated/ArkEllipse.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEllipseInterfaces.ts b/arkoala/arkui/src/generated/ArkEllipseInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEllipseInterfaces.ts rename to arkoala/arkui/src/generated/ArkEllipseInterfaces.ts index 7378bcafb..d66ab3799 100644 --- a/arkoala/arkui/src/ArkEllipseInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEllipseInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEmbeddedComponent.ts b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkEmbeddedComponent.ts rename to arkoala/arkui/src/generated/ArkEmbeddedComponent.ts index 8b4ad74f1..995ec38ad 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponent.ts +++ b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts index 4e68bfe95..92f0695f7 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEnumsInterfaces.ts b/arkoala/arkui/src/generated/ArkEnumsInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkEnumsInterfaces.ts rename to arkoala/arkui/src/generated/ArkEnumsInterfaces.ts diff --git a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkEventEmulatorMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 5024cdc44..d97c98763 100644 --- a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -20,21 +20,26 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventEmulatorInternal { + public static fromPtr(ptr: KPointer): EventEmulator { + const obj: EventEmulator = new EventEmulator() + obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) + return obj + } +} export class EventEmulator implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventemulator(): KPointer { const retval = ArkUIGeneratedNativeModule._EventEmulator_ctor() return retval } @@ -42,7 +47,7 @@ export class EventEmulator implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = EventEmulator.ctor() + const ctorPtr: KPointer = EventEmulator.ctor_eventemulator() this.peer = new Finalizable(ctorPtr, EventEmulator.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +75,3 @@ export class EventEmulator implements MaterializedBase { ArkUIGeneratedNativeModule._EventEmulator_emitTextInputEvent(node, text) } } -export class EventEmulatorInternal { - public static fromPtr(ptr: KPointer): EventEmulator { - const obj: EventEmulator = new EventEmulator() - obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEventResultMaterialized.ts b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkEventResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventResultMaterialized.ts index ae32b7c07..dda721729 100644 --- a/arkoala/arkui/src/ArkEventResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventResultInternal { + public static fromPtr(ptr: KPointer): EventResult { + const obj: EventResult = new EventResult() + obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) + return obj + } +} export class EventResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventresult(): KPointer { const retval = ArkUIGeneratedNativeModule._EventResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = EventResult.ctor() + const ctorPtr: KPointer = EventResult.ctor_eventresult() this.peer = new Finalizable(ctorPtr, EventResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +55,3 @@ export class EventResult implements MaterializedBase { ArkUIGeneratedNativeModule._EventResult_setGestureEventResult(this.peer!.ptr, +result) } } -export class EventResultInternal { - public static fromPtr(ptr: KPointer): EventResult { - const obj: EventResult = new EventResult() - obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index cd5baa79a..61643afab 100644 --- a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventTargetInfoInternal { + public static fromPtr(ptr: KPointer): EventTargetInfo { + const obj: EventTargetInfo = new EventTargetInfo() + obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) + return obj + } +} export class EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventtargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._EventTargetInfo_ctor() return retval } constructor() { - const ctorPtr: KPointer = EventTargetInfo.ctor() + const ctorPtr: KPointer = EventTargetInfo.ctor_eventtargetinfo() this.peer = new Finalizable(ctorPtr, EventTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +54,3 @@ export class EventTargetInfo implements MaterializedBase { return retval } } -export class EventTargetInfoInternal { - public static fromPtr(ptr: KPointer): EventTargetInfo { - const obj: EventTargetInfo = new EventTargetInfo() - obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts rename to arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index e8cc5f306..401241450 100644 --- a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { FileSelectorMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FileSelectorParamInternal { + public static fromPtr(ptr: KPointer): FileSelectorParam { + const obj: FileSelectorParam = new FileSelectorParam() + obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) + return obj + } +} export class FileSelectorParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorparam(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_ctor() return retval } constructor() { - const ctorPtr: KPointer = FileSelectorParam.ctor() + const ctorPtr: KPointer = FileSelectorParam.ctor_fileselectorparam() this.peer = new Finalizable(ctorPtr, FileSelectorParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -71,10 +76,3 @@ export class FileSelectorParam implements MaterializedBase { return retval } } -export class FileSelectorParamInternal { - public static fromPtr(ptr: KPointer): FileSelectorParam { - const obj: FileSelectorParam = new FileSelectorParam() - obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index 4a912028e..a7c04040a 100644 --- a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FileSelectorResultInternal { + public static fromPtr(ptr: KPointer): FileSelectorResult { + const obj: FileSelectorResult = new FileSelectorResult() + obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) + return obj + } +} export class FileSelectorResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorresult(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = FileSelectorResult.ctor() + const ctorPtr: KPointer = FileSelectorResult.ctor_fileselectorresult() this.peer = new Finalizable(ctorPtr, FileSelectorResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +62,3 @@ export class FileSelectorResult implements MaterializedBase { thisSerializer.release() } } -export class FileSelectorResultInternal { - public static fromPtr(ptr: KPointer): FileSelectorResult { - const obj: FileSelectorResult = new FileSelectorResult() - obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFlex.ts b/arkoala/arkui/src/generated/ArkFlex.ts similarity index 97% rename from arkoala/arkui/src/ArkFlex.ts rename to arkoala/arkui/src/generated/ArkFlex.ts index 16caa8a5b..95797168c 100644 --- a/arkoala/arkui/src/ArkFlex.ts +++ b/arkoala/arkui/src/generated/ArkFlex.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlexInterfaces.ts b/arkoala/arkui/src/generated/ArkFlexInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFlexInterfaces.ts rename to arkoala/arkui/src/generated/ArkFlexInterfaces.ts index 583af4efc..4ba88f8c8 100644 --- a/arkoala/arkui/src/ArkFlexInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFlexInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlowItem.ts b/arkoala/arkui/src/generated/ArkFlowItem.ts similarity index 97% rename from arkoala/arkui/src/ArkFlowItem.ts rename to arkoala/arkui/src/generated/ArkFlowItem.ts index 5bd108f32..c1744583f 100644 --- a/arkoala/arkui/src/ArkFlowItem.ts +++ b/arkoala/arkui/src/generated/ArkFlowItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlowItemInterfaces.ts b/arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFlowItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts index 9c15f3cb2..5ba889be6 100644 --- a/arkoala/arkui/src/ArkFlowItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts b/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts new file mode 100644 index 000000000..0c776fff3 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace focusControl { + export class GlobalScope_focusControl_common { + public static requestFocus(value: string): boolean { + const value_casted = value as (string) + return GlobalScope_focusControl_common.requestFocus_serialize(value_casted) + } + private static requestFocus_serialize(value: string): boolean { + const retval = ArkUIGeneratedNativeModule._GlobalScope_focusControl_common_requestFocus(value) + return retval + } + } +} +export namespace focusControl { + export function requestFocus(value: string): boolean { + return GlobalScope_focusControl_common.requestFocus(value) + } +} diff --git a/arkoala/arkui/src/ArkFocusInterfaces.ts b/arkoala/arkui/src/generated/ArkFocusInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkFocusInterfaces.ts rename to arkoala/arkui/src/generated/ArkFocusInterfaces.ts diff --git a/arkoala/arkui/src/ArkFolderStack.ts b/arkoala/arkui/src/generated/ArkFolderStack.ts similarity index 97% rename from arkoala/arkui/src/ArkFolderStack.ts rename to arkoala/arkui/src/generated/ArkFolderStack.ts index 2d8c16d86..95f242154 100644 --- a/arkoala/arkui/src/ArkFolderStack.ts +++ b/arkoala/arkui/src/generated/ArkFolderStack.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFolderStackInterfaces.ts b/arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFolderStackInterfaces.ts rename to arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts index b42fe6d9a..534dbef58 100644 --- a/arkoala/arkui/src/ArkFolderStackInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormComponent.ts b/arkoala/arkui/src/generated/ArkFormComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkFormComponent.ts rename to arkoala/arkui/src/generated/ArkFormComponent.ts index 187992b71..adeb4cdc1 100644 --- a/arkoala/arkui/src/ArkFormComponent.ts +++ b/arkoala/arkui/src/generated/ArkFormComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFormComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts index b739117e8..995aafe54 100644 --- a/arkoala/arkui/src/ArkFormComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormLink.ts b/arkoala/arkui/src/generated/ArkFormLink.ts similarity index 97% rename from arkoala/arkui/src/ArkFormLink.ts rename to arkoala/arkui/src/generated/ArkFormLink.ts index 1e5194e0a..c652f789f 100644 --- a/arkoala/arkui/src/ArkFormLink.ts +++ b/arkoala/arkui/src/generated/ArkFormLink.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormLinkInterfaces.ts b/arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFormLinkInterfaces.ts rename to arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts index c43384f92..9f7203848 100644 --- a/arkoala/arkui/src/ArkFormLinkInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkFrameNodeMaterialized.ts rename to arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts index 8b1132e48..237729041 100644 --- a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -18,21 +18,26 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FrameNodeInternal { + public static fromPtr(ptr: KPointer): FrameNode { + const obj: FrameNode = new FrameNode(undefined) + obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) + return obj + } +} export class FrameNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(uiContext: UIContext): KPointer { + static ctor_framenode(uiContext: UIContext): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeUIContext(uiContext) const retval = ArkUIGeneratedNativeModule._FrameNode_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -40,9 +45,9 @@ export class FrameNode implements MaterializedBase { return retval } constructor(uiContext?: UIContext) { - if (((uiContext) !== (undefined))) + if ((uiContext) !== (undefined)) { - const ctorPtr: KPointer = FrameNode.ctor(uiContext) + const ctorPtr: KPointer = FrameNode.ctor_framenode(uiContext) this.peer = new Finalizable(ctorPtr, FrameNode.getFinalizer()) } } @@ -165,13 +170,6 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class FrameNodeInternal { - public static fromPtr(ptr: KPointer): FrameNode { - const obj: FrameNode = new FrameNode(undefined) - obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) - return obj + return new Deserializer(retval, retval.byteLength).readPosition() } } diff --git a/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts similarity index 85% rename from arkoala/arkui/src/ArkFrictionMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts index ed526f5e9..1473dc5ff 100644 --- a/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -16,28 +16,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FrictionMotionInternal { + public static fromPtr(ptr: KPointer): FrictionMotion { + const obj: FrictionMotion = new FrictionMotion(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) + return obj + } +} export class FrictionMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(friction: number, position: number, velocity: number): KPointer { + static ctor_frictionmotion(friction: number, position: number, velocity: number): KPointer { const retval = ArkUIGeneratedNativeModule._FrictionMotion_ctor(friction, position, velocity) return retval } constructor(friction?: number, position?: number, velocity?: number) { if (((friction) !== (undefined)) && ((position) !== (undefined)) && ((velocity) !== (undefined))) { - const ctorPtr: KPointer = FrictionMotion.ctor(friction, position, velocity) + const ctorPtr: KPointer = FrictionMotion.ctor_frictionmotion(friction, position, velocity) this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) } } @@ -45,10 +50,3 @@ export class FrictionMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._FrictionMotion_getFinalizer() } } -export class FrictionMotionInternal { - public static fromPtr(ptr: KPointer): FrictionMotion { - const obj: FrictionMotion = new FrictionMotion(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 8dff82d9d..c7c68bde0 100644 --- a/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FullScreenExitHandlerInternal { + public static fromPtr(ptr: KPointer): FullScreenExitHandler { + const obj: FullScreenExitHandler = new FullScreenExitHandler() + obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) + return obj + } +} export class FullScreenExitHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fullscreenexithandler(): KPointer { const retval = ArkUIGeneratedNativeModule._FullScreenExitHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = FullScreenExitHandler.ctor() + const ctorPtr: KPointer = FullScreenExitHandler.ctor_fullscreenexithandler() this.peer = new Finalizable(ctorPtr, FullScreenExitHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +54,3 @@ export class FullScreenExitHandler implements MaterializedBase { ArkUIGeneratedNativeModule._FullScreenExitHandler_exitFullScreen(this.peer!.ptr) } } -export class FullScreenExitHandlerInternal { - public static fromPtr(ptr: KPointer): FullScreenExitHandler { - const obj: FullScreenExitHandler = new FullScreenExitHandler() - obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGauge.ts b/arkoala/arkui/src/generated/ArkGauge.ts similarity index 98% rename from arkoala/arkui/src/ArkGauge.ts rename to arkoala/arkui/src/generated/ArkGauge.ts index 984793a04..00dafcc49 100644 --- a/arkoala/arkui/src/ArkGauge.ts +++ b/arkoala/arkui/src/generated/ArkGauge.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGaugeInterfaces.ts b/arkoala/arkui/src/generated/ArkGaugeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGaugeInterfaces.ts rename to arkoala/arkui/src/generated/ArkGaugeInterfaces.ts index 35ba2b0ea..add4207d3 100644 --- a/arkoala/arkui/src/ArkGaugeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGaugeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGestureControlNamespace.ts b/arkoala/arkui/src/generated/ArkGestureControlNamespace.ts similarity index 100% rename from arkoala/arkui/src/ArkGestureControlNamespace.ts rename to arkoala/arkui/src/generated/ArkGestureControlNamespace.ts diff --git a/arkoala/arkui/src/ArkGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts index a27ee6e21..bfe48a117 100644 --- a/arkoala/arkui/src/ArkGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -120,13 +119,13 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_gestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = GestureEventInternal.ctor() + const ctorPtr: KPointer = GestureEventInternal.ctor_gestureevent() this.peer = new Finalizable(ctorPtr, GestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -140,6 +139,9 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali this?.setRepeat_serialize(repeat_casted) return } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this?.setFingerList_serialize(fingerList_casted) @@ -232,6 +234,10 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali private setRepeat_serialize(repeat: boolean): void { ArkUIGeneratedNativeModule._GestureEvent_setRepeat(this.peer!.ptr, +repeat) } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length) diff --git a/arkoala/arkui/src/ArkGestureInterfaces.ts b/arkoala/arkui/src/generated/ArkGestureInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkGestureInterfaces.ts rename to arkoala/arkui/src/generated/ArkGestureInterfaces.ts diff --git a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkGestureModifierMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts index 40dce61c6..b6b06f172 100644 --- a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,12 +18,10 @@ import { UIGestureEvent, SourceTool } from "./ArkCommonInterfaces" import { GestureHandler, GesturePriority, GestureMask, GestureInterface } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -35,12 +33,12 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturemodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureModifier_ctor() return retval } constructor() { - const ctorPtr: KPointer = GestureModifierInternal.ctor() + const ctorPtr: KPointer = GestureModifierInternal.ctor_gesturemodifier() this.peer = new Finalizable(ctorPtr, GestureModifierInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 2193cdf8e..b53bbfa00 100644 --- a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -19,26 +19,31 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GestureRecognizerInternal { + public static fromPtr(ptr: KPointer): GestureRecognizer { + const obj: GestureRecognizer = new GestureRecognizer() + obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) + return obj + } +} export class GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturerecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureRecognizer_ctor() return retval } constructor() { - const ctorPtr: KPointer = GestureRecognizer.ctor() + const ctorPtr: KPointer = GestureRecognizer.ctor_gesturerecognizer() this.peer = new Finalizable(ctorPtr, GestureRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +107,3 @@ export class GestureRecognizer implements MaterializedBase { return retval } } -export class GestureRecognizerInternal { - public static fromPtr(ptr: KPointer): GestureRecognizer { - const obj: GestureRecognizer = new GestureRecognizer() - obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGestureStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkGestureStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts index 6af754a3e..8dcdb12ac 100644 --- a/arkoala/arkui/src/ArkGestureStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -23,21 +23,27 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GestureStyleInternal { + public static fromPtr(ptr: KPointer): GestureStyle { + const obj: GestureStyle = new GestureStyle(undefined) + obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) + return obj + } +} export class GestureStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: GestureStyleInterface): KPointer { + static ctor_gesturestyle(value?: GestureStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -51,17 +57,10 @@ export class GestureStyle implements MaterializedBase { return retval } constructor(value?: GestureStyleInterface) { - const ctorPtr: KPointer = GestureStyle.ctor(value) + const ctorPtr: KPointer = GestureStyle.ctor_gesturestyle(value) this.peer = new Finalizable(ctorPtr, GestureStyle.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureStyle_getFinalizer() } } -export class GestureStyleInternal { - public static fromPtr(ptr: KPointer): GestureStyle { - const obj: GestureStyle = new GestureStyle(undefined) - obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 48fbd6788..f21d97d46 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -18,21 +18,26 @@ import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GlobalScope_ohos_arkui_componentSnapshotInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { + const obj: GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_componentsnapshot(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_ctor() return retval } @@ -40,7 +45,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor() + const ctorPtr: KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor_globalscope_ohos_arkui_componentsnapshot() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +72,3 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas thisSerializer.release() } } -export class GlobalScope_ohos_arkui_componentSnapshotInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { - const obj: GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 24b4d5a91..9a9cf7789 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GlobalScope_ohos_arkui_performanceMonitorInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { + const obj: GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_performancemonitor(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_ctor() return retval } @@ -39,7 +44,7 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor() + const ctorPtr: KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor_globalscope_ohos_arkui_performancemonitor() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType, sourceType, time) } } -export class GlobalScope_ohos_arkui_performanceMonitorInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { - const obj: GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts similarity index 61% rename from arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts index 74b2afec3..1003f574d 100644 --- a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts @@ -18,86 +18,70 @@ import { Context, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScope_common { +export class GlobalScopecommon { public static getContext(component?: Object): Context { const component_casted = component as (Object | undefined) - return GlobalScope_common.getContext_serialize(component_casted) + return GlobalScopecommon.getContext_serialize(component_casted) } public static postCardAction(component: Object, action: Object): void { const component_casted = component as (Object) const action_casted = action as (Object) - GlobalScope_common.postCardAction_serialize(component_casted, action_casted) + GlobalScopecommon.postCardAction_serialize(component_casted, action_casted) return } public static dollar_r(value: string, params: Array): Resource { const value_casted = value as (string) const params_casted = params as (Array) - return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) + return GlobalScopecommon.dollar_r_serialize(value_casted, params_casted) } public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) - return GlobalScope_common.dollar_rawfile_serialize(value_casted) + return GlobalScopecommon.dollar_rawfile_serialize(value_casted) } public static animateTo(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScope_common.animateTo_serialize(value_casted, event_casted) + GlobalScopecommon.animateTo_serialize(value_casted, event_casted) return } public static animateToImmediately(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) + GlobalScopecommon.animateToImmediately_serialize(value_casted, event_casted) return } public static vp2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.vp2px_serialize(value_casted) + return GlobalScopecommon.vp2px_serialize(value_casted) } public static px2vp(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2vp_serialize(value_casted) + return GlobalScopecommon.px2vp_serialize(value_casted) } public static fp2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.fp2px_serialize(value_casted) + return GlobalScopecommon.fp2px_serialize(value_casted) } public static px2fp(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2fp_serialize(value_casted) + return GlobalScopecommon.px2fp_serialize(value_casted) } public static lpx2px(value: number): number { const value_casted = value as (number) - return GlobalScope_common.lpx2px_serialize(value_casted) + return GlobalScopecommon.lpx2px_serialize(value_casted) } public static px2lpx(value: number): number { const value_casted = value as (number) - return GlobalScope_common.px2lpx_serialize(value_casted) - } - public static requestFocus(value: string): boolean { - const value_casted = value as (string) - return GlobalScope_common.requestFocus_serialize(value_casted) - } - public static setCursor(value: PointerStyle): void { - const value_casted = value as (PointerStyle) - GlobalScope_common.setCursor_serialize(value_casted) - return - } - public static restoreDefault(): void { - GlobalScope_common.restoreDefault_serialize() - return + return GlobalScopecommon.px2lpx_serialize(value_casted) } private static getContext_serialize(component?: Object): Context { const thisSerializer: Serializer = Serializer.hold() @@ -108,15 +92,15 @@ export class GlobalScope_common { const component_value = component! thisSerializer.writeCustomObject("Object", component_value) } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_getContext(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readContext() } private static postCardAction_serialize(component: Object, action: Object): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeCustomObject("Object", component) thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_postCardAction(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static dollar_r_serialize(value: string, params: Array): Resource { @@ -126,60 +110,50 @@ export class GlobalScope_common { const params_element: any = params[i] thisSerializer.writeCustomObject("Any", params_element) } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readResource() } private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) - throw new Error("Object deserialization is not implemented.") + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_rawfile(value) + return new Deserializer(retval, retval.byteLength).readResource() } private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_animateTo(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScopecommon_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_vp2px(value) return retval } private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2vp(value) return retval } private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_fp2px(value) return retval } private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2fp(value) return retval } private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_lpx2px(value) return retval } private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) - return retval - } - private static requestFocus_serialize(value: string): boolean { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_requestFocus(value) + const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2lpx(value) return retval } - private static setCursor_serialize(value: PointerStyle): void { - ArkUIGeneratedNativeModule._GlobalScope_common_setCursor(value) - } - private static restoreDefault_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_common_restoreDefault() - } } diff --git a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts similarity index 52% rename from arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts index ac348a075..c5de85fa3 100644 --- a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts @@ -16,55 +16,35 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScope_inspector { +export class GlobalScopeinspector { public static getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes_serialize() + return GlobalScopeinspector.getInspectorNodes_serialize() } public static getInspectorNodeById(id: number): Object { const id_casted = id as (number) - return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) - } - public static registerVsyncCallback(callback_: ((info: string) => void)): void { - const callback__casted = callback_ as (((info: string) => void)) - GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) - return - } - public static unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback_serialize() - return + return GlobalScopeinspector.getInspectorNodeById_serialize(id_casted) } public static setAppBgColor(value: string): void { const value_casted = value as (string) - GlobalScope_inspector.setAppBgColor_serialize(value_casted) + GlobalScopeinspector.setAppBgColor_serialize(value_casted) return } private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() + const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodes() throw new Error("Object deserialization is not implemented.") } private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) + const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodeById(id) throw new Error("Object deserialization is not implemented.") } - private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(callback_) - ArkUIGeneratedNativeModule._GlobalScope_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static unregisterVsyncCallback_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_unregisterVsyncCallback() - } private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) + ArkUIGeneratedNativeModule._GlobalScopeinspector_setAppBgColor(value) } } diff --git a/arkoala/arkui/src/ArkGrid.ts b/arkoala/arkui/src/generated/ArkGrid.ts similarity index 98% rename from arkoala/arkui/src/ArkGrid.ts rename to arkoala/arkui/src/generated/ArkGrid.ts index b32d15421..f8df4b936 100644 --- a/arkoala/arkui/src/ArkGrid.ts +++ b/arkoala/arkui/src/generated/ArkGrid.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -159,12 +158,12 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkGridCol.ts b/arkoala/arkui/src/generated/ArkGridCol.ts similarity index 97% rename from arkoala/arkui/src/ArkGridCol.ts rename to arkoala/arkui/src/generated/ArkGridCol.ts index 6d1b0e483..f12236e13 100644 --- a/arkoala/arkui/src/ArkGridCol.ts +++ b/arkoala/arkui/src/generated/ArkGridCol.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridColInterfaces.ts b/arkoala/arkui/src/generated/ArkGridColInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridColInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridColInterfaces.ts index ad6f5e22c..906206fa1 100644 --- a/arkoala/arkui/src/ArkGridColInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridColInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridContainer.ts b/arkoala/arkui/src/generated/ArkGridContainer.ts similarity index 97% rename from arkoala/arkui/src/ArkGridContainer.ts rename to arkoala/arkui/src/generated/ArkGridContainer.ts index 168437aed..12897142b 100644 --- a/arkoala/arkui/src/ArkGridContainer.ts +++ b/arkoala/arkui/src/generated/ArkGridContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" import { ColumnAttribute } from "./ArkColumnInterfaces" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts index 46c65f535..37ce42052 100644 --- a/arkoala/arkui/src/ArkGridContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridInterfaces.ts b/arkoala/arkui/src/generated/ArkGridInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridInterfaces.ts index 6825effaf..0d4133910 100644 --- a/arkoala/arkui/src/ArkGridInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridItem.ts b/arkoala/arkui/src/generated/ArkGridItem.ts similarity index 98% rename from arkoala/arkui/src/ArkGridItem.ts rename to arkoala/arkui/src/generated/ArkGridItem.ts index 4b775117b..017252a2f 100644 --- a/arkoala/arkui/src/ArkGridItem.ts +++ b/arkoala/arkui/src/generated/ArkGridItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridItemInterfaces.ts b/arkoala/arkui/src/generated/ArkGridItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridItemInterfaces.ts index e1cb0d8f5..4d47c2b1c 100644 --- a/arkoala/arkui/src/ArkGridItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridRow.ts b/arkoala/arkui/src/generated/ArkGridRow.ts similarity index 97% rename from arkoala/arkui/src/ArkGridRow.ts rename to arkoala/arkui/src/generated/ArkGridRow.ts index 702b65ad5..3c1c444fe 100644 --- a/arkoala/arkui/src/ArkGridRow.ts +++ b/arkoala/arkui/src/generated/ArkGridRow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridRowInterfaces.ts b/arkoala/arkui/src/generated/ArkGridRowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridRowInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridRowInterfaces.ts index 3dce728d6..a777d2ee7 100644 --- a/arkoala/arkui/src/ArkGridRowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridRowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 44a25301c..a32e649c8 100644 --- a/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectFillStyle } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class HierarchicalSymbolEffectInternal { + public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { + const obj: HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) + return obj + } +} export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { const fillStyle_NonNull = (fillStyle as EffectFillStyle) this.setFillStyle(fillStyle_NonNull) } - static ctor(fillStyle?: EffectFillStyle): KPointer { + static ctor_hierarchicalsymboleffect(fillStyle?: EffectFillStyle): KPointer { const thisSerializer: Serializer = Serializer.hold() let fillStyle_type: int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) @@ -52,7 +57,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(fillStyle?: EffectFillStyle) { - const ctorPtr: KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + const ctorPtr: KPointer = HierarchicalSymbolEffect.ctor_hierarchicalsymboleffect(fillStyle) this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, fillStyle) } } -export class HierarchicalSymbolEffectInternal { - public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { - const obj: HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkHoverEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts index ceae53107..8ab4eee89 100644 --- a/arkoala/arkui/src/ArkHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -19,12 +19,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,13 +41,13 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_hoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._HoverEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = HoverEventInternal.ctor() + const ctorPtr: KPointer = HoverEventInternal.ctor_hoverevent() this.peer = new Finalizable(ctorPtr, HoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index d2c8c14c6..9f378488e 100644 --- a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class HttpAuthHandlerInternal { + public static fromPtr(ptr: KPointer): HttpAuthHandler { + const obj: HttpAuthHandler = new HttpAuthHandler() + obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) + return obj + } +} export class HttpAuthHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_httpauthhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._HttpAuthHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = HttpAuthHandler.ctor() + const ctorPtr: KPointer = HttpAuthHandler.ctor_httpauthhandler() this.peer = new Finalizable(ctorPtr, HttpAuthHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class HttpAuthHandler implements MaterializedBase { return retval } } -export class HttpAuthHandlerInternal { - public static fromPtr(ptr: KPointer): HttpAuthHandler { - const obj: HttpAuthHandler = new HttpAuthHandler() - obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkHyperlink.ts b/arkoala/arkui/src/generated/ArkHyperlink.ts similarity index 97% rename from arkoala/arkui/src/ArkHyperlink.ts rename to arkoala/arkui/src/generated/ArkHyperlink.ts index ec08a8f48..77f95abd1 100644 --- a/arkoala/arkui/src/ArkHyperlink.ts +++ b/arkoala/arkui/src/generated/ArkHyperlink.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkHyperlinkInterfaces.ts b/arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkHyperlinkInterfaces.ts rename to arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts index a04641a0f..0ef4bcefd 100644 --- a/arkoala/arkui/src/ArkHyperlinkInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkICurveMaterialized.ts b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkICurveMaterialized.ts rename to arkoala/arkui/src/generated/ArkICurveMaterialized.ts index 7c70763ad..f1ac9e18b 100644 --- a/arkoala/arkui/src/ArkICurveMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -33,12 +31,12 @@ export class ICurveInternal implements MaterializedBase,ICurve { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_icurve(): KPointer { const retval = ArkUIGeneratedNativeModule._ICurve_ctor() return retval } constructor() { - const ctorPtr: KPointer = ICurveInternal.ctor() + const ctorPtr: KPointer = ICurveInternal.ctor_icurve() this.peer = new Finalizable(ctorPtr, ICurveInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkImage.ts b/arkoala/arkui/src/generated/ArkImage.ts similarity index 93% rename from arkoala/arkui/src/ArkImage.ts rename to arkoala/arkui/src/generated/ArkImage.ts index 63bd982a8..42ffc5374 100644 --- a/arkoala/arkui/src/ArkImage.ts +++ b/arkoala/arkui/src/generated/ArkImage.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -65,18 +64,18 @@ export class ArkImageComponent extends ArkCommonMethodComponent { if (this.checkPriority("setImageOptions")) { const src_type = runtimeType(src) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub")))))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub"))))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) this.getPeer()?.setImageOptions0Attribute(src_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub")))))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub"))))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setImageOptions2Attribute(src_casted, imageAIOptions_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) || (((RuntimeType.NUMBER == src_type)))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) || (RuntimeType.NUMBER == src_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ImageContent) this.getPeer()?.setImageOptions1Attribute(src_casted) return this diff --git a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 6566b71aa..510ec1d29 100644 --- a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageAnalyzerControllerInternal { + public static fromPtr(ptr: KPointer): ImageAnalyzerController { + const obj: ImageAnalyzerController = new ImageAnalyzerController() + obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) + return obj + } +} export class ImageAnalyzerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_imageanalyzercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_ctor() return retval } constructor() { - const ctorPtr: KPointer = ImageAnalyzerController.ctor() + const ctorPtr: KPointer = ImageAnalyzerController.ctor_imageanalyzercontroller() this.peer = new Finalizable(ctorPtr, ImageAnalyzerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +55,3 @@ export class ImageAnalyzerController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAnalyzerControllerInternal { - public static fromPtr(ptr: KPointer): ImageAnalyzerController { - const obj: ImageAnalyzerController = new ImageAnalyzerController() - obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageAnimator.ts b/arkoala/arkui/src/generated/ArkImageAnimator.ts similarity index 98% rename from arkoala/arkui/src/ArkImageAnimator.ts rename to arkoala/arkui/src/generated/ArkImageAnimator.ts index 82571e076..63edd16d1 100644 --- a/arkoala/arkui/src/ArkImageAnimator.ts +++ b/arkoala/arkui/src/generated/ArkImageAnimator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts b/arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageAnimatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts index 43f11dfcf..09a446222 100644 --- a/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkImageAttachmentMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts index 8f5dded25..bad719627 100644 --- a/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -23,15 +23,20 @@ import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyle import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageAttachmentInternal { + public static fromPtr(ptr: KPointer): ImageAttachment { + const obj: ImageAttachment = new ImageAttachment(undefined) + obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) + return obj + } +} export class ImageAttachment implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -52,7 +57,7 @@ export class ImageAttachment implements MaterializedBase { get layoutStyle(): ImageAttachmentLayoutStyle { throw new Error("Not implemented") } - static ctor(value: ImageAttachmentInterface): KPointer { + static ctor_imageattachment(value: ImageAttachmentInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeImageAttachmentInterface(value) const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -60,9 +65,9 @@ export class ImageAttachment implements MaterializedBase { return retval } constructor(value?: ImageAttachmentInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = ImageAttachment.ctor(value) + const ctorPtr: KPointer = ImageAttachment.ctor_imageattachment(value) this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) } } @@ -84,10 +89,3 @@ export class ImageAttachment implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAttachmentInternal { - public static fromPtr(ptr: KPointer): ImageAttachment { - const obj: ImageAttachment = new ImageAttachment(undefined) - obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkImageBitmapMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts index 7ee93d18f..cb05f2503 100644 --- a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -18,15 +18,20 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageBitmapInternal { + public static fromPtr(ptr: KPointer): ImageBitmap { + const obj: ImageBitmap = new ImageBitmap(undefined) + obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) + return obj + } +} export class ImageBitmap implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,14 +43,14 @@ export class ImageBitmap implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(src: string): KPointer { + static ctor_imagebitmap(src: string): KPointer { const retval = ArkUIGeneratedNativeModule._ImageBitmap_ctor(src) return retval } constructor(src?: string) { - if (((src) !== (undefined))) + if ((src) !== (undefined)) { - const ctorPtr: KPointer = ImageBitmap.ctor(src) + const ctorPtr: KPointer = ImageBitmap.ctor_imagebitmap(src) this.peer = new Finalizable(ctorPtr, ImageBitmap.getFinalizer()) } } @@ -74,10 +79,3 @@ export class ImageBitmap implements MaterializedBase { return retval } } -export class ImageBitmapInternal { - public static fromPtr(ptr: KPointer): ImageBitmap { - const obj: ImageBitmap = new ImageBitmap(undefined) - obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkImageCommonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkImageCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageCommonInterfaces.ts diff --git a/arkoala/arkui/src/ArkImageDataMaterialized.ts b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkImageDataMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageDataMaterialized.ts index d467de1b5..b705a6472 100644 --- a/arkoala/arkui/src/ArkImageDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageDataInternal { + public static fromPtr(ptr: KPointer): ImageData { + const obj: ImageData = new ImageData(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) + return obj + } +} export class ImageData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -40,7 +45,7 @@ export class ImageData implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(width: number, height: number, data?: ArrayBuffer): KPointer { + static ctor_imagedata(width: number, height: number, data?: ArrayBuffer): KPointer { const thisSerializer: Serializer = Serializer.hold() let data_type: int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) @@ -56,7 +61,7 @@ export class ImageData implements MaterializedBase { constructor(width?: number, height?: number, data?: ArrayBuffer) { if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) { - const ctorPtr: KPointer = ImageData.ctor(width, height, data) + const ctorPtr: KPointer = ImageData.ctor_imagedata(width, height, data) this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) } } @@ -78,10 +83,3 @@ export class ImageData implements MaterializedBase { return retval } } -export class ImageDataInternal { - public static fromPtr(ptr: KPointer): ImageData { - const obj: ImageData = new ImageData(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageInterfaces.ts b/arkoala/arkui/src/generated/ArkImageInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageInterfaces.ts index eec90f312..364cb3eb8 100644 --- a/arkoala/arkui/src/ArkImageInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageInterfaces.ts @@ -30,7 +30,7 @@ import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkImageSpan.ts b/arkoala/arkui/src/generated/ArkImageSpan.ts similarity index 97% rename from arkoala/arkui/src/ArkImageSpan.ts rename to arkoala/arkui/src/generated/ArkImageSpan.ts index 7b937558d..33d239e37 100644 --- a/arkoala/arkui/src/ArkImageSpan.ts +++ b/arkoala/arkui/src/generated/ArkImageSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" @@ -35,7 +34,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts index fe0da8e63..52612fdaa 100644 --- a/arkoala/arkui/src/ArkImageSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice, DrawingColorFilter, ImageErrorCallbac import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index f5be89f2f..e805ea977 100644 --- a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class IndicatorComponentControllerInternal { + public static fromPtr(ptr: KPointer): IndicatorComponentController { + const obj: IndicatorComponentController = new IndicatorComponentController() + obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) + return obj + } +} export class IndicatorComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_indicatorcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._IndicatorComponentController_ctor() return retval } constructor() { - const ctorPtr: KPointer = IndicatorComponentController.ctor() + const ctorPtr: KPointer = IndicatorComponentController.ctor_indicatorcomponentcontroller() this.peer = new Finalizable(ctorPtr, IndicatorComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class IndicatorComponentController implements MaterializedBase { thisSerializer.release() } } -export class IndicatorComponentControllerInternal { - public static fromPtr(ptr: KPointer): IndicatorComponentController { - const obj: IndicatorComponentController = new IndicatorComponentController() - obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkIndicatorcomponent.ts b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts similarity index 97% rename from arkoala/arkui/src/ArkIndicatorcomponent.ts rename to arkoala/arkui/src/generated/ArkIndicatorcomponent.ts index 4c111db2c..5537a7dfb 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponent.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts b/arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts index bc32572da..e8a166340 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts index 1e0ca34a4..7ce1d5955 100644 --- a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkJsGeolocationMaterialized.ts rename to arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts index ce2f13d0e..054de3d65 100644 --- a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class JsGeolocationInternal { + public static fromPtr(ptr: KPointer): JsGeolocation { + const obj: JsGeolocation = new JsGeolocation() + obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) + return obj + } +} export class JsGeolocation implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsgeolocation(): KPointer { const retval = ArkUIGeneratedNativeModule._JsGeolocation_ctor() return retval } constructor() { - const ctorPtr: KPointer = JsGeolocation.ctor() + const ctorPtr: KPointer = JsGeolocation.ctor_jsgeolocation() this.peer = new Finalizable(ctorPtr, JsGeolocation.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +57,3 @@ export class JsGeolocation implements MaterializedBase { ArkUIGeneratedNativeModule._JsGeolocation_invoke(this.peer!.ptr, origin, +allow, +retain) } } -export class JsGeolocationInternal { - public static fromPtr(ptr: KPointer): JsGeolocation { - const obj: JsGeolocation = new JsGeolocation() - obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkJsResultMaterialized.ts b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkJsResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkJsResultMaterialized.ts index b49f64934..ec37b7428 100644 --- a/arkoala/arkui/src/ArkJsResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class JsResultInternal { + public static fromPtr(ptr: KPointer): JsResult { + const obj: JsResult = new JsResult() + obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) + return obj + } +} export class JsResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsresult(): KPointer { const retval = ArkUIGeneratedNativeModule._JsResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = JsResult.ctor() + const ctorPtr: KPointer = JsResult.ctor_jsresult() this.peer = new Finalizable(ctorPtr, JsResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +69,3 @@ export class JsResult implements MaterializedBase { ArkUIGeneratedNativeModule._JsResult_handlePromptConfirm(this.peer!.ptr, result) } } -export class JsResultInternal { - public static fromPtr(ptr: KPointer): JsResult { - const obj: JsResult = new JsResult() - obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkKeyEventMaterialized.ts b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkKeyEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts index 74a0dc443..a5c6209df 100644 --- a/arkoala/arkui/src/ArkKeyEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -18,12 +18,10 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { IntentionCode } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -106,12 +104,12 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { const unicode_NonNull = (unicode as number) this.setUnicode(unicode_NonNull) } - static ctor(): KPointer { + static ctor_keyevent(): KPointer { const retval = ArkUIGeneratedNativeModule._KeyEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = KeyEventInternal.ctor() + const ctorPtr: KPointer = KeyEventInternal.ctor_keyevent() this.peer = new Finalizable(ctorPtr, KeyEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkLayoutManagerMaterialized.ts rename to arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts index ed3beb9b7..857b86c2f 100644 --- a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -18,12 +18,10 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_layoutmanager(): KPointer { const retval = ArkUIGeneratedNativeModule._LayoutManager_ctor() return retval } constructor() { - const ctorPtr: KPointer = LayoutManagerInternal.ctor() + const ctorPtr: KPointer = LayoutManagerInternal.ctor_layoutmanager() this.peer = new Finalizable(ctorPtr, LayoutManagerInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,11 +71,11 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readPositionWithAffinity() } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readLineMetrics() } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/ArkLazyForEachInterfaces.ts b/arkoala/arkui/src/generated/ArkLazyForEachInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkLazyForEachInterfaces.ts rename to arkoala/arkui/src/generated/ArkLazyForEachInterfaces.ts diff --git a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts rename to arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index 9cf3affba..2b6eff7fd 100644 --- a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LazyForEachOpsInternal { + public static fromPtr(ptr: KPointer): LazyForEachOps { + const obj: LazyForEachOps = new LazyForEachOps() + obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) + return obj + } +} export class LazyForEachOps implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_lazyforeachops(): KPointer { const retval = ArkUIGeneratedNativeModule._LazyForEachOps_ctor() return retval } @@ -39,7 +44,7 @@ export class LazyForEachOps implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = LazyForEachOps.ctor() + const ctorPtr: KPointer = LazyForEachOps.ctor_lazyforeachops() this.peer = new Finalizable(ctorPtr, LazyForEachOps.getFinalizer()) } static getFinalizer(): KPointer { @@ -86,10 +91,3 @@ export class LazyForEachOps implements MaterializedBase { ArkUIGeneratedNativeModule._LazyForEachOps_Prepare(node) } } -export class LazyForEachOpsInternal { - public static fromPtr(ptr: KPointer): LazyForEachOps { - const obj: LazyForEachOps = new LazyForEachOps() - obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkLengthMetricsMaterialized.ts rename to arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 4a7f1bdee..ae1da8ffa 100644 --- a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -18,15 +18,20 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LengthMetricsInternal { + public static fromPtr(ptr: KPointer): LengthMetrics { + const obj: LengthMetrics = new LengthMetrics() + obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) + return obj + } +} export class LengthMetrics implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +49,7 @@ export class LengthMetrics implements MaterializedBase { set value(value: number) { this.setValue(value) } - static ctor(): KPointer { + static ctor_lengthmetrics(): KPointer { const retval = ArkUIGeneratedNativeModule._LengthMetrics_ctor() return retval } @@ -52,7 +57,7 @@ export class LengthMetrics implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = LengthMetrics.ctor() + const ctorPtr: KPointer = LengthMetrics.ctor_lengthmetrics() this.peer = new Finalizable(ctorPtr, LengthMetrics.getFinalizer()) } static getFinalizer(): KPointer { @@ -110,10 +115,3 @@ export class LengthMetrics implements MaterializedBase { ArkUIGeneratedNativeModule._LengthMetrics_setValue(this.peer!.ptr, value) } } -export class LengthMetricsInternal { - public static fromPtr(ptr: KPointer): LengthMetrics { - const obj: LengthMetrics = new LengthMetrics() - obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index dc5eca95a..13e77496d 100644 --- a/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LetterSpacingStyleInternal { + public static fromPtr(ptr: KPointer): LetterSpacingStyle { + const obj: LetterSpacingStyle = new LetterSpacingStyle(undefined) + obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) + return obj + } +} export class LetterSpacingStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class LetterSpacingStyle implements MaterializedBase { get letterSpacing(): number { return this.getLetterSpacing() } - static ctor(value: LengthMetrics): KPointer { + static ctor_letterspacingstyle(value: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = LetterSpacingStyle.ctor(value) + const ctorPtr: KPointer = LetterSpacingStyle.ctor_letterspacingstyle(value) this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } } -export class LetterSpacingStyleInternal { - public static fromPtr(ptr: KPointer): LetterSpacingStyle { - const obj: LetterSpacingStyle = new LetterSpacingStyle(undefined) - obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLine.ts b/arkoala/arkui/src/generated/ArkLine.ts similarity index 97% rename from arkoala/arkui/src/ArkLine.ts rename to arkoala/arkui/src/generated/ArkLine.ts index 1c5ece0d9..00063e53a 100644 --- a/arkoala/arkui/src/ArkLine.ts +++ b/arkoala/arkui/src/generated/ArkLine.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index d1f636c97..378ab7b11 100644 --- a/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LineHeightStyleInternal { + public static fromPtr(ptr: KPointer): LineHeightStyle { + const obj: LineHeightStyle = new LineHeightStyle(undefined) + obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) + return obj + } +} export class LineHeightStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class LineHeightStyle implements MaterializedBase { get lineHeight(): number { return this.getLineHeight() } - static ctor(lineHeight: LengthMetrics): KPointer { + static ctor_lineheightstyle(lineHeight: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(lineHeight) const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class LineHeightStyle implements MaterializedBase { return retval } constructor(lineHeight?: LengthMetrics) { - if (((lineHeight) !== (undefined))) + if ((lineHeight) !== (undefined)) { - const ctorPtr: KPointer = LineHeightStyle.ctor(lineHeight) + const ctorPtr: KPointer = LineHeightStyle.ctor_lineheightstyle(lineHeight) this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class LineHeightStyle implements MaterializedBase { return retval } } -export class LineHeightStyleInternal { - public static fromPtr(ptr: KPointer): LineHeightStyle { - const obj: LineHeightStyle = new LineHeightStyle(undefined) - obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLineInterfaces.ts b/arkoala/arkui/src/generated/ArkLineInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLineInterfaces.ts rename to arkoala/arkui/src/generated/ArkLineInterfaces.ts index b07770efe..07bcb47d1 100644 --- a/arkoala/arkui/src/ArkLineInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLineInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLinearGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkLinearGradientMaterialized.ts rename to arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts index 96ebf16d2..e03c1a0de 100644 --- a/arkoala/arkui/src/ArkLinearGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,21 +18,26 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LinearGradientInternal { + public static fromPtr(ptr: KPointer): LinearGradient { + const obj: LinearGradient = new LinearGradient(undefined) + obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) + return obj + } +} export class LinearGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(colorStops: Array): KPointer { + static ctor_lineargradient(colorStops: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(colorStops.length) for (let i = 0; i < colorStops.length; i++) { @@ -44,9 +49,9 @@ export class LinearGradient implements MaterializedBase { return retval } constructor(colorStops?: Array) { - if (((colorStops) !== (undefined))) + if ((colorStops) !== (undefined)) { - const ctorPtr: KPointer = LinearGradient.ctor(colorStops) + const ctorPtr: KPointer = LinearGradient.ctor_lineargradient(colorStops) this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) } } @@ -54,10 +59,3 @@ export class LinearGradient implements MaterializedBase { return ArkUIGeneratedNativeModule._LinearGradient_getFinalizer() } } -export class LinearGradientInternal { - public static fromPtr(ptr: KPointer): LinearGradient { - const obj: LinearGradient = new LinearGradient(undefined) - obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index 35f8b7268..d3512be31 100644 --- a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LinearIndicatorControllerInternal { + public static fromPtr(ptr: KPointer): LinearIndicatorController { + const obj: LinearIndicatorController = new LinearIndicatorController() + obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) + return obj + } +} export class LinearIndicatorController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_linearindicatorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._LinearIndicatorController_ctor() return retval } constructor() { - const ctorPtr: KPointer = LinearIndicatorController.ctor() + const ctorPtr: KPointer = LinearIndicatorController.ctor_linearindicatorcontroller() this.peer = new Finalizable(ctorPtr, LinearIndicatorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class LinearIndicatorController implements MaterializedBase { ArkUIGeneratedNativeModule._LinearIndicatorController_stop(this.peer!.ptr) } } -export class LinearIndicatorControllerInternal { - public static fromPtr(ptr: KPointer): LinearIndicatorController { - const obj: LinearIndicatorController = new LinearIndicatorController() - obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLinearindicator.ts b/arkoala/arkui/src/generated/ArkLinearindicator.ts similarity index 97% rename from arkoala/arkui/src/ArkLinearindicator.ts rename to arkoala/arkui/src/generated/ArkLinearindicator.ts index 7b81bdd70..a1ccba729 100644 --- a/arkoala/arkui/src/ArkLinearindicator.ts +++ b/arkoala/arkui/src/generated/ArkLinearindicator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts b/arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLinearindicatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts index 6730d744f..c3329e2a0 100644 --- a/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkList.ts b/arkoala/arkui/src/generated/ArkList.ts similarity index 98% rename from arkoala/arkui/src/ArkList.ts rename to arkoala/arkui/src/generated/ArkList.ts index e9d428bf8..934f498d1 100644 --- a/arkoala/arkui/src/ArkList.ts +++ b/arkoala/arkui/src/generated/ArkList.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -147,12 +146,12 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkListInterfaces.ts b/arkoala/arkui/src/generated/ArkListInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListInterfaces.ts rename to arkoala/arkui/src/generated/ArkListInterfaces.ts index 7d1ac33bf..d99cf5b70 100644 --- a/arkoala/arkui/src/ArkListInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItem.ts b/arkoala/arkui/src/generated/ArkListItem.ts similarity index 96% rename from arkoala/arkui/src/ArkListItem.ts rename to arkoala/arkui/src/generated/ArkListItem.ts index b813f01e8..f1f5e8c92 100644 --- a/arkoala/arkui/src/ArkListItem.ts +++ b/arkoala/arkui/src/generated/ArkListItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,12 +61,12 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { if (this.checkPriority("setListItemOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ListItemOptions | undefined) this.getPeer()?.setListItemOptions0Attribute(value_casted) return this } - if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (string | undefined) this.getPeer()?.setListItemOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkListItemGroup.ts b/arkoala/arkui/src/generated/ArkListItemGroup.ts similarity index 97% rename from arkoala/arkui/src/ArkListItemGroup.ts rename to arkoala/arkui/src/generated/ArkListItemGroup.ts index 7a8e19e38..3c15fc044 100644 --- a/arkoala/arkui/src/ArkListItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkListItemGroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItemGroupInterfaces.ts b/arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListItemGroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts index 3e51021e5..b73926294 100644 --- a/arkoala/arkui/src/ArkListItemGroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItemInterfaces.ts b/arkoala/arkui/src/generated/ArkListItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkListItemInterfaces.ts index 11044f2fd..4c6cf4441 100644 --- a/arkoala/arkui/src/ArkListItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkListScrollerMaterialized.ts rename to arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts index 2834bdedc..8d86eea5a 100644 --- a/arkoala/arkui/src/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -26,27 +26,32 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ListScrollerInternal { + public static fromPtr(ptr: KPointer): ListScroller { + const obj: ListScroller = new ListScroller() + obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) + return obj + } +} export class ListScroller extends Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_listscroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ListScroller_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ListScroller.ctor() + const ctorPtr: KPointer = ListScroller.ctor_listscroller() this.peer = new Finalizable(ctorPtr, ListScroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -77,7 +82,7 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRectResult() } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer: Serializer = Serializer.hold() @@ -112,13 +117,6 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") - } -} -export class ListScrollerInternal { - public static fromPtr(ptr: KPointer): ListScroller { - const obj: ListScroller = new ListScroller() - obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) - return obj + return new Deserializer(retval, retval.byteLength).readVisibleListContentInfo() } } diff --git a/arkoala/arkui/src/ArkLoadingProgress.ts b/arkoala/arkui/src/generated/ArkLoadingProgress.ts similarity index 97% rename from arkoala/arkui/src/ArkLoadingProgress.ts rename to arkoala/arkui/src/generated/ArkLoadingProgress.ts index 48d6a641c..069758ae3 100644 --- a/arkoala/arkui/src/ArkLoadingProgress.ts +++ b/arkoala/arkui/src/generated/ArkLoadingProgress.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts b/arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLoadingProgressInterfaces.ts rename to arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts index 75dac5dd5..55b1f71d4 100644 --- a/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLocationButton.ts b/arkoala/arkui/src/generated/ArkLocationButton.ts similarity index 93% rename from arkoala/arkui/src/ArkLocationButton.ts rename to arkoala/arkui/src/generated/ArkLocationButton.ts index df570efad..aa274eb34 100644 --- a/arkoala/arkui/src/ArkLocationButton.ts +++ b/arkoala/arkui/src/generated/ArkLocationButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setLocationButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (LocationButtonOptions) this.getPeer()?.setLocationButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkLocationButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkLocationButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkLocationButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkLocationButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index 2b7f79782..806f65931 100644 --- a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,13 +43,13 @@ export class LongPressGestureEventInternal extends BaseGestureEventInternal impl set repeat(repeat: boolean) { this.setRepeat(repeat) } - static ctor(): KPointer { + static ctor_longpressgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._LongPressGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = LongPressGestureEventInternal.ctor() + const ctorPtr: KPointer = LongPressGestureEventInternal.ctor_longpressgestureevent() this.peer = new Finalizable(ctorPtr, LongPressGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkMarquee.ts b/arkoala/arkui/src/generated/ArkMarquee.ts similarity index 98% rename from arkoala/arkui/src/ArkMarquee.ts rename to arkoala/arkui/src/generated/ArkMarquee.ts index 8291ab041..df77b61d4 100644 --- a/arkoala/arkui/src/ArkMarquee.ts +++ b/arkoala/arkui/src/generated/ArkMarquee.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMarqueeInterfaces.ts b/arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMarqueeInterfaces.ts rename to arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts index 9c0b5d30f..4e424dee3 100644 --- a/arkoala/arkui/src/ArkMarqueeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkMatrix2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts index 4acd3aa07..5f09dc111 100644 --- a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class Matrix2DInternal { + public static fromPtr(ptr: KPointer): Matrix2D { + const obj: Matrix2D = new Matrix2D() + obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) + return obj + } +} export class Matrix2D implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -73,12 +78,12 @@ export class Matrix2D implements MaterializedBase { const translateY_NonNull = (translateY as number) this.setTranslateY(translateY_NonNull) } - static ctor(): KPointer { + static ctor_matrix2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Matrix2D_ctor() return retval } constructor() { - const ctorPtr: KPointer = Matrix2D.ctor() + const ctorPtr: KPointer = Matrix2D.ctor_matrix2d() this.peer = new Finalizable(ctorPtr, Matrix2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -98,12 +103,12 @@ export class Matrix2D implements MaterializedBase { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) - if ((((RuntimeType.NUMBER == degree_type)) || ((RuntimeType.UNDEFINED == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.UNDEFINED == ry_type)))) { + if (((RuntimeType.NUMBER == degree_type) || (RuntimeType.UNDEFINED == degree_type)) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && (RuntimeType.UNDEFINED == ry_type)) { const rx_casted = degree as (number | undefined) const ry_casted = rx as (number | undefined) return this.rotate0_serialize(rx_casted, ry_casted) } - if ((((RuntimeType.NUMBER == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.NUMBER == ry_type)) || ((RuntimeType.UNDEFINED == ry_type)))) { + if ((RuntimeType.NUMBER == degree_type) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && ((RuntimeType.NUMBER == ry_type) || (RuntimeType.UNDEFINED == ry_type))) { const degree_casted = degree as (number) const rx_casted = rx as (number | undefined) const ry_casted = ry as (number | undefined) @@ -320,10 +325,3 @@ export class Matrix2D implements MaterializedBase { ArkUIGeneratedNativeModule._Matrix2D_setTranslateY(this.peer!.ptr, translateY) } } -export class Matrix2DInternal { - public static fromPtr(ptr: KPointer): Matrix2D { - const obj: Matrix2D = new Matrix2D() - obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts similarity index 75% rename from arkoala/arkui/src/ArkMeasurableMaterialized.ts rename to arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts index 24616a359..166bf5cc2 100644 --- a/arkoala/arkui/src/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -18,32 +18,31 @@ import { ConstraintSizeOptions, DirectionalEdgesT, Length } from "./ArkUnitsInterfaces" import { MeasureResult, SizeResult } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" export interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT } export class MeasurableInternal implements MaterializedBase,Measurable { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_measurable(): KPointer { const retval = ArkUIGeneratedNativeModule._Measurable_ctor() return retval } constructor() { - const ctorPtr: KPointer = MeasurableInternal.ctor() + const ctorPtr: KPointer = MeasurableInternal.ctor_measurable() this.peer = new Finalizable(ctorPtr, MeasurableInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,13 +52,13 @@ export class MeasurableInternal implements MaterializedBase,Measurable { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - public getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - public getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - public getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { @@ -67,19 +66,19 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readMeasureResult() } - private getMargin_serialize(): DirectionalEdgesT { + private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() } - private getPadding_serialize(): DirectionalEdgesT { + private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() } - private getBorderWidth_serialize(): DirectionalEdgesT { + private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj: MeasurableInternal = new MeasurableInternal() diff --git a/arkoala/arkui/src/ArkMediaCachedImage.ts b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts similarity index 97% rename from arkoala/arkui/src/ArkMediaCachedImage.ts rename to arkoala/arkui/src/generated/ArkMediaCachedImage.ts index 6c0b2b141..b952cfaab 100644 --- a/arkoala/arkui/src/ArkMediaCachedImage.ts +++ b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts b/arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts rename to arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts index ae4a43dc2..4d1ce89d0 100644 --- a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts @@ -30,7 +30,7 @@ import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkMenu.ts b/arkoala/arkui/src/generated/ArkMenu.ts similarity index 97% rename from arkoala/arkui/src/ArkMenu.ts rename to arkoala/arkui/src/generated/ArkMenu.ts index ef6f00fd5..8dd7d1b51 100644 --- a/arkoala/arkui/src/ArkMenu.ts +++ b/arkoala/arkui/src/generated/ArkMenu.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuInterfaces.ts index cb777876d..657d88864 100644 --- a/arkoala/arkui/src/ArkMenuInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItem.ts b/arkoala/arkui/src/generated/ArkMenuItem.ts similarity index 98% rename from arkoala/arkui/src/ArkMenuItem.ts rename to arkoala/arkui/src/generated/ArkMenuItem.ts index b529ff4bc..7a715f3d6 100644 --- a/arkoala/arkui/src/ArkMenuItem.ts +++ b/arkoala/arkui/src/generated/ArkMenuItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemGroup.ts b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts similarity index 97% rename from arkoala/arkui/src/ArkMenuItemGroup.ts rename to arkoala/arkui/src/generated/ArkMenuItemGroup.ts index db6e1d48d..c4941b554 100644 --- a/arkoala/arkui/src/ArkMenuItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts index 685d11395..2e9d330d3 100644 --- a/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts index 952dff602..3c580f4cd 100644 --- a/arkoala/arkui/src/ArkMenuItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMouseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkMouseEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts index 063e077d1..189a5b5fb 100644 --- a/arkoala/arkui/src/ArkMouseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -113,13 +112,13 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_mouseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._MouseEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = MouseEventInternal.ctor() + const ctorPtr: KPointer = MouseEventInternal.ctor_mouseevent() this.peer = new Finalizable(ctorPtr, MouseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 61b300cc9..2f97cdb6d 100644 --- a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -27,27 +27,32 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class MutableStyledStringInternal { + public static fromPtr(ptr: KPointer): MutableStyledString { + const obj: MutableStyledString = new MutableStyledString() + obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) + return obj + } +} export class MutableStyledString extends StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_mutablestyledstring(): KPointer { const retval = ArkUIGeneratedNativeModule._MutableStyledString_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = MutableStyledString.ctor() + const ctorPtr: KPointer = MutableStyledString.ctor_mutablestyledstring() this.peer = new Finalizable(ctorPtr, MutableStyledString.getFinalizer()) } static getFinalizer(): KPointer { @@ -166,10 +171,3 @@ export class MutableStyledString extends StyledString implements MaterializedBas thisSerializer.release() } } -export class MutableStyledStringInternal { - public static fromPtr(ptr: KPointer): MutableStyledString { - const obj: MutableStyledString = new MutableStyledString() - obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavDestination.ts b/arkoala/arkui/src/generated/ArkNavDestination.ts similarity index 97% rename from arkoala/arkui/src/ArkNavDestination.ts rename to arkoala/arkui/src/generated/ArkNavDestination.ts index 75e1c0c7e..4958bcd46 100644 --- a/arkoala/arkui/src/ArkNavDestination.ts +++ b/arkoala/arkui/src/generated/ArkNavDestination.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -75,12 +74,12 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) - if ((((RuntimeType.UNDEFINED == animated_type)))) { + if (RuntimeType.UNDEFINED == animated_type) { const value_casted = hide as (boolean) this.getPeer()?.hideTitleBar0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == animated_type)))) { + if (RuntimeType.BOOLEAN == animated_type) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean) this.getPeer()?.hideTitleBar1Attribute(hide_casted, animated_casted) diff --git a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index f838f23ad..973354d39 100644 --- a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,12 +20,10 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,12 +57,12 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - static ctor(): KPointer { + static ctor_navdestinationcontext(): KPointer { const retval = ArkUIGeneratedNativeModule._NavDestinationContext_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavDestinationContextInternal.ctor() + const ctorPtr: KPointer = NavDestinationContextInternal.ctor_navdestinationcontext() this.peer = new Finalizable(ctorPtr, NavDestinationContextInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts b/arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavDestinationInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts index 91587f336..d1dfe6110 100644 --- a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkNavExtenderMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts index 2ca57ca19..c3dd32b27 100644 --- a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -20,21 +20,26 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialize import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, LaunchMode, PopInfo, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavExtenderInternal { + public static fromPtr(ptr: KPointer): NavExtender { + const obj: NavExtender = new NavExtender() + obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) + return obj + } +} export class NavExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navextender(): KPointer { const retval = ArkUIGeneratedNativeModule._NavExtender_ctor() return retval } @@ -42,7 +47,7 @@ export class NavExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = NavExtender.ctor() + const ctorPtr: KPointer = NavExtender.ctor_navextender() this.peer = new Finalizable(ctorPtr, NavExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +67,3 @@ export class NavExtender implements MaterializedBase { thisSerializer.release() } } -export class NavExtenderInternal { - public static fromPtr(ptr: KPointer): NavExtender { - const obj: NavExtender = new NavExtender() - obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkNavPathInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts index 82c2934e7..9bc882ecb 100644 --- a/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PopInfo } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavPathInfoInternal { + public static fromPtr(ptr: KPointer): NavPathInfo { + const obj: NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) + return obj + } +} export class NavPathInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -58,7 +63,7 @@ export class NavPathInfo implements MaterializedBase { const isEntry_NonNull = (isEntry as boolean) this.setIsEntry(isEntry_NonNull) } - static ctor(name: string, param: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { + static ctor_navpathinfo(name: string, param: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeCustomObject("Any", param) let onPop_type: int32 = RuntimeType.UNDEFINED @@ -82,7 +87,7 @@ export class NavPathInfo implements MaterializedBase { constructor(name?: string, param?: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean) { if (((name) !== (undefined)) && ((param) !== (undefined)) && ((onPop) !== (undefined)) && ((isEntry) !== (undefined))) { - const ctorPtr: KPointer = NavPathInfo.ctor(name, param, onPop, isEntry) + const ctorPtr: KPointer = NavPathInfo.ctor_navpathinfo(name, param, onPop, isEntry) this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) } } @@ -149,10 +154,3 @@ export class NavPathInfo implements MaterializedBase { ArkUIGeneratedNativeModule._NavPathInfo_setIsEntry(this.peer!.ptr, +isEntry) } } -export class NavPathInfoInternal { - public static fromPtr(ptr: KPointer): NavPathInfo { - const obj: NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkNavPathStackMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts index 818dc798f..36e278a2f 100644 --- a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -18,26 +18,31 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavPathStackInternal { + public static fromPtr(ptr: KPointer): NavPathStack { + const obj: NavPathStack = new NavPathStack() + obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) + return obj + } +} export class NavPathStack implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navpathstack(): KPointer { const retval = ArkUIGeneratedNativeModule._NavPathStack_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavPathStack.ctor() + const ctorPtr: KPointer = NavPathStack.ctor_navpathstack() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) } static getFinalizer(): KPointer { @@ -46,13 +51,13 @@ export class NavPathStack implements MaterializedBase { public pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this?.pushPath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this?.pushPath1_serialize(info_casted, options_casted) @@ -63,12 +68,12 @@ export class NavPathStack implements MaterializedBase { public pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) return this.pushDestination0_serialize(info_casted, animated_casted) } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) return this.pushDestination1_serialize(info_casted, options_casted) @@ -80,14 +85,14 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && ((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (unknown) const animated_casted = onPop as (boolean | undefined) this?.pushPathByName0_serialize(name_casted, param_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && (RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -102,13 +107,13 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = onPop as (boolean | undefined) return this.pushDestinationByName0_serialize(name_casted, param_casted, animated_casted) } - if ((((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -120,13 +125,13 @@ export class NavPathStack implements MaterializedBase { public replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this?.replacePath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this?.replacePath1_serialize(info_casted, options_casted) @@ -161,11 +166,11 @@ export class NavPathStack implements MaterializedBase { public pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const animated_casted = result as (boolean | undefined) return this.pop0_serialize(animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) return this.pop1_serialize(result_casted, animated_casted) @@ -176,12 +181,12 @@ export class NavPathStack implements MaterializedBase { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const animated_casted = result as (boolean | undefined) return this.popToName0_serialize(name_casted, animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -193,13 +198,13 @@ export class NavPathStack implements MaterializedBase { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const index_casted = index as (number) const animated_casted = result as (boolean | undefined) this?.popToIndex0_serialize(index_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const index_casted = index as (number) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -599,10 +604,3 @@ export class NavPathStack implements MaterializedBase { thisSerializer.release() } } -export class NavPathStackInternal { - public static fromPtr(ptr: KPointer): NavPathStack { - const obj: NavPathStack = new NavPathStack() - obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavRouter.ts b/arkoala/arkui/src/generated/ArkNavRouter.ts similarity index 96% rename from arkoala/arkui/src/ArkNavRouter.ts rename to arkoala/arkui/src/generated/ArkNavRouter.ts index 5775d11d1..96a50b49a 100644 --- a/arkoala/arkui/src/ArkNavRouter.ts +++ b/arkoala/arkui/src/generated/ArkNavRouter.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,11 +61,11 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavRouterOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RouteInfo) this.getPeer()?.setNavRouterOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkNavRouterInterfaces.ts b/arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavRouterInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts index 5b768264f..84bb69865 100644 --- a/arkoala/arkui/src/ArkNavRouterInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigationExtenderInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigationExtenderInterfaces.ts diff --git a/arkoala/arkui/src/ArkNavigationInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigationInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavigationInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigationInterfaces.ts index 57ee8b74d..19fd438fd 100644 --- a/arkoala/arkui/src/ArkNavigationInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavigationInterfaces.ts @@ -27,7 +27,7 @@ import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" -import { NavigationAttribute, AttributeModifier } from "./handwritten" +import { NavigationAttribute, AttributeModifier } from "./../handwritten" import { DrawModifier } from "./ArkDrawModifierMaterialized" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" diff --git a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index c6e4674f0..1e7339fbe 100644 --- a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,12 +18,10 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,12 +57,12 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) } - static ctor(): KPointer { + static ctor_navigationtransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._NavigationTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavigationTransitionProxyInternal.ctor() + const ctorPtr: KPointer = NavigationTransitionProxyInternal.ctor_navigationtransitionproxy() this.peer = new Finalizable(ctorPtr, NavigationTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkNavigator.ts b/arkoala/arkui/src/generated/ArkNavigator.ts similarity index 95% rename from arkoala/arkui/src/ArkNavigator.ts rename to arkoala/arkui/src/generated/ArkNavigator.ts index 6c59d128f..2c54f1597 100644 --- a/arkoala/arkui/src/ArkNavigator.ts +++ b/arkoala/arkui/src/generated/ArkNavigator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,11 +60,11 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { public setNavigatorOptions(value?: { target: string, type?: NavigationType }): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavigatorOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as ({ target: string, type?: NavigationType } | undefined) this.getPeer()?.setNavigatorOptions0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkNavigatorInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavigatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts index 2a688cd60..27b30c8b7 100644 --- a/arkoala/arkui/src/ArkNavigatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNodeContainer.ts b/arkoala/arkui/src/generated/ArkNodeContainer.ts similarity index 97% rename from arkoala/arkui/src/ArkNodeContainer.ts rename to arkoala/arkui/src/generated/ArkNodeContainer.ts index 2a56e3c50..ebf94be24 100644 --- a/arkoala/arkui/src/ArkNodeContainer.ts +++ b/arkoala/arkui/src/generated/ArkNodeContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNodeContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNodeContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts index 4ac26adcc..586b96818 100644 --- a/arkoala/arkui/src/ArkNodeContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts new file mode 100644 index 000000000..ce81ebe7e --- /dev/null +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class OffscreenCanvasInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvas { + const obj: OffscreenCanvas = new OffscreenCanvas(undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvas.getFinalizer()) + return obj + } +} +export class OffscreenCanvas implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get height(): number { + return this.getHeight() + } + set height(height: number) { + this.setHeight(height) + } + get width(): number { + return this.getWidth() + } + set width(width: number) { + this.setWidth(width) + } + static ctor_offscreencanvas(width: number, height: number): KPointer { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_ctor(width, height) + return retval + } + constructor(width?: number, height?: number) { + if (((width) !== (undefined)) && ((height) !== (undefined))) + { + const ctorPtr: KPointer = OffscreenCanvas.ctor_offscreencanvas(width, height) + this.peer = new Finalizable(ctorPtr, OffscreenCanvas.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvas_getFinalizer() + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + public getContext2d(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const options_casted = options as (RenderingContextSettings | undefined) + return this.getContext2d_serialize(options_casted) + } + private getHeight(): number { + return this.getHeight_serialize() + } + private setHeight(height: number): void { + const height_casted = height as (number) + this?.setHeight_serialize(height_casted) + return + } + private getWidth(): number { + return this.getWidth_serialize() + } + private setWidth(width: number): void { + const width_casted = width as (number) + this?.setWidth_serialize(width_casted) + return + } + getContext(contextType: string, options: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + throw new Error("TBD") + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getContext2d_serialize(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const thisSerializer: Serializer = Serializer.hold() + let options_type: int32 = RuntimeType.UNDEFINED + options_type = runtimeType(options) + thisSerializer.writeInt8(options_type) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRenderingContextSettings(options_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getContext2d(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + throw new Error("Object deserialization is not implemented.") + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getHeight(this.peer!.ptr) + return retval + } + private setHeight_serialize(height: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setHeight(this.peer!.ptr, height) + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getWidth(this.peer!.ptr) + return retval + } + private setWidth_serialize(width: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setWidth(this.peer!.ptr, width) + } +} diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts new file mode 100644 index 000000000..7ecd1d274 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class OffscreenCanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvasRenderingContext2D { + const obj: OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvasRenderingContext2D.getFinalizer()) + return obj + } +} +export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_offscreencanvasrenderingcontext2d(width: number, height: number, settings?: RenderingContextSettings): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let settings_type: int32 = RuntimeType.UNDEFINED + settings_type = runtimeType(settings) + thisSerializer.writeInt8(settings_type) + if ((RuntimeType.UNDEFINED) != (settings_type)) { + const settings_value = settings! + thisSerializer.writeRenderingContextSettings(settings_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, settings?: RenderingContextSettings) { + super() + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((settings) !== (undefined))) + { + const ctorPtr: KPointer = OffscreenCanvasRenderingContext2D.ctor_offscreencanvasrenderingcontext2d(width, height, settings) + this.peer = new Finalizable(ctorPtr, OffscreenCanvasRenderingContext2D.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() + } + public toDataURL(type?: string, quality?: any): string { + const type_casted = type as (string | undefined) + const quality_casted = quality as (any | undefined) + return this.toDataURL_serialize(type_casted, quality_casted) + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + private toDataURL_serialize(type?: string, quality?: any): string { + const thisSerializer: Serializer = Serializer.hold() + let type_type: int32 = RuntimeType.UNDEFINED + type_type = runtimeType(type) + thisSerializer.writeInt8(type_type) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeString(type_value) + } + let quality_type: int32 = RuntimeType.UNDEFINED + quality_type = runtimeType(quality) + thisSerializer.writeInt8(quality_type) + if ((RuntimeType.UNDEFINED) != (quality_type)) { + const quality_value = quality! + thisSerializer.writeCustomObject("Any", quality_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala/arkui/src/ArkPageTransitionInterfaces.ts b/arkoala/arkui/src/generated/ArkPageTransitionInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPageTransitionInterfaces.ts rename to arkoala/arkui/src/generated/ArkPageTransitionInterfaces.ts diff --git a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkPanGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 0d276d248..54aa79713 100644 --- a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -73,13 +71,13 @@ export class PanGestureEventInternal extends BaseGestureEventInternal implements set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_pangestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PanGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PanGestureEventInternal.ctor() + const ctorPtr: KPointer = PanGestureEventInternal.ctor_pangestureevent() this.peer = new Finalizable(ctorPtr, PanGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index 50d0001a8..26c2bf20c 100644 --- a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PanDirection } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PanGestureOptionsInternal { + public static fromPtr(ptr: KPointer): PanGestureOptions { + const obj: PanGestureOptions = new PanGestureOptions(undefined) + obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) + return obj + } +} export class PanGestureOptions implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: { fingers?: number, direction?: PanDirection, distance?: number }): KPointer { + static ctor_pangestureoptions(value?: { fingers?: number, direction?: PanDirection, distance?: number }): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -68,7 +73,7 @@ export class PanGestureOptions implements MaterializedBase { return retval } constructor(value?: { fingers?: number, direction?: PanDirection, distance?: number }) { - const ctorPtr: KPointer = PanGestureOptions.ctor(value) + const ctorPtr: KPointer = PanGestureOptions.ctor_pangestureoptions(value) this.peer = new Finalizable(ctorPtr, PanGestureOptions.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +111,3 @@ export class PanGestureOptions implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class PanGestureOptionsInternal { - public static fromPtr(ptr: KPointer): PanGestureOptions { - const obj: PanGestureOptions = new PanGestureOptions(undefined) - obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkPanRecognizerMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts index 2828db1ea..0c18d779d 100644 --- a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -21,27 +21,32 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState, PanDirection } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PanRecognizerInternal { + public static fromPtr(ptr: KPointer): PanRecognizer { + const obj: PanRecognizer = new PanRecognizer() + obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) + return obj + } +} export class PanRecognizer extends GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_panrecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._PanRecognizer_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PanRecognizer.ctor() + const ctorPtr: KPointer = PanRecognizer.ctor_panrecognizer() this.peer = new Finalizable(ctorPtr, PanRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +60,3 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase throw new Error("Object deserialization is not implemented.") } } -export class PanRecognizerInternal { - public static fromPtr(ptr: KPointer): PanRecognizer { - const obj: PanRecognizer = new PanRecognizer() - obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPanel.ts b/arkoala/arkui/src/generated/ArkPanel.ts similarity index 98% rename from arkoala/arkui/src/ArkPanel.ts rename to arkoala/arkui/src/generated/ArkPanel.ts index 2a6d95ba5..d4d0efaff 100644 --- a/arkoala/arkui/src/ArkPanel.ts +++ b/arkoala/arkui/src/generated/ArkPanel.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPanelInterfaces.ts b/arkoala/arkui/src/generated/ArkPanelInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPanelInterfaces.ts rename to arkoala/arkui/src/generated/ArkPanelInterfaces.ts index da29b1cc0..576d228f4 100644 --- a/arkoala/arkui/src/ArkPanelInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPanelInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkParagraphStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts index 154770d30..1dfbc453c 100644 --- a/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -24,15 +24,20 @@ import { Dimension } from "./ArkUnitsInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ParagraphStyleInternal { + public static fromPtr(ptr: KPointer): ParagraphStyle { + const obj: ParagraphStyle = new ParagraphStyle(undefined) + obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) + return obj + } +} export class ParagraphStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -56,7 +61,7 @@ export class ParagraphStyle implements MaterializedBase { get leadingMargin(): number | LeadingMarginPlaceholder { throw new Error("Not implemented") } - static ctor(value?: ParagraphStyleInterface): KPointer { + static ctor_paragraphstyle(value?: ParagraphStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -70,7 +75,7 @@ export class ParagraphStyle implements MaterializedBase { return retval } constructor(value?: ParagraphStyleInterface) { - const ctorPtr: KPointer = ParagraphStyle.ctor(value) + const ctorPtr: KPointer = ParagraphStyle.ctor_paragraphstyle(value) this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) } static getFinalizer(): KPointer { @@ -112,10 +117,3 @@ export class ParagraphStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ParagraphStyleInternal { - public static fromPtr(ptr: KPointer): ParagraphStyle { - const obj: ParagraphStyle = new ParagraphStyle(undefined) - obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkParticleInterfaces.ts b/arkoala/arkui/src/generated/ArkParticleInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkParticleInterfaces.ts rename to arkoala/arkui/src/generated/ArkParticleInterfaces.ts diff --git a/arkoala/arkui/src/ArkPasteButton.ts b/arkoala/arkui/src/generated/ArkPasteButton.ts similarity index 93% rename from arkoala/arkui/src/ArkPasteButton.ts rename to arkoala/arkui/src/generated/ArkPasteButton.ts index fb4aa04c3..cfd3cca89 100644 --- a/arkoala/arkui/src/ArkPasteButton.ts +++ b/arkoala/arkui/src/generated/ArkPasteButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setPasteButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (PasteButtonOptions) this.getPeer()?.setPasteButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkPasteButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkPasteButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPasteButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkPasteButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkPath.ts b/arkoala/arkui/src/generated/ArkPath.ts similarity index 97% rename from arkoala/arkui/src/ArkPath.ts rename to arkoala/arkui/src/generated/ArkPath.ts index 1f35d958e..75e1ca3d1 100644 --- a/arkoala/arkui/src/ArkPath.ts +++ b/arkoala/arkui/src/generated/ArkPath.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPath2DMaterialized.ts b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkPath2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkPath2DMaterialized.ts index 57d2aa7d1..4d0f4bf4c 100644 --- a/arkoala/arkui/src/ArkPath2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts @@ -19,27 +19,32 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class Path2DInternal { + public static fromPtr(ptr: KPointer): Path2D { + const obj: Path2D = new Path2D() + obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) + return obj + } +} export class Path2D extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_path2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Path2D_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = Path2D.ctor() + const ctorPtr: KPointer = Path2D.ctor_path2d() this.peer = new Finalizable(ctorPtr, Path2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class Path2D extends CanvasPath implements MaterializedBase { thisSerializer.release() } } -export class Path2DInternal { - public static fromPtr(ptr: KPointer): Path2D { - const obj: Path2D = new Path2D() - obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPathInterfaces.ts b/arkoala/arkui/src/generated/ArkPathInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPathInterfaces.ts rename to arkoala/arkui/src/generated/ArkPathInterfaces.ts index 1e7f95f78..b2c14459d 100644 --- a/arkoala/arkui/src/ArkPathInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPathInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPatternLock.ts b/arkoala/arkui/src/generated/ArkPatternLock.ts similarity index 98% rename from arkoala/arkui/src/ArkPatternLock.ts rename to arkoala/arkui/src/generated/ArkPatternLock.ts index 1e3e908f0..42fb14532 100644 --- a/arkoala/arkui/src/ArkPatternLock.ts +++ b/arkoala/arkui/src/generated/ArkPatternLock.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 49807a325..c209ba88b 100644 --- a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PatternLockControllerInternal { + public static fromPtr(ptr: KPointer): PatternLockController { + const obj: PatternLockController = new PatternLockController() + obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) + return obj + } +} export class PatternLockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_patternlockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._PatternLockController_ctor() return retval } constructor() { - const ctorPtr: KPointer = PatternLockController.ctor() + const ctorPtr: KPointer = PatternLockController.ctor_patternlockcontroller() this.peer = new Finalizable(ctorPtr, PatternLockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -58,10 +63,3 @@ export class PatternLockController implements MaterializedBase { ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, result) } } -export class PatternLockControllerInternal { - public static fromPtr(ptr: KPointer): PatternLockController { - const obj: PatternLockController = new PatternLockController() - obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPatternLockInterfaces.ts b/arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPatternLockInterfaces.ts rename to arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts index 2a0e0a0f2..3423ba772 100644 --- a/arkoala/arkui/src/ArkPatternLockInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkPermissionRequestMaterialized.ts rename to arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 79a4fb587..9691575d2 100644 --- a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PermissionRequestInternal { + public static fromPtr(ptr: KPointer): PermissionRequest { + const obj: PermissionRequest = new PermissionRequest() + obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) + return obj + } +} export class PermissionRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_permissionrequest(): KPointer { const retval = ArkUIGeneratedNativeModule._PermissionRequest_ctor() return retval } constructor() { - const ctorPtr: KPointer = PermissionRequest.ctor() + const ctorPtr: KPointer = PermissionRequest.ctor_permissionrequest() this.peer = new Finalizable(ctorPtr, PermissionRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +83,3 @@ export class PermissionRequest implements MaterializedBase { thisSerializer.release() } } -export class PermissionRequestInternal { - public static fromPtr(ptr: KPointer): PermissionRequest { - const obj: PermissionRequest = new PermissionRequest() - obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 9212a4730..6a2c07fed 100644 --- a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,13 +57,13 @@ export class PinchGestureEventInternal extends BaseGestureEventInternal implemen set pinchCenterY(pinchCenterY: number) { this.setPinchCenterY(pinchCenterY) } - static ctor(): KPointer { + static ctor_pinchgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PinchGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PinchGestureEventInternal.ctor() + const ctorPtr: KPointer = PinchGestureEventInternal.ctor_pinchgestureevent() this.peer = new Finalizable(ctorPtr, PinchGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPixelMapMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts similarity index 69% rename from arkoala/arkui/src/ArkPixelMapMaterialized.ts rename to arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts index cc3418184..0f9b2688b 100644 --- a/arkoala/arkui/src/ArkPixelMapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -16,18 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" export interface PixelMap { - isEditable: int32 - isStrideAlignment: int32 + readonly isEditable: boolean + readonly isStrideAlignment: boolean readPixelsToBufferSync(dst: ArrayBuffer): void writeBufferToPixels(src: ArrayBuffer): void } @@ -36,24 +34,18 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { public getPeer(): Finalizable | undefined { return this.peer } - get isEditable(): int32 { + get isEditable(): boolean { return this.getIsEditable() } - set isEditable(isEditable: int32) { - this.setIsEditable(isEditable) - } - get isStrideAlignment(): int32 { + get isStrideAlignment(): boolean { return this.getIsStrideAlignment() } - set isStrideAlignment(isStrideAlignment: int32) { - this.setIsStrideAlignment(isStrideAlignment) - } - static ctor(): KPointer { + static ctor_pixelmap(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMap_ctor() return retval } constructor() { - const ctorPtr: KPointer = PixelMapInternal.ctor() + const ctorPtr: KPointer = PixelMapInternal.ctor_pixelmap() this.peer = new Finalizable(ctorPtr, PixelMapInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,22 +61,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { this?.writeBufferToPixels_serialize(src_casted) return } - private getIsEditable(): int32 { + private getIsEditable(): boolean { return this.getIsEditable_serialize() } - private setIsEditable(isEditable: int32): void { - const isEditable_casted = isEditable as (int32) - this?.setIsEditable_serialize(isEditable_casted) - return - } - private getIsStrideAlignment(): int32 { + private getIsStrideAlignment(): boolean { return this.getIsStrideAlignment_serialize() } - private setIsStrideAlignment(isStrideAlignment: int32): void { - const isStrideAlignment_casted = isStrideAlignment as (int32) - this?.setIsStrideAlignment_serialize(isStrideAlignment_casted) - return - } private readPixelsToBufferSync_serialize(dst: ArrayBuffer): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeBuffer(dst) @@ -97,20 +79,14 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { ArkUIGeneratedNativeModule._PixelMap_writeBufferToPixels(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getIsEditable_serialize(): int32 { + private getIsEditable_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsEditable(this.peer!.ptr) return retval } - private setIsEditable_serialize(isEditable: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsEditable(this.peer!.ptr, isEditable) - } - private getIsStrideAlignment_serialize(): int32 { + private getIsStrideAlignment_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsStrideAlignment(this.peer!.ptr) return retval } - private setIsStrideAlignment_serialize(isStrideAlignment: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsStrideAlignment(this.peer!.ptr, isStrideAlignment) - } public static fromPtr(ptr: KPointer): PixelMapInternal { const obj: PixelMapInternal = new PixelMapInternal() obj.peer = new Finalizable(ptr, PixelMapInternal.getFinalizer()) diff --git a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkPixelMapMockMaterialized.ts rename to arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts index c1f714084..e72527342 100644 --- a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -33,12 +31,12 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_pixelmapmock(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMapMock_ctor() return retval } constructor() { - const ctorPtr: KPointer = PixelMapMockInternal.ctor() + const ctorPtr: KPointer = PixelMapMockInternal.ctor_pixelmapmock() this.peer = new Finalizable(ctorPtr, PixelMapMockInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPluginComponent.ts b/arkoala/arkui/src/generated/ArkPluginComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkPluginComponent.ts rename to arkoala/arkui/src/generated/ArkPluginComponent.ts index c0f917f19..dd53cf2b2 100644 --- a/arkoala/arkui/src/ArkPluginComponent.ts +++ b/arkoala/arkui/src/generated/ArkPluginComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPluginComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPluginComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts index d3514051a..98de27111 100644 --- a/arkoala/arkui/src/ArkPluginComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPointInterfaces.ts b/arkoala/arkui/src/generated/ArkPointInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPointInterfaces.ts rename to arkoala/arkui/src/generated/ArkPointInterfaces.ts diff --git a/arkoala/arkui/src/ArkPolygon.ts b/arkoala/arkui/src/generated/ArkPolygon.ts similarity index 97% rename from arkoala/arkui/src/ArkPolygon.ts rename to arkoala/arkui/src/generated/ArkPolygon.ts index 6515d6cc3..fa3a08af9 100644 --- a/arkoala/arkui/src/ArkPolygon.ts +++ b/arkoala/arkui/src/generated/ArkPolygon.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolygonInterfaces.ts b/arkoala/arkui/src/generated/ArkPolygonInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPolygonInterfaces.ts rename to arkoala/arkui/src/generated/ArkPolygonInterfaces.ts index 5366dc94c..fcf5d4c46 100644 --- a/arkoala/arkui/src/ArkPolygonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPolygonInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolyline.ts b/arkoala/arkui/src/generated/ArkPolyline.ts similarity index 97% rename from arkoala/arkui/src/ArkPolyline.ts rename to arkoala/arkui/src/generated/ArkPolyline.ts index 8b23617d4..a98d089b1 100644 --- a/arkoala/arkui/src/ArkPolyline.ts +++ b/arkoala/arkui/src/generated/ArkPolyline.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolylineInterfaces.ts b/arkoala/arkui/src/generated/ArkPolylineInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPolylineInterfaces.ts rename to arkoala/arkui/src/generated/ArkPolylineInterfaces.ts index 2c9ea29f6..0d66c4567 100644 --- a/arkoala/arkui/src/ArkPolylineInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPolylineInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkProfilerNamespace.ts b/arkoala/arkui/src/generated/ArkProfilerNamespace.ts new file mode 100644 index 000000000..7c57b334c --- /dev/null +++ b/arkoala/arkui/src/generated/ArkProfilerNamespace.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace Profiler { + export class GlobalScope_Profiler_inspector { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { + const callback__casted = callback_ as (((info: string) => void)) + GlobalScope_Profiler_inspector.registerVsyncCallback_serialize(callback__casted) + return + } + public static unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback_serialize() + return + } + private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(callback_) + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static unregisterVsyncCallback_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_unregisterVsyncCallback() + } + } +} +export namespace Profiler { + export function registerVsyncCallback(callback_: ((info: string) => void)): void { + GlobalScope_Profiler_inspector.registerVsyncCallback(callback_) + } + export function unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback() + } +} diff --git a/arkoala/arkui/src/ArkProgress.ts b/arkoala/arkui/src/generated/ArkProgress.ts similarity index 97% rename from arkoala/arkui/src/ArkProgress.ts rename to arkoala/arkui/src/generated/ArkProgress.ts index 973e0d409..ea25b7cd6 100644 --- a/arkoala/arkui/src/ArkProgress.ts +++ b/arkoala/arkui/src/generated/ArkProgress.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkProgressInterfaces.ts b/arkoala/arkui/src/generated/ArkProgressInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkProgressInterfaces.ts rename to arkoala/arkui/src/generated/ArkProgressInterfaces.ts index 141e0f67c..70460c67d 100644 --- a/arkoala/arkui/src/ArkProgressInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkProgressInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkProgressMaskMaterialized.ts rename to arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts index bcb80e5dc..53b7a11e7 100644 --- a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -19,21 +19,26 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ProgressMaskInternal { + public static fromPtr(ptr: KPointer): ProgressMask { + const obj: ProgressMask = new ProgressMask(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) + return obj + } +} export class ProgressMask implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: number, total: number, color: ResourceColor): KPointer { + static ctor_progressmask(value: number, total: number, color: ResourceColor): KPointer { const thisSerializer: Serializer = Serializer.hold() let color_type: int32 = RuntimeType.UNDEFINED color_type = runtimeType(color) @@ -42,17 +47,17 @@ export class ProgressMask implements MaterializedBase { const color_0 = unsafeCast(color) thisSerializer.writeInt32(color_0) } - else if (((RuntimeType.NUMBER == color_type))) { + else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1) const color_1 = unsafeCast(color) thisSerializer.writeNumber(color_1) } - else if (((RuntimeType.STRING == color_type))) { + else if (RuntimeType.STRING == color_type) { thisSerializer.writeInt8(2) const color_2 = unsafeCast(color) thisSerializer.writeString(color_2) } - else if (((RuntimeType.OBJECT == color_type))) { + else if (RuntimeType.OBJECT == color_type) { thisSerializer.writeInt8(3) const color_3 = unsafeCast(color) thisSerializer.writeResource(color_3) @@ -64,7 +69,7 @@ export class ProgressMask implements MaterializedBase { constructor(value?: number, total?: number, color?: ResourceColor) { if (((value) !== (undefined)) && ((total) !== (undefined)) && ((color) !== (undefined))) { - const ctorPtr: KPointer = ProgressMask.ctor(value, total, color) + const ctorPtr: KPointer = ProgressMask.ctor_progressmask(value, total, color) this.peer = new Finalizable(ctorPtr, ProgressMask.getFinalizer()) } } @@ -98,17 +103,17 @@ export class ProgressMask implements MaterializedBase { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -120,10 +125,3 @@ export class ProgressMask implements MaterializedBase { ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, +value) } } -export class ProgressMaskInternal { - public static fromPtr(ptr: KPointer): ProgressMask { - const obj: ProgressMask = new ProgressMask(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkQrcode.ts b/arkoala/arkui/src/generated/ArkQrcode.ts similarity index 97% rename from arkoala/arkui/src/ArkQrcode.ts rename to arkoala/arkui/src/generated/ArkQrcode.ts index 9994822ef..3048ded4a 100644 --- a/arkoala/arkui/src/ArkQrcode.ts +++ b/arkoala/arkui/src/generated/ArkQrcode.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkQrcodeInterfaces.ts b/arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkQrcodeInterfaces.ts rename to arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts index f82195b21..2f7cc24f4 100644 --- a/arkoala/arkui/src/ArkQrcodeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRadio.ts b/arkoala/arkui/src/generated/ArkRadio.ts similarity index 97% rename from arkoala/arkui/src/ArkRadio.ts rename to arkoala/arkui/src/generated/ArkRadio.ts index 054737315..ccd646004 100644 --- a/arkoala/arkui/src/ArkRadio.ts +++ b/arkoala/arkui/src/generated/ArkRadio.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRadioInterfaces.ts b/arkoala/arkui/src/generated/ArkRadioInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRadioInterfaces.ts rename to arkoala/arkui/src/generated/ArkRadioInterfaces.ts index 3b7abbafb..5bfee3e6d 100644 --- a/arkoala/arkui/src/ArkRadioInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRadioInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRating.ts b/arkoala/arkui/src/generated/ArkRating.ts similarity index 97% rename from arkoala/arkui/src/ArkRating.ts rename to arkoala/arkui/src/generated/ArkRating.ts index da26b0121..7eb77158b 100644 --- a/arkoala/arkui/src/ArkRating.ts +++ b/arkoala/arkui/src/generated/ArkRating.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRatingInterfaces.ts b/arkoala/arkui/src/generated/ArkRatingInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRatingInterfaces.ts rename to arkoala/arkui/src/generated/ArkRatingInterfaces.ts index 020402916..6ab12770a 100644 --- a/arkoala/arkui/src/ArkRatingInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRatingInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts b/arkoala/arkui/src/generated/ArkRawFileDescriptorInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts rename to arkoala/arkui/src/generated/ArkRawFileDescriptorInterfaces.ts diff --git a/arkoala/arkui/src/ArkRect.ts b/arkoala/arkui/src/generated/ArkRect.ts similarity index 97% rename from arkoala/arkui/src/ArkRect.ts rename to arkoala/arkui/src/generated/ArkRect.ts index 4743efaa0..d767f40d8 100644 --- a/arkoala/arkui/src/ArkRect.ts +++ b/arkoala/arkui/src/generated/ArkRect.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRectInterfaces.ts b/arkoala/arkui/src/generated/ArkRectInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRectInterfaces.ts rename to arkoala/arkui/src/generated/ArkRectInterfaces.ts index 701b2ca93..6864a0304 100644 --- a/arkoala/arkui/src/ArkRectInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRectInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRefresh.ts b/arkoala/arkui/src/generated/ArkRefresh.ts similarity index 97% rename from arkoala/arkui/src/ArkRefresh.ts rename to arkoala/arkui/src/generated/ArkRefresh.ts index e160d0721..048583783 100644 --- a/arkoala/arkui/src/ArkRefresh.ts +++ b/arkoala/arkui/src/generated/ArkRefresh.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRefreshInterfaces.ts b/arkoala/arkui/src/generated/ArkRefreshInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRefreshInterfaces.ts rename to arkoala/arkui/src/generated/ArkRefreshInterfaces.ts index 7166b1707..a0590515e 100644 --- a/arkoala/arkui/src/ArkRefreshInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRefreshInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRelativeContainer.ts b/arkoala/arkui/src/generated/ArkRelativeContainer.ts similarity index 95% rename from arkoala/arkui/src/ArkRelativeContainer.ts rename to arkoala/arkui/src/generated/ArkRelativeContainer.ts index b19756cab..548ec05d8 100644 --- a/arkoala/arkui/src/ArkRelativeContainer.ts +++ b/arkoala/arkui/src/generated/ArkRelativeContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -78,12 +77,12 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { const value_casted = value as (Array) this.getPeer()?.barrier0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { const value_casted = value as (Array) this.getPeer()?.barrier1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRelativeContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts index 2f05edc54..fc709464f 100644 --- a/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRemoteWindow.ts b/arkoala/arkui/src/generated/ArkRemoteWindow.ts similarity index 97% rename from arkoala/arkui/src/ArkRemoteWindow.ts rename to arkoala/arkui/src/generated/ArkRemoteWindow.ts index af3f081fe..721e973a2 100644 --- a/arkoala/arkui/src/ArkRemoteWindow.ts +++ b/arkoala/arkui/src/generated/ArkRemoteWindow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts b/arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRemoteWindowInterfaces.ts rename to arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts index 53ba49844..3a1256ec0 100644 --- a/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts rename to arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index 2701193fc..4a85bfeaa 100644 --- a/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RenderingContextSettingsInternal { + public static fromPtr(ptr: KPointer): RenderingContextSettings { + const obj: RenderingContextSettings = new RenderingContextSettings(undefined) + obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) + return obj + } +} export class RenderingContextSettings implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +42,7 @@ export class RenderingContextSettings implements MaterializedBase { const antialias_NonNull = (antialias as boolean) this.setAntialias(antialias_NonNull) } - static ctor(antialias?: boolean): KPointer { + static ctor_renderingcontextsettings(antialias?: boolean): KPointer { const thisSerializer: Serializer = Serializer.hold() let antialias_type: int32 = RuntimeType.UNDEFINED antialias_type = runtimeType(antialias) @@ -51,7 +56,7 @@ export class RenderingContextSettings implements MaterializedBase { return retval } constructor(antialias?: boolean) { - const ctorPtr: KPointer = RenderingContextSettings.ctor(antialias) + const ctorPtr: KPointer = RenderingContextSettings.ctor_renderingcontextsettings(antialias) this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +78,3 @@ export class RenderingContextSettings implements MaterializedBase { ArkUIGeneratedNativeModule._RenderingContextSettings_setAntialias(this.peer!.ptr, +antialias) } } -export class RenderingContextSettingsInternal { - public static fromPtr(ptr: KPointer): RenderingContextSettings { - const obj: RenderingContextSettings = new RenderingContextSettings(undefined) - obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRepeatInterfaces.ts b/arkoala/arkui/src/generated/ArkRepeatInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkRepeatInterfaces.ts rename to arkoala/arkui/src/generated/ArkRepeatInterfaces.ts diff --git a/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 37b9b2a84..e96d09a4c 100644 --- a/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ReplaceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { + const obj: ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) + return obj + } +} export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_replacesymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = ReplaceSymbolEffect.ctor(scope) + const ctorPtr: KPointer = ReplaceSymbolEffect.ctor_replacesymboleffect(scope) this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class ReplaceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { - const obj: ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkResourceInterfaces.ts b/arkoala/arkui/src/generated/ArkResourceInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkResourceInterfaces.ts rename to arkoala/arkui/src/generated/ArkResourceInterfaces.ts diff --git a/arkoala/arkui/src/ArkRichEditor.ts b/arkoala/arkui/src/generated/ArkRichEditor.ts similarity index 98% rename from arkoala/arkui/src/ArkRichEditor.ts rename to arkoala/arkui/src/generated/ArkRichEditor.ts index 7c4ae4b48..0837acb57 100644 --- a/arkoala/arkui/src/ArkRichEditor.ts +++ b/arkoala/arkui/src/generated/ArkRichEditor.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -79,12 +78,12 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RichEditorOptions) this.getPeer()?.setRichEditorOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const options_casted = value as (RichEditorStyledStringOptions) this.getPeer()?.setRichEditorOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index cf3211a33..4092c0fd7 100644 --- a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -27,26 +27,31 @@ import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorBaseControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorBaseController { + const obj: RichEditorBaseController = new RichEditorBaseController() + obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) + return obj + } +} export class RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_ctor() return retval } constructor() { - const ctorPtr: KPointer = RichEditorBaseController.ctor() + const ctorPtr: KPointer = RichEditorBaseController.ctor_richeditorbasecontroller() this.peer = new Finalizable(ctorPtr, RichEditorBaseController.getFinalizer()) } static getFinalizer(): KPointer { @@ -104,7 +109,7 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRichEditorTextStyle() } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer: Serializer = Serializer.hold() @@ -137,13 +142,6 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class RichEditorBaseControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorBaseController { - const obj: RichEditorBaseController = new RichEditorBaseController() - obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) - return obj + return new Deserializer(retval, retval.byteLength).readPreviewText() } } diff --git a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 35c2665cd..588ca8e64 100644 --- a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -38,27 +38,32 @@ import { FingerInfo } from "./ArkGestureInterfaces" import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorController { + const obj: RichEditorController = new RichEditorController() + obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) + return obj + } +} export class RichEditorController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RichEditorController.ctor() + const ctorPtr: KPointer = RichEditorController.ctor_richeditorcontroller() this.peer = new Finalizable(ctorPtr, RichEditorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -135,22 +140,22 @@ export class RichEditorController extends RichEditorBaseController implements Ma const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writePixelMap(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) let value_1_type: int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0) const value_1_0 = unsafeCast(value_1) thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1) const value_1_1 = unsafeCast(value_1) thisSerializer.writeResource(value_1_1) @@ -199,17 +204,17 @@ export class RichEditorController extends RichEditorBaseController implements Ma const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("textStyle"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("textStyle")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeRichEditorUpdateTextSpanStyleOptions(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("imageStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("imageStyle")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeRichEditorUpdateImageSpanStyleOptions(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("symbolStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("symbolStyle")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeRichEditorUpdateSymbolSpanStyleOptions(value_2) @@ -263,7 +268,7 @@ export class RichEditorController extends RichEditorBaseController implements Ma } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRichEditorSelection() } private fromStyledString_serialize(value: StyledString): Array { const thisSerializer: Serializer = Serializer.hold() @@ -280,10 +285,3 @@ export class RichEditorController extends RichEditorBaseController implements Ma throw new Error("Object deserialization is not implemented.") } } -export class RichEditorControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorController { - const obj: RichEditorController = new RichEditorController() - obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRichEditorInterfaces.ts b/arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRichEditorInterfaces.ts rename to arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts index 8a17cda38..1740c435c 100644 --- a/arkoala/arkui/src/ArkRichEditorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts @@ -49,7 +49,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" import { MouseEvent } from "./ArkMouseEventMaterialized" diff --git a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index c5d0afc38..8277fb411 100644 --- a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -35,27 +35,32 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorStyledStringControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorStyledStringController { + const obj: RichEditorStyledStringController = new RichEditorStyledStringController() + obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) + return obj + } +} export class RichEditorStyledStringController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorstyledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RichEditorStyledStringController.ctor() + const ctorPtr: KPointer = RichEditorStyledStringController.ctor_richeditorstyledstringcontroller() this.peer = new Finalizable(ctorPtr, RichEditorStyledStringController.getFinalizer()) } static getFinalizer(): KPointer { @@ -89,7 +94,7 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRichEditorRange() } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer: Serializer = Serializer.hold() @@ -98,10 +103,3 @@ export class RichEditorStyledStringController extends RichEditorBaseController i thisSerializer.release() } } -export class RichEditorStyledStringControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorStyledStringController { - const obj: RichEditorStyledStringController = new RichEditorStyledStringController() - obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRichText.ts b/arkoala/arkui/src/generated/ArkRichText.ts similarity index 97% rename from arkoala/arkui/src/ArkRichText.ts rename to arkoala/arkui/src/generated/ArkRichText.ts index e5386d4f2..c364141f4 100644 --- a/arkoala/arkui/src/ArkRichText.ts +++ b/arkoala/arkui/src/generated/ArkRichText.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRichTextInterfaces.ts b/arkoala/arkui/src/generated/ArkRichTextInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRichTextInterfaces.ts rename to arkoala/arkui/src/generated/ArkRichTextInterfaces.ts index 78028d833..21be2bd44 100644 --- a/arkoala/arkui/src/ArkRichTextInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRichTextInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRootScene.ts b/arkoala/arkui/src/generated/ArkRootScene.ts similarity index 97% rename from arkoala/arkui/src/ArkRootScene.ts rename to arkoala/arkui/src/generated/ArkRootScene.ts index 183da8882..687e9280d 100644 --- a/arkoala/arkui/src/ArkRootScene.ts +++ b/arkoala/arkui/src/generated/ArkRootScene.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRootSceneInterfaces.ts b/arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRootSceneInterfaces.ts rename to arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts index 2f2cdb93a..5aed155bf 100644 --- a/arkoala/arkui/src/ArkRootSceneInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index c9f3d503b..3a544e97b 100644 --- a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,13 +43,13 @@ export class RotationGestureEventInternal extends BaseGestureEventInternal imple set angle(angle: number) { this.setAngle(angle) } - static ctor(): KPointer { + static ctor_rotationgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._RotationGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RotationGestureEventInternal.ctor() + const ctorPtr: KPointer = RotationGestureEventInternal.ctor_rotationgestureevent() this.peer = new Finalizable(ctorPtr, RotationGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkRow.ts b/arkoala/arkui/src/generated/ArkRow.ts similarity index 97% rename from arkoala/arkui/src/ArkRow.ts rename to arkoala/arkui/src/generated/ArkRow.ts index 7382348c8..a269dd024 100644 --- a/arkoala/arkui/src/ArkRow.ts +++ b/arkoala/arkui/src/generated/ArkRow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowInterfaces.ts b/arkoala/arkui/src/generated/ArkRowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRowInterfaces.ts rename to arkoala/arkui/src/generated/ArkRowInterfaces.ts index 93245e8fd..ac645369d 100644 --- a/arkoala/arkui/src/ArkRowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowSplit.ts b/arkoala/arkui/src/generated/ArkRowSplit.ts similarity index 97% rename from arkoala/arkui/src/ArkRowSplit.ts rename to arkoala/arkui/src/generated/ArkRowSplit.ts index 4050b13f5..4f027b330 100644 --- a/arkoala/arkui/src/ArkRowSplit.ts +++ b/arkoala/arkui/src/generated/ArkRowSplit.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowSplitInterfaces.ts b/arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRowSplitInterfaces.ts rename to arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts index f47048bac..ba6032a90 100644 --- a/arkoala/arkui/src/ArkRowSplitInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSaveButton.ts b/arkoala/arkui/src/generated/ArkSaveButton.ts similarity index 93% rename from arkoala/arkui/src/ArkSaveButton.ts rename to arkoala/arkui/src/generated/ArkSaveButton.ts index 08608ee31..6e083c08d 100644 --- a/arkoala/arkui/src/ArkSaveButton.ts +++ b/arkoala/arkui/src/generated/ArkSaveButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setSaveButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (SaveButtonOptions) this.getPeer()?.setSaveButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkSaveButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkSaveButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkSaveButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkSaveButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index 5b199f0cc..140a96964 100644 --- a/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScaleSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ScaleSymbolEffect { + const obj: ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) + return obj + } +} export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_scalesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -66,7 +71,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr: KPointer = ScaleSymbolEffect.ctor(scope, direction) + const ctorPtr: KPointer = ScaleSymbolEffect.ctor_scalesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, direction) } } -export class ScaleSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ScaleSymbolEffect { - const obj: ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScreen.ts b/arkoala/arkui/src/generated/ArkScreen.ts similarity index 97% rename from arkoala/arkui/src/ArkScreen.ts rename to arkoala/arkui/src/generated/ArkScreen.ts index 936e15ac8..97a2cb311 100644 --- a/arkoala/arkui/src/ArkScreen.ts +++ b/arkoala/arkui/src/generated/ArkScreen.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index a75a3501d..95fdf101c 100644 --- a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ScreenCaptureConfig, WebCaptureMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScreenCaptureHandlerInternal { + public static fromPtr(ptr: KPointer): ScreenCaptureHandler { + const obj: ScreenCaptureHandler = new ScreenCaptureHandler() + obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) + return obj + } +} export class ScreenCaptureHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_screencapturehandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ScreenCaptureHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ScreenCaptureHandler.ctor() + const ctorPtr: KPointer = ScreenCaptureHandler.ctor_screencapturehandler() this.peer = new Finalizable(ctorPtr, ScreenCaptureHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class ScreenCaptureHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ScreenCaptureHandler_deny(this.peer!.ptr) } } -export class ScreenCaptureHandlerInternal { - public static fromPtr(ptr: KPointer): ScreenCaptureHandler { - const obj: ScreenCaptureHandler = new ScreenCaptureHandler() - obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScreenInterfaces.ts b/arkoala/arkui/src/generated/ArkScreenInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScreenInterfaces.ts rename to arkoala/arkui/src/generated/ArkScreenInterfaces.ts index 7be968522..c5234ca79 100644 --- a/arkoala/arkui/src/ArkScreenInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScreenInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScroll.ts b/arkoala/arkui/src/generated/ArkScroll.ts similarity index 98% rename from arkoala/arkui/src/ArkScroll.ts rename to arkoala/arkui/src/generated/ArkScroll.ts index 47ee5e2d7..446b03f71 100644 --- a/arkoala/arkui/src/ArkScroll.ts +++ b/arkoala/arkui/src/generated/ArkScroll.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollBar.ts b/arkoala/arkui/src/generated/ArkScrollBar.ts similarity index 97% rename from arkoala/arkui/src/ArkScrollBar.ts rename to arkoala/arkui/src/generated/ArkScrollBar.ts index 6e2a099f1..e411ef2cf 100644 --- a/arkoala/arkui/src/ArkScrollBar.ts +++ b/arkoala/arkui/src/generated/ArkScrollBar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollBarInterfaces.ts b/arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScrollBarInterfaces.ts rename to arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts index 3eae51794..822df8813 100644 --- a/arkoala/arkui/src/ArkScrollBarInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollInterfaces.ts b/arkoala/arkui/src/generated/ArkScrollInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScrollInterfaces.ts rename to arkoala/arkui/src/generated/ArkScrollInterfaces.ts index d9e4afb49..6cce2b8eb 100644 --- a/arkoala/arkui/src/ArkScrollInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScrollInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts similarity index 86% rename from arkoala/arkui/src/ArkScrollMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts index 6957376dc..aa3b90162 100644 --- a/arkoala/arkui/src/ArkScrollMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollMotionInternal { + public static fromPtr(ptr: KPointer): ScrollMotion { + const obj: ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) + return obj + } +} export class ScrollMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { + static ctor_scrollmotion(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) @@ -41,7 +46,7 @@ export class ScrollMotion implements MaterializedBase { constructor(position?: number, velocity?: number, min?: number, max?: number, prop?: SpringProp) { if (((position) !== (undefined)) && ((velocity) !== (undefined)) && ((min) !== (undefined)) && ((max) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr: KPointer = ScrollMotion.ctor(position, velocity, min, max, prop) + const ctorPtr: KPointer = ScrollMotion.ctor_scrollmotion(position, velocity, min, max, prop) this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) } } @@ -49,10 +54,3 @@ export class ScrollMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._ScrollMotion_getFinalizer() } } -export class ScrollMotionInternal { - public static fromPtr(ptr: KPointer): ScrollMotion { - const obj: ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index 6c8aab064..0f3b3b2aa 100644 --- a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -17,27 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollableTargetInfoInternal { + public static fromPtr(ptr: KPointer): ScrollableTargetInfo { + const obj: ScrollableTargetInfo = new ScrollableTargetInfo() + obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) + return obj + } +} export class ScrollableTargetInfo extends EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scrollabletargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._ScrollableTargetInfo_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ScrollableTargetInfo.ctor() + const ctorPtr: KPointer = ScrollableTargetInfo.ctor_scrollabletargetinfo() this.peer = new Finalizable(ctorPtr, ScrollableTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -58,10 +63,3 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize return retval } } -export class ScrollableTargetInfoInternal { - public static fromPtr(ptr: KPointer): ScrollableTargetInfo { - const obj: ScrollableTargetInfo = new ScrollableTargetInfo() - obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkScrollerMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollerMaterialized.ts index f51436359..e22a31519 100644 --- a/arkoala/arkui/src/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts @@ -24,26 +24,31 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollerInternal { + public static fromPtr(ptr: KPointer): Scroller { + const obj: Scroller = new Scroller() + obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) + return obj + } +} export class Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scroller(): KPointer { const retval = ArkUIGeneratedNativeModule._Scroller_ctor() return retval } constructor() { - const ctorPtr: KPointer = Scroller.ctor() + const ctorPtr: KPointer = Scroller.ctor_scroller() this.peer = new Finalizable(ctorPtr, Scroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,11 +70,11 @@ export class Scroller implements MaterializedBase { } public scrollPage(value: ScrollPageOptions | { next: boolean, direction?: Axis }): undefined { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("animation")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("animation")))) { const value_casted = value as (ScrollPageOptions) return this.scrollPage0_serialize(value_casted) } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("direction")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("direction")))) { const value_casted = value as ({ next: boolean, direction?: Axis }) return this.scrollPage1_serialize(value_casted) } @@ -150,7 +155,7 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readOffsetResult() } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer: Serializer = Serializer.hold() @@ -189,17 +194,10 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRectResult() } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) return retval } } -export class ScrollerInternal { - public static fromPtr(ptr: KPointer): Scroller { - const obj: Scroller = new Scroller() - obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSearch.ts b/arkoala/arkui/src/generated/ArkSearch.ts similarity index 98% rename from arkoala/arkui/src/ArkSearch.ts rename to arkoala/arkui/src/generated/ArkSearch.ts index bed45e04a..ac3e54d5a 100644 --- a/arkoala/arkui/src/ArkSearch.ts +++ b/arkoala/arkui/src/generated/ArkSearch.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -178,13 +177,13 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({Search_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (SearchSubmitCallback) UseEventsProperties({Search_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkSearchControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts index 9bae7bfde..3412c07be 100644 --- a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SearchControllerInternal { + public static fromPtr(ptr: KPointer): SearchController { + const obj: SearchController = new SearchController() + obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) + return obj + } +} export class SearchController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_searchcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SearchController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = SearchController.ctor() + const ctorPtr: KPointer = SearchController.ctor_searchcontroller() this.peer = new Finalizable(ctorPtr, SearchController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class SearchController extends TextContentControllerBase implements Mater thisSerializer.release() } } -export class SearchControllerInternal { - public static fromPtr(ptr: KPointer): SearchController { - const obj: SearchController = new SearchController() - obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSearchInterfaces.ts b/arkoala/arkui/src/generated/ArkSearchInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSearchInterfaces.ts rename to arkoala/arkui/src/generated/ArkSearchInterfaces.ts index 9a412b381..7d9b223ed 100644 --- a/arkoala/arkui/src/ArkSearchInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSearchInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSecurityComponent.ts b/arkoala/arkui/src/generated/ArkSecurityComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkSecurityComponent.ts rename to arkoala/arkui/src/generated/ArkSecurityComponent.ts index 25ba7cbca..510cfdf7c 100644 --- a/arkoala/arkui/src/ArkSecurityComponent.ts +++ b/arkoala/arkui/src/generated/ArkSecurityComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/ArkSecurityComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkSecurityComponentInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkSecurityComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkSecurityComponentInterfaces.ts diff --git a/arkoala/arkui/src/ArkSelect.ts b/arkoala/arkui/src/generated/ArkSelect.ts similarity index 98% rename from arkoala/arkui/src/ArkSelect.ts rename to arkoala/arkui/src/generated/ArkSelect.ts index e6a8e3cbc..a2b523b29 100644 --- a/arkoala/arkui/src/ArkSelect.ts +++ b/arkoala/arkui/src/generated/ArkSelect.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSelectInterfaces.ts b/arkoala/arkui/src/generated/ArkSelectInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSelectInterfaces.ts rename to arkoala/arkui/src/generated/ArkSelectInterfaces.ts index 780d7d82f..c4967093c 100644 --- a/arkoala/arkui/src/ArkSelectInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSelectInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkShape.ts b/arkoala/arkui/src/generated/ArkShape.ts similarity index 97% rename from arkoala/arkui/src/ArkShape.ts rename to arkoala/arkui/src/generated/ArkShape.ts index cd28d22bf..9b98153da 100644 --- a/arkoala/arkui/src/ArkShape.ts +++ b/arkoala/arkui/src/generated/ArkShape.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,11 +60,11 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setShapeOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (PixelMap) this.getPeer()?.setShapeOptions0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkShapeInterfaces.ts b/arkoala/arkui/src/generated/ArkShapeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkShapeInterfaces.ts rename to arkoala/arkui/src/generated/ArkShapeInterfaces.ts index 29fd7f88e..d54746d47 100644 --- a/arkoala/arkui/src/ArkShapeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkShapeInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkSidebar.ts b/arkoala/arkui/src/generated/ArkSidebar.ts similarity index 93% rename from arkoala/arkui/src/ArkSidebar.ts rename to arkoala/arkui/src/generated/ArkSidebar.ts index 8348e29c1..d151609c7 100644 --- a/arkoala/arkui/src/ArkSidebar.ts +++ b/arkoala/arkui/src/generated/ArkSidebar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -109,12 +108,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.sideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.sideBarWidth1Attribute(value_casted) return this @@ -127,12 +126,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.minSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.minSideBarWidth1Attribute(value_casted) return this @@ -145,12 +144,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.maxSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.maxSideBarWidth1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkSidebarInterfaces.ts b/arkoala/arkui/src/generated/ArkSidebarInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSidebarInterfaces.ts rename to arkoala/arkui/src/generated/ArkSidebarInterfaces.ts index 28daa13b8..43a9e8a99 100644 --- a/arkoala/arkui/src/ArkSidebarInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSidebarInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkSlider.ts b/arkoala/arkui/src/generated/ArkSlider.ts similarity index 98% rename from arkoala/arkui/src/ArkSlider.ts rename to arkoala/arkui/src/generated/ArkSlider.ts index 9afc01179..3732cb8be 100644 --- a/arkoala/arkui/src/ArkSlider.ts +++ b/arkoala/arkui/src/generated/ArkSlider.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSliderInterfaces.ts b/arkoala/arkui/src/generated/ArkSliderInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSliderInterfaces.ts rename to arkoala/arkui/src/generated/ArkSliderInterfaces.ts index 86085e580..4e15cfc51 100644 --- a/arkoala/arkui/src/ArkSliderInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSliderInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpan.ts b/arkoala/arkui/src/generated/ArkSpan.ts similarity index 98% rename from arkoala/arkui/src/ArkSpan.ts rename to arkoala/arkui/src/generated/ArkSpan.ts index c0f1f9744..b5ea42ede 100644 --- a/arkoala/arkui/src/ArkSpan.ts +++ b/arkoala/arkui/src/generated/ArkSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkSpanInterfaces.ts index f4e83b62e..5ad5b2913 100644 --- a/arkoala/arkui/src/ArkSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSpanInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpringMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkSpringMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts index 8c266c3eb..092b14268 100644 --- a/arkoala/arkui/src/ArkSpringMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SpringMotionInternal { + public static fromPtr(ptr: KPointer): SpringMotion { + const obj: SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) + return obj + } +} export class SpringMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(start: number, end: number, velocity: number, prop: SpringProp): KPointer { + static ctor_springmotion(start: number, end: number, velocity: number, prop: SpringProp): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._SpringMotion_ctor(start, end, velocity, thisSerializer.asArray(), thisSerializer.length()) @@ -41,7 +46,7 @@ export class SpringMotion implements MaterializedBase { constructor(start?: number, end?: number, velocity?: number, prop?: SpringProp) { if (((start) !== (undefined)) && ((end) !== (undefined)) && ((velocity) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr: KPointer = SpringMotion.ctor(start, end, velocity, prop) + const ctorPtr: KPointer = SpringMotion.ctor_springmotion(start, end, velocity, prop) this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) } } @@ -49,10 +54,3 @@ export class SpringMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringMotion_getFinalizer() } } -export class SpringMotionInternal { - public static fromPtr(ptr: KPointer): SpringMotion { - const obj: SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSpringPropMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts similarity index 85% rename from arkoala/arkui/src/ArkSpringPropMaterialized.ts rename to arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts index 109360384..6db5e0df8 100644 --- a/arkoala/arkui/src/ArkSpringPropMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -16,28 +16,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SpringPropInternal { + public static fromPtr(ptr: KPointer): SpringProp { + const obj: SpringProp = new SpringProp(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) + return obj + } +} export class SpringProp implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(mass: number, stiffness: number, damping: number): KPointer { + static ctor_springprop(mass: number, stiffness: number, damping: number): KPointer { const retval = ArkUIGeneratedNativeModule._SpringProp_ctor(mass, stiffness, damping) return retval } constructor(mass?: number, stiffness?: number, damping?: number) { if (((mass) !== (undefined)) && ((stiffness) !== (undefined)) && ((damping) !== (undefined))) { - const ctorPtr: KPointer = SpringProp.ctor(mass, stiffness, damping) + const ctorPtr: KPointer = SpringProp.ctor_springprop(mass, stiffness, damping) this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) } } @@ -45,10 +50,3 @@ export class SpringProp implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringProp_getFinalizer() } } -export class SpringPropInternal { - public static fromPtr(ptr: KPointer): SpringProp { - const obj: SpringProp = new SpringProp(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index d87e69d97..3307fc184 100644 --- a/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SslErrorHandlerInternal { + public static fromPtr(ptr: KPointer): SslErrorHandler { + const obj: SslErrorHandler = new SslErrorHandler() + obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) + return obj + } +} export class SslErrorHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_sslerrorhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._SslErrorHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = SslErrorHandler.ctor() + const ctorPtr: KPointer = SslErrorHandler.ctor_sslerrorhandler() this.peer = new Finalizable(ctorPtr, SslErrorHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class SslErrorHandler implements MaterializedBase { ArkUIGeneratedNativeModule._SslErrorHandler_handleCancel(this.peer!.ptr) } } -export class SslErrorHandlerInternal { - public static fromPtr(ptr: KPointer): SslErrorHandler { - const obj: SslErrorHandler = new SslErrorHandler() - obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkStack.ts b/arkoala/arkui/src/generated/ArkStack.ts similarity index 97% rename from arkoala/arkui/src/ArkStack.ts rename to arkoala/arkui/src/generated/ArkStack.ts index 0960ec4ac..f8ce7b674 100644 --- a/arkoala/arkui/src/ArkStack.ts +++ b/arkoala/arkui/src/generated/ArkStack.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStackInterfaces.ts b/arkoala/arkui/src/generated/ArkStackInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStackInterfaces.ts rename to arkoala/arkui/src/generated/ArkStackInterfaces.ts index 7b4fc9589..6e092a3de 100644 --- a/arkoala/arkui/src/ArkStackInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStackInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStateManagementInterfaces.ts b/arkoala/arkui/src/generated/ArkStateManagementInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStateManagementInterfaces.ts rename to arkoala/arkui/src/generated/ArkStateManagementInterfaces.ts diff --git a/arkoala/arkui/src/ArkStaticComponents.ts b/arkoala/arkui/src/generated/ArkStaticComponents.ts similarity index 91% rename from arkoala/arkui/src/ArkStaticComponents.ts rename to arkoala/arkui/src/generated/ArkStaticComponents.ts index 8c65a3341..60f4f556a 100644 --- a/arkoala/arkui/src/ArkStaticComponents.ts +++ b/arkoala/arkui/src/generated/ArkStaticComponents.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkRootPeer, ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" /** @memo:stable */ export class ArkRootComponent extends ComponentBase { diff --git a/arkoala/arkui/src/ArkStaticComponentsInterfaces.ts b/arkoala/arkui/src/generated/ArkStaticComponentsInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStaticComponentsInterfaces.ts rename to arkoala/arkui/src/generated/ArkStaticComponentsInterfaces.ts diff --git a/arkoala/arkui/src/ArkStdlibInterfaces.ts b/arkoala/arkui/src/generated/ArkStdlibInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStdlibInterfaces.ts rename to arkoala/arkui/src/generated/ArkStdlibInterfaces.ts diff --git a/arkoala/arkui/src/ArkStepper.ts b/arkoala/arkui/src/generated/ArkStepper.ts similarity index 97% rename from arkoala/arkui/src/ArkStepper.ts rename to arkoala/arkui/src/generated/ArkStepper.ts index c1f31895a..867abbc90 100644 --- a/arkoala/arkui/src/ArkStepper.ts +++ b/arkoala/arkui/src/generated/ArkStepper.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperInterfaces.ts b/arkoala/arkui/src/generated/ArkStepperInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStepperInterfaces.ts rename to arkoala/arkui/src/generated/ArkStepperInterfaces.ts index 3341084a7..382beda4d 100644 --- a/arkoala/arkui/src/ArkStepperInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStepperInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperItem.ts b/arkoala/arkui/src/generated/ArkStepperItem.ts similarity index 97% rename from arkoala/arkui/src/ArkStepperItem.ts rename to arkoala/arkui/src/generated/ArkStepperItem.ts index a76edf96f..35996f7cf 100644 --- a/arkoala/arkui/src/ArkStepperItem.ts +++ b/arkoala/arkui/src/generated/ArkStepperItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperItemInterfaces.ts b/arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStepperItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts index 8e858e2e9..f85cc32af 100644 --- a/arkoala/arkui/src/ArkStepperItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index b1abee4bd..85cb16019 100644 --- a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -28,12 +28,10 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,12 +44,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_styledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._StyledStringController_ctor() return retval } constructor() { - const ctorPtr: KPointer = StyledStringControllerInternal.ctor() + const ctorPtr: KPointer = StyledStringControllerInternal.ctor_styledstringcontroller() this.peer = new Finalizable(ctorPtr, StyledStringControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkStyledStringInterfaces.ts b/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStyledStringInterfaces.ts rename to arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts diff --git a/arkoala/arkui/src/ArkStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts index d9cbaeb0c..127b29d71 100644 --- a/arkoala/arkui/src/ArkStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -26,15 +26,20 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class StyledStringInternal { + public static fromPtr(ptr: KPointer): StyledString { + const obj: StyledString = new StyledString(undefined, undefined) + obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) + return obj + } +} export class StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,11 +48,11 @@ export class StyledString implements MaterializedBase { get length(): number { return this.getLength() } - static ctor(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { + static ctor_styledstring(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) @@ -80,7 +85,7 @@ export class StyledString implements MaterializedBase { constructor(value?: string | ImageAttachment | CustomSpan, styles?: Array) { if (((value) !== (undefined)) && ((styles) !== (undefined))) { - const ctorPtr: KPointer = StyledString.ctor(value, styles) + const ctorPtr: KPointer = StyledString.ctor_styledstring(value, styles) this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) } } @@ -196,10 +201,3 @@ export class StyledString implements MaterializedBase { return retval } } -export class StyledStringInternal { - public static fromPtr(ptr: KPointer): StyledString { - const obj: StyledString = new StyledString(undefined, undefined) - obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts b/arkoala/arkui/src/generated/ArkSubTabBarStyleBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts rename to arkoala/arkui/src/generated/ArkSubTabBarStyleBuilder.ts diff --git a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkSubmitEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts index 41766db35..e73e574ae 100644 --- a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -40,12 +38,12 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { set text(text: string) { this.setText(text) } - static ctor(): KPointer { + static ctor_submitevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SubmitEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = SubmitEventInternal.ctor() + const ctorPtr: KPointer = SubmitEventInternal.ctor_submitevent() this.peer = new Finalizable(ctorPtr, SubmitEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index 090ad14d6..65db43892 100644 --- a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,13 +50,13 @@ export class SwipeGestureEventInternal extends BaseGestureEventInternal implemen set speed(speed: number) { this.setSpeed(speed) } - static ctor(): KPointer { + static ctor_swipegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SwipeGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = SwipeGestureEventInternal.ctor() + const ctorPtr: KPointer = SwipeGestureEventInternal.ctor_swipegestureevent() this.peer = new Finalizable(ctorPtr, SwipeGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwiper.ts b/arkoala/arkui/src/generated/ArkSwiper.ts similarity index 97% rename from arkoala/arkui/src/ArkSwiper.ts rename to arkoala/arkui/src/generated/ArkSwiper.ts index f4a8362b6..baa1e9fa0 100644 --- a/arkoala/arkui/src/ArkSwiper.ts +++ b/arkoala/arkui/src/generated/ArkSwiper.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -104,12 +103,12 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { if (this.checkPriority("indicator")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof IndicatorComponentController))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof IndicatorComponentController)) { const value_casted = value as (IndicatorComponentController) this.getPeer()?.indicator1Attribute(value_casted) return this } - if (((((RuntimeType.OBJECT) == (value_type)) && (value instanceof DotIndicator)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DigitIndicator)) || (((RuntimeType.BOOLEAN == value_type))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof DotIndicator)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DigitIndicator)) || (RuntimeType.BOOLEAN == value_type)) { const value_casted = value as (DotIndicator | DigitIndicator | boolean) this.getPeer()?.indicator0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 17735aade..746c53c19 100644 --- a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -61,12 +59,12 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw set mainAxisLength(mainAxisLength: number) { this.setMainAxisLength(mainAxisLength) } - static ctor(): KPointer { + static ctor_swipercontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = SwiperContentTransitionProxyInternal.ctor() + const ctorPtr: KPointer = SwiperContentTransitionProxyInternal.ctor_swipercontenttransitionproxy() this.peer = new Finalizable(ctorPtr, SwiperContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkSwiperControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts index af05c1a59..fd548afb4 100644 --- a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { VoidCallback } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SwiperControllerInternal { + public static fromPtr(ptr: KPointer): SwiperController { + const obj: SwiperController = new SwiperController() + obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) + return obj + } +} export class SwiperController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_swipercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperController_ctor() return retval } constructor() { - const ctorPtr: KPointer = SwiperController.ctor() + const ctorPtr: KPointer = SwiperController.ctor_swipercontroller() this.peer = new Finalizable(ctorPtr, SwiperController.getFinalizer()) } static getFinalizer(): KPointer { @@ -92,10 +97,3 @@ export class SwiperController implements MaterializedBase { return retval } } -export class SwiperControllerInternal { - public static fromPtr(ptr: KPointer): SwiperController { - const obj: SwiperController = new SwiperController() - obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSwiperInterfaces.ts b/arkoala/arkui/src/generated/ArkSwiperInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSwiperInterfaces.ts rename to arkoala/arkui/src/generated/ArkSwiperInterfaces.ts index cd250af28..1b06e9333 100644 --- a/arkoala/arkui/src/ArkSwiperInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSwiperInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolSpan.ts b/arkoala/arkui/src/generated/ArkSymbolSpan.ts similarity index 97% rename from arkoala/arkui/src/ArkSymbolSpan.ts rename to arkoala/arkui/src/generated/ArkSymbolSpan.ts index a91bda63a..0ca9fe9af 100644 --- a/arkoala/arkui/src/ArkSymbolSpan.ts +++ b/arkoala/arkui/src/generated/ArkSymbolSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSymbolSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts index 99bba51d6..3af17a722 100644 --- a/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolglyph.ts b/arkoala/arkui/src/generated/ArkSymbolglyph.ts similarity index 95% rename from arkoala/arkui/src/ArkSymbolglyph.ts rename to arkoala/arkui/src/generated/ArkSymbolglyph.ts index d9232dd4a..1c0b02285 100644 --- a/arkoala/arkui/src/ArkSymbolglyph.ts +++ b/arkoala/arkui/src/generated/ArkSymbolglyph.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -116,13 +115,13 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) - if ((((RuntimeType.BOOLEAN == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.BOOLEAN == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const isActive_casted = isActive as (boolean | undefined) this.getPeer()?.symbolEffect0Attribute(symbolEffect_casted, isActive_casted) return this } - if ((((RuntimeType.NUMBER == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.NUMBER == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const triggerValue_casted = isActive as (number | undefined) this.getPeer()?.symbolEffect1Attribute(symbolEffect_casted, triggerValue_casted) diff --git a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts b/arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSymbolglyphInterfaces.ts rename to arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts index a58a7f6d0..189724f55 100644 --- a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts new file mode 100644 index 000000000..14f99a43b --- /dev/null +++ b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SystemOpsInternal { + public static fromPtr(ptr: KPointer): SystemOps { + const obj: SystemOps = new SystemOps() + obj.peer = new Finalizable(ptr, SystemOps.getFinalizer()) + return obj + } +} +export class SystemOps implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_systemops(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_ctor() + return retval + } + constructor() { + // Constructor does not have parameters. + // It means that the static method call invokes ctor method as well + // when all arguments are undefined. + const ctorPtr: KPointer = SystemOps.ctor_systemops() + this.peer = new Finalizable(ctorPtr, SystemOps.getFinalizer()) + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._SystemOps_getFinalizer() + } + public static StartFrame(): KPointer { + return SystemOps.StartFrame_serialize() + } + public static EndFrame(root: KPointer): void { + const root_casted = root as (KPointer) + SystemOps.EndFrame_serialize(root_casted) + return + } + private static StartFrame_serialize(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_StartFrame() + return retval + } + private static EndFrame_serialize(root: KPointer): void { + ArkUIGeneratedNativeModule._SystemOps_EndFrame(root) + } +} diff --git a/arkoala/arkui/src/ArkTabContent.ts b/arkoala/arkui/src/generated/ArkTabContent.ts similarity index 92% rename from arkoala/arkui/src/ArkTabContent.ts rename to arkoala/arkui/src/generated/ArkTabContent.ts index 74e17a52e..5fcb8f1d3 100644 --- a/arkoala/arkui/src/ArkTabContent.ts +++ b/arkoala/arkui/src/generated/ArkTabContent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -74,12 +73,12 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { if (this.checkPriority("tabBar")) { const value_type = runtimeType(value) - if (((((RuntimeType.OBJECT) == (value_type)) && (value instanceof SubTabBarStyle)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof BottomTabBarStyle)))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof SubTabBarStyle)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof BottomTabBarStyle))) { const value_casted = value as (SubTabBarStyle | BottomTabBarStyle) this.getPeer()?.tabBar1Attribute(value_casted) return this } - if (((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) || (((RuntimeType.FUNCTION == value_type))) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("icon")) || (value!.hasOwnProperty("text"))))))) { + if ((RuntimeType.STRING == value_type) || (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) || (RuntimeType.FUNCTION == value_type) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("icon")) || (value!.hasOwnProperty("text")))))) { const value_casted = value as (string | Resource | CustomBuilder | TabBarOptions) this.getPeer()?.tabBar0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkTabContentInterfaces.ts b/arkoala/arkui/src/generated/ArkTabContentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTabContentInterfaces.ts rename to arkoala/arkui/src/generated/ArkTabContentInterfaces.ts index 5c0b3b734..c51dd7e13 100644 --- a/arkoala/arkui/src/ArkTabContentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTabContentInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index d2b59bfb4..e1d4eec94 100644 --- a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -47,12 +45,12 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo set to(to: number) { this.setTo(to) } - static ctor(): KPointer { + static ctor_tabcontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._TabContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = TabContentTransitionProxyInternal.ctor() + const ctorPtr: KPointer = TabContentTransitionProxyInternal.ctor_tabcontenttransitionproxy() this.peer = new Finalizable(ctorPtr, TabContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkTabs.ts b/arkoala/arkui/src/generated/ArkTabs.ts similarity index 97% rename from arkoala/arkui/src/ArkTabs.ts rename to arkoala/arkui/src/generated/ArkTabs.ts index 230ed7763..205f99b88 100644 --- a/arkoala/arkui/src/ArkTabs.ts +++ b/arkoala/arkui/src/generated/ArkTabs.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -100,12 +99,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = value as (BarMode) this.getPeer()?.barMode0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const value_casted = value as (BarMode) const options_casted = options as (ScrollableBarModeOptions | undefined) this.getPeer()?.barMode1Attribute(value_casted, options_casted) @@ -270,12 +269,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) - if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = style as (BlurStyle) this.getPeer()?.barBackgroundBlurStyle0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (((RuntimeType.OBJECT == options_type)))) { + if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (RuntimeType.OBJECT == options_type)) { const style_casted = style as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions) this.getPeer()?.barBackgroundBlurStyle1Attribute(style_casted, options_casted) diff --git a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkTabsControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts index b939caa50..9df4861f8 100644 --- a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TranslateOptions } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TabsControllerInternal { + public static fromPtr(ptr: KPointer): TabsController { + const obj: TabsController = new TabsController() + obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) + return obj + } +} export class TabsController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tabscontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TabsController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TabsController.ctor() + const ctorPtr: KPointer = TabsController.ctor_tabscontroller() this.peer = new Finalizable(ctorPtr, TabsController.getFinalizer()) } static getFinalizer(): KPointer { @@ -92,10 +97,3 @@ export class TabsController implements MaterializedBase { ArkUIGeneratedNativeModule._TabsController_setTabBarOpacity(this.peer!.ptr, opacity) } } -export class TabsControllerInternal { - public static fromPtr(ptr: KPointer): TabsController { - const obj: TabsController = new TabsController() - obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTabsInterfaces.ts b/arkoala/arkui/src/generated/ArkTabsInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTabsInterfaces.ts rename to arkoala/arkui/src/generated/ArkTabsInterfaces.ts index 366d66b2f..99bca997a 100644 --- a/arkoala/arkui/src/ArkTabsInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTabsInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTapGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts index 5df229f63..3a8cdbe26 100644 --- a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,13 +36,13 @@ export class TapGestureEventInternal extends BaseGestureEventInternal implements public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tapgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TapGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TapGestureEventInternal.ctor() + const ctorPtr: KPointer = TapGestureEventInternal.ctor_tapgestureevent() this.peer = new Finalizable(ctorPtr, TapGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkText.ts b/arkoala/arkui/src/generated/ArkText.ts similarity index 95% rename from arkoala/arkui/src/ArkText.ts rename to arkoala/arkui/src/generated/ArkText.ts index e6e3e45dd..9a812ab3a 100644 --- a/arkoala/arkui/src/ArkText.ts +++ b/arkoala/arkui/src/generated/ArkText.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -83,12 +82,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = fontValue as (Font) this.getPeer()?.font0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const fontValue_casted = fontValue as (Font) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.font1Attribute(fontValue_casted, options_casted) @@ -166,12 +165,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) - if (((((RuntimeType.NUMBER == weight_type))) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (RuntimeType.STRING == weight_type)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = weight as (number | FontWeight | string) this.getPeer()?.fontWeight0Attribute(value_casted) return this } - if (((((RuntimeType.NUMBER == weight_type))) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (RuntimeType.STRING == weight_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const weight_casted = weight as (number | FontWeight | string) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.fontWeight1Attribute(weight_casted, options_casted) diff --git a/arkoala/arkui/src/ArkTextArea.ts b/arkoala/arkui/src/generated/ArkTextArea.ts similarity index 98% rename from arkoala/arkui/src/ArkTextArea.ts rename to arkoala/arkui/src/generated/ArkTextArea.ts index ee71a42cf..0bbfaa3f6 100644 --- a/arkoala/arkui/src/ArkTextArea.ts +++ b/arkoala/arkui/src/generated/ArkTextArea.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -204,13 +203,13 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((enterKey: EnterKeyType) => void)) UseEventsProperties({TextArea_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (TextAreaSubmitCallback) UseEventsProperties({TextArea_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 7f5375d84..1365d6456 100644 --- a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextAreaControllerInternal { + public static fromPtr(ptr: KPointer): TextAreaController { + const obj: TextAreaController = new TextAreaController() + obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) + return obj + } +} export class TextAreaController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textareacontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextAreaController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextAreaController.ctor() + const ctorPtr: KPointer = TextAreaController.ctor_textareacontroller() this.peer = new Finalizable(ctorPtr, TextAreaController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class TextAreaController extends TextContentControllerBase implements Mat ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) } } -export class TextAreaControllerInternal { - public static fromPtr(ptr: KPointer): TextAreaController { - const obj: TextAreaController = new TextAreaController() - obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextAreaInterfaces.ts b/arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextAreaInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts index aa2b07aac..556f5bc3e 100644 --- a/arkoala/arkui/src/ArkTextAreaInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index 7ea88b758..25f0bd05c 100644 --- a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -20,12 +20,10 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -39,12 +37,12 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextBaseController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextBaseControllerInternal.ctor() + const ctorPtr: KPointer = TextBaseControllerInternal.ctor_textbasecontroller() this.peer = new Finalizable(ctorPtr, TextBaseControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkTextClock.ts b/arkoala/arkui/src/generated/ArkTextClock.ts similarity index 98% rename from arkoala/arkui/src/ArkTextClock.ts rename to arkoala/arkui/src/generated/ArkTextClock.ts index f04d5c363..0487f3835 100644 --- a/arkoala/arkui/src/ArkTextClock.ts +++ b/arkoala/arkui/src/generated/ArkTextClock.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTextClockControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts index e1c529e42..046e03f37 100644 --- a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextClockControllerInternal { + public static fromPtr(ptr: KPointer): TextClockController { + const obj: TextClockController = new TextClockController() + obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) + return obj + } +} export class TextClockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textclockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextClockController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextClockController.ctor() + const ctorPtr: KPointer = TextClockController.ctor_textclockcontroller() this.peer = new Finalizable(ctorPtr, TextClockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class TextClockController implements MaterializedBase { return retval } } -export class TextClockControllerInternal { - public static fromPtr(ptr: KPointer): TextClockController { - const obj: TextClockController = new TextClockController() - obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextClockInterfaces.ts b/arkoala/arkui/src/generated/ArkTextClockInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextClockInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextClockInterfaces.ts index 902943544..dc7759ee4 100644 --- a/arkoala/arkui/src/ArkTextClockInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextClockInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkTextCommonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkTextCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextCommonInterfaces.ts diff --git a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index 9d59c677f..a17a394d5 100644 --- a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CaretOffset, RectResult } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextContentControllerBaseInternal { + public static fromPtr(ptr: KPointer): TextContentControllerBase { + const obj: TextContentControllerBase = new TextContentControllerBase() + obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) + return obj + } +} export class TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontentcontrollerbase(): KPointer { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextContentControllerBase.ctor() + const ctorPtr: KPointer = TextContentControllerBase.ctor_textcontentcontrollerbase() this.peer = new Finalizable(ctorPtr, TextContentControllerBase.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,21 +58,14 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readCaretOffset() } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readRectResult() } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) return retval } } -export class TextContentControllerBaseInternal { - public static fromPtr(ptr: KPointer): TextContentControllerBase { - const obj: TextContentControllerBase = new TextContentControllerBase() - obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts index 56324a020..43e8c47bb 100644 --- a/arkoala/arkui/src/ArkTextControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -29,26 +29,31 @@ import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextControllerInternal { + public static fromPtr(ptr: KPointer): TextController { + const obj: TextController = new TextController() + obj.peer = new Finalizable(ptr, TextController.getFinalizer()) + return obj + } +} export class TextController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextController.ctor() + const ctorPtr: KPointer = TextController.ctor_textcontroller() this.peer = new Finalizable(ctorPtr, TextController.getFinalizer()) } static getFinalizer(): KPointer { @@ -80,10 +85,3 @@ export class TextController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextControllerInternal { - public static fromPtr(ptr: KPointer): TextController { - const obj: TextController = new TextController() - obj.peer = new Finalizable(ptr, TextController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index fd764695d..a26351c51 100644 --- a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -21,12 +21,10 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,13 +40,13 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texteditcontrollerex(): KPointer { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextEditControllerExInternal.ctor() + const ctorPtr: KPointer = TextEditControllerExInternal.ctor_texteditcontrollerex() this.peer = new Finalizable(ctorPtr, TextEditControllerExInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -88,7 +86,7 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readPreviewText() } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj: TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala/arkui/src/ArkTextInput.ts b/arkoala/arkui/src/generated/ArkTextInput.ts similarity index 98% rename from arkoala/arkui/src/ArkTextInput.ts rename to arkoala/arkui/src/generated/ArkTextInput.ts index 961aad4d1..142539f9d 100644 --- a/arkoala/arkui/src/ArkTextInput.ts +++ b/arkoala/arkui/src/generated/ArkTextInput.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -458,12 +457,12 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (CancelButtonOptions) this.getPeer()?.cancelButton0Attribute(value_casted) return this } - if (((value.hasOwnProperty("icon")) && (isInstanceOf("SymbolGlyphModifier", value.icon)))) { + if ((value.hasOwnProperty("icon")) && (isInstanceOf("SymbolGlyphModifier", value.icon))) { const value_casted = value as (CancelButtonSymbolOptions) this.getPeer()?.cancelButton1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextInputControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts index 51f37cabf..fe4b38b1c 100644 --- a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextInputControllerInternal { + public static fromPtr(ptr: KPointer): TextInputController { + const obj: TextInputController = new TextInputController() + obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) + return obj + } +} export class TextInputController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textinputcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextInputController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextInputController.ctor() + const ctorPtr: KPointer = TextInputController.ctor_textinputcontroller() this.peer = new Finalizable(ctorPtr, TextInputController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class TextInputController extends TextContentControllerBase implements Ma ArkUIGeneratedNativeModule._TextInputController_stopEditing(this.peer!.ptr) } } -export class TextInputControllerInternal { - public static fromPtr(ptr: KPointer): TextInputController { - const obj: TextInputController = new TextInputController() - obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextInputInterfaces.ts b/arkoala/arkui/src/generated/ArkTextInputInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextInputInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextInputInterfaces.ts index c31a9b368..f5f6521d9 100644 --- a/arkoala/arkui/src/ArkTextInputInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextInputInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextInterfaces.ts b/arkoala/arkui/src/generated/ArkTextInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextInterfaces.ts index c68a5a1a3..912f9d650 100644 --- a/arkoala/arkui/src/ArkTextInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index aed7ecb9d..7a0b2cdfc 100644 --- a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -18,15 +18,20 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextMenuItemIdInternal { + public static fromPtr(ptr: KPointer): TextMenuItemId { + const obj: TextMenuItemId = new TextMenuItemId() + obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) + return obj + } +} export class TextMenuItemId implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -53,7 +58,7 @@ export class TextMenuItemId implements MaterializedBase { get AI_WRITER(): TextMenuItemId { throw new Error("Not implemented") } - static ctor(): KPointer { + static ctor_textmenuitemid(): KPointer { const retval = ArkUIGeneratedNativeModule._TextMenuItemId_ctor() return retval } @@ -61,7 +66,7 @@ export class TextMenuItemId implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TextMenuItemId.ctor() + const ctorPtr: KPointer = TextMenuItemId.ctor_textmenuitemid() this.peer = new Finalizable(ctorPtr, TextMenuItemId.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,12 +84,12 @@ export class TextMenuItemId implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let id_type: int32 = RuntimeType.UNDEFINED id_type = runtimeType(id) - if (((RuntimeType.STRING == id_type))) { + if (RuntimeType.STRING == id_type) { thisSerializer.writeInt8(0) const id_0 = unsafeCast(id) thisSerializer.writeString(id_0) } - else if (((RuntimeType.OBJECT == id_type))) { + else if (RuntimeType.OBJECT == id_type) { thisSerializer.writeInt8(1) const id_1 = unsafeCast(id) thisSerializer.writeResource(id_1) @@ -102,10 +107,3 @@ export class TextMenuItemId implements MaterializedBase { return retval } } -export class TextMenuItemIdInternal { - public static fromPtr(ptr: KPointer): TextMenuItemId { - const obj: TextMenuItemId = new TextMenuItemId() - obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextPicker.ts b/arkoala/arkui/src/generated/ArkTextPicker.ts similarity index 98% rename from arkoala/arkui/src/ArkTextPicker.ts rename to arkoala/arkui/src/generated/ArkTextPicker.ts index 44d5ad856..fd6ffb312 100644 --- a/arkoala/arkui/src/ArkTextPicker.ts +++ b/arkoala/arkui/src/generated/ArkTextPicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index b4b8d19f5..78e94e78b 100644 --- a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -23,21 +23,26 @@ import { DialogAlignment } from "./ArkAlertDialogInterfaces" import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextPickerDialogInternal { + public static fromPtr(ptr: KPointer): TextPickerDialog { + const obj: TextPickerDialog = new TextPickerDialog() + obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) + return obj + } +} export class TextPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TextPickerDialog_ctor() return retval } @@ -45,7 +50,7 @@ export class TextPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TextPickerDialog.ctor() + const ctorPtr: KPointer = TextPickerDialog.ctor_textpickerdialog() this.peer = new Finalizable(ctorPtr, TextPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,10 +74,3 @@ export class TextPickerDialog implements MaterializedBase { return retval } } -export class TextPickerDialogInternal { - public static fromPtr(ptr: KPointer): TextPickerDialog { - const obj: TextPickerDialog = new TextPickerDialog() - obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextPickerInterfaces.ts b/arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextPickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts index d7837a900..aab04653c 100644 --- a/arkoala/arkui/src/ArkTextPickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts similarity index 80% rename from arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index 9b4456e8e..9514371b5 100644 --- a/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -19,15 +19,20 @@ import { ShadowOptions, ShadowType } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextShadowStyleInternal { + public static fromPtr(ptr: KPointer): TextShadowStyle { + const obj: TextShadowStyle = new TextShadowStyle(undefined) + obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) + return obj + } +} export class TextShadowStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,11 +41,11 @@ export class TextShadowStyle implements MaterializedBase { get textShadow(): Array { throw new Error("Not implemented") } - static ctor(value: ShadowOptions | Array): KPointer { + static ctor_textshadowstyle(value: ShadowOptions | Array): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) @@ -59,20 +64,20 @@ export class TextShadowStyle implements MaterializedBase { return retval } constructor(value?: ShadowOptions | Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = TextShadowStyle.ctor(value) + const ctorPtr: KPointer = TextShadowStyle.ctor_textshadowstyle(value) this.peer = new Finalizable(ctorPtr, TextShadowStyle.getFinalizer()) } } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextShadowStyle_getFinalizer() } -} -export class TextShadowStyleInternal { - public static fromPtr(ptr: KPointer): TextShadowStyle { - const obj: TextShadowStyle = new TextShadowStyle(undefined) - obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) - return obj + private getTextShadow(): Array { + return this.getTextShadow_serialize() + } + private getTextShadow_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") } } diff --git a/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index 6abb64b29..2a46e9544 100644 --- a/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -22,15 +22,20 @@ import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextStyle_styled_stringInternal { + public static fromPtr(ptr: KPointer): TextStyle_styled_string { + const obj: TextStyle_styled_string = new TextStyle_styled_string(undefined) + obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) + return obj + } +} export class TextStyle_styled_string implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -51,7 +56,7 @@ export class TextStyle_styled_string implements MaterializedBase { get fontStyle(): FontStyle { return this.getFontStyle() } - static ctor(value?: TextStyleInterface): KPointer { + static ctor_textstyle_styled_string(value?: TextStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -65,7 +70,7 @@ export class TextStyle_styled_string implements MaterializedBase { return retval } constructor(value?: TextStyleInterface) { - const ctorPtr: KPointer = TextStyle_styled_string.ctor(value) + const ctorPtr: KPointer = TextStyle_styled_string.ctor_textstyle_styled_string(value) this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) } static getFinalizer(): KPointer { @@ -100,10 +105,3 @@ export class TextStyle_styled_string implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextStyle_styled_stringInternal { - public static fromPtr(ptr: KPointer): TextStyle_styled_string { - const obj: TextStyle_styled_string = new TextStyle_styled_string(undefined) - obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextTimer.ts b/arkoala/arkui/src/generated/ArkTextTimer.ts similarity index 98% rename from arkoala/arkui/src/ArkTextTimer.ts rename to arkoala/arkui/src/generated/ArkTextTimer.ts index 48e0a29ab..6d9d05ddd 100644 --- a/arkoala/arkui/src/ArkTextTimer.ts +++ b/arkoala/arkui/src/generated/ArkTextTimer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 3b808572b..083c0be4f 100644 --- a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextTimerControllerInternal { + public static fromPtr(ptr: KPointer): TextTimerController { + const obj: TextTimerController = new TextTimerController() + obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) + return obj + } +} export class TextTimerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texttimercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextTimerController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextTimerController.ctor() + const ctorPtr: KPointer = TextTimerController.ctor_texttimercontroller() this.peer = new Finalizable(ctorPtr, TextTimerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,10 +68,3 @@ export class TextTimerController implements MaterializedBase { return retval } } -export class TextTimerControllerInternal { - public static fromPtr(ptr: KPointer): TextTimerController { - const obj: TextTimerController = new TextTimerController() - obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextTimerInterfaces.ts b/arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextTimerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts index 2761fb4ec..0639ca915 100644 --- a/arkoala/arkui/src/ArkTextTimerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTimePicker.ts b/arkoala/arkui/src/generated/ArkTimePicker.ts similarity index 98% rename from arkoala/arkui/src/ArkTimePicker.ts rename to arkoala/arkui/src/generated/ArkTimePicker.ts index 190d7f9b7..5598bb1cd 100644 --- a/arkoala/arkui/src/ArkTimePicker.ts +++ b/arkoala/arkui/src/generated/ArkTimePicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index d34d208a9..941c695cd 100644 --- a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -23,21 +23,26 @@ import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsI import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TimePickerDialogInternal { + public static fromPtr(ptr: KPointer): TimePickerDialog { + const obj: TimePickerDialog = new TimePickerDialog() + obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) + return obj + } +} export class TimePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_timepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TimePickerDialog_ctor() return retval } @@ -45,7 +50,7 @@ export class TimePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TimePickerDialog.ctor() + const ctorPtr: KPointer = TimePickerDialog.ctor_timepickerdialog() this.peer = new Finalizable(ctorPtr, TimePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,10 +74,3 @@ export class TimePickerDialog implements MaterializedBase { return retval } } -export class TimePickerDialogInternal { - public static fromPtr(ptr: KPointer): TimePickerDialog { - const obj: TimePickerDialog = new TimePickerDialog() - obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTimePickerInterfaces.ts b/arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTimePickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts index 59f22c246..c92d78c9a 100644 --- a/arkoala/arkui/src/ArkTimePickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkToggle.ts b/arkoala/arkui/src/generated/ArkToggle.ts similarity index 97% rename from arkoala/arkui/src/ArkToggle.ts rename to arkoala/arkui/src/generated/ArkToggle.ts index 58f437cfb..3b28a30fe 100644 --- a/arkoala/arkui/src/ArkToggle.ts +++ b/arkoala/arkui/src/generated/ArkToggle.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkToggleInterfaces.ts b/arkoala/arkui/src/generated/ArkToggleInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkToggleInterfaces.ts rename to arkoala/arkui/src/generated/ArkToggleInterfaces.ts index d16a66332..2c3a54163 100644 --- a/arkoala/arkui/src/ArkToggleInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkToggleInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTouchEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTouchEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts index c4bef320e..8aa9a32b1 100644 --- a/arkoala/arkui/src/ArkTouchEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { TouchType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -72,13 +71,13 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_touchevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TouchEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TouchEventInternal.ctor() + const ctorPtr: KPointer = TouchEventInternal.ctor_touchevent() this.peer = new Finalizable(ctorPtr, TouchEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -95,11 +94,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this?.setType_serialize(type_casted) return } + private getTouches(): Array { + return this.getTouches_serialize() + } private setTouches(touches: Array): void { const touches_casted = touches as (Array) this?.setTouches_serialize(touches_casted) return } + private getChangedTouches(): Array { + return this.getChangedTouches_serialize() + } private setChangedTouches(changedTouches: Array): void { const changedTouches_casted = changedTouches as (Array) this?.setChangedTouches_serialize(changedTouches_casted) @@ -132,6 +137,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize private setType_serialize(type: TouchType): void { ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, type) } + private getTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setTouches_serialize(touches: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(touches.length) @@ -142,6 +151,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getChangedTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(changedTouches.length) diff --git a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkTransitionEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts index ee3f25140..a54247fa7 100644 --- a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -19,15 +19,20 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TransitionEffectInternal { + public static fromPtr(ptr: KPointer): TransitionEffect { + const obj: TransitionEffect = new TransitionEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) + return obj + } +} export class TransitionEffect implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class TransitionEffect implements MaterializedBase { get SLIDE_SWITCH(): TransitionEffect { throw new Error("Not implemented") } - static ctor(type: string, effect: TransitionEffects): KPointer { + static ctor_transitioneffect(type: string, effect: TransitionEffects): KPointer { const thisSerializer: Serializer = Serializer.hold() const effect_identity = effect.identity const effect_opacity = effect.opacity @@ -71,7 +76,7 @@ export class TransitionEffect implements MaterializedBase { constructor(type?: string, effect?: TransitionEffects) { if (((type) !== (undefined)) && ((effect) !== (undefined))) { - const ctorPtr: KPointer = TransitionEffect.ctor(type, effect) + const ctorPtr: KPointer = TransitionEffect.ctor_transitioneffect(type, effect) this.peer = new Finalizable(ctorPtr, TransitionEffect.getFinalizer()) } } @@ -171,10 +176,3 @@ export class TransitionEffect implements MaterializedBase { return obj } } -export class TransitionEffectInternal { - public static fromPtr(ptr: KPointer): TransitionEffect { - const obj: TransitionEffect = new TransitionEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkUICommonEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts index 78f6fb499..809c475a1 100644 --- a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -24,12 +24,11 @@ import { TouchEvent, TouchEventInternal } from "./ArkTouchEventMaterialized" import { TouchType, KeyType, KeySource, MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,12 +50,12 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uicommonevent(): KPointer { const retval = ArkUIGeneratedNativeModule._UICommonEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = UICommonEventInternal.ctor() + const ctorPtr: KPointer = UICommonEventInternal.ctor_uicommonevent() this.peer = new Finalizable(ctorPtr, UICommonEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index d0d052d04..e19f5fa4b 100644 --- a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uiextensionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._UIExtensionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = UIExtensionProxyInternal.ctor() + const ctorPtr: KPointer = UIExtensionProxyInternal.ctor_uiextensionproxy() this.peer = new Finalizable(ctorPtr, UIExtensionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts similarity index 98% rename from arkoala/arkui/src/ArkUIGeneratedNativeModule.ts rename to arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts index efe5d1fa8..b03035ffc 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./ArkUnitsInterfaces" @@ -10913,6 +10913,34 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _SystemOps_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_ctor() + } + throw new Error("Not implemented") + } + static _SystemOps_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_getFinalizer() + } + throw new Error("Not implemented") + } + static _SystemOps_StartFrame(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_StartFrame() + } + throw new Error("Not implemented") + } + static _SystemOps_EndFrame(root: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_EndFrame(root) + } + throw new Error("Not implemented") + } static _DrawingCanvas_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -11179,7 +11207,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer { + static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._FrameNode_getPositionToWindowWithTransform(ptr) @@ -11214,34 +11242,20 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _PixelMap_getIsEditable(ptr: KPointer): int32 { + static _PixelMap_getIsEditable(ptr: KPointer): boolean { if ((this._LoadOnce()) == (true)) { return this._PixelMap_getIsEditable(ptr) } throw new Error("Not implemented") } - static _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._PixelMap_setIsEditable(ptr, isEditable) - } - throw new Error("Not implemented") - } - static _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 { + static _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean { if ((this._LoadOnce()) == (true)) { return this._PixelMap_getIsStrideAlignment(ptr) } throw new Error("Not implemented") } - static _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._PixelMap_setIsStrideAlignment(ptr, isStrideAlignment) - } - throw new Error("Not implemented") - } static _NavExtender_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -11879,7 +11893,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer { + static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._CanvasRenderer_measureText(ptr, text) @@ -12327,6 +12341,90 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_ctor(width, height, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_getFinalizer() + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): string { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_toDataURL(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_ctor(width: number, height: number): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_ctor(width, height) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getFinalizer() + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_transferToImageBitmap(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getContext2d(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getHeight(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getHeight(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_setHeight(ptr, height) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getWidth(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getWidth(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_setWidth(ptr, width) + } + throw new Error("Not implemented") + } static _DrawingRenderingContext_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -13118,6 +13216,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getTouches(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getTouches(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13125,6 +13230,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getChangedTouches(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13251,7 +13363,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DragEvent_getSummary(ptr: KPointer): KPointer { + static _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._DragEvent_getSummary(ptr) @@ -13272,7 +13384,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DragEvent_getPreviewRect(ptr: KPointer): KPointer { + static _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._DragEvent_getPreviewRect(ptr) @@ -13538,28 +13650,28 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_measure(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _Measurable_getMargin(ptr: KPointer): KPointer { + static _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getMargin(ptr) } throw new Error("Not implemented") } - static _Measurable_getPadding(ptr: KPointer): KPointer { + static _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getPadding(ptr) } throw new Error("Not implemented") } - static _Measurable_getBorderWidth(ptr: KPointer): KPointer { + static _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getBorderWidth(ptr) @@ -13601,14 +13713,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer { + static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextContentControllerBase_getCaretOffset(ptr) } throw new Error("Not implemented") } - static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer { + static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextContentControllerBase_getTextContentRect(ptr) @@ -13797,108 +13909,108 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { + static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_getContext(thisArray, thisLength) + return this._GlobalScope_focusControl_common_requestFocus(value) } throw new Error("Not implemented") } - static _GlobalScope_common_postCardAction(thisArray: Uint8Array, thisLength: int32): void { + static _GlobalScope_cursorControl_common_setCursor(value: KInt): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_postCardAction(thisArray, thisLength) + return this._GlobalScope_cursorControl_common_setCursor(value) } throw new Error("Not implemented") } - static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { + static _GlobalScope_cursorControl_common_restoreDefault(): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_dollar_r(value, thisArray, thisLength) + return this._GlobalScope_cursorControl_common_restoreDefault() } throw new Error("Not implemented") } - static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer { + static _GlobalScopecommon_getContext(thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_dollar_rawfile(value) + return this._GlobalScopecommon_getContext(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_common_animateTo(thisArray: Uint8Array, thisLength: int32): void { + static _GlobalScopecommon_postCardAction(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_animateTo(thisArray, thisLength) + return this._GlobalScopecommon_postCardAction(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_common_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { + static _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_animateToImmediately(thisArray, thisLength) + return this._GlobalScopecommon_dollar_r(value, thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_common_vp2px(value: number): number { + static _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_vp2px(value) + return this._GlobalScopecommon_dollar_rawfile(value) } throw new Error("Not implemented") } - static _GlobalScope_common_px2vp(value: number): number { + static _GlobalScopecommon_animateTo(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_px2vp(value) + return this._GlobalScopecommon_animateTo(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_common_fp2px(value: number): number { + static _GlobalScopecommon_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_fp2px(value) + return this._GlobalScopecommon_animateToImmediately(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_common_px2fp(value: number): number { + static _GlobalScopecommon_vp2px(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_px2fp(value) + return this._GlobalScopecommon_vp2px(value) } throw new Error("Not implemented") } - static _GlobalScope_common_lpx2px(value: number): number { + static _GlobalScopecommon_px2vp(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_lpx2px(value) + return this._GlobalScopecommon_px2vp(value) } throw new Error("Not implemented") } - static _GlobalScope_common_px2lpx(value: number): number { + static _GlobalScopecommon_fp2px(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_px2lpx(value) + return this._GlobalScopecommon_fp2px(value) } throw new Error("Not implemented") } - static _GlobalScope_common_requestFocus(value: KStringPtr): boolean { + static _GlobalScopecommon_px2fp(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_requestFocus(value) + return this._GlobalScopecommon_px2fp(value) } throw new Error("Not implemented") } - static _GlobalScope_common_setCursor(value: KInt): void { + static _GlobalScopecommon_lpx2px(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_setCursor(value) + return this._GlobalScopecommon_lpx2px(value) } throw new Error("Not implemented") } - static _GlobalScope_common_restoreDefault(): void { + static _GlobalScopecommon_px2lpx(value: number): number { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_common_restoreDefault() + return this._GlobalScopecommon_px2lpx(value) } throw new Error("Not implemented") } @@ -14000,6 +14112,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BaseGestureEvent_getFingerList(ptr) + } + throw new Error("Not implemented") + } static _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -14287,6 +14406,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _GestureEvent_getFingerList(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._GestureEvent_getFingerList(ptr) + } + throw new Error("Not implemented") + } static _GestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -14651,7 +14777,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer { + static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._ListScroller_getItemRectInGroup(ptr, index, indexInGroup) @@ -14672,7 +14798,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer { + static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._ListScroller_getVisibleListContentInfo(ptr, x, y) @@ -15302,7 +15428,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer { + static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorBaseController_getTypingStyle(ptr) @@ -15344,7 +15470,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer { + static _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorBaseController_getPreviewText(ptr) @@ -15428,7 +15554,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorController_getSelection(ptr: KPointer): KPointer { + static _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorController_getSelection(ptr) @@ -15477,7 +15603,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer { + static _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorStyledStringController_getSelection(ptr) @@ -15540,7 +15666,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Scroller_currentOffset(ptr: KPointer): KPointer { + static _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Scroller_currentOffset(ptr) @@ -15568,7 +15694,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Scroller_getItemRect(ptr: KPointer, index: number): KPointer { + static _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Scroller_getItemRect(ptr, index) @@ -16233,7 +16359,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer { + static _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextEditControllerEx_getPreviewText(ptr) @@ -16289,14 +16415,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer { + static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._LayoutManager_getGlyphPositionAtCoordinate(ptr, x, y) } throw new Error("Not implemented") } - static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer { + static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._LayoutManager_getLineMetrics(ptr, lineNumber) @@ -17668,7 +17794,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer { + static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._XComponentController_getXComponentSurfaceRect(ptr) @@ -17682,7 +17808,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer { + static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._XComponentController_getXComponentSurfaceRotation(ptr) @@ -18032,6 +18158,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextShadowStyle_getTextShadow(ptr) + } + throw new Error("Not implemented") + } static _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -18284,7 +18417,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._CustomSpan_onMeasure(ptr, thisArray, thisLength) @@ -18347,38 +18480,38 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_inspector_getInspectorNodes(): KPointer { + static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_getInspectorNodes() + return this._GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer { + static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_getInspectorNodeById(id) + return this._GlobalScope_Profiler_inspector_unregisterVsyncCallback() } throw new Error("Not implemented") } - static _GlobalScope_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { + static _GlobalScopeinspector_getInspectorNodes(): KPointer { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_registerVsyncCallback(thisArray, thisLength) + return this._GlobalScopeinspector_getInspectorNodes() } throw new Error("Not implemented") } - static _GlobalScope_inspector_unregisterVsyncCallback(): void { + static _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_unregisterVsyncCallback() + return this._GlobalScopeinspector_getInspectorNodeById(id) } throw new Error("Not implemented") } - static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void { + static _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_setAppBgColor(value) + return this._GlobalScopeinspector_setAppBgColor(value) } throw new Error("Not implemented") } diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts similarity index 98% rename from arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts rename to arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts index 15246be94..9d4ed761d 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./ArkUnitsInterfaces" @@ -4807,6 +4807,21 @@ export class ArkUIGeneratedNativeModuleEmpty { _LazyForEachOps_Prepare(node: KPointer): void { console.log("_LazyForEachOps_Prepare") } + _SystemOps_ctor(): KPointer { + console.log("_SystemOps_ctor") + return -1 + } + _SystemOps_getFinalizer(): KPointer { + console.log("_SystemOps_getFinalizer") + return -1 + } + _SystemOps_StartFrame(): KPointer { + console.log("_SystemOps_StartFrame") + return -1 + } + _SystemOps_EndFrame(root: KPointer): void { + console.log("_SystemOps_EndFrame") + } _DrawingCanvas_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_DrawingCanvas_ctor") return -1 @@ -4945,9 +4960,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_FrameNode_getOpacity") return 1 } - _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer { + _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer { console.log("_FrameNode_getPositionToWindowWithTransform") - return -1 + return new Uint8Array() } _PixelMap_ctor(): KPointer { console.log("_PixelMap_ctor") @@ -4963,19 +4978,13 @@ export class ArkUIGeneratedNativeModuleEmpty { _PixelMap_writeBufferToPixels(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_PixelMap_writeBufferToPixels") } - _PixelMap_getIsEditable(ptr: KPointer): int32 { + _PixelMap_getIsEditable(ptr: KPointer): boolean { console.log("_PixelMap_getIsEditable") - return 0 - } - _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void { - console.log("_PixelMap_setIsEditable") + return false } - _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 { + _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean { console.log("_PixelMap_getIsStrideAlignment") - return 0 - } - _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void { - console.log("_PixelMap_setIsStrideAlignment") + return false } _NavExtender_ctor(): KPointer { console.log("_NavExtender_ctor") @@ -5304,9 +5313,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _CanvasRenderer_fillText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_fillText") } - _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer { + _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer { console.log("_CanvasRenderer_measureText") - return -1 + return new Uint8Array() } _CanvasRenderer_strokeText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_strokeText") @@ -5522,6 +5531,52 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_CanvasRenderingContext2D_getWidth") return 1 } + _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_ctor") + return -1 + } + _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_getFinalizer") + return -1 + } + _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): string { + console.log("_OffscreenCanvasRenderingContext2D_toDataURL") + return "" + } + _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_transferToImageBitmap") + return -1 + } + _OffscreenCanvas_ctor(width: number, height: number): KPointer { + console.log("_OffscreenCanvas_ctor") + return -1 + } + _OffscreenCanvas_getFinalizer(): KPointer { + console.log("_OffscreenCanvas_getFinalizer") + return -1 + } + _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer { + console.log("_OffscreenCanvas_transferToImageBitmap") + return -1 + } + _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_OffscreenCanvas_getContext2d") + return -1 + } + _OffscreenCanvas_getHeight(ptr: KPointer): number { + console.log("_OffscreenCanvas_getHeight") + return 1 + } + _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void { + console.log("_OffscreenCanvas_setHeight") + } + _OffscreenCanvas_getWidth(ptr: KPointer): number { + console.log("_OffscreenCanvas_getWidth") + return 1 + } + _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void { + console.log("_OffscreenCanvas_setWidth") + } _DrawingRenderingContext_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_DrawingRenderingContext_ctor") return -1 @@ -5930,9 +5985,17 @@ export class ArkUIGeneratedNativeModuleEmpty { _TouchEvent_setType(ptr: KPointer, type: KInt): void { console.log("_TouchEvent_setType") } + _TouchEvent_getTouches(ptr: KPointer): KPointer { + console.log("_TouchEvent_getTouches") + return -1 + } _TouchEvent_setTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setTouches") } + _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + console.log("_TouchEvent_getChangedTouches") + return -1 + } _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setChangedTouches") } @@ -6000,9 +6063,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_DragEvent_getData") return -1 } - _DragEvent_getSummary(ptr: KPointer): KPointer { + _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer { console.log("_DragEvent_getSummary") - return -1 + return new Uint8Array() } _DragEvent_setResult(ptr: KPointer, dragResult: KInt): void { console.log("_DragEvent_setResult") @@ -6011,9 +6074,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_DragEvent_getResult") return -1 } - _DragEvent_getPreviewRect(ptr: KPointer): KPointer { + _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer { console.log("_DragEvent_getPreviewRect") - return -1 + return new Uint8Array() } _DragEvent_getVelocityX(ptr: KPointer): number { console.log("_DragEvent_getVelocityX") @@ -6148,21 +6211,21 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Measurable_getFinalizer") return -1 } - _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_Measurable_measure") - return -1 + return new Uint8Array() } - _Measurable_getMargin(ptr: KPointer): KPointer { + _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getMargin") - return -1 + return new Uint8Array() } - _Measurable_getPadding(ptr: KPointer): KPointer { + _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getPadding") - return -1 + return new Uint8Array() } - _Measurable_getBorderWidth(ptr: KPointer): KPointer { + _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getBorderWidth") - return -1 + return new Uint8Array() } _View_ctor(): KPointer { console.log("_View_ctor") @@ -6184,13 +6247,13 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextContentControllerBase_getFinalizer") return -1 } - _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer { + _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer { console.log("_TextContentControllerBase_getCaretOffset") - return -1 + return new Uint8Array() } - _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer { + _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer { console.log("_TextContentControllerBase_getTextContentRect") - return -1 + return new Uint8Array() } _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number { console.log("_TextContentControllerBase_getTextContentLineCount") @@ -6281,60 +6344,60 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureModifier_applyGesture") } - _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { - console.log("_GlobalScope_common_getContext") - return -1 + _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { + console.log("_GlobalScope_focusControl_common_requestFocus") + return false } - _GlobalScope_common_postCardAction(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_postCardAction") + _GlobalScope_cursorControl_common_setCursor(value: KInt): void { + console.log("_GlobalScope_cursorControl_common_setCursor") } - _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { - console.log("_GlobalScope_common_dollar_r") - return -1 + _GlobalScope_cursorControl_common_restoreDefault(): void { + console.log("_GlobalScope_cursorControl_common_restoreDefault") } - _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer { - console.log("_GlobalScope_common_dollar_rawfile") - return -1 + _GlobalScopecommon_getContext(thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { + console.log("_GlobalScopecommon_getContext") + return new Uint8Array() } - _GlobalScope_common_animateTo(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_animateTo") + _GlobalScopecommon_postCardAction(thisArray: Uint8Array, thisLength: int32): void { + console.log("_GlobalScopecommon_postCardAction") } - _GlobalScope_common_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_animateToImmediately") + _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { + console.log("_GlobalScopecommon_dollar_r") + return new Uint8Array() } - _GlobalScope_common_vp2px(value: number): number { - console.log("_GlobalScope_common_vp2px") - return 1 + _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer { + console.log("_GlobalScopecommon_dollar_rawfile") + return new Uint8Array() } - _GlobalScope_common_px2vp(value: number): number { - console.log("_GlobalScope_common_px2vp") - return 1 + _GlobalScopecommon_animateTo(thisArray: Uint8Array, thisLength: int32): void { + console.log("_GlobalScopecommon_animateTo") } - _GlobalScope_common_fp2px(value: number): number { - console.log("_GlobalScope_common_fp2px") - return 1 + _GlobalScopecommon_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { + console.log("_GlobalScopecommon_animateToImmediately") } - _GlobalScope_common_px2fp(value: number): number { - console.log("_GlobalScope_common_px2fp") + _GlobalScopecommon_vp2px(value: number): number { + console.log("_GlobalScopecommon_vp2px") return 1 } - _GlobalScope_common_lpx2px(value: number): number { - console.log("_GlobalScope_common_lpx2px") + _GlobalScopecommon_px2vp(value: number): number { + console.log("_GlobalScopecommon_px2vp") return 1 } - _GlobalScope_common_px2lpx(value: number): number { - console.log("_GlobalScope_common_px2lpx") + _GlobalScopecommon_fp2px(value: number): number { + console.log("_GlobalScopecommon_fp2px") return 1 } - _GlobalScope_common_requestFocus(value: KStringPtr): boolean { - console.log("_GlobalScope_common_requestFocus") - return false + _GlobalScopecommon_px2fp(value: number): number { + console.log("_GlobalScopecommon_px2fp") + return 1 } - _GlobalScope_common_setCursor(value: KInt): void { - console.log("_GlobalScope_common_setCursor") + _GlobalScopecommon_lpx2px(value: number): number { + console.log("_GlobalScopecommon_lpx2px") + return 1 } - _GlobalScope_common_restoreDefault(): void { - console.log("_GlobalScope_common_restoreDefault") + _GlobalScopecommon_px2lpx(value: number): number { + console.log("_GlobalScopecommon_px2lpx") + return 1 } _ContextMenu_ctor(): KPointer { console.log("_ContextMenu_ctor") @@ -6392,6 +6455,10 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_BaseGestureEvent_getFinalizer") return -1 } + _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + console.log("_BaseGestureEvent_getFingerList") + return -1 + } _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_BaseGestureEvent_setFingerList") } @@ -6542,6 +6609,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void { console.log("_GestureEvent_setRepeat") } + _GestureEvent_getFingerList(ptr: KPointer): KPointer { + console.log("_GestureEvent_getFingerList") + return -1 + } _GestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureEvent_setFingerList") } @@ -6738,9 +6809,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_ListScroller_getFinalizer") return -1 } - _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer { + _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer { console.log("_ListScroller_getItemRectInGroup") - return -1 + return new Uint8Array() } _ListScroller_scrollToItemInGroup(ptr: KPointer, index: number, indexInGroup: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_ListScroller_scrollToItemInGroup") @@ -6748,9 +6819,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _ListScroller_closeAllSwipeActions(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_ListScroller_closeAllSwipeActions") } - _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer { + _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { console.log("_ListScroller_getVisibleListContentInfo") - return -1 + return new Uint8Array() } _Matrix2D_ctor(): KPointer { console.log("_Matrix2D_ctor") @@ -7074,9 +7145,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _RichEditorBaseController_closeSelectionMenu(ptr: KPointer): void { console.log("_RichEditorBaseController_closeSelectionMenu") } - _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer { + _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorBaseController_getTypingStyle") - return -1 + return new Uint8Array() } _RichEditorBaseController_setTypingStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RichEditorBaseController_setTypingStyle") @@ -7095,9 +7166,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorBaseController_getLayoutManager") return -1 } - _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer { + _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorBaseController_getPreviewText") - return -1 + return new Uint8Array() } _RichEditorController_ctor(): KPointer { console.log("_RichEditorController_ctor") @@ -7140,9 +7211,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorController_getParagraphs") return -1 } - _RichEditorController_getSelection(ptr: KPointer): KPointer { + _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorController_getSelection") - return -1 + return new Uint8Array() } _RichEditorController_fromStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_RichEditorController_fromStyledString") @@ -7167,9 +7238,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorStyledStringController_getStyledString") return -1 } - _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer { + _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorStyledStringController_getSelection") - return -1 + return new Uint8Array() } _RichEditorStyledStringController_onContentChanged(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RichEditorStyledStringController_onContentChanged") @@ -7201,9 +7272,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Scroller_scrollPage1") return undefined } - _Scroller_currentOffset(ptr: KPointer): KPointer { + _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer { console.log("_Scroller_currentOffset") - return -1 + return new Uint8Array() } _Scroller_scrollToIndex(ptr: KPointer, value: number, thisArray: Uint8Array, thisLength: int32): undefined { console.log("_Scroller_scrollToIndex") @@ -7217,9 +7288,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Scroller_isAtEnd") return false } - _Scroller_getItemRect(ptr: KPointer, index: number): KPointer { + _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer { console.log("_Scroller_getItemRect") - return -1 + return new Uint8Array() } _Scroller_getItemIndex(ptr: KPointer, x: number, y: number): number { console.log("_Scroller_getItemIndex") @@ -7564,9 +7635,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextEditControllerEx_getCaretOffset") return 1 } - _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer { + _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer { console.log("_TextEditControllerEx_getPreviewText") - return -1 + return new Uint8Array() } _StyledStringController_ctor(): KPointer { console.log("_StyledStringController_ctor") @@ -7595,13 +7666,13 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_LayoutManager_getLineCount") return 1 } - _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer { + _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { console.log("_LayoutManager_getGlyphPositionAtCoordinate") - return -1 + return new Uint8Array() } - _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer { + _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer { console.log("_LayoutManager_getLineMetrics") - return -1 + return new Uint8Array() } _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer { console.log("_LayoutManager_getRectsForRange") @@ -8332,16 +8403,16 @@ export class ArkUIGeneratedNativeModuleEmpty { _XComponentController_setXComponentSurfaceRect(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_XComponentController_setXComponentSurfaceRect") } - _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer { + _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer { console.log("_XComponentController_getXComponentSurfaceRect") - return -1 + return new Uint8Array() } _XComponentController_setXComponentSurfaceRotation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_XComponentController_setXComponentSurfaceRotation") } - _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer { + _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer { console.log("_XComponentController_getXComponentSurfaceRotation") - return -1 + return new Uint8Array() } _XComponentController_onSurfaceCreated(ptr: KPointer, surfaceId: KStringPtr): void { console.log("_XComponentController_onSurfaceCreated") @@ -8530,6 +8601,10 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextShadowStyle_getFinalizer") return -1 } + _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + console.log("_TextShadowStyle_getTextShadow") + return -1 + } _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_BackgroundColorStyle_ctor") return -1 @@ -8663,9 +8738,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_CustomSpan_getFinalizer") return -1 } - _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_CustomSpan_onMeasure") - return -1 + return new Uint8Array() } _CustomSpan_onDraw(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CustomSpan_onDraw") @@ -8693,21 +8768,21 @@ export class ArkUIGeneratedNativeModuleEmpty { _LinearIndicatorController_stop(ptr: KPointer): void { console.log("_LinearIndicatorController_stop") } - _GlobalScope_inspector_getInspectorNodes(): KPointer { - console.log("_GlobalScope_inspector_getInspectorNodes") - return -1 + _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { + console.log("_GlobalScope_Profiler_inspector_registerVsyncCallback") } - _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer { - console.log("_GlobalScope_inspector_getInspectorNodeById") - return -1 + _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void { + console.log("_GlobalScope_Profiler_inspector_unregisterVsyncCallback") } - _GlobalScope_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_inspector_registerVsyncCallback") + _GlobalScopeinspector_getInspectorNodes(): KPointer { + console.log("_GlobalScopeinspector_getInspectorNodes") + return -1 } - _GlobalScope_inspector_unregisterVsyncCallback(): void { - console.log("_GlobalScope_inspector_unregisterVsyncCallback") + _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer { + console.log("_GlobalScopeinspector_getInspectorNodeById") + return -1 } - _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void { - console.log("_GlobalScope_inspector_setAppBgColor") + _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void { + console.log("_GlobalScopeinspector_setAppBgColor") } } \ No newline at end of file diff --git a/arkoala/arkui/src/ArkUiExtensionComponent.ts b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkUiExtensionComponent.ts rename to arkoala/arkui/src/generated/ArkUiExtensionComponent.ts index 33f40b005..cc9f5a0b9 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponent.ts +++ b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index cd0401d31..cc88fe851 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkUnifiedDataMaterialized.ts rename to arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts index 944a74b6e..df9f0d4ad 100644 --- a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class UnifiedDataInternal { + public static fromPtr(ptr: KPointer): UnifiedData { + const obj: UnifiedData = new UnifiedData() + obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) + return obj + } +} export class UnifiedData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_unifieddata(): KPointer { const retval = ArkUIGeneratedNativeModule._UnifiedData_ctor() return retval } constructor() { - const ctorPtr: KPointer = UnifiedData.ctor() + const ctorPtr: KPointer = UnifiedData.ctor_unifieddata() this.peer = new Finalizable(ctorPtr, UnifiedData.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +62,3 @@ export class UnifiedData implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class UnifiedDataInternal { - public static fromPtr(ptr: KPointer): UnifiedData { - const obj: UnifiedData = new UnifiedData() - obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkUnitsInterfaces.ts b/arkoala/arkui/src/generated/ArkUnitsInterfaces.ts similarity index 98% rename from arkoala/arkui/src/ArkUnitsInterfaces.ts rename to arkoala/arkui/src/generated/ArkUnitsInterfaces.ts index 0e53fb428..62d135914 100644 --- a/arkoala/arkui/src/ArkUnitsInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkUnitsInterfaces.ts @@ -190,11 +190,11 @@ export interface TouchPoint { x: Dimension; y: Dimension; } -export interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +export interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } export interface DividerStyleOptions { strokeWidth?: LengthMetrics; diff --git a/arkoala/arkui/src/ArkUrlStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkUrlStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts index d301475a1..79bb73ee3 100644 --- a/arkoala/arkui/src/ArkUrlStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class UrlStyleInternal { + public static fromPtr(ptr: KPointer): UrlStyle { + const obj: UrlStyle = new UrlStyle(undefined) + obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) + return obj + } +} export class UrlStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,14 +38,14 @@ export class UrlStyle implements MaterializedBase { get url(): string { return this.getUrl() } - static ctor(url: string): KPointer { + static ctor_urlstyle(url: string): KPointer { const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) return retval } constructor(url?: string) { - if (((url) !== (undefined))) + if ((url) !== (undefined)) { - const ctorPtr: KPointer = UrlStyle.ctor(url) + const ctorPtr: KPointer = UrlStyle.ctor_urlstyle(url) this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) } } @@ -55,10 +60,3 @@ export class UrlStyle implements MaterializedBase { return retval } } -export class UrlStyleInternal { - public static fromPtr(ptr: KPointer): UrlStyle { - const obj: UrlStyle = new UrlStyle(undefined) - obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkVideo.ts b/arkoala/arkui/src/generated/ArkVideo.ts similarity index 98% rename from arkoala/arkui/src/ArkVideo.ts rename to arkoala/arkui/src/generated/ArkVideo.ts index a81d8d723..f7a53e9ee 100644 --- a/arkoala/arkui/src/ArkVideo.ts +++ b/arkoala/arkui/src/generated/ArkVideo.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkVideoControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts index d474bf683..32c1a4000 100644 --- a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SeekMode } from "./ArkVideoInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class VideoControllerInternal { + public static fromPtr(ptr: KPointer): VideoController { + const obj: VideoController = new VideoController() + obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) + return obj + } +} export class VideoController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_videocontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._VideoController_ctor() return retval } constructor() { - const ctorPtr: KPointer = VideoController.ctor() + const ctorPtr: KPointer = VideoController.ctor_videocontroller() this.peer = new Finalizable(ctorPtr, VideoController.getFinalizer()) } static getFinalizer(): KPointer { @@ -54,11 +59,11 @@ export class VideoController implements MaterializedBase { public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) - if ((((RuntimeType.UNDEFINED == seekMode_type)))) { + if (RuntimeType.UNDEFINED == seekMode_type) { const value_casted = value as (number) return this.setCurrentTime0_serialize(value_casted) } - if ((((RuntimeType.NUMBER == seekMode_type)))) { + if (RuntimeType.NUMBER == seekMode_type) { const value_casted = value as (number) const seekMode_casted = seekMode as (SeekMode) return this.setCurrentTime1_serialize(value_casted, seekMode_casted) @@ -108,10 +113,3 @@ export class VideoController implements MaterializedBase { ArkUIGeneratedNativeModule._VideoController_reset(this.peer!.ptr) } } -export class VideoControllerInternal { - public static fromPtr(ptr: KPointer): VideoController { - const obj: VideoController = new VideoController() - obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkVideoInterfaces.ts b/arkoala/arkui/src/generated/ArkVideoInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkVideoInterfaces.ts rename to arkoala/arkui/src/generated/ArkVideoInterfaces.ts index 7e03fb3d2..9144d955f 100644 --- a/arkoala/arkui/src/ArkVideoInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkVideoInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkViewMaterialized.ts b/arkoala/arkui/src/generated/ArkViewMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkViewMaterialized.ts rename to arkoala/arkui/src/generated/ArkViewMaterialized.ts index 0ac2e2757..165e0bdb2 100644 --- a/arkoala/arkui/src/ArkViewMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkViewMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ViewInternal { + public static fromPtr(ptr: KPointer): View { + const obj: View = new View() + obj.peer = new Finalizable(ptr, View.getFinalizer()) + return obj + } +} export class View implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_view(): KPointer { const retval = ArkUIGeneratedNativeModule._View_ctor() return retval } constructor() { - const ctorPtr: KPointer = View.ctor() + const ctorPtr: KPointer = View.ctor_view() this.peer = new Finalizable(ctorPtr, View.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,10 +58,3 @@ export class View implements MaterializedBase { return retval } } -export class ViewInternal { - public static fromPtr(ptr: KPointer): View { - const obj: View = new View() - obj.peer = new Finalizable(ptr, View.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWaterFlow.ts b/arkoala/arkui/src/generated/ArkWaterFlow.ts similarity index 97% rename from arkoala/arkui/src/ArkWaterFlow.ts rename to arkoala/arkui/src/generated/ArkWaterFlow.ts index 544ef8ccb..21e2347f3 100644 --- a/arkoala/arkui/src/ArkWaterFlow.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -157,12 +156,12 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkWaterFlowInterfaces.ts b/arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWaterFlowInterfaces.ts rename to arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts index 85dbd38e2..f52867739 100644 --- a/arkoala/arkui/src/ArkWaterFlowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts @@ -34,7 +34,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index 3b6e1baec..4253a9a2d 100644 --- a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,26 +18,31 @@ import { SectionOptions, GetItemMainSizeByIndex } from "./ArkWaterFlowInterfaces" import { Dimension, Margin } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WaterFlowSectionsInternal { + public static fromPtr(ptr: KPointer): WaterFlowSections { + const obj: WaterFlowSections = new WaterFlowSections() + obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) + return obj + } +} export class WaterFlowSections implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_waterflowsections(): KPointer { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_ctor() return retval } constructor() { - const ctorPtr: KPointer = WaterFlowSections.ctor() + const ctorPtr: KPointer = WaterFlowSections.ctor_waterflowsections() this.peer = new Finalizable(ctorPtr, WaterFlowSections.getFinalizer()) } static getFinalizer(): KPointer { @@ -111,10 +116,3 @@ export class WaterFlowSections implements MaterializedBase { return retval } } -export class WaterFlowSectionsInternal { - public static fromPtr(ptr: KPointer): WaterFlowSections { - const obj: WaterFlowSections = new WaterFlowSections() - obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWeb.ts b/arkoala/arkui/src/generated/ArkWeb.ts similarity index 99% rename from arkoala/arkui/src/ArkWeb.ts rename to arkoala/arkui/src/generated/ArkWeb.ts index 32f7c4edc..1fe2a9b52 100644 --- a/arkoala/arkui/src/ArkWeb.ts +++ b/arkoala/arkui/src/generated/ArkWeb.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -491,13 +490,13 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: { detail: Object }) => boolean)): this { if (this.checkPriority("onRenderExited")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((parameter: OnRenderExitedEvent) => void)) UseEventsProperties({Web_onRenderExited0: value_casted}) this.getPeer()?.onRenderExited0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((event?: { detail: Object }) => boolean)) UseEventsProperties({Web_onRenderExited1: value_casted}) this.getPeer()?.onRenderExited1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index d3399a0c3..25f2eaa2f 100644 --- a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebContextMenuParamInternal { + public static fromPtr(ptr: KPointer): WebContextMenuParam { + const obj: WebContextMenuParam = new WebContextMenuParam() + obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) + return obj + } +} export class WebContextMenuParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuparam(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuParam_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebContextMenuParam.ctor() + const ctorPtr: KPointer = WebContextMenuParam.ctor_webcontextmenuparam() this.peer = new Finalizable(ctorPtr, WebContextMenuParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -141,10 +146,3 @@ export class WebContextMenuParam implements MaterializedBase { return retval } } -export class WebContextMenuParamInternal { - public static fromPtr(ptr: KPointer): WebContextMenuParam { - const obj: WebContextMenuParam = new WebContextMenuParam() - obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 361cbc1d2..059dc1a9f 100644 --- a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebContextMenuResultInternal { + public static fromPtr(ptr: KPointer): WebContextMenuResult { + const obj: WebContextMenuResult = new WebContextMenuResult() + obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) + return obj + } +} export class WebContextMenuResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuresult(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebContextMenuResult.ctor() + const ctorPtr: KPointer = WebContextMenuResult.ctor_webcontextmenuresult() this.peer = new Finalizable(ctorPtr, WebContextMenuResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,10 +89,3 @@ export class WebContextMenuResult implements MaterializedBase { ArkUIGeneratedNativeModule._WebContextMenuResult_selectAll(this.peer!.ptr) } } -export class WebContextMenuResultInternal { - public static fromPtr(ptr: KPointer): WebContextMenuResult { - const obj: WebContextMenuResult = new WebContextMenuResult() - obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkWebControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts index 767bf0c64..70b43d038 100644 --- a/arkoala/arkui/src/ArkWebControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -19,26 +19,31 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebControllerInternal { + public static fromPtr(ptr: KPointer): WebController { + const obj: WebController = new WebController() + obj.peer = new Finalizable(ptr, WebController.getFinalizer()) + return obj + } +} export class WebController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebController_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebController.ctor() + const ctorPtr: KPointer = WebController.ctor_webcontroller() this.peer = new Finalizable(ctorPtr, WebController.getFinalizer()) } static getFinalizer(): KPointer { @@ -173,12 +178,12 @@ export class WebController implements MaterializedBase { const options_url = options.url let options_url_type: int32 = RuntimeType.UNDEFINED options_url_type = runtimeType(options_url) - if (((RuntimeType.STRING == options_url_type))) { + if (RuntimeType.STRING == options_url_type) { thisSerializer.writeInt8(0) const options_url_0 = unsafeCast(options_url) thisSerializer.writeString(options_url_0) } - else if (((RuntimeType.OBJECT == options_url_type))) { + else if (RuntimeType.OBJECT == options_url_type) { thisSerializer.writeInt8(1) const options_url_1 = unsafeCast(options_url) thisSerializer.writeResource(options_url_1) @@ -260,10 +265,3 @@ export class WebController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class WebControllerInternal { - public static fromPtr(ptr: KPointer): WebController { - const obj: WebController = new WebController() - obj.peer = new Finalizable(ptr, WebController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebCookieMaterialized.ts b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkWebCookieMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts index 18ec8d1b8..a84e7baf0 100644 --- a/arkoala/arkui/src/ArkWebCookieMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebCookieInternal { + public static fromPtr(ptr: KPointer): WebCookie { + const obj: WebCookie = new WebCookie() + obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) + return obj + } +} export class WebCookie implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcookie(): KPointer { const retval = ArkUIGeneratedNativeModule._WebCookie_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebCookie.ctor() + const ctorPtr: KPointer = WebCookie.ctor_webcookie() this.peer = new Finalizable(ctorPtr, WebCookie.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class WebCookie implements MaterializedBase { return retval } } -export class WebCookieInternal { - public static fromPtr(ptr: KPointer): WebCookie { - const obj: WebCookie = new WebCookie() - obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebInterfaces.ts b/arkoala/arkui/src/generated/ArkWebInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWebInterfaces.ts rename to arkoala/arkui/src/generated/ArkWebInterfaces.ts index 074f92f8f..96ff51483 100644 --- a/arkoala/arkui/src/ArkWebInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWebInterfaces.ts @@ -37,7 +37,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 9e8a3bd3b..3e1bdb0d7 100644 --- a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebKeyboardControllerInternal { + public static fromPtr(ptr: KPointer): WebKeyboardController { + const obj: WebKeyboardController = new WebKeyboardController() + obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) + return obj + } +} export class WebKeyboardController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webkeyboardcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebKeyboardController_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebKeyboardController.ctor() + const ctorPtr: KPointer = WebKeyboardController.ctor_webkeyboardcontroller() this.peer = new Finalizable(ctorPtr, WebKeyboardController.getFinalizer()) } static getFinalizer(): KPointer { @@ -81,10 +86,3 @@ export class WebKeyboardController implements MaterializedBase { ArkUIGeneratedNativeModule._WebKeyboardController_close(this.peer!.ptr) } } -export class WebKeyboardControllerInternal { - public static fromPtr(ptr: KPointer): WebKeyboardController { - const obj: WebKeyboardController = new WebKeyboardController() - obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 3cf53e0ef..480e2e4a6 100644 --- a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceErrorInternal { + public static fromPtr(ptr: KPointer): WebResourceError { + const obj: WebResourceError = new WebResourceError() + obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) + return obj + } +} export class WebResourceError implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceerror(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceError_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceError.ctor() + const ctorPtr: KPointer = WebResourceError.ctor_webresourceerror() this.peer = new Finalizable(ctorPtr, WebResourceError.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class WebResourceError implements MaterializedBase { return retval } } -export class WebResourceErrorInternal { - public static fromPtr(ptr: KPointer): WebResourceError { - const obj: WebResourceError = new WebResourceError() - obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index 62c02cf1c..939194ecc 100644 --- a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceRequestInternal { + public static fromPtr(ptr: KPointer): WebResourceRequest { + const obj: WebResourceRequest = new WebResourceRequest() + obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) + return obj + } +} export class WebResourceRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourcerequest(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceRequest.ctor() + const ctorPtr: KPointer = WebResourceRequest.ctor_webresourcerequest() this.peer = new Finalizable(ctorPtr, WebResourceRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -85,10 +90,3 @@ export class WebResourceRequest implements MaterializedBase { return retval } } -export class WebResourceRequestInternal { - public static fromPtr(ptr: KPointer): WebResourceRequest { - const obj: WebResourceRequest = new WebResourceRequest() - obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index c953eb0cb..f6268026d 100644 --- a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -18,26 +18,31 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceResponseInternal { + public static fromPtr(ptr: KPointer): WebResourceResponse { + const obj: WebResourceResponse = new WebResourceResponse() + obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) + return obj + } +} export class WebResourceResponse implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceresponse(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceResponse.ctor() + const ctorPtr: KPointer = WebResourceResponse.ctor_webresourceresponse() this.peer = new Finalizable(ctorPtr, WebResourceResponse.getFinalizer()) } static getFinalizer(): KPointer { @@ -134,17 +139,17 @@ export class WebResourceResponse implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let data_type: int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) - if (((RuntimeType.STRING == data_type))) { + if (RuntimeType.STRING == data_type) { thisSerializer.writeInt8(0) const data_0 = unsafeCast(data) thisSerializer.writeString(data_0) } - else if (((RuntimeType.NUMBER == data_type))) { + else if (RuntimeType.NUMBER == data_type) { thisSerializer.writeInt8(1) const data_1 = unsafeCast(data) thisSerializer.writeNumber(data_1) } - else if (((RuntimeType.OBJECT) == (data_type)) && (((data!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (data_type)) && ((data!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(2) const data_2 = unsafeCast(data) thisSerializer.writeResource(data_2) @@ -187,10 +192,3 @@ export class WebResourceResponse implements MaterializedBase { return retval } } -export class WebResourceResponseInternal { - public static fromPtr(ptr: KPointer): WebResourceResponse { - const obj: WebResourceResponse = new WebResourceResponse() - obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkWebviewControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts index e7b101d8a..e347085f5 100644 --- a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -18,21 +18,26 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebviewControllerInternal { + public static fromPtr(ptr: KPointer): WebviewController { + const obj: WebviewController = new WebviewController() + obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) + return obj + } +} export class WebviewController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webviewcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebviewController_ctor() return retval } @@ -40,7 +45,7 @@ export class WebviewController implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = WebviewController.ctor() + const ctorPtr: KPointer = WebviewController.ctor_webviewcontroller() this.peer = new Finalizable(ctorPtr, WebviewController.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,12 +68,12 @@ export class WebviewController implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let url_type: int32 = RuntimeType.UNDEFINED url_type = runtimeType(url) - if (((RuntimeType.STRING == url_type))) { + if (RuntimeType.STRING == url_type) { thisSerializer.writeInt8(0) const url_0 = unsafeCast(url) thisSerializer.writeString(url_0) } - else if (((RuntimeType.OBJECT == url_type))) { + else if (RuntimeType.OBJECT == url_type) { thisSerializer.writeInt8(1) const url_1 = unsafeCast(url) thisSerializer.writeResource(url_1) @@ -88,10 +93,3 @@ export class WebviewController implements MaterializedBase { thisSerializer.release() } } -export class WebviewControllerInternal { - public static fromPtr(ptr: KPointer): WebviewController { - const obj: WebviewController = new WebviewController() - obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWindowScene.ts b/arkoala/arkui/src/generated/ArkWindowScene.ts similarity index 97% rename from arkoala/arkui/src/ArkWindowScene.ts rename to arkoala/arkui/src/generated/ArkWindowScene.ts index 82938b2cb..fdfe87174 100644 --- a/arkoala/arkui/src/ArkWindowScene.ts +++ b/arkoala/arkui/src/generated/ArkWindowScene.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWindowSceneInterfaces.ts b/arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWindowSceneInterfaces.ts rename to arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts index 1445b24b2..95aa1c861 100644 --- a/arkoala/arkui/src/ArkWindowSceneInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWithThemeInterfaces.ts b/arkoala/arkui/src/generated/ArkWithThemeInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkWithThemeInterfaces.ts rename to arkoala/arkui/src/generated/ArkWithThemeInterfaces.ts diff --git a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkXComponentControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts index f4fbdf2f1..5aa67c9f4 100644 --- a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -18,26 +18,31 @@ import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class XComponentControllerInternal { + public static fromPtr(ptr: KPointer): XComponentController { + const obj: XComponentController = new XComponentController() + obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) + return obj + } +} export class XComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_xcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._XComponentController_ctor() return retval } constructor() { - const ctorPtr: KPointer = XComponentController.ctor() + const ctorPtr: KPointer = XComponentController.ctor_xcomponentcontroller() this.peer = new Finalizable(ctorPtr, XComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -119,7 +124,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readSurfaceRect() } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer: Serializer = Serializer.hold() @@ -129,7 +134,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.byteLength).readSurfaceRotationOptions() } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) @@ -155,10 +160,3 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_stopImageAnalyzer(this.peer!.ptr) } } -export class XComponentControllerInternal { - public static fromPtr(ptr: KPointer): XComponentController { - const obj: XComponentController = new XComponentController() - obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkXcomponent.ts b/arkoala/arkui/src/generated/ArkXcomponent.ts similarity index 95% rename from arkoala/arkui/src/ArkXcomponent.ts rename to arkoala/arkui/src/generated/ArkXcomponent.ts index 35b29d854..a8bbd24bc 100644 --- a/arkoala/arkui/src/ArkXcomponent.ts +++ b/arkoala/arkui/src/generated/ArkXcomponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -65,17 +64,17 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public setXComponentOptions(value: { id: string, type: string, libraryname?: string, controller?: XComponentController } | XComponentOptions): this { if (this.checkPriority("setXComponentOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as ({ id: string, type: string, libraryname?: string, controller?: XComponentController }) this.getPeer()?.setXComponentOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as ({ id: string, type: string, libraryname?: string, controller?: XComponentController }) this.getPeer()?.setXComponentOptions1Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("imageAIOptions")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("imageAIOptions")))) { const options_casted = value as (XComponentOptions) this.getPeer()?.setXComponentOptions2Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkXcomponentInterfaces.ts b/arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkXcomponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts index 059970896..c5bdc8644 100644 --- a/arkoala/arkui/src/ArkXcomponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts @@ -32,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/EnumsImpl.ts b/arkoala/arkui/src/generated/EnumsImpl.ts new file mode 100644 index 000000000..5dae340fd --- /dev/null +++ b/arkoala/arkui/src/generated/EnumsImpl.ts @@ -0,0 +1,2415 @@ +import { int32, float32 } from "@koalaui/common" +export enum PointerStyle { + DEFAULT, + EAST = 1, + WEST = 2, + SOUTH = 3, + NORTH = 4, + WEST_EAST = 5, + NORTH_SOUTH = 6, + NORTH_EAST = 7, + NORTH_WEST = 8, + SOUTH_EAST = 9, + SOUTH_WEST = 10, + NORTH_EAST_SOUTH_WEST = 11, + NORTH_WEST_SOUTH_EAST = 12, + CROSS = 13, + CURSOR_COPY = 14, + CURSOR_FORBID = 15, + COLOR_SUCKER = 16, + HAND_GRABBING = 17, + HAND_OPEN = 18, + HAND_POINTING = 19, + HELP = 20, + MOVE = 21, + RESIZE_LEFT_RIGHT = 22, + RESIZE_UP_DOWN = 23, + SCREENSHOT_CHOOSE = 24, + SCREENSHOT_CURSOR = 25, + TEXT_CURSOR = 26, + ZOOM_IN = 27, + ZOOM_OUT = 28, + MIDDLE_BTN_EAST = 29, + MIDDLE_BTN_WEST = 30, + MIDDLE_BTN_SOUTH = 31, + MIDDLE_BTN_NORTH = 32, + MIDDLE_BTN_NORTH_SOUTH = 33, + MIDDLE_BTN_NORTH_EAST = 34, + MIDDLE_BTN_NORTH_WEST = 35, + MIDDLE_BTN_SOUTH_EAST = 36, + MIDDLE_BTN_SOUTH_WEST = 37, + MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + HORIZONTAL_TEXT_CURSOR = 39, + CURSOR_CROSS = 40, + CURSOR_CIRCLE = 41, + LOADING = 42, + RUNNING = 43, +} +export enum RectWidthStyle { + TIGHT, + MAX = 1, +} +export enum RectHeightStyle { + TIGHT, + MAX = 1, + INCLUDE_LINE_SPACE_MIDDLE = 2, + INCLUDE_LINE_SPACE_TOP = 3, + INCLUDE_LINE_SPACE_BOTTOM = 4, + STRUT = 5, +} +export enum LengthUnit { + PX, + VP = 1, + FP = 2, + PERCENT = 3, + LPX = 4, +} +export enum PerfMonitorActionType { + LAST_DOWN, + LAST_UP = 1, + FIRST_MOVE = 2, +} +export enum PerfMonitorSourceType { + PERF_TOUCH_EVENT, + PERF_MOUSE_EVENT = 1, + PERF_TOUCHPAD_EVENT = 2, + PERF_JOYSTICK_EVENT = 3, + PERF_KEY_EVENT = 4, +} +export enum DialogAlignment { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + DEFAULT = 3, + Default = DEFAULT, + TOP_START = 4, + TopStart = TOP_START, + TOP_END = 5, + TopEnd = TOP_END, + CENTER_START = 6, + CenterStart = CENTER_START, + CENTER_END = 7, + CenterEnd = CENTER_END, + BOTTOM_START = 8, + BottomStart = BOTTOM_START, + BOTTOM_END = 9, + BottomEnd = BOTTOM_END, +} +export enum DialogButtonDirection { + AUTO, + HORIZONTAL = 1, + VERTICAL = 2, +} +export enum IndexerAlign { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + START = 2, + END = 3, +} +export enum BadgePosition { + RIGHT_TOP, + RightTop = RIGHT_TOP, + RIGHT = 1, + Right = RIGHT, + LEFT = 2, + Left = LEFT, +} +export enum ButtonType { + CAPSULE, + Capsule = CAPSULE, + CIRCLE = 1, + Circle = CIRCLE, + NORMAL = 2, + Normal = NORMAL, + ROUNDED_RECTANGLE = 3, +} +export enum ButtonStyleMode { + NORMAL, + EMPHASIZED = 1, + TEXTUAL = 2, +} +export enum ButtonRole { + NORMAL, + ERROR = 1, +} +export enum ControlSize { + SMALL = "small", + NORMAL = "normal", +} +export enum CalendarAlign { + START, + CENTER = 1, + END = 2, +} +export enum SelectStatus { + ALL, + All = ALL, + PART = 1, + Part = PART, + NONE = 2, + None = NONE, +} +export enum FinishCallbackType { + REMOVED, + LOGICALLY = 1, +} +export enum TouchTestStrategy { + DEFAULT, + FORWARD_COMPETITION = 1, + FORWARD = 2, +} +export enum TransitionHierarchyStrategy { + NONE, + ADAPTIVE = 1, +} +export enum ChainStyle { + SPREAD, + SPREAD_INSIDE = 1, + PACKED = 2, +} +export enum TransitionEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum EffectType { + DEFAULT, + WINDOW_EFFECT = 1, +} +export enum PreDragStatus { + ACTION_DETECTING_STATUS, + READY_TO_TRIGGER_DRAG_ACTION = 1, + PREVIEW_LIFT_STARTED = 2, + PREVIEW_LIFT_FINISHED = 3, + PREVIEW_LANDING_STARTED = 4, + PREVIEW_LANDING_FINISHED = 5, + ACTION_CANCELED_BEFORE_DRAG = 6, +} +export enum SourceType { + UNKNOWN, + Unknown = UNKNOWN, + MOUSE = 1, + Mouse = MOUSE, + TOUCH_SCREEN = 2, + TouchScreen = TOUCH_SCREEN, +} +export enum SourceTool { + UNKNOWN, + Unknown = UNKNOWN, + FINGER = 1, + Finger = FINGER, + PEN = 2, + Pen = PEN, + MOUSE = 3, + TOUCHPAD = 4, + JOYSTICK = 5, +} +export enum RepeatMode { + REPEAT, + Repeat = REPEAT, + STRETCH = 1, + Stretch = STRETCH, + ROUND = 2, + Round = ROUND, + SPACE = 3, + Space = SPACE, +} +export enum BlurStyle { + THIN, + Thin = THIN, + REGULAR = 1, + Regular = REGULAR, + THICK = 2, + Thick = THICK, + BACKGROUND_THIN = 3, + BACKGROUND_REGULAR = 4, + BACKGROUND_THICK = 5, + BACKGROUND_ULTRA_THICK = 6, + NONE = 7, + COMPONENT_ULTRA_THIN = 8, + COMPONENT_THIN = 9, + COMPONENT_REGULAR = 10, + COMPONENT_THICK = 11, + COMPONENT_ULTRA_THICK = 12, +} +export enum BlurStyleActivePolicy { + FOLLOWS_WINDOW_ACTIVE_STATE, + ALWAYS_ACTIVE = 1, + ALWAYS_INACTIVE = 2, +} +export enum ThemeColorMode { + SYSTEM, + LIGHT = 1, + DARK = 2, +} +export enum AdaptiveColor { + DEFAULT, + AVERAGE = 1, +} +export enum ModalTransition { + DEFAULT, + NONE = 1, + ALPHA = 2, +} +export enum ShadowType { + COLOR, + BLUR = 1, +} +export enum ShadowStyle { + OUTER_DEFAULT_XS, + OUTER_DEFAULT_SM = 1, + OUTER_DEFAULT_MD = 2, + OUTER_DEFAULT_LG = 3, + OUTER_FLOATING_SM = 4, + OUTER_FLOATING_MD = 5, +} +export enum SafeAreaType { + SYSTEM, + CUTOUT = 1, + KEYBOARD = 2, +} +export enum SafeAreaEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum LayoutSafeAreaType { + SYSTEM, +} +export enum LayoutSafeAreaEdge { + TOP, + BOTTOM = 1, +} +export enum SheetSize { + MEDIUM, + LARGE = 1, + FIT_CONTENT = 2, +} +export enum DragBehavior { + COPY, + MOVE = 1, +} +export enum DragResult { + DRAG_SUCCESSFUL, + DRAG_FAILED = 1, + DRAG_CANCELED = 2, + DROP_ENABLED = 3, + DROP_DISABLED = 4, +} +export enum BlendMode { + NONE, + CLEAR = 1, + SRC = 2, + DST = 3, + SRC_OVER = 4, + DST_OVER = 5, + SRC_IN = 6, + DST_IN = 7, + SRC_OUT = 8, + DST_OUT = 9, + SRC_ATOP = 10, + DST_ATOP = 11, + XOR = 12, + PLUS = 13, + MODULATE = 14, + SCREEN = 15, + OVERLAY = 16, + DARKEN = 17, + LIGHTEN = 18, + COLOR_DODGE = 19, + COLOR_BURN = 20, + HARD_LIGHT = 21, + SOFT_LIGHT = 22, + DIFFERENCE = 23, + EXCLUSION = 24, + MULTIPLY = 25, + HUE = 26, + SATURATION = 27, + COLOR = 28, + LUMINOSITY = 29, +} +export enum BlendApplyType { + FAST, + OFFSCREEN = 1, +} +export enum SheetType { + BOTTOM, + CENTER = 1, + POPUP = 2, +} +export enum SheetMode { + OVERLAY, + EMBEDDED = 1, +} +export enum ScrollSizeMode { + FOLLOW_DETENT, + CONTINUOUS = 1, +} +export enum SheetKeyboardAvoidMode { + NONE, + TRANSLATE_AND_RESIZE = 1, + RESIZE_ONLY = 2, + TRANSLATE_AND_SCROLL = 3, +} +export enum DismissReason { + PRESS_BACK, + TOUCH_OUTSIDE = 1, + CLOSE_BUTTON = 2, + SLIDE_DOWN = 3, +} +export enum MenuPreviewMode { + NONE, + IMAGE = 1, +} +export enum OutlineStyle { + SOLID, + DASHED = 1, + DOTTED = 2, +} +export enum DragPreviewMode { + AUTO = 1, + DISABLE_SCALE = 2, + ENABLE_DEFAULT_SHADOW = 3, + ENABLE_DEFAULT_RADIUS = 4, +} +export enum MenuPolicy { + DEFAULT, + HIDE = 1, + SHOW = 2, +} +export enum ContentClipMode { + CONTENT_ONLY, + BOUNDARY = 1, + SAFE_AREA = 2, +} +export enum KeyboardAvoidMode { + DEFAULT, + NONE = 1, +} +export enum HoverModeAreaType { + TOP_SCREEN, + BOTTOM_SCREEN = 1, +} +export enum ModelType { + TEXTURE, + SURFACE = 1, +} +export enum DataPanelType { + LINE, + Line = LINE, + CIRCLE = 1, + Circle = CIRCLE, +} +export enum CheckBoxShape { + CIRCLE, + ROUNDED_SQUARE = 1, +} +export enum Color { + WHITE, + White = WHITE, + BLACK = 1, + Black = BLACK, + BLUE = 2, + Blue = BLUE, + BROWN = 3, + Brown = BROWN, + GRAY = 4, + Gray = GRAY, + GREEN = 5, + Green = GREEN, + GREY = 6, + Grey = GREY, + ORANGE = 7, + Orange = ORANGE, + PINK = 8, + Pink = PINK, + RED = 9, + Red = RED, + YELLOW = 10, + Yellow = YELLOW, + TRANSPARENT = 11, + Transparent = TRANSPARENT, +} +export enum ColoringStrategy { + INVERT = "invert", + AVERAGE = "average", + PRIMARY = "primary", +} +export enum ImageFit { + CONTAIN, + Contain = CONTAIN, + COVER = 1, + Cover = COVER, + AUTO = 2, + Auto = AUTO, + FILL = 3, + Fill = FILL, + SCALE_DOWN = 4, + ScaleDown = SCALE_DOWN, + NONE = 5, + None = NONE, + TOP_START = 7, + TOP = 8, + TOP_END = 9, + START = 10, + CENTER = 11, + END = 12, + BOTTOM_START = 13, + BOTTOM = 14, + BOTTOM_END = 15, +} +export enum BorderStyle { + DOTTED, + Dotted = DOTTED, + DASHED = 1, + Dashed = DASHED, + SOLID = 2, + Solid = SOLID, +} +export enum LineJoinStyle { + MITER, + Miter = MITER, + ROUND = 1, + Round = ROUND, + BEVEL = 2, + Bevel = BEVEL, +} +export enum TouchType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, + MOVE = 2, + Move = MOVE, + CANCEL = 3, + Cancel = CANCEL, +} +export enum MouseButton { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + MIDDLE = 2, + Middle = MIDDLE, + BACK = 3, + Back = BACK, + FORWARD = 4, + Forward = FORWARD, + NONE = 5, + None = NONE, +} +export enum MouseAction { + PRESS, + Press = PRESS, + RELEASE = 1, + Release = RELEASE, + MOVE = 2, + Move = MOVE, + HOVER = 3, + Hover = HOVER, +} +export enum AnimationStatus { + INITIAL, + Initial = INITIAL, + RUNNING = 1, + Running = RUNNING, + PAUSED = 2, + Paused = PAUSED, + STOPPED = 3, + Stopped = STOPPED, +} +export enum Curve { + LINEAR, + Linear = LINEAR, + EASE = 1, + Ease = EASE, + EASE_IN = 2, + EaseIn = EASE_IN, + EASE_OUT = 3, + EaseOut = EASE_OUT, + EASE_IN_OUT = 4, + EaseInOut = EASE_IN_OUT, + FAST_OUT_SLOW_IN = 5, + FastOutSlowIn = FAST_OUT_SLOW_IN, + LINEAR_OUT_SLOW_IN = 6, + LinearOutSlowIn = LINEAR_OUT_SLOW_IN, + FAST_OUT_LINEAR_IN = 7, + FastOutLinearIn = FAST_OUT_LINEAR_IN, + EXTREME_DECELERATION = 8, + ExtremeDeceleration = EXTREME_DECELERATION, + SHARP = 9, + Sharp = SHARP, + RHYTHM = 10, + Rhythm = RHYTHM, + SMOOTH = 11, + Smooth = SMOOTH, + FRICTION = 12, + Friction = FRICTION, +} +export enum FillMode { + NONE, + None = NONE, + FORWARDS = 1, + Forwards = FORWARDS, + BACKWARDS = 2, + Backwards = BACKWARDS, + BOTH = 3, + Both = BOTH, +} +export enum PlayMode { + NORMAL, + Normal = NORMAL, + REVERSE = 1, + Reverse = REVERSE, + ALTERNATE = 2, + Alternate = ALTERNATE, + ALTERNATE_REVERSE = 3, + AlternateReverse = ALTERNATE_REVERSE, +} +export enum KeyType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, +} +export enum KeySource { + UNKNOWN, + Unknown = UNKNOWN, + KEYBOARD = 1, + Keyboard = KEYBOARD, +} +export enum Edge { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + BASELINE = 3, + Baseline = BASELINE, + START = 4, + Start = START, + MIDDLE = 5, + Middle = MIDDLE, + END = 6, + End = END, +} +export enum Week { + MON, + Mon = MON, + TUE = 1, + Tue = TUE, + WED = 2, + Wed = WED, + THUR = 3, + Thur = THUR, + FRI = 4, + Fri = FRI, + SAT = 5, + Sat = SAT, + SUN = 6, + Sun = SUN, +} +export enum Direction { + LTR, + Ltr = LTR, + RTL = 1, + Rtl = RTL, + AUTO = 2, + Auto = AUTO, +} +export enum BarState { + OFF, + Off = OFF, + AUTO = 1, + Auto = AUTO, + ON = 2, + On = ON, +} +export enum EdgeEffect { + SPRING, + Spring = SPRING, + FADE = 1, + Fade = FADE, + NONE = 2, + None = NONE, +} +export enum Alignment { + TOP_START, + TopStart = TOP_START, + TOP = 1, + Top = TOP, + TOP_END = 2, + TopEnd = TOP_END, + START = 3, + Start = START, + CENTER = 4, + Center = CENTER, + END = 5, + End = END, + BOTTOM_START = 6, + BottomStart = BOTTOM_START, + BOTTOM = 7, + Bottom = BOTTOM, + BOTTOM_END = 8, + BottomEnd = BOTTOM_END, +} +export enum TransitionType { + ALL, + All = ALL, + INSERT = 1, + Insert = INSERT, + DELETE = 2, + Delete = DELETE, +} +export enum RelateType { + FILL, + FIT = 1, +} +export enum Visibility { + VISIBLE, + Visible = VISIBLE, + HIDDEN = 1, + Hidden = HIDDEN, + NONE = 2, + None = NONE, +} +export enum LineCapStyle { + BUTT, + Butt = BUTT, + ROUND = 1, + Round = ROUND, + SQUARE = 2, + Square = SQUARE, +} +export enum Axis { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum HorizontalAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum FlexAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, + SPACE_BETWEEN = 3, + SpaceBetween = SPACE_BETWEEN, + SPACE_AROUND = 4, + SpaceAround = SPACE_AROUND, + SPACE_EVENLY = 5, + SpaceEvenly = SPACE_EVENLY, +} +export enum ItemAlign { + AUTO, + Auto = AUTO, + START = 1, + Start = START, + CENTER = 2, + Center = CENTER, + END = 3, + End = END, + BASELINE = 4, + Baseline = BASELINE, + STRETCH = 5, + Stretch = STRETCH, +} +export enum FlexDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum PixelRoundCalcPolicy { + NO_FORCE_ROUND, + FORCE_CEIL = 1, + FORCE_FLOOR = 2, +} +export enum FlexWrap { + NO_WRAP, + NoWrap = NO_WRAP, + WRAP = 1, + Wrap = WRAP, + WRAP_REVERSE = 2, + WrapReverse = WRAP_REVERSE, +} +export enum VerticalAlign { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, +} +export enum ImageRepeat { + NO_REPEAT, + NoRepeat = NO_REPEAT, + X = 1, + Y = 2, + XY = 3, +} +export enum ImageSize { + AUTO, + Auto = AUTO, + COVER = 1, + Cover = COVER, + CONTAIN = 2, + Contain = CONTAIN, + FILL = 3, +} +export enum GradientDirection { + LEFT, + Left = LEFT, + TOP = 1, + Top = TOP, + RIGHT = 2, + Right = RIGHT, + BOTTOM = 3, + Bottom = BOTTOM, + LEFT_TOP = 4, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 5, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 6, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 7, + RightBottom = RIGHT_BOTTOM, + NONE = 8, + None = NONE, +} +export enum SharedTransitionEffectType { + STATIC, + Static = STATIC, + EXCHANGE = 1, + Exchange = EXCHANGE, +} +export enum FontStyle { + NORMAL, + Normal = NORMAL, + ITALIC = 1, + Italic = ITALIC, +} +export enum FontWeight { + LIGHTER, + Lighter = LIGHTER, + NORMAL = 1, + Normal = NORMAL, + REGULAR = 2, + Regular = REGULAR, + MEDIUM = 3, + Medium = MEDIUM, + BOLD = 4, + Bold = BOLD, + BOLDER = 5, + Bolder = BOLDER, +} +export enum TextAlign { + CENTER, + Center = CENTER, + START = 1, + Start = START, + END = 2, + End = END, + JUSTIFY = 3, +} +export enum TextOverflow { + NONE, + None = NONE, + CLIP = 1, + Clip = CLIP, + ELLIPSIS = 2, + Ellipsis = ELLIPSIS, + MARQUEE = 3, +} +export enum TextDecorationType { + NONE, + None = NONE, + UNDERLINE = 1, + Underline = UNDERLINE, + OVERLINE = 2, + Overline = OVERLINE, + LINE_THROUGH = 3, + LineThrough = LINE_THROUGH, +} +export enum TextCase { + NORMAL, + Normal = NORMAL, + LOWER_CASE = 1, + LowerCase = LOWER_CASE, + UPPER_CASE = 2, + UpperCase = UPPER_CASE, +} +export enum TextHeightAdaptivePolicy { + MAX_LINES_FIRST, + MIN_FONT_SIZE_FIRST = 1, + LAYOUT_CONSTRAINT_FIRST = 2, +} +export enum ResponseType { + RIGHT_CLICK, + RightClick = RIGHT_CLICK, + LONG_PRESS = 1, + LongPress = LONG_PRESS, +} +export enum HoverEffect { + AUTO, + Auto = AUTO, + SCALE = 1, + Scale = SCALE, + HIGHLIGHT = 2, + Highlight = HIGHLIGHT, + NONE = 3, + None = NONE, +} +export enum Placement { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + TOP_LEFT = 4, + TopLeft = TOP_LEFT, + TOP_RIGHT = 5, + TopRight = TOP_RIGHT, + BOTTOM_LEFT = 6, + BottomLeft = BOTTOM_LEFT, + BOTTOM_RIGHT = 7, + BottomRight = BOTTOM_RIGHT, + LEFT_TOP = 8, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 9, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 10, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 11, + RightBottom = RIGHT_BOTTOM, +} +export enum ArrowPointPosition { + START = "Start", + CENTER = "Center", + END = "End", +} +export enum CopyOptions { + NONE, + None = NONE, + IN_APP = 1, + InApp = IN_APP, + LOCAL_DEVICE = 2, + LocalDevice = LOCAL_DEVICE, + CROSS_DEVICE = 3, +} +export enum HitTestMode { + DEFAULT, + Default = DEFAULT, + BLOCK = 1, + Block = BLOCK, + TRANSPARENT = 2, + Transparent = TRANSPARENT, + NONE = 3, + None = NONE, +} +export enum TitleHeight { + MAIN_ONLY, + MainOnly = MAIN_ONLY, + MAIN_WITH_SUB = 1, + MainWithSub = MAIN_WITH_SUB, +} +export enum ModifierKey { + CTRL, + SHIFT = 1, + ALT = 2, +} +export enum FunctionKey { + ESC, + F1 = 1, + F2 = 2, + F3 = 3, + F4 = 4, + F5 = 5, + F6 = 6, + F7 = 7, + F8 = 8, + F9 = 9, + F10 = 10, + F11 = 11, + F12 = 12, + TAB = 13, + DPAD_UP = 14, + DPAD_DOWN = 15, + DPAD_LEFT = 16, + DPAD_RIGHT = 17, +} +export enum ImageSpanAlignment { + BASELINE, + BOTTOM = 1, + CENTER = 2, + TOP = 3, +} +export enum ObscuredReasons { + PLACEHOLDER, +} +export enum TextContentStyle { + DEFAULT, + INLINE = 1, +} +export enum ClickEffectLevel { + LIGHT, + MIDDLE = 1, + HEAVY = 2, +} +export enum XComponentType { + SURFACE, + COMPONENT = 1, + TEXTURE = 2, + NODE = 3, +} +export enum NestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, + PARENT_FIRST = 2, + PARALLEL = 3, +} +export enum ScrollSource { + DRAG, + FLING = 1, + EDGE_EFFECT = 2, + OTHER_USER_INPUT = 3, + SCROLL_BAR = 4, + SCROLL_BAR_FLING = 5, + SCROLLER = 6, + SCROLLER_ANIMATION = 7, +} +export enum RenderFit { + CENTER, + TOP = 1, + BOTTOM = 2, + LEFT = 3, + RIGHT = 4, + TOP_LEFT = 5, + TOP_RIGHT = 6, + BOTTOM_LEFT = 7, + BOTTOM_RIGHT = 8, + RESIZE_FILL = 9, + RESIZE_CONTAIN = 10, + RESIZE_CONTAIN_TOP_LEFT = 11, + RESIZE_CONTAIN_BOTTOM_RIGHT = 12, + RESIZE_COVER = 13, + RESIZE_COVER_TOP_LEFT = 14, + RESIZE_COVER_BOTTOM_RIGHT = 15, +} +export enum DialogButtonStyle { + DEFAULT, + HIGHLIGHT = 1, +} +export enum WordBreak { + NORMAL, + BREAK_ALL = 1, + BREAK_WORD = 2, +} +export enum LineBreakStrategy { + GREEDY, + HIGH_QUALITY = 1, + BALANCED = 2, +} +export enum EllipsisMode { + START, + CENTER = 1, + END = 2, +} +export enum OptionWidthMode { + FIT_CONTENT = "fit_content", + FIT_TRIGGER = "fit_trigger", +} +export enum IlluminatedType { + NONE, + BORDER = 1, + CONTENT = 2, + BORDER_CONTENT = 3, + BLOOM_BORDER = 4, + BLOOM_BORDER_CONTENT = 5, +} +export enum FoldStatus { + FOLD_STATUS_UNKNOWN, + FOLD_STATUS_EXPANDED = 1, + FOLD_STATUS_FOLDED = 2, + FOLD_STATUS_HALF_FOLDED = 3, +} +export enum AppRotation { + ROTATION_0, + ROTATION_90 = 1, + ROTATION_180 = 2, + ROTATION_270 = 3, +} +export enum EmbeddedType { + EMBEDDED_UI_EXTENSION, +} +export enum MarqueeUpdateStrategy { + DEFAULT, + PRESERVE_POSITION = 1, +} +export enum TextDecorationStyle { + SOLID, + DOUBLE = 1, + DOTTED = 2, + DASHED = 3, + WAVY = 4, +} +export enum TextSelectableMode { + SELECTABLE_UNFOCUSABLE, + SELECTABLE_FOCUSABLE = 1, + UNSELECTABLE = 2, +} +export enum AccessibilityHoverType { + HOVER_ENTER, + HOVER_MOVE = 1, + HOVER_EXIT = 2, + HOVER_CANCEL = 3, +} +export enum WidthBreakpoint { + WIDTH_XS, + WIDTH_SM = 1, + WIDTH_MD = 2, + WIDTH_LG = 3, + WIDTH_XL = 4, +} +export enum HeightBreakpoint { + HEIGHT_SM, + HEIGHT_MD = 1, + HEIGHT_LG = 2, +} +export enum FocusPriority { + AUTO, + PRIOR = 2000, + PREVIOUS = 3000, +} +export enum FormDimension { + DIMENSION_1_2, + Dimension_1_2 = DIMENSION_1_2, + DIMENSION_2_2 = 1, + Dimension_2_2 = DIMENSION_2_2, + DIMENSION_2_4 = 2, + Dimension_2_4 = DIMENSION_2_4, + DIMENSION_4_4 = 3, + Dimension_4_4 = DIMENSION_4_4, + DIMENSION_2_1 = 4, + Dimension_2_1 = DIMENSION_2_1, + DIMENSION_1_1 = 6, + DIMENSION_6_4 = 7, +} +export enum FormRenderingMode { + FULL_COLOR, + SINGLE_COLOR = 1, +} +export enum FormShape { + RECT = 1, + CIRCLE = 2, +} +export enum PanDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + LEFT = 2, + Left = LEFT, + RIGHT = 3, + Right = RIGHT, + VERTICAL = 4, + Vertical = VERTICAL, + UP = 5, + Up = UP, + DOWN = 6, + Down = DOWN, + ALL = 7, + All = ALL, +} +export enum SwipeDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + VERTICAL = 2, + Vertical = VERTICAL, + ALL = 3, + All = ALL, +} +export enum GestureMode { + SEQUENCE, + Sequence = SEQUENCE, + PARALLEL = 1, + Parallel = PARALLEL, + EXCLUSIVE = 2, + Exclusive = EXCLUSIVE, +} +export enum GestureMask { + NORMAL, + Normal = NORMAL, + IGNORE_INTERNAL = 1, + IgnoreInternal = IGNORE_INTERNAL, +} +export enum GestureJudgeResult { + CONTINUE, + REJECT = 1, +} +export namespace GestureControl { + export enum GestureType { + TAP_GESTURE, + LONG_PRESS_GESTURE = 1, + PAN_GESTURE = 2, + PINCH_GESTURE = 3, + SWIPE_GESTURE = 4, + ROTATION_GESTURE = 5, + DRAG = 6, + CLICK = 7, + } +} +export enum GesturePriority { + NORMAL, + PRIORITY = 1, +} +export enum GestureRecognizerState { + READY, + DETECTING = 1, + PENDING = 2, + BLOCKED = 3, + SUCCESSFUL = 4, + FAILED = 5, +} +export enum GridDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum GridItemAlignment { + DEFAULT, + STRETCH = 1, +} +export enum GridItemStyle { + NONE, + PLAIN = 1, +} +export enum SizeType { + AUTO, + Auto = AUTO, + XS = 1, + SM = 2, + MD = 3, + LG = 4, +} +export enum BreakpointsReference { + WINDOW_SIZE, + WindowSize = WINDOW_SIZE, + COMPONENT_SIZE = 1, + ComponentSize = COMPONENT_SIZE, +} +export enum GridRowDirection { + ROW, + Row = ROW, + ROW_REVERSE = 1, + RowReverse = ROW_REVERSE, +} +export enum ImageRenderMode { + ORIGINAL, + Original = ORIGINAL, + TEMPLATE = 1, + Template = TEMPLATE, +} +export enum ImageContent { + EMPTY, +} +export enum DynamicRangeMode { + HIGH, + CONSTRAINT = 1, + STANDARD = 2, +} +export enum ImageInterpolation { + NONE, + None = NONE, + LOW = 1, + Low = LOW, + MEDIUM = 2, + Medium = MEDIUM, + HIGH = 3, + High = HIGH, +} +export enum ImageAnalyzerType { + SUBJECT, + TEXT = 1, + OBJECT_LOOKUP = 2, +} +export enum DataOperationType { + ADD = "add", + DELETE = "delete", + EXCHANGE = "exchange", + MOVE = "move", + CHANGE = "change", + RELOAD = "reload", +} +export enum ScrollState { + IDLE, + Idle = IDLE, + SCROLL = 1, + Scroll = SCROLL, + FLING = 2, + Fling = FLING, +} +export enum ListItemAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum ListItemGroupArea { + NONE, + IN_LIST_ITEM_AREA = 1, + IN_HEADER_AREA = 2, + IN_FOOTER_AREA = 3, +} +export enum StickyStyle { + NONE, + None = NONE, + HEADER = 1, + Header = HEADER, + FOOTER = 2, + Footer = FOOTER, +} +export enum ChainEdgeEffect { + DEFAULT, + STRETCH = 1, +} +export enum ScrollSnapAlign { + NONE, + START = 1, + CENTER = 2, + END = 3, +} +export enum Sticky { + NONE, + None = NONE, + NORMAL = 1, + Normal = NORMAL, + OPACITY = 2, + Opacity = OPACITY, +} +export enum EditMode { + NONE, + None = NONE, + DELETABLE = 1, + Deletable = DELETABLE, + MOVABLE = 2, + Movable = MOVABLE, +} +export enum SwipeEdgeEffect { + SPRING, + Spring = SPRING, + NONE = 1, + None = NONE, +} +export enum SwipeActionState { + COLLAPSED, + EXPANDED = 1, + ACTIONING = 2, +} +export enum ListItemStyle { + NONE, + CARD = 1, +} +export enum ListItemGroupStyle { + NONE, + CARD = 1, +} +export enum LoadingProgressStyle { + DEFAULT, + Default = DEFAULT, + CIRCULAR = 1, + Circular = CIRCULAR, + ORBITAL = 2, + Orbital = ORBITAL, +} +export enum LocationIconStyle { + FULL_FILLED, + LINES = 1, +} +export enum LocationDescription { + CURRENT_LOCATION, + ADD_LOCATION = 1, + SELECT_LOCATION = 2, + SHARE_LOCATION = 3, + SEND_LOCATION = 4, + LOCATING = 5, + LOCATION = 6, + SEND_CURRENT_LOCATION = 7, + RELOCATION = 8, + PUNCH_IN = 9, + CURRENT_POSITION = 10, +} +export enum LocationButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum SubMenuExpandingMode { + SIDE_EXPAND, + EMBEDDED_EXPAND = 1, + STACK_EXPAND = 2, +} +export enum NavigationSystemTransitionType { + DEFAULT, + NONE = 1, + TITLE = 2, + CONTENT = 3, +} +export enum NavDestinationMode { + STANDARD, + DIALOG = 1, +} +export enum NavRouteMode { + PUSH_WITH_RECREATE, + PUSH = 1, + REPLACE = 2, +} +export enum NavigationMode { + STACK, + Stack = STACK, + SPLIT = 1, + Split = SPLIT, + AUTO = 2, + Auto = AUTO, +} +export enum NavBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum NavigationTitleMode { + FREE, + Free = FREE, + FULL = 1, + Full = FULL, + MINI = 2, + Mini = MINI, +} +export enum LaunchMode { + STANDARD, + MOVE_TO_TOP_SINGLETON = 1, + POP_TO_SINGLETON = 2, + NEW_INSTANCE = 3, +} +export enum ToolbarItemStatus { + NORMAL, + DISABLED = 1, + ACTIVE = 2, +} +export enum NavigationOperation { + PUSH = 1, + POP = 2, + REPLACE = 3, +} +export enum BarStyle { + STANDARD, + STACK = 1, + SAFE_AREA_PADDING = 2, +} +export enum NavigationType { + PUSH, + Push = PUSH, + BACK = 1, + Back = BACK, + REPLACE = 2, + Replace = REPLACE, +} +export enum RouteType { + NONE, + None = NONE, + PUSH = 1, + Push = PUSH, + POP = 2, + Pop = POP, +} +export enum SlideEffect { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + START = 5, + END = 6, +} +export enum PanelMode { + MINI, + Mini = MINI, + HALF = 1, + Half = HALF, + FULL = 2, + Full = FULL, +} +export enum PanelType { + MINIBAR, + Minibar = MINIBAR, + FOLDABLE = 1, + Foldable = FOLDABLE, + TEMPORARY = 2, + Temporary = TEMPORARY, + CUSTOM = 3, +} +export enum PanelHeight { + WRAP_CONTENT = "wrapContent", +} +export enum ParticleType { + POINT = "point", + IMAGE = "image", +} +export enum ParticleEmitterShape { + RECTANGLE = "rectangle", + CIRCLE = "circle", + ELLIPSE = "ellipse", +} +export enum DistributionType { + UNIFORM, + GAUSSIAN = 1, +} +export enum ParticleUpdater { + NONE = "none", + RANDOM = "random", + CURVE = "curve", +} +export enum DisturbanceFieldShape { + RECT, + CIRCLE = 1, + ELLIPSE = 2, +} +export enum PasteIconStyle { + LINES, +} +export enum PasteDescription { + PASTE, +} +export enum PasteButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum PatternLockChallengeResult { + CORRECT = 1, + WRONG = 2, +} +export enum ProgressType { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum ProgressStatus { + LOADING, + PROGRESSING = 1, +} +export enum ProgressStyle { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum RadioIndicatorType { + TICK, + DOT = 1, + CUSTOM = 2, +} +export enum RefreshStatus { + INACTIVE, + Inactive = INACTIVE, + DRAG = 1, + Drag = DRAG, + OVER_DRAG = 2, + OverDrag = OVER_DRAG, + REFRESH = 3, + Refresh = REFRESH, + DONE = 4, + Done = DONE, +} +export enum BarrierDirection { + LEFT, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export enum LocalizedBarrierDirection { + START, + END = 1, + TOP = 2, + BOTTOM = 3, +} +export enum RichEditorDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum RichEditorSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, + BUILDER = 3, +} +export enum RichEditorResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum SaveIconStyle { + FULL_FILLED, + LINES = 1, + PICTURE = 2, +} +export enum SaveDescription { + DOWNLOAD, + DOWNLOAD_FILE = 1, + SAVE = 2, + SAVE_IMAGE = 3, + SAVE_FILE = 4, + DOWNLOAD_AND_SHARE = 5, + RECEIVE = 6, + CONTINUE_TO_RECEIVE = 7, + SAVE_TO_GALLERY = 8, + EXPORT_TO_GALLERY = 9, + QUICK_SAVE_TO_GALLERY = 10, + RESAVE_TO_GALLERY = 11, +} +export enum SaveButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum ScrollDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + FREE = 2, + Free = FREE, + NONE = 3, + None = NONE, +} +export enum ScrollAlign { + START, + CENTER = 1, + END = 2, + AUTO = 3, +} +export enum ScrollBarDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum CancelButtonStyle { + CONSTANT, + INVISIBLE = 1, + INPUT = 2, +} +export enum SearchType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum SecurityComponentLayoutDirection { + HORIZONTAL, + VERTICAL = 1, +} +export enum ArrowPosition { + END, + START = 1, +} +export enum MenuAlignType { + START, + CENTER = 1, + END = 2, +} +export enum SliderStyle { + OUT_SET, + OutSet = OUT_SET, + IN_SET = 1, + InSet = IN_SET, + NONE = 2, +} +export enum SliderChangeMode { + BEGIN, + Begin = BEGIN, + MOVING = 1, + Moving = MOVING, + END = 2, + End = END, + CLICK = 3, + Click = CLICK, +} +export enum SliderInteraction { + SLIDE_AND_CLICK, + SLIDE_ONLY = 1, + SLIDE_AND_CLICK_UP = 2, +} +export enum SliderBlockType { + DEFAULT, + IMAGE = 1, + SHAPE = 2, +} +export enum ColorMode { + LIGHT, + DARK = 1, +} +export enum LayoutDirection { + LTR, + RTL = 1, + AUTO = 2, + Auto = AUTO, +} +export enum ItemState { + NORMAL, + Normal = NORMAL, + DISABLED = 1, + Disabled = DISABLED, + WAITING = 2, + Waiting = WAITING, + SKIP = 3, + Skip = SKIP, +} +export enum SwiperDisplayMode { + LEGACY_STRETCH, + Stretch = LEGACY_STRETCH, + LEGACY_AUTO_LINEAR = 1, + AutoLinear = LEGACY_AUTO_LINEAR, + STRETCH = 2, + AUTO_LINEAR = 3, +} +export enum SwiperNestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, +} +export enum SymbolRenderingStrategy { + SINGLE, + MULTIPLE_COLOR = 1, + MULTIPLE_OPACITY = 2, +} +export enum SymbolEffectStrategy { + NONE, + SCALE = 1, + HIERARCHICAL = 2, +} +export enum EffectDirection { + DOWN, + UP = 1, +} +export enum EffectScope { + LAYER, + WHOLE = 1, +} +export enum EffectFillStyle { + CUMULATIVE, + ITERATIVE = 1, +} +export enum BarMode { + SCROLLABLE, + Scrollable = SCROLLABLE, + FIXED = 1, + Fixed = FIXED, +} +export enum AnimationMode { + CONTENT_FIRST, + ACTION_FIRST = 1, + NO_ANIMATION = 2, +} +export enum BarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum LayoutStyle { + ALWAYS_CENTER, + ALWAYS_AVERAGE_SPLIT = 1, + SPACE_BETWEEN_OR_CENTER = 2, +} +export enum SelectedMode { + INDICATOR, + BOARD = 1, +} +export enum LayoutMode { + AUTO, + VERTICAL = 1, + HORIZONTAL = 2, +} +export enum TextSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, +} +export enum TextResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum TextAreaType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum ContentType { + USER_NAME, + PASSWORD = 1, + NEW_PASSWORD = 2, + FULL_STREET_ADDRESS = 3, + HOUSE_NUMBER = 4, + DISTRICT_ADDRESS = 5, + CITY_ADDRESS = 6, + PROVINCE_ADDRESS = 7, + COUNTRY_ADDRESS = 8, + PERSON_FULL_NAME = 9, + PERSON_LAST_NAME = 10, + PERSON_FIRST_NAME = 11, + PHONE_NUMBER = 12, + PHONE_COUNTRY_CODE = 13, + FULL_PHONE_NUMBER = 14, + EMAIL_ADDRESS = 15, + BANK_CARD_NUMBER = 16, + ID_CARD_NUMBER = 17, + NICKNAME = 23, + DETAIL_INFO_WITHOUT_STREET = 24, + FORMAT_ADDRESS = 25, +} +export enum TextDataDetectorType { + PHONE_NUMBER, + URL = 1, + EMAIL = 2, + ADDRESS = 3, + DATE_TIME = 4, +} +export enum TextDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum MenuType { + SELECTION_MENU, + PREVIEW_MENU = 1, +} +export enum InputType { + NORMAL, + Normal = NORMAL, + NUMBER = 1, + Number = NUMBER, + PHONE_NUMBER = 2, + PhoneNumber = PHONE_NUMBER, + EMAIL = 3, + Email = EMAIL, + PASSWORD = 4, + Password = PASSWORD, + NUMBER_PASSWORD = 8, + SCREEN_LOCK_PASSWORD = 9, + USER_NAME = 10, + NEW_PASSWORD = 11, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum EnterKeyType { + GO = 2, + Go = GO, + SEARCH = 3, + Search = SEARCH, + SEND = 4, + Send = SEND, + NEXT = 5, + Next = NEXT, + DONE = 6, + Done = DONE, + PREVIOUS = 7, + NEW_LINE = 8, +} +export enum TextInputStyle { + DEFAULT, + Default = DEFAULT, + INLINE = 1, + Inline = INLINE, +} +export enum TimePickerFormat { + HOUR_MINUTE, + HOUR_MINUTE_SECOND = 1, +} +export enum ToggleType { + CHECKBOX, + Checkbox = CHECKBOX, + SWITCH = 1, + Switch = SWITCH, + BUTTON = 2, + Button = BUTTON, +} +export enum SeekMode { + PREVIOUS_KEYFRAME, + PreviousKeyframe = PREVIOUS_KEYFRAME, + NEXT_KEYFRAME = 1, + NextKeyframe = NEXT_KEYFRAME, + CLOSEST_KEYFRAME = 2, + ClosestKeyframe = CLOSEST_KEYFRAME, + ACCURATE = 3, + Accurate = ACCURATE, +} +export enum PlaybackSpeed { + SPEED_FORWARD_0_75_X, + Speed_Forward_0_75_X = SPEED_FORWARD_0_75_X, + SPEED_FORWARD_1_00_X = 1, + Speed_Forward_1_00_X = SPEED_FORWARD_1_00_X, + SPEED_FORWARD_1_25_X = 2, + Speed_Forward_1_25_X = SPEED_FORWARD_1_25_X, + SPEED_FORWARD_1_75_X = 3, + Speed_Forward_1_75_X = SPEED_FORWARD_1_75_X, + SPEED_FORWARD_2_00_X = 4, + Speed_Forward_2_00_X = SPEED_FORWARD_2_00_X, +} +export enum MessageLevel { + DEBUG, + Debug = DEBUG, + ERROR = 1, + Error = ERROR, + INFO = 2, + Info = INFO, + LOG = 3, + Log = LOG, + WARN = 4, + Warn = WARN, +} +export enum MixedMode { + ALL, + All = ALL, + COMPATIBLE = 1, + Compatible = COMPATIBLE, + NONE = 2, + None = NONE, +} +export enum HitTestType { + EDIT_TEXT, + EditText = EDIT_TEXT, + EMAIL = 1, + Email = EMAIL, + HTTP_ANCHOR = 2, + HttpAnchor = HTTP_ANCHOR, + HTTP_ANCHOR_IMG = 3, + HttpAnchorImg = HTTP_ANCHOR_IMG, + IMG = 4, + Img = IMG, + MAP = 5, + Map = MAP, + PHONE = 6, + Phone = PHONE, + UNKNOWN = 7, + Unknown = UNKNOWN, +} +export enum CacheMode { + DEFAULT, + Default = DEFAULT, + NONE = 1, + None = NONE, + ONLINE = 2, + Online = ONLINE, + ONLY = 3, + Only = ONLY, +} +export enum OverScrollMode { + NEVER, + ALWAYS = 1, +} +export enum WebDarkMode { + OFF, + Off = OFF, + ON = 1, + On = ON, + AUTO = 2, + Auto = AUTO, +} +export enum WebCaptureMode { + HOME_SCREEN, +} +export enum ThreatType { + THREAT_ILLEGAL, + THREAT_FRAUD = 1, + THREAT_RISK = 2, + THREAT_WARNING = 3, +} +export enum RenderExitReason { + PROCESS_ABNORMAL_TERMINATION, + ProcessAbnormalTermination = PROCESS_ABNORMAL_TERMINATION, + PROCESS_WAS_KILLED = 1, + ProcessWasKilled = PROCESS_WAS_KILLED, + PROCESS_CRASHED = 2, + ProcessCrashed = PROCESS_CRASHED, + PROCESS_OOM = 3, + ProcessOom = PROCESS_OOM, + PROCESS_EXIT_UNKNOWN = 4, + ProcessExitUnknown = PROCESS_EXIT_UNKNOWN, +} +export enum SslError { + INVALID, + Invalid = INVALID, + HOST_MISMATCH = 1, + HostMismatch = HOST_MISMATCH, + DATE_INVALID = 2, + DateInvalid = DATE_INVALID, + UNTRUSTED = 3, + Untrusted = UNTRUSTED, +} +export enum FileSelectorMode { + FILE_OPEN_MODE, + FileOpenMode = FILE_OPEN_MODE, + FILE_OPEN_MULTIPLE_MODE = 1, + FileOpenMultipleMode = FILE_OPEN_MULTIPLE_MODE, + FILE_OPEN_FOLDER_MODE = 2, + FileOpenFolderMode = FILE_OPEN_FOLDER_MODE, + FILE_SAVE_MODE = 3, + FileSaveMode = FILE_SAVE_MODE, +} +export enum WebLayoutMode { + NONE, + FIT_CONTENT = 1, +} +export enum RenderProcessNotRespondingReason { + INPUT_TIMEOUT, + NAVIGATION_COMMIT_TIMEOUT = 1, +} +export enum ProtectedResourceType { + MIDI_SYSEX = "TYPE_MIDI_SYSEX", + MidiSysex = MIDI_SYSEX, + VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE", + AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE", + SENSOR = "TYPE_SENSOR", +} +export enum ContextMenuSourceType { + NONE, + None = NONE, + MOUSE = 1, + Mouse = MOUSE, + LONG_PRESS = 2, + LongPress = LONG_PRESS, +} +export enum ContextMenuMediaType { + NONE, + None = NONE, + IMAGE = 1, + Image = IMAGE, +} +export enum ContextMenuInputFieldType { + NONE, + None = NONE, + PLAIN_TEXT = 1, + PlainText = PLAIN_TEXT, + PASSWORD = 2, + Password = PASSWORD, + NUMBER = 3, + Number = NUMBER, + TELEPHONE = 4, + Telephone = TELEPHONE, + OTHER = 5, + Other = OTHER, +} +export enum NativeEmbedStatus { + CREATE, + UPDATE = 1, + DESTROY = 2, + ENTER_BFCACHE = 3, + LEAVE_BFCACHE = 4, +} +export enum ContextMenuEditStateFlags { + NONE, + CAN_CUT = 1, + CAN_COPY = 2, + CAN_PASTE = 4, + CAN_SELECT_ALL = 8, +} +export enum WebNavigationType { + UNKNOWN, + MAIN_FRAME_NEW_ENTRY = 1, + MAIN_FRAME_EXISTING_ENTRY = 2, + NAVIGATION_TYPE_NEW_SUBFRAME = 4, + NAVIGATION_TYPE_AUTO_SUBFRAME = 5, +} +export enum RenderMode { + ASYNC_RENDER, + SYNC_RENDER = 1, +} +export enum ViewportFit { + AUTO, + CONTAINS = 1, + COVER = 2, +} +export enum WebKeyboardAvoidMode { + RESIZE_VISUAL, + RESIZE_CONTENT = 1, + OVERLAYS_CONTENT = 2, +} +export enum WebElementType { + IMAGE = 1, +} +export enum WebResponseType { + LONG_PRESS = 1, +} +export enum SideBarContainerType { + EMBED, + Embed = EMBED, + OVERLAY = 1, + Overlay = OVERLAY, + AUTO = 2, +} +export enum SideBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum WaterFlowLayoutMode { + ALWAYS_TOP_DOWN, + SLIDING_WINDOW = 1, +} +export enum DpiFollowStrategy { + FOLLOW_HOST_DPI, + FOLLOW_UI_EXTENSION_ABILITY_DPI = 1, +} +export enum StyledStringKey { + FONT, + DECORATION = 1, + BASELINE_OFFSET = 2, + LETTER_SPACING = 3, + TEXT_SHADOW = 4, + LINE_HEIGHT = 5, + BACKGROUND_COLOR = 6, + URL = 7, + GESTURE = 100, + PARAGRAPH_STYLE = 200, + IMAGE = 300, + CUSTOM_SPAN = 400, + USER_DATA = 500, +} +Object.assign(globalThis, { + PointerStyle: PointerStyle, + RectWidthStyle: RectWidthStyle, + RectHeightStyle: RectHeightStyle, + LengthUnit: LengthUnit, + PerfMonitorActionType: PerfMonitorActionType, + PerfMonitorSourceType: PerfMonitorSourceType, + DialogAlignment: DialogAlignment, + DialogButtonDirection: DialogButtonDirection, + IndexerAlign: IndexerAlign, + BadgePosition: BadgePosition, + ButtonType: ButtonType, + ButtonStyleMode: ButtonStyleMode, + ButtonRole: ButtonRole, + ControlSize: ControlSize, + CalendarAlign: CalendarAlign, + SelectStatus: SelectStatus, + FinishCallbackType: FinishCallbackType, + TouchTestStrategy: TouchTestStrategy, + TransitionHierarchyStrategy: TransitionHierarchyStrategy, + ChainStyle: ChainStyle, + TransitionEdge: TransitionEdge, + EffectType: EffectType, + PreDragStatus: PreDragStatus, + SourceType: SourceType, + SourceTool: SourceTool, + RepeatMode: RepeatMode, + BlurStyle: BlurStyle, + BlurStyleActivePolicy: BlurStyleActivePolicy, + ThemeColorMode: ThemeColorMode, + AdaptiveColor: AdaptiveColor, + ModalTransition: ModalTransition, + ShadowType: ShadowType, + ShadowStyle: ShadowStyle, + SafeAreaType: SafeAreaType, + SafeAreaEdge: SafeAreaEdge, + LayoutSafeAreaType: LayoutSafeAreaType, + LayoutSafeAreaEdge: LayoutSafeAreaEdge, + SheetSize: SheetSize, + DragBehavior: DragBehavior, + DragResult: DragResult, + BlendMode: BlendMode, + BlendApplyType: BlendApplyType, + SheetType: SheetType, + SheetMode: SheetMode, + ScrollSizeMode: ScrollSizeMode, + SheetKeyboardAvoidMode: SheetKeyboardAvoidMode, + DismissReason: DismissReason, + MenuPreviewMode: MenuPreviewMode, + OutlineStyle: OutlineStyle, + DragPreviewMode: DragPreviewMode, + MenuPolicy: MenuPolicy, + ContentClipMode: ContentClipMode, + KeyboardAvoidMode: KeyboardAvoidMode, + HoverModeAreaType: HoverModeAreaType, + ModelType: ModelType, + DataPanelType: DataPanelType, + CheckBoxShape: CheckBoxShape, + Color: Color, + ColoringStrategy: ColoringStrategy, + ImageFit: ImageFit, + BorderStyle: BorderStyle, + LineJoinStyle: LineJoinStyle, + TouchType: TouchType, + MouseButton: MouseButton, + MouseAction: MouseAction, + AnimationStatus: AnimationStatus, + Curve: Curve, + FillMode: FillMode, + PlayMode: PlayMode, + KeyType: KeyType, + KeySource: KeySource, + Edge: Edge, + Week: Week, + Direction: Direction, + BarState: BarState, + EdgeEffect: EdgeEffect, + Alignment: Alignment, + TransitionType: TransitionType, + RelateType: RelateType, + Visibility: Visibility, + LineCapStyle: LineCapStyle, + Axis: Axis, + HorizontalAlign: HorizontalAlign, + FlexAlign: FlexAlign, + ItemAlign: ItemAlign, + FlexDirection: FlexDirection, + PixelRoundCalcPolicy: PixelRoundCalcPolicy, + FlexWrap: FlexWrap, + VerticalAlign: VerticalAlign, + ImageRepeat: ImageRepeat, + ImageSize: ImageSize, + GradientDirection: GradientDirection, + SharedTransitionEffectType: SharedTransitionEffectType, + FontStyle: FontStyle, + FontWeight: FontWeight, + TextAlign: TextAlign, + TextOverflow: TextOverflow, + TextDecorationType: TextDecorationType, + TextCase: TextCase, + TextHeightAdaptivePolicy: TextHeightAdaptivePolicy, + ResponseType: ResponseType, + HoverEffect: HoverEffect, + Placement: Placement, + ArrowPointPosition: ArrowPointPosition, + CopyOptions: CopyOptions, + HitTestMode: HitTestMode, + TitleHeight: TitleHeight, + ModifierKey: ModifierKey, + FunctionKey: FunctionKey, + ImageSpanAlignment: ImageSpanAlignment, + ObscuredReasons: ObscuredReasons, + TextContentStyle: TextContentStyle, + ClickEffectLevel: ClickEffectLevel, + XComponentType: XComponentType, + NestedScrollMode: NestedScrollMode, + ScrollSource: ScrollSource, + RenderFit: RenderFit, + DialogButtonStyle: DialogButtonStyle, + WordBreak: WordBreak, + LineBreakStrategy: LineBreakStrategy, + EllipsisMode: EllipsisMode, + OptionWidthMode: OptionWidthMode, + IlluminatedType: IlluminatedType, + FoldStatus: FoldStatus, + AppRotation: AppRotation, + EmbeddedType: EmbeddedType, + MarqueeUpdateStrategy: MarqueeUpdateStrategy, + TextDecorationStyle: TextDecorationStyle, + TextSelectableMode: TextSelectableMode, + AccessibilityHoverType: AccessibilityHoverType, + WidthBreakpoint: WidthBreakpoint, + HeightBreakpoint: HeightBreakpoint, + FocusPriority: FocusPriority, + FormDimension: FormDimension, + FormRenderingMode: FormRenderingMode, + FormShape: FormShape, + PanDirection: PanDirection, + SwipeDirection: SwipeDirection, + GestureMode: GestureMode, + GestureMask: GestureMask, + GestureJudgeResult: GestureJudgeResult, + GestureControl: GestureControl, + GesturePriority: GesturePriority, + GestureRecognizerState: GestureRecognizerState, + GridDirection: GridDirection, + GridItemAlignment: GridItemAlignment, + GridItemStyle: GridItemStyle, + SizeType: SizeType, + BreakpointsReference: BreakpointsReference, + GridRowDirection: GridRowDirection, + ImageRenderMode: ImageRenderMode, + ImageContent: ImageContent, + DynamicRangeMode: DynamicRangeMode, + ImageInterpolation: ImageInterpolation, + ImageAnalyzerType: ImageAnalyzerType, + DataOperationType: DataOperationType, + ScrollState: ScrollState, + ListItemAlign: ListItemAlign, + ListItemGroupArea: ListItemGroupArea, + StickyStyle: StickyStyle, + ChainEdgeEffect: ChainEdgeEffect, + ScrollSnapAlign: ScrollSnapAlign, + Sticky: Sticky, + EditMode: EditMode, + SwipeEdgeEffect: SwipeEdgeEffect, + SwipeActionState: SwipeActionState, + ListItemStyle: ListItemStyle, + ListItemGroupStyle: ListItemGroupStyle, + LoadingProgressStyle: LoadingProgressStyle, + LocationIconStyle: LocationIconStyle, + LocationDescription: LocationDescription, + LocationButtonOnClickResult: LocationButtonOnClickResult, + SubMenuExpandingMode: SubMenuExpandingMode, + NavigationSystemTransitionType: NavigationSystemTransitionType, + NavDestinationMode: NavDestinationMode, + NavRouteMode: NavRouteMode, + NavigationMode: NavigationMode, + NavBarPosition: NavBarPosition, + NavigationTitleMode: NavigationTitleMode, + LaunchMode: LaunchMode, + ToolbarItemStatus: ToolbarItemStatus, + NavigationOperation: NavigationOperation, + BarStyle: BarStyle, + NavigationType: NavigationType, + RouteType: RouteType, + SlideEffect: SlideEffect, + PanelMode: PanelMode, + PanelType: PanelType, + PanelHeight: PanelHeight, + ParticleType: ParticleType, + ParticleEmitterShape: ParticleEmitterShape, + DistributionType: DistributionType, + ParticleUpdater: ParticleUpdater, + DisturbanceFieldShape: DisturbanceFieldShape, + PasteIconStyle: PasteIconStyle, + PasteDescription: PasteDescription, + PasteButtonOnClickResult: PasteButtonOnClickResult, + PatternLockChallengeResult: PatternLockChallengeResult, + ProgressType: ProgressType, + ProgressStatus: ProgressStatus, + ProgressStyle: ProgressStyle, + RadioIndicatorType: RadioIndicatorType, + RefreshStatus: RefreshStatus, + BarrierDirection: BarrierDirection, + LocalizedBarrierDirection: LocalizedBarrierDirection, + RichEditorDeleteDirection: RichEditorDeleteDirection, + RichEditorSpanType: RichEditorSpanType, + RichEditorResponseType: RichEditorResponseType, + SaveIconStyle: SaveIconStyle, + SaveDescription: SaveDescription, + SaveButtonOnClickResult: SaveButtonOnClickResult, + ScrollDirection: ScrollDirection, + ScrollAlign: ScrollAlign, + ScrollBarDirection: ScrollBarDirection, + CancelButtonStyle: CancelButtonStyle, + SearchType: SearchType, + SecurityComponentLayoutDirection: SecurityComponentLayoutDirection, + ArrowPosition: ArrowPosition, + MenuAlignType: MenuAlignType, + SliderStyle: SliderStyle, + SliderChangeMode: SliderChangeMode, + SliderInteraction: SliderInteraction, + SliderBlockType: SliderBlockType, + ColorMode: ColorMode, + LayoutDirection: LayoutDirection, + ItemState: ItemState, + SwiperDisplayMode: SwiperDisplayMode, + SwiperNestedScrollMode: SwiperNestedScrollMode, + SymbolRenderingStrategy: SymbolRenderingStrategy, + SymbolEffectStrategy: SymbolEffectStrategy, + EffectDirection: EffectDirection, + EffectScope: EffectScope, + EffectFillStyle: EffectFillStyle, + BarMode: BarMode, + AnimationMode: AnimationMode, + BarPosition: BarPosition, + LayoutStyle: LayoutStyle, + SelectedMode: SelectedMode, + LayoutMode: LayoutMode, + TextSpanType: TextSpanType, + TextResponseType: TextResponseType, + TextAreaType: TextAreaType, + ContentType: ContentType, + TextDataDetectorType: TextDataDetectorType, + TextDeleteDirection: TextDeleteDirection, + MenuType: MenuType, + InputType: InputType, + EnterKeyType: EnterKeyType, + TextInputStyle: TextInputStyle, + TimePickerFormat: TimePickerFormat, + ToggleType: ToggleType, + SeekMode: SeekMode, + PlaybackSpeed: PlaybackSpeed, + MessageLevel: MessageLevel, + MixedMode: MixedMode, + HitTestType: HitTestType, + CacheMode: CacheMode, + OverScrollMode: OverScrollMode, + WebDarkMode: WebDarkMode, + WebCaptureMode: WebCaptureMode, + ThreatType: ThreatType, + RenderExitReason: RenderExitReason, + SslError: SslError, + FileSelectorMode: FileSelectorMode, + WebLayoutMode: WebLayoutMode, + RenderProcessNotRespondingReason: RenderProcessNotRespondingReason, + ProtectedResourceType: ProtectedResourceType, + ContextMenuSourceType: ContextMenuSourceType, + ContextMenuMediaType: ContextMenuMediaType, + ContextMenuInputFieldType: ContextMenuInputFieldType, + NativeEmbedStatus: NativeEmbedStatus, + ContextMenuEditStateFlags: ContextMenuEditStateFlags, + WebNavigationType: WebNavigationType, + RenderMode: RenderMode, + ViewportFit: ViewportFit, + WebKeyboardAvoidMode: WebKeyboardAvoidMode, + WebElementType: WebElementType, + WebResponseType: WebResponseType, + SideBarContainerType: SideBarContainerType, + SideBarPosition: SideBarPosition, + WaterFlowLayoutMode: WaterFlowLayoutMode, + DpiFollowStrategy: DpiFollowStrategy, + StyledStringKey: StyledStringKey, +}) \ No newline at end of file diff --git a/arkoala/arkui/src/GlobalScope.ts b/arkoala/arkui/src/generated/GlobalScope.ts similarity index 53% rename from arkoala/arkui/src/GlobalScope.ts rename to arkoala/arkui/src/generated/GlobalScope.ts index 096122da0..6bd0ad323 100644 --- a/arkoala/arkui/src/GlobalScope.ts +++ b/arkoala/arkui/src/generated/GlobalScope.ts @@ -16,66 +16,51 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" +import { GlobalScopecommon } from "./ArkGlobalScopecommonMaterialized" import { ICurve } from "./ArkICurveMaterialized" -import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" +import { GlobalScopeinspector } from "./ArkGlobalScopeinspectorMaterialized" export function getContext(component: Object): Context { - return GlobalScope_common.getContext(component) + return GlobalScopecommon.getContext(component) } export function postCardAction(component: Object, action: Object): void { - GlobalScope_common.postCardAction(component, action) + GlobalScopecommon.postCardAction(component, action) } export function dollar_r(value: string, params: Array): Resource { - return GlobalScope_common.dollar_r(value, params) + return GlobalScopecommon.dollar_r(value, params) } export function dollar_rawfile(value: string): Resource { - return GlobalScope_common.dollar_rawfile(value) + return GlobalScopecommon.dollar_rawfile(value) } export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateTo(value, event) + GlobalScopecommon.animateTo(value, event) } export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateToImmediately(value, event) + GlobalScopecommon.animateToImmediately(value, event) } export function vp2px(value: number): number { - return GlobalScope_common.vp2px(value) + return GlobalScopecommon.vp2px(value) } export function px2vp(value: number): number { - return GlobalScope_common.px2vp(value) + return GlobalScopecommon.px2vp(value) } export function fp2px(value: number): number { - return GlobalScope_common.fp2px(value) + return GlobalScopecommon.fp2px(value) } export function px2fp(value: number): number { - return GlobalScope_common.px2fp(value) + return GlobalScopecommon.px2fp(value) } export function lpx2px(value: number): number { - return GlobalScope_common.lpx2px(value) + return GlobalScopecommon.lpx2px(value) } export function px2lpx(value: number): number { - return GlobalScope_common.px2lpx(value) -} -export function requestFocus(value: string): boolean { - return GlobalScope_common.requestFocus(value) -} -export function setCursor(value: PointerStyle): void { - GlobalScope_common.setCursor(value) -} -export function restoreDefault(): void { - GlobalScope_common.restoreDefault() + return GlobalScopecommon.px2lpx(value) } export function getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes() + return GlobalScopeinspector.getInspectorNodes() } export function getInspectorNodeById(id: number): Object { - return GlobalScope_inspector.getInspectorNodeById(id) -} -export function registerVsyncCallback(callback_: ((info: string) => void)): void { - GlobalScope_inspector.registerVsyncCallback(callback_) -} -export function unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback() + return GlobalScopeinspector.getInspectorNodeById(id) } export function setAppBgColor(value: string): void { - GlobalScope_inspector.setAppBgColor(value) + GlobalScopeinspector.setAppBgColor(value) } diff --git a/arkoala/arkui/src/SyntheticDeclarations.ts b/arkoala/arkui/src/generated/SyntheticDeclarations.ts similarity index 99% rename from arkoala/arkui/src/SyntheticDeclarations.ts rename to arkoala/arkui/src/generated/SyntheticDeclarations.ts index 254bc90e5..f18547565 100644 --- a/arkoala/arkui/src/SyntheticDeclarations.ts +++ b/arkoala/arkui/src/generated/SyntheticDeclarations.ts @@ -452,6 +452,3 @@ export interface Literal_Number_code_Want_want { want?: Want; } export type Callback_Literal_Number_code_Want_want_Void = (parameter: { code: number, want?: Want }) => void; -export namespace Profiler { - export type Callback_String_Void = (info: string) => void; -} diff --git a/arkoala/arkui/src/peer_events.ts b/arkoala/arkui/src/generated/peer_events.ts similarity index 100% rename from arkoala/arkui/src/peer_events.ts rename to arkoala/arkui/src/generated/peer_events.ts index 36302ca51..b57fd2177 100644 --- a/arkoala/arkui/src/peer_events.ts +++ b/arkoala/arkui/src/generated/peer_events.ts @@ -9,6 +9,7 @@ import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus } from import { TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, AccessibilityCallback, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, VisibleAreaChangeCallback, ItemDragInfo, ShadowOptions, ShadowType } from "./ArkCommonInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" +import { Resource } from "./ArkResourceInterfaces" import { HoverEvent } from "./ArkHoverEventMaterialized" import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" import { AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, HitTestMode, FoldStatus, AppRotation, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Edge } from "./ArkEnumsInterfaces" @@ -44,7 +45,6 @@ import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" import { RefreshStatus } from "./ArkRefreshInterfaces" import { RichEditorSelection, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, RichEditorDeleteDirection, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { DecorationStyleResult, TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, TextDeleteDirection } from "./ArkTextCommonInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" diff --git a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index 67b9f4181..50a965f5a 100644 --- a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index ee28ea80f..4a2fdbde5 100644 --- a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,17 +95,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -122,17 +122,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -149,17 +149,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -176,17 +176,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -203,17 +203,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -230,17 +230,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -257,17 +257,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -284,17 +284,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -327,12 +327,12 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) @@ -394,17 +394,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkAnimatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts index 2a3c6534b..5d317591f 100644 --- a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkBadgePeer.ts b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkBadgePeer.ts rename to arkoala/arkui/src/generated/peers/ArkBadgePeer.ts index e07a2bf29..fbe9f1cd5 100644 --- a/arkoala/arkui/src/peers/ArkBadgePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString, BadgeParam, BadgePosition, BadgeStyle } from "./../ArkBadgeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkBlankPeer.ts b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkBlankPeer.ts rename to arkoala/arkui/src/generated/peers/ArkBlankPeer.ts index 88de77480..7b5a9c724 100644 --- a/arkoala/arkui/src/peers/ArkBlankPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BlankAttribute } from "./../ArkBlankInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +83,12 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const min_value = min! let min_value_type: int32 = RuntimeType.UNDEFINED min_value_type = runtimeType(min_value) - if (((RuntimeType.NUMBER == min_value_type))) { + if (RuntimeType.NUMBER == min_value_type) { thisSerializer.writeInt8(0) const min_value_0 = unsafeCast(min_value) thisSerializer.writeNumber(min_value_0) } - else if (((RuntimeType.STRING == min_value_type))) { + else if (RuntimeType.STRING == min_value_type) { thisSerializer.writeInt8(1) const min_value_1 = unsafeCast(min_value) thisSerializer.writeString(min_value_1) @@ -106,17 +106,17 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkButtonPeer.ts index 091ab6e54..2e7d30e94 100644 --- a/arkoala/arkui/src/peers/ArkButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -87,12 +87,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let label_type: int32 = RuntimeType.UNDEFINED label_type = runtimeType(label) - if (((RuntimeType.STRING == label_type))) { + if (RuntimeType.STRING == label_type) { thisSerializer.writeInt8(0) const label_0 = unsafeCast(label) thisSerializer.writeString(label_0) } - else if (((RuntimeType.OBJECT == label_type))) { + else if (RuntimeType.OBJECT == label_type) { thisSerializer.writeInt8(1) const label_1 = unsafeCast(label) thisSerializer.writeResource(label_1) @@ -131,17 +131,17 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -156,7 +156,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -166,7 +166,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -181,12 +181,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkCalendarPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCalendarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts index b1e8b10d9..86e3fea0c 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -20,19 +20,19 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Axis } from "./../ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./../ArkCalendarInterfaces" import { ResourceColor } from "./../ArkUnitsInterfaces" import { CalendarController } from "./../ArkCalendarControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index 459030df4..39646b987 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCanvasPeer.ts b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkCanvasPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts index a6fe84b72..076d216b2 100644 --- a/arkoala/arkui/src/peers/ArkCanvasPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -68,12 +68,12 @@ import { FrameNode } from "./../ArkFrameNodeMaterialized" import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCheckboxPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts index 5f6465f9b..93792dc94 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -128,17 +128,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index f57469f5f..6f2ecf2b2 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -125,17 +125,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkCirclePeer.ts b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkCirclePeer.ts rename to arkoala/arkui/src/generated/peers/ArkCirclePeer.ts index 9023782be..9717ecd55 100644 --- a/arkoala/arkui/src/peers/ArkCirclePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkColumnPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkColumnPeer.ts rename to arkoala/arkui/src/generated/peers/ArkColumnPeer.ts index 38ac52302..b4b225c61 100644 --- a/arkoala/arkui/src/peers/ArkColumnPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkColumnSplitPeer.ts rename to arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 73a0ba13d..32e4d2662 100644 --- a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCommonPeer.ts b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCommonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCommonPeer.ts index fb367c68c..42c5654fc 100644 --- a/arkoala/arkui/src/peers/ArkCommonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" @@ -33,7 +33,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -52,12 +52,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -161,12 +161,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -225,7 +225,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLength(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -278,7 +278,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLengthMetrics(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -331,7 +331,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLength(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -348,17 +348,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -376,12 +376,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeSizeOptions(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -393,12 +393,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writePosition(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -452,12 +452,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -475,12 +475,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_top = value_1.top @@ -576,7 +576,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -586,17 +586,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -618,17 +618,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = unsafeCast(value_1_top_value) thisSerializer.writeInt32(value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1) const value_1_top_value_1 = unsafeCast(value_1_top_value) thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2) const value_1_top_value_2 = unsafeCast(value_1_top_value) thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3) const value_1_top_value_3 = unsafeCast(value_1_top_value) thisSerializer.writeResource(value_1_top_value_3) @@ -647,17 +647,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = unsafeCast(value_1_right_value) thisSerializer.writeInt32(value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1) const value_1_right_value_1 = unsafeCast(value_1_right_value) thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2) const value_1_right_value_2 = unsafeCast(value_1_right_value) thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3) const value_1_right_value_3 = unsafeCast(value_1_right_value) thisSerializer.writeResource(value_1_right_value_3) @@ -676,17 +676,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = unsafeCast(value_1_bottom_value) thisSerializer.writeInt32(value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1) const value_1_bottom_value_1 = unsafeCast(value_1_bottom_value) thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2) const value_1_bottom_value_2 = unsafeCast(value_1_bottom_value) thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3) const value_1_bottom_value_3 = unsafeCast(value_1_bottom_value) thisSerializer.writeResource(value_1_bottom_value_3) @@ -705,17 +705,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = unsafeCast(value_1_left_value) thisSerializer.writeInt32(value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1) const value_1_left_value_1 = unsafeCast(value_1_left_value) thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2) const value_1_left_value_2 = unsafeCast(value_1_left_value) thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3) const value_1_left_value_3 = unsafeCast(value_1_left_value) thisSerializer.writeResource(value_1_left_value_3) @@ -799,12 +799,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_top = value_1.top @@ -895,7 +895,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -905,17 +905,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -937,17 +937,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = unsafeCast(value_1_top_value) thisSerializer.writeInt32(value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1) const value_1_top_value_1 = unsafeCast(value_1_top_value) thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2) const value_1_top_value_2 = unsafeCast(value_1_top_value) thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3) const value_1_top_value_3 = unsafeCast(value_1_top_value) thisSerializer.writeResource(value_1_top_value_3) @@ -966,17 +966,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = unsafeCast(value_1_right_value) thisSerializer.writeInt32(value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1) const value_1_right_value_1 = unsafeCast(value_1_right_value) thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2) const value_1_right_value_2 = unsafeCast(value_1_right_value) thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3) const value_1_right_value_3 = unsafeCast(value_1_right_value) thisSerializer.writeResource(value_1_right_value_3) @@ -995,17 +995,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = unsafeCast(value_1_bottom_value) thisSerializer.writeInt32(value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1) const value_1_bottom_value_1 = unsafeCast(value_1_bottom_value) thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2) const value_1_bottom_value_2 = unsafeCast(value_1_bottom_value) thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3) const value_1_bottom_value_3 = unsafeCast(value_1_bottom_value) thisSerializer.writeResource(value_1_bottom_value_3) @@ -1024,17 +1024,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = unsafeCast(value_1_left_value) thisSerializer.writeInt32(value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1) const value_1_left_value_1 = unsafeCast(value_1_left_value) thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2) const value_1_left_value_2 = unsafeCast(value_1_left_value) thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3) const value_1_left_value_3 = unsafeCast(value_1_left_value) thisSerializer.writeResource(value_1_left_value_3) @@ -1101,7 +1101,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -1111,17 +1111,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -1274,17 +1274,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -1302,12 +1302,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInvertOptions(value_1) @@ -1319,12 +1319,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -1420,12 +1420,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -1522,12 +1522,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_xs_value = value_xs! let value_xs_value_type: int32 = RuntimeType.UNDEFINED value_xs_value_type = runtimeType(value_xs_value) - if (((RuntimeType.NUMBER == value_xs_value_type))) { + if (RuntimeType.NUMBER == value_xs_value_type) { thisSerializer.writeInt8(0) const value_xs_value_0 = unsafeCast(value_xs_value) thisSerializer.writeNumber(value_xs_value_0) } - else if (((RuntimeType.OBJECT == value_xs_value_type))) { + else if (RuntimeType.OBJECT == value_xs_value_type) { thisSerializer.writeInt8(1) const value_xs_value_1 = unsafeCast<{ span: number, offset: number }>(value_xs_value) const value_xs_value_1_span = value_xs_value_1.span @@ -1544,12 +1544,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_sm_value = value_sm! let value_sm_value_type: int32 = RuntimeType.UNDEFINED value_sm_value_type = runtimeType(value_sm_value) - if (((RuntimeType.NUMBER == value_sm_value_type))) { + if (RuntimeType.NUMBER == value_sm_value_type) { thisSerializer.writeInt8(0) const value_sm_value_0 = unsafeCast(value_sm_value) thisSerializer.writeNumber(value_sm_value_0) } - else if (((RuntimeType.OBJECT == value_sm_value_type))) { + else if (RuntimeType.OBJECT == value_sm_value_type) { thisSerializer.writeInt8(1) const value_sm_value_1 = unsafeCast<{ span: number, offset: number }>(value_sm_value) const value_sm_value_1_span = value_sm_value_1.span @@ -1566,12 +1566,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_md_value = value_md! let value_md_value_type: int32 = RuntimeType.UNDEFINED value_md_value_type = runtimeType(value_md_value) - if (((RuntimeType.NUMBER == value_md_value_type))) { + if (RuntimeType.NUMBER == value_md_value_type) { thisSerializer.writeInt8(0) const value_md_value_0 = unsafeCast(value_md_value) thisSerializer.writeNumber(value_md_value_0) } - else if (((RuntimeType.OBJECT == value_md_value_type))) { + else if (RuntimeType.OBJECT == value_md_value_type) { thisSerializer.writeInt8(1) const value_md_value_1 = unsafeCast<{ span: number, offset: number }>(value_md_value) const value_md_value_1_span = value_md_value_1.span @@ -1588,12 +1588,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_lg_value = value_lg! let value_lg_value_type: int32 = RuntimeType.UNDEFINED value_lg_value_type = runtimeType(value_lg_value) - if (((RuntimeType.NUMBER == value_lg_value_type))) { + if (RuntimeType.NUMBER == value_lg_value_type) { thisSerializer.writeInt8(0) const value_lg_value_0 = unsafeCast(value_lg_value) thisSerializer.writeNumber(value_lg_value_0) } - else if (((RuntimeType.OBJECT == value_lg_value_type))) { + else if (RuntimeType.OBJECT == value_lg_value_type) { thisSerializer.writeInt8(1) const value_lg_value_1 = unsafeCast<{ span: number, offset: number }>(value_lg_value) const value_lg_value_1_span = value_lg_value_1.span @@ -1691,17 +1691,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.FUNCTION == value_type))) { + if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDragItemInfo(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -1725,12 +1725,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_angle_value = value_angle! let value_angle_value_type: int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { thisSerializer.writeInt8(0) const value_angle_value_0 = unsafeCast(value_angle_value) thisSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { thisSerializer.writeInt8(1) const value_angle_value_1 = unsafeCast(value_angle_value) thisSerializer.writeString(value_angle_value_1) @@ -1756,17 +1756,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1800,12 +1800,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_start_value = value_start! let value_start_value_type: int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.NUMBER == value_start_value_type))) { + if (RuntimeType.NUMBER == value_start_value_type) { thisSerializer.writeInt8(0) const value_start_value_0 = unsafeCast(value_start_value) thisSerializer.writeNumber(value_start_value_0) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { thisSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) thisSerializer.writeString(value_start_value_1) @@ -1819,12 +1819,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_end_value = value_end! let value_end_value_type: int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.NUMBER == value_end_value_type))) { + if (RuntimeType.NUMBER == value_end_value_type) { thisSerializer.writeInt8(0) const value_end_value_0 = unsafeCast(value_end_value) thisSerializer.writeNumber(value_end_value_0) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { thisSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) thisSerializer.writeString(value_end_value_1) @@ -1838,12 +1838,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_rotation_value = value_rotation! let value_rotation_value_type: int32 = RuntimeType.UNDEFINED value_rotation_value_type = runtimeType(value_rotation_value) - if (((RuntimeType.NUMBER == value_rotation_value_type))) { + if (RuntimeType.NUMBER == value_rotation_value_type) { thisSerializer.writeInt8(0) const value_rotation_value_0 = unsafeCast(value_rotation_value) thisSerializer.writeNumber(value_rotation_value_0) } - else if (((RuntimeType.STRING == value_rotation_value_type))) { + else if (RuntimeType.STRING == value_rotation_value_type) { thisSerializer.writeInt8(1) const value_rotation_value_1 = unsafeCast(value_rotation_value) thisSerializer.writeString(value_rotation_value_1) @@ -1861,17 +1861,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1900,12 +1900,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_radius = value.radius let value_radius_type: int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { thisSerializer.writeInt8(0) const value_radius_0 = unsafeCast(value_radius) thisSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.STRING == value_radius_type))) { + else if (RuntimeType.STRING == value_radius_type) { thisSerializer.writeInt8(1) const value_radius_1 = unsafeCast(value_radius) thisSerializer.writeString(value_radius_1) @@ -1922,17 +1922,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1961,12 +1961,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -2002,22 +2002,22 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_CircleShapeStub"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_CircleShapeStub")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCircleShape(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_EllipseShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_EllipseShapeStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeEllipseShape(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_PathShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_PathShapeStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePathShape(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_RectShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_RectShapeStub")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeRectShape(value_3) @@ -2053,22 +2053,22 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_CircleShapeStub"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_CircleShapeStub")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCircleShape(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_EllipseShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_EllipseShapeStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeEllipseShape(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_PathShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_PathShapeStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePathShape(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_RectShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_RectShapeStub")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeRectShape(value_3) @@ -2293,23 +2293,23 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) let src_0_type: int32 = RuntimeType.UNDEFINED src_0_type = runtimeType(src_0) - if (((RuntimeType.STRING == src_0_type))) { + if (RuntimeType.STRING == src_0_type) { thisSerializer.writeInt8(0) const src_0_0 = unsafeCast(src_0) thisSerializer.writeString(src_0_0) } - else if (((RuntimeType.OBJECT == src_0_type))) { + else if (RuntimeType.OBJECT == src_0_type) { thisSerializer.writeInt8(1) const src_0_1 = unsafeCast(src_0) thisSerializer.writeResource(src_0_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) thisSerializer.writePixelMap(src_1) @@ -2425,7 +2425,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2474,7 +2474,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2523,7 +2523,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2603,17 +2603,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeComponentContent(value_2) @@ -2644,12 +2644,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let effect_type: int32 = RuntimeType.UNDEFINED effect_type = runtimeType(effect) - if (((RuntimeType.NUMBER == effect_type))) { + if (RuntimeType.NUMBER == effect_type) { thisSerializer.writeInt8(0) const effect_0 = unsafeCast(effect) thisSerializer.writeInt32(effect_0) } - else if (((RuntimeType.OBJECT == effect_type))) { + else if (RuntimeType.OBJECT == effect_type) { thisSerializer.writeInt8(1) const effect_1 = unsafeCast(effect) thisSerializer.writeBlender(effect_1) @@ -2668,12 +2668,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let popup_type: int32 = RuntimeType.UNDEFINED popup_type = runtimeType(popup) - if (((RuntimeType.OBJECT) == (popup_type)) && (((popup!.hasOwnProperty("message"))))) { + if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("message")))) { thisSerializer.writeInt8(0) const popup_0 = unsafeCast(popup) thisSerializer.writePopupOptions(popup_0) } - else if (((RuntimeType.OBJECT) == (popup_type)) && (((popup!.hasOwnProperty("builder"))))) { + else if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("builder")))) { thisSerializer.writeInt8(1) const popup_1 = unsafeCast(popup) thisSerializer.writeCustomPopupOptions(popup_1) @@ -2685,7 +2685,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let content_type: int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0) const content_0 = unsafeCast>(content) thisSerializer.writeInt32(content_0.length) @@ -2694,7 +2694,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1) const content_1 = unsafeCast(content) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2713,7 +2713,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let content_type: int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0) const content_0 = unsafeCast>(content) thisSerializer.writeInt32(content_0.length) @@ -2722,7 +2722,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1) const content_1 = unsafeCast(content) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2838,12 +2838,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -3031,17 +3031,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -3058,17 +3058,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -3080,12 +3080,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3103,12 +3103,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3120,17 +3120,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -3142,17 +3142,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -3230,12 +3230,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -3247,12 +3247,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3273,12 +3273,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -3341,12 +3341,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeRectShape(value_1) diff --git a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkComponent3dPeer.ts rename to arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts index 0044a7f52..fdd54a74c 100644 --- a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Component3DAttribute, SceneOptions, Scene, ModelType } from "./../ArkComponent3dInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -107,12 +107,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -124,12 +124,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -157,12 +157,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let uri_type: int32 = RuntimeType.UNDEFINED uri_type = runtimeType(uri) - if (((RuntimeType.STRING == uri_type))) { + if (RuntimeType.STRING == uri_type) { thisSerializer.writeInt8(0) const uri_0 = unsafeCast(uri) thisSerializer.writeString(uri_0) } - else if (((RuntimeType.OBJECT == uri_type))) { + else if (RuntimeType.OBJECT == uri_type) { thisSerializer.writeInt8(1) const uri_1 = unsafeCast(uri) thisSerializer.writeResource(uri_1) diff --git a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts similarity index 89% rename from arkoala/arkui/src/peers/ArkContainerSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 740f4c040..d25d66a2b 100644 --- a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -20,19 +20,19 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./../ArkUnitsInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCounterPeer.ts b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCounterPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCounterPeer.ts index a93038e03..72179b3db 100644 --- a/arkoala/arkui/src/peers/ArkCounterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CounterAttribute } from "./../ArkCounterInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkDataPanelPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts index ed94010fa..5cf5bd12a 100644 --- a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -91,7 +91,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element: ResourceColor | LinearGradient = value[i] let value_element_type: int32 = RuntimeType.UNDEFINED value_element_type = runtimeType(value_element) - if ((((RuntimeType.NUMBER) == (value_element_type)) && ((unsafeCast(value_element)) >= (0)) && ((unsafeCast(value_element)) <= (11))) || (((RuntimeType.NUMBER == value_element_type))) || (((RuntimeType.STRING == value_element_type))) || (((RuntimeType.OBJECT == value_element_type)))) { + if ((((RuntimeType.NUMBER) == (value_element_type)) && ((unsafeCast(value_element)) >= (0)) && ((unsafeCast(value_element)) <= (11))) || (RuntimeType.NUMBER == value_element_type) || (RuntimeType.STRING == value_element_type) || (RuntimeType.OBJECT == value_element_type)) { thisSerializer.writeInt8(0) const value_element_0 = unsafeCast(value_element) let value_element_0_type: int32 = RuntimeType.UNDEFINED @@ -101,17 +101,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element_0_0 = unsafeCast(value_element_0) thisSerializer.writeInt32(value_element_0_0) } - else if (((RuntimeType.NUMBER == value_element_0_type))) { + else if (RuntimeType.NUMBER == value_element_0_type) { thisSerializer.writeInt8(1) const value_element_0_1 = unsafeCast(value_element_0) thisSerializer.writeNumber(value_element_0_1) } - else if (((RuntimeType.STRING == value_element_0_type))) { + else if (RuntimeType.STRING == value_element_0_type) { thisSerializer.writeInt8(2) const value_element_0_2 = unsafeCast(value_element_0) thisSerializer.writeString(value_element_0_2) } - else if (((RuntimeType.OBJECT == value_element_0_type))) { + else if (RuntimeType.OBJECT == value_element_0_type) { thisSerializer.writeInt8(3) const value_element_0_3 = unsafeCast(value_element_0) thisSerializer.writeResource(value_element_0_3) @@ -135,17 +135,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkDatePickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts index ab9ba094e..364494ce3 100644 --- a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkDividerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkDividerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDividerPeer.ts index d9d5b8294..0cbf3acb1 100644 --- a/arkoala/arkui/src/peers/ArkDividerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DividerAttribute } from "./../ArkDividerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,17 +89,17 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -111,12 +111,12 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkEffectComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts index f40a2d34a..efa0a2dc6 100644 --- a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkEllipsePeer.ts b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkEllipsePeer.ts rename to arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts index 498d739af..05fbfec9a 100644 --- a/arkoala/arkui/src/peers/ArkEllipsePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { EllipseOptions, EllipseAttribute } from "./../ArkEllipseInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index 8297202c7..f54f87df9 100644 --- a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFlexPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFlexPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFlexPeer.ts index e44655872..15e3aa041 100644 --- a/arkoala/arkui/src/peers/ArkFlexPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FlexOptions, FlexAttribute, FlexSpaceOptions } from "./../ArkFlexInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkFlowItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts index e593a1aa5..2753b44d0 100644 --- a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFolderStackPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts index d18b75a32..9bcdd69d6 100644 --- a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./../ArkFolderStackInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFormComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts index 57bf5f7c7..6cdc4fa60 100644 --- a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkFormLinkPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts index 7759b7aa4..2131cf14a 100644 --- a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGaugePeer.ts b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkGaugePeer.ts rename to arkoala/arkui/src/generated/peers/ArkGaugePeer.ts index 30672e17a..0c5a828b6 100644 --- a/arkoala/arkui/src/peers/ArkGaugePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,7 +95,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -105,17 +105,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -135,7 +135,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0 = value_2_element[0] let value_2_element_0_type: int32 = RuntimeType.UNDEFINED value_2_element_0_type = runtimeType(value_2_element_0) - if ((((RuntimeType.NUMBER) == (value_2_element_0_type)) && ((unsafeCast(value_2_element_0)) >= (0)) && ((unsafeCast(value_2_element_0)) <= (11))) || (((RuntimeType.NUMBER == value_2_element_0_type))) || (((RuntimeType.STRING == value_2_element_0_type))) || (((RuntimeType.OBJECT == value_2_element_0_type)))) { + if ((((RuntimeType.NUMBER) == (value_2_element_0_type)) && ((unsafeCast(value_2_element_0)) >= (0)) && ((unsafeCast(value_2_element_0)) <= (11))) || (RuntimeType.NUMBER == value_2_element_0_type) || (RuntimeType.STRING == value_2_element_0_type) || (RuntimeType.OBJECT == value_2_element_0_type)) { thisSerializer.writeInt8(0) const value_2_element_0_0 = unsafeCast(value_2_element_0) let value_2_element_0_0_type: int32 = RuntimeType.UNDEFINED @@ -145,17 +145,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0_0_0 = unsafeCast(value_2_element_0_0) thisSerializer.writeInt32(value_2_element_0_0_0) } - else if (((RuntimeType.NUMBER == value_2_element_0_0_type))) { + else if (RuntimeType.NUMBER == value_2_element_0_0_type) { thisSerializer.writeInt8(1) const value_2_element_0_0_1 = unsafeCast(value_2_element_0_0) thisSerializer.writeNumber(value_2_element_0_0_1) } - else if (((RuntimeType.STRING == value_2_element_0_0_type))) { + else if (RuntimeType.STRING == value_2_element_0_0_type) { thisSerializer.writeInt8(2) const value_2_element_0_0_2 = unsafeCast(value_2_element_0_0) thisSerializer.writeString(value_2_element_0_0_2) } - else if (((RuntimeType.OBJECT == value_2_element_0_0_type))) { + else if (RuntimeType.OBJECT == value_2_element_0_0_type) { thisSerializer.writeInt8(3) const value_2_element_0_0_3 = unsafeCast(value_2_element_0_0) thisSerializer.writeResource(value_2_element_0_0_3) diff --git a/arkoala/arkui/src/peers/ArkGridColPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkGridColPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridColPeer.ts index ce59b24d4..6ab69bd83 100644 --- a/arkoala/arkui/src/peers/ArkGridColPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) @@ -107,12 +107,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) @@ -124,12 +124,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) diff --git a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkGridContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts index 7add5e969..336ad962c 100644 --- a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" import { ColumnAttribute } from "./../ArkColumnInterfaces" @@ -35,7 +35,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGridItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts index 1868555c1..c9b9dd38d 100644 --- a/arkoala/arkui/src/peers/ArkGridItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridItemOptions, GridItemAttribute, GridItemStyle } from "./../ArkGridItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGridPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridPeer.ts index 1f6da67e7..555e41d0b 100644 --- a/arkoala/arkui/src/peers/ArkGridPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, Scro import { GridDirection, GridItemAlignment, GridAttribute, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -112,12 +112,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -134,12 +134,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -232,12 +232,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkGridRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridRowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts index 24ad051e9..5c3f26478 100644 --- a/arkoala/arkui/src/peers/ArkGridRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridRowOptions, GridRowAttribute, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./../ArkGridRowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkHyperlinkPeer.ts rename to arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts index c73cef60a..9fac4aa08 100644 --- a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,12 +78,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let address_type: int32 = RuntimeType.UNDEFINED address_type = runtimeType(address) - if (((RuntimeType.STRING == address_type))) { + if (RuntimeType.STRING == address_type) { thisSerializer.writeInt8(0) const address_0 = unsafeCast(address) thisSerializer.writeString(address_0) } - else if (((RuntimeType.OBJECT == address_type))) { + else if (RuntimeType.OBJECT == address_type) { thisSerializer.writeInt8(1) const address_1 = unsafeCast(address) thisSerializer.writeResource(address_1) @@ -95,12 +95,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) @@ -118,17 +118,17 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index 17e98a9ff..ffeefd042 100644 --- a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts similarity index 90% rename from arkoala/arkui/src/peers/ArkImagePeer.ts rename to arkoala/arkui/src/generated/peers/ArkImagePeer.ts index 7d9ca8b71..41a1c6a58 100644 --- a/arkoala/arkui/src/peers/ArkImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../ArkImageCommonInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,28 +80,28 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) @@ -113,33 +113,33 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) } - else if (((RuntimeType.NUMBER == src_type))) { + else if (RuntimeType.NUMBER == src_type) { thisSerializer.writeInt8(3) const src_3 = unsafeCast(src) thisSerializer.writeInt32(src_3) @@ -151,28 +151,28 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) @@ -185,17 +185,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePixelMap(value_2) @@ -218,17 +218,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -272,7 +272,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_DrawingColorFilterStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_DrawingColorFilterStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDrawingColorFilter(value_1) diff --git a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkImageSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts index 01531cb1e..330f6ae80 100644 --- a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" @@ -35,7 +35,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageCompleteCallback, ImageSpanAttribute } from "./../ArkImageSpanInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,23 +80,23 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0) const value_0_0 = unsafeCast(value_0) thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeResource(value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writePixelMap(value_1) @@ -116,7 +116,7 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_DrawingColorFilterStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_DrawingColorFilterStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDrawingColorFilter(value_1) diff --git a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 02b982f2c..fe30109f1 100644 --- a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkIndicatorComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/peers/ArkLinePeer.ts b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkLinePeer.ts rename to arkoala/arkui/src/generated/peers/ArkLinePeer.ts index a7133b79c..bcca11ccd 100644 --- a/arkoala/arkui/src/peers/ArkLinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LineOptions, LineAttribute } from "./../ArkLineInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 27165c67b..a75f173f8 100644 --- a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkListItemGroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts index 077940717..e7bbb421d 100644 --- a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ListDividerOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkListItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkListItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListItemPeer.ts index 07bcedd1a..b981722bc 100644 --- a/arkoala/arkui/src/peers/ArkListItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Sticky, EditMode, SwipeActionOptions, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemOptions, ListItemAttribute, ListItemStyle } from "./../ArkListItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -105,12 +105,12 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeBoolean(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) diff --git a/arkoala/arkui/src/peers/ArkListPeer.ts b/arkoala/arkui/src/generated/peers/ArkListPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkListPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListPeer.ts index d85305e3c..4ba18fa19 100644 --- a/arkoala/arkui/src/peers/ArkListPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, Scro import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ListAttribute, ChainEdgeEffect, ScrollState, ListOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -156,12 +156,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -272,12 +272,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_minLength = value_1.minLength diff --git a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index e4948f714..bc82bf4e8 100644 --- a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +86,17 @@ export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkLocationButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 00d172d5b..0c6d76cc2 100644 --- a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkMarqueePeer.ts b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkMarqueePeer.ts rename to arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts index a93d1e72b..9fa204d99 100644 --- a/arkoala/arkui/src/peers/ArkMarqueePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,17 +89,17 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -117,7 +117,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -127,7 +127,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -139,12 +139,12 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts similarity index 91% rename from arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts rename to arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index 85834e92c..be8651123 100644 --- a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,33 +80,33 @@ export class ArkMediaCachedImagePeer extends ArkImagePeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("sources"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("sources")))) { thisSerializer.writeInt8(3) const src_3 = unsafeCast(src) thisSerializer.writeASTCResource(src_3) diff --git a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index 3bc2aaf87..ce5a4f1cf 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts similarity index 91% rename from arkoala/arkui/src/peers/ArkMenuItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts index 9b502ef7d..60fbf4f55 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +83,12 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.OBJECT == value_value_type))) { + if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) thisSerializer.writeMenuItemOptions(value_value_0) } - else if (((RuntimeType.FUNCTION == value_value_type))) { + else if (RuntimeType.FUNCTION == value_value_type) { thisSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_value_1)) @@ -104,28 +104,28 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeBoolean(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) let value_1_type: int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0) const value_1_0 = unsafeCast(value_1) thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1) const value_1_1 = unsafeCast(value_1) thisSerializer.writeResource(value_1_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_2) @@ -154,17 +154,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -187,17 +187,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkMenuPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkMenuPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuPeer.ts index 5c2dac33f..775c70448 100644 --- a/arkoala/arkui/src/peers/ArkMenuPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SubMenuExpandingMode, MenuAttribute } from "./../ArkMenuInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,17 +95,17 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkNavDestinationPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 09a844ee0..2bdd580f6 100644 --- a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -112,28 +112,28 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0) const value_0_0 = unsafeCast(value_0) thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeResource(value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writePixelMap(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_2) @@ -145,7 +145,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast>(value) thisSerializer.writeInt32(value_0.length) @@ -154,7 +154,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeNavigationMenuItem(value_0_element) } } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -223,27 +223,27 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("main"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("main")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeNavDestinationCommonTitle(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("builder"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("builder")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeNavDestinationCustomTitle(value_3) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(4) const value_4 = unsafeCast(value) thisSerializer.writeResource(value_4) @@ -262,7 +262,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let toolbarParam_type: int32 = RuntimeType.UNDEFINED toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { + if (RuntimeType.OBJECT == toolbarParam_type) { thisSerializer.writeInt8(0) const toolbarParam_0 = unsafeCast>(toolbarParam) thisSerializer.writeInt32(toolbarParam_0.length) @@ -271,7 +271,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeToolbarItem(toolbarParam_0_element) } } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + else if (RuntimeType.FUNCTION == toolbarParam_type) { thisSerializer.writeInt8(1) const toolbarParam_1 = unsafeCast(toolbarParam) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) diff --git a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkNavRouterPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts index 321ac21ad..2e6bf2620 100644 --- a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./../ArkNavRouterInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkNavigatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts index e162d4a8f..1199554ec 100644 --- a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NavigationType, NavigatorAttribute } from "./../ArkNavigatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkNodeContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts index f468e7671..75180684c 100644 --- a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkPanelPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPanelPeer.ts index 7cf282638..a50192882 100644 --- a/arkoala/arkui/src/peers/ArkPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./../ArkPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -107,12 +107,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -124,12 +124,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -141,12 +141,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -166,17 +166,17 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkPasteButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 98a5f4002..a78a0dd02 100644 --- a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPathPeer.ts b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkPathPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPathPeer.ts index 79e6f8033..0dfbed172 100644 --- a/arkoala/arkui/src/peers/ArkPathPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PathOptions, PathAttribute } from "./../ArkPathInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkPatternLockPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts index 5f25340cd..997c22bee 100644 --- a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CircleStyleOptions, PatternLockAttribute, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -129,17 +129,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -156,17 +156,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -183,17 +183,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -210,17 +210,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -232,12 +232,12 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPluginComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts index 321d2e40a..19ad61031 100644 --- a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute, PluginComponentTemplate } from "./../ArkPluginComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPolygonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPolygonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts index 3d787d437..bf2c46559 100644 --- a/arkoala/arkui/src/peers/ArkPolygonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Point } from "./../ArkPointInterfaces" import { PolygonOptions, PolygonAttribute } from "./../ArkPolygonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPolylinePeer.ts b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPolylinePeer.ts rename to arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts index 04e251f0f..76e3cd4a3 100644 --- a/arkoala/arkui/src/peers/ArkPolylinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Point } from "./../ArkPointInterfaces" import { PolylineOptions, PolylineAttribute } from "./../ArkPolylineInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkProgressPeer.ts rename to arkoala/arkui/src/generated/peers/ArkProgressPeer.ts index 5813f04ee..b1129a6d9 100644 --- a/arkoala/arkui/src/peers/ArkProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ScanEffectOptions, CommonProgressStyleOptions, ProgressStatus, ProgressOptions, ProgressAttribute, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,7 +89,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -99,17 +99,17 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -127,7 +127,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("strokeRadius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("strokeRadius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeLinearStyleOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkQrcodePeer.ts b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkQrcodePeer.ts rename to arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts index ccbd008f5..2d1836946 100644 --- a/arkoala/arkui/src/peers/ArkQrcodePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +86,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -113,17 +113,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -135,12 +135,12 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkRadioPeer.ts b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRadioPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRadioPeer.ts index b38d8bcd1..fbf5bd133 100644 --- a/arkoala/arkui/src/peers/ArkRadioPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./../ArkRadioInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRatingPeer.ts b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRatingPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRatingPeer.ts index 9017b71a9..105914061 100644 --- a/arkoala/arkui/src/peers/ArkRatingPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRectPeer.ts b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkRectPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRectPeer.ts index ae58cfc12..f32373346 100644 --- a/arkoala/arkui/src/peers/ArkRectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RectOptions, RoundedRectOptions, RectAttribute } from "./../ArkRectInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,7 +83,7 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const options_value = options! let options_value_type: int32 = RuntimeType.UNDEFINED options_value_type = runtimeType(options_value) - if (((RuntimeType.OBJECT) == (options_value_type)) && (((options_value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (options_value_type)) && ((options_value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const options_value_0 = unsafeCast(options_value) thisSerializer.writeRectOptions(options_value_0) @@ -101,12 +101,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -118,12 +118,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -135,17 +135,17 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast>(value) thisSerializer.writeInt32(value_2.length) @@ -153,12 +153,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const value_2_element: number | string = value_2[i] let value_2_element_type: int32 = RuntimeType.UNDEFINED value_2_element_type = runtimeType(value_2_element) - if (((RuntimeType.NUMBER == value_2_element_type))) { + if (RuntimeType.NUMBER == value_2_element_type) { thisSerializer.writeInt8(0) const value_2_element_0 = unsafeCast(value_2_element) thisSerializer.writeNumber(value_2_element_0) } - else if (((RuntimeType.STRING == value_2_element_type))) { + else if (RuntimeType.STRING == value_2_element_type) { thisSerializer.writeInt8(1) const value_2_element_1 = unsafeCast(value_2_element) thisSerializer.writeString(value_2_element_1) diff --git a/arkoala/arkui/src/peers/ArkRefreshPeer.ts b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRefreshPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts index e1c525c76..f031b1c52 100644 --- a/arkoala/arkui/src/peers/ArkRefreshPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./../ArkRefreshInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index c7cae651b..673893678 100644 --- a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection, RelativeContainerAttribute } from "./../ArkRelativeContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index 793e883e4..4318cdb09 100644 --- a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { WindowAnimationTarget, RemoteWindowAttribute, RRect } from "./../ArkRemoteWindowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRichEditorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts index 9ff4a841e..0508679fd 100644 --- a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -70,12 +70,12 @@ import { StyledStringController } from "./../ArkStyledStringControllerMaterializ import { MutableStyledString } from "./../ArkMutableStyledStringMaterialized" import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -181,17 +181,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -208,17 +208,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -322,12 +322,12 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkRichTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRichTextPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts index f94d51d9e..54163267f 100644 --- a/arkoala/arkui/src/peers/ArkRichTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RichTextAttribute } from "./../ArkRichTextInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRootScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRootScenePeer.ts rename to arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts index 1bdc6091d..08fed5bc8 100644 --- a/arkoala/arkui/src/peers/ArkRootScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRowPeer.ts index 1a17745b2..bc225f60f 100644 --- a/arkoala/arkui/src/peers/ArkRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RowOptions, RowAttribute } from "./../ArkRowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRowSplitPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts index 919c64cd0..46430ced5 100644 --- a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSaveButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts index ea9198f7a..54ce8f20b 100644 --- a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScreenPeer.ts b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkScreenPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScreenPeer.ts index 60609e731..f3737252b 100644 --- a/arkoala/arkui/src/peers/ArkScreenPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScreenAttribute } from "./../ArkScreenInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkScrollBarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts index d8ad268e5..5993de12a 100644 --- a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScrollPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkScrollPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScrollPeer.ts index 73835f0f5..8aad9bb3e 100644 --- a/arkoala/arkui/src/peers/ArkScrollPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" import { ScrollSnapAlign } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -151,12 +151,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -168,12 +168,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -200,12 +200,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkSearchPeer.ts b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkSearchPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSearchPeer.ts index a111b27f7..7c9ea6afc 100644 --- a/arkoala/arkui/src/peers/ArkSearchPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -60,12 +60,12 @@ import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SearchController } from "./../ArkSearchControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -129,7 +129,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeIconOptions(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_1) @@ -141,7 +141,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCancelButtonOptions(value_0) @@ -172,17 +172,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -205,17 +205,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -317,17 +317,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -339,17 +339,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -367,17 +367,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -389,17 +389,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -465,12 +465,12 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index a232f12e7..0e238bbb3 100644 --- a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -29,12 +29,12 @@ import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfac import { Resource } from "./../ArkResourceInterfaces" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { LengthUnit } from "./../ArkArkuiExternalInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -100,7 +100,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -110,7 +110,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -122,12 +122,12 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -144,17 +144,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -171,17 +171,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -198,17 +198,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -231,17 +231,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkSelectPeer.ts b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSelectPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSelectPeer.ts index 7251e2f66..f3289fced 100644 --- a/arkoala/arkui/src/peers/ArkSelectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" import { ControlSize } from "./../ArkButtonInterfaces" import { DividerOptions } from "./../ArkTextPickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -107,12 +107,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -135,17 +135,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -162,17 +162,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -195,17 +195,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -222,17 +222,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -255,17 +255,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -314,17 +314,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkShapePeer.ts b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkShapePeer.ts rename to arkoala/arkui/src/generated/peers/ArkShapePeer.ts index 749c8f06e..15585b6ed 100644 --- a/arkoala/arkui/src/peers/ArkShapePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ViewportRect, ShapeAttribute } from "./../ArkShapeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -125,17 +125,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -147,12 +147,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -180,12 +180,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -197,17 +197,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -219,17 +219,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -241,12 +241,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkSidebarPeer.ts b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkSidebarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts index 6bcbba7c7..133964ff7 100644 --- a/arkoala/arkui/src/peers/ArkSidebarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ButtonStyle, SideBarPosition, ButtonIconOptions, SideBarContainerType, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" import { DividerStyle } from "./../ArkTabsInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSliderPeer.ts b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSliderPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSliderPeer.ts index 1624a6109..533b62773 100644 --- a/arkoala/arkui/src/peers/ArkSliderPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderChangeMode, SliderBlockType, SliderTriggerChangeCallback, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,17 +97,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -119,7 +119,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -129,17 +129,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -162,17 +162,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -207,17 +207,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -237,17 +237,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -303,12 +303,12 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) diff --git a/arkoala/arkui/src/peers/ArkSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSpanPeer.ts index 406a7cd31..773d0348f 100644 --- a/arkoala/arkui/src/peers/ArkSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -107,12 +107,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -135,17 +135,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -157,17 +157,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -182,7 +182,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -192,7 +192,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -204,12 +204,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -227,12 +227,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -250,7 +250,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStackPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStackPeer.ts index 84c3e176a..cdf5fb3f0 100644 --- a/arkoala/arkui/src/peers/ArkStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StackOptions, StackAttribute } from "./../ArkStackInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts similarity index 90% rename from arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 704127f7d..0af46b345 100644 --- a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -20,15 +20,15 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStepperItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts index dc5cd1214..59f2f3e40 100644 --- a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ItemState, StepperItemAttribute } from "./../ArkStepperItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStepperPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStepperPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStepperPeer.ts index 8743c763f..2b63f258e 100644 --- a/arkoala/arkui/src/peers/ArkStepperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StepperAttribute } from "./../ArkStepperInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSwiperPeer.ts b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkSwiperPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts index 960530d2e..677ec3592 100644 --- a/arkoala/arkui/src/peers/ArkSwiperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -59,12 +59,12 @@ import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSw import { Indicator } from "./../ArkIndicatorBuilder" import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" import { SwiperController } from "./../ArkSwiperControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSwiperPeer extends ArkCommonMethodPeer { @@ -113,7 +113,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeDigitIndicator(value_1) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeBoolean(value_2) @@ -140,12 +140,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -169,17 +169,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeICurve(value_2) @@ -245,12 +245,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeArrowStyle(value_0) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeBoolean(value_1) @@ -269,17 +269,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSwiperAutoFill(value_2) diff --git a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index e654855b0..c441a8bb3 100644 --- a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -85,17 +85,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -115,17 +115,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_element_0 = unsafeCast(value_element) thisSerializer.writeInt32(value_element_0) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1) const value_element_1 = unsafeCast(value_element) thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2) const value_element_2 = unsafeCast(value_element) thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3) const value_element_3 = unsafeCast(value_element) thisSerializer.writeResource(value_element_3) @@ -138,7 +138,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -148,7 +148,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) diff --git a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 681d61534..a23174238 100644 --- a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,17 +90,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -120,17 +120,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_element_0 = unsafeCast(value_element) thisSerializer.writeInt32(value_element_0) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1) const value_element_1 = unsafeCast(value_element) thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2) const value_element_2 = unsafeCast(value_element) thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3) const value_element_3 = unsafeCast(value_element) thisSerializer.writeResource(value_element_3) @@ -143,7 +143,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -153,7 +153,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) diff --git a/arkoala/arkui/src/peers/ArkTabContentPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkTabContentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts index 11ab8d82b..309ebd75f 100644 --- a/arkoala/arkui/src/peers/ArkTabContentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { IndicatorStyle } from "./../ArkSwiperInterfaces" import { LabelStyle } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { @@ -83,17 +83,17 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_2)) diff --git a/arkoala/arkui/src/peers/ArkTabsPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkTabsPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTabsPeer.ts index 6f0677700..cb0226361 100644 --- a/arkoala/arkui/src/peers/ArkTabsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, LayoutStyle, TabsOptions } from "./../ArkTabsInterfaces" import { TabsController } from "./../ArkTabsControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -201,17 +201,17 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextAreaPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts index 560cf1223..098c514cf 100644 --- a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -60,12 +60,12 @@ import { KeyboardOptions, PasteEvent } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -141,17 +141,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -168,17 +168,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -196,7 +196,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -206,7 +206,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -218,12 +218,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -252,17 +252,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -346,17 +346,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -368,17 +368,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -408,17 +408,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -436,17 +436,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -506,12 +506,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkTextClockPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextClockPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts index ba416aaeb..3d4b825fc 100644 --- a/arkoala/arkui/src/peers/ArkTextClockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" import { DateTimeOptions } from "./../ArkTimePickerInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -106,17 +106,17 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -134,7 +134,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -144,7 +144,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -156,12 +156,12 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -173,7 +173,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkTextInputPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextInputPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts index 2047a595a..51ae91d43 100644 --- a/arkoala/arkui/src/peers/ArkTextInputPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -61,12 +61,12 @@ import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -109,17 +109,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -157,17 +157,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -223,17 +223,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -251,7 +251,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -261,7 +261,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -273,12 +273,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -345,17 +345,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -384,12 +384,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) thisSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) thisSerializer.writeResource(value_value_1) @@ -416,7 +416,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if ((((RuntimeType.NUMBER) == (value_value_type)) && ((unsafeCast(value_value)) >= (0)) && ((unsafeCast(value_value)) <= (11))) || (((RuntimeType.NUMBER == value_value_type))) || (((RuntimeType.STRING == value_value_type))) || (((RuntimeType.OBJECT == value_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_value_type)) && ((unsafeCast(value_value)) >= (0)) && ((unsafeCast(value_value)) <= (11))) || (RuntimeType.NUMBER == value_value_type) || (RuntimeType.STRING == value_value_type) || (RuntimeType.OBJECT == value_value_type)) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) let value_value_0_type: int32 = RuntimeType.UNDEFINED @@ -426,17 +426,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value_0_0 = unsafeCast(value_value_0) thisSerializer.writeInt32(value_value_0_0) } - else if (((RuntimeType.NUMBER == value_value_0_type))) { + else if (RuntimeType.NUMBER == value_value_0_type) { thisSerializer.writeInt8(1) const value_value_0_1 = unsafeCast(value_value_0) thisSerializer.writeNumber(value_value_0_1) } - else if (((RuntimeType.STRING == value_value_0_type))) { + else if (RuntimeType.STRING == value_value_0_type) { thisSerializer.writeInt8(2) const value_value_0_2 = unsafeCast(value_value_0) thisSerializer.writeString(value_value_0_2) } - else if (((RuntimeType.OBJECT == value_value_0_type))) { + else if (RuntimeType.OBJECT == value_value_0_type) { thisSerializer.writeInt8(3) const value_value_0_3 = unsafeCast(value_value_0) thisSerializer.writeResource(value_value_0_3) @@ -485,17 +485,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -507,17 +507,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -541,17 +541,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -563,17 +563,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -636,12 +636,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkTextPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextPeer.ts index d297499ed..0d6c88af6 100644 --- a/arkoala/arkui/src/peers/ArkTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -63,12 +63,12 @@ import { StyledString } from "./../ArkStyledStringMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -93,12 +93,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) @@ -142,17 +142,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -164,17 +164,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -186,17 +186,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -208,17 +208,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -230,12 +230,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -247,12 +247,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -267,7 +267,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -277,7 +277,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -289,7 +289,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let weight_type: int32 = RuntimeType.UNDEFINED weight_type = runtimeType(weight) - if (((RuntimeType.NUMBER == weight_type))) { + if (RuntimeType.NUMBER == weight_type) { thisSerializer.writeInt8(0) const weight_0 = unsafeCast(weight) thisSerializer.writeNumber(weight_0) @@ -299,7 +299,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const weight_1 = unsafeCast(weight) thisSerializer.writeInt32(weight_1) } - else if (((RuntimeType.STRING == weight_type))) { + else if (RuntimeType.STRING == weight_type) { thisSerializer.writeInt8(2) const weight_2 = unsafeCast(weight) thisSerializer.writeString(weight_2) @@ -327,17 +327,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -355,12 +355,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -381,12 +381,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -401,12 +401,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -424,7 +424,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) @@ -468,17 +468,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -495,17 +495,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkTextPickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts index 5b3fae99f..d88eada23 100644 --- a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DividerOptions, TextPickerOptions, TextPickerAttribute, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -146,12 +146,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast>(value) thisSerializer.writeInt32(value_1.length) diff --git a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextTimerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts index f0b76a110..69dc57733 100644 --- a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -99,17 +99,17 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -127,7 +127,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -137,7 +137,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -149,12 +149,12 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -172,7 +172,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkTimePickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts index a4730bd22..1f2a908c3 100644 --- a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute, TimePickerFormat } from "./../ArkTimePickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkTogglePeer.ts b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTogglePeer.ts rename to arkoala/arkui/src/generated/peers/ArkTogglePeer.ts index 84f2d328d..94787a8ec 100644 --- a/arkoala/arkui/src/peers/ArkTogglePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./../ArkToggleInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -101,17 +101,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -128,17 +128,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index ee2d93639..471c0c925 100644 --- a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute, Dpi import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkVideoPeer.ts b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkVideoPeer.ts rename to arkoala/arkui/src/generated/peers/ArkVideoPeer.ts index 9d85f4d59..ce1e9bc0a 100644 --- a/arkoala/arkui/src/peers/ArkVideoPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../Ark import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute, PlaybackSpeed, SeekMode } from "./../ArkVideoInterfaces" import { VideoController } from "./../ArkVideoControllerMaterialized" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkWaterFlowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts index ea44bef30..84bcb3da1 100644 --- a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { WaterFlowAttribute, WaterFlowOptions, WaterFlowLayoutMode, SectionOptio import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -124,12 +124,12 @@ export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkWebPeer.ts b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts similarity index 99% rename from arkoala/arkui/src/peers/ArkWebPeer.ts rename to arkoala/arkui/src/generated/peers/ArkWebPeer.ts index b8f13c128..557c85d60 100644 --- a/arkoala/arkui/src/peers/ArkWebPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -77,12 +77,12 @@ import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" import { EventResult } from "./../ArkEventResultMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -590,7 +590,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("scrollForward"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("scrollForward")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNestedScrollOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkWindowScenePeer.ts rename to arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts index 28a184269..bac5c7f94 100644 --- a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkXcomponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts index 3ad81d8f0..81514775a 100644 --- a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions, SurfaceRe import { XComponentController } from "./../ArkXComponentControllerMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts similarity index 99% rename from arkoala/arkui/src/peers/CallbackDeserializeCall.ts rename to arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts index f719c5edf..66b8e19d6 100644 --- a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -56,7 +56,7 @@ import { ResizableOptions, DrawingLattice, ImageErrorCallback, ImageError } from import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { LengthUnit, Want, WebHeader } from "./../ArkArkuiExternalInterfaces" import { MouseEvent } from "./../ArkMouseEventMaterialized" diff --git a/arkoala/arkui/src/peers/CallbackKind.ts b/arkoala/arkui/src/generated/peers/CallbackKind.ts similarity index 100% rename from arkoala/arkui/src/peers/CallbackKind.ts rename to arkoala/arkui/src/generated/peers/CallbackKind.ts diff --git a/arkoala/arkui/src/peers/CallbackTransformer.ts b/arkoala/arkui/src/generated/peers/CallbackTransformer.ts similarity index 97% rename from arkoala/arkui/src/peers/CallbackTransformer.ts rename to arkoala/arkui/src/generated/peers/CallbackTransformer.ts index 1353564dd..d4fca04ea 100644 --- a/arkoala/arkui/src/peers/CallbackTransformer.ts +++ b/arkoala/arkui/src/generated/peers/CallbackTransformer.ts @@ -14,7 +14,7 @@ */ import { KPointer } from "@koalaui/interop" -import { PeerNode } from "../PeerNode" +import { PeerNode } from "../../PeerNode" import { CustomBuilder } from "../ArkCommonInterfaces" import { createUiDetachedRoot } from "@koalaui/arkoala" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" diff --git a/arkoala/arkui/src/peers/Deserializer.ts b/arkoala/arkui/src/generated/peers/Deserializer.ts similarity index 87% rename from arkoala/arkui/src/peers/Deserializer.ts rename to arkoala/arkui/src/generated/peers/Deserializer.ts index b218c35fe..998024e7e 100644 --- a/arkoala/arkui/src/peers/Deserializer.ts +++ b/arkoala/arkui/src/generated/peers/Deserializer.ts @@ -15,57 +15,56 @@ import { runtimeType, Tags, RuntimeType, SerializerBase, DeserializerBase, CallbackResource } from "@koalaui/interop" import { KPointer, InteropNativeModule } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" -import { int32, float32 } from "@koalaui/common" -import { unsafeCast } from "../shared/generated-utils" +import { MaterializedBase } from "@koalaui/interop" +import { int32, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { Serializer } from "./Serializer" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, MeasureResult, SizeResult, PointLightStyle } from "./../ArkCommonInterfaces" -import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, Context, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawingLattice, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorDeleteDirection, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, ListItemGroupArea, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" @@ -74,7 +73,7 @@ import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMater import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -85,7 +84,7 @@ import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerO import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" @@ -95,7 +94,7 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { Scene, Component3DAttribute, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -104,54 +103,72 @@ import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -160,18 +177,12 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" +import { GridAttribute, GridDirection, GridItemAlignment, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { GestureControl } from "./../ArkGestureControlNamespace" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" @@ -181,15 +192,11 @@ import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialize import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" -import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { AttributeModifier } from "./../handwritten" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" -import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" @@ -208,23 +215,18 @@ import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" -import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" -import { SelectOption } from "./../ArkSelectInterfaces" import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" @@ -262,13 +264,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -280,6 +282,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" @@ -796,81 +799,87 @@ export class Deserializer extends DeserializerBase { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: GestureEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: GestureEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PopInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePopInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PopInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePopInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (state: SwipeActionState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(state); -(isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: SwipeActionState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(state); + (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Void(isSync: boolean = false): (() => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parentNode: KPointer): KPointer => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(parentNode); -let _continuationValue: KPointer | undefined|undefined ; -const _continuationCallback: ((value: KPointer) => void) = (value: KPointer): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as KPointer); } + return (parentNode: KPointer): KPointer => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + let _continuationValue: KPointer | undefined|undefined ; + const _continuationCallback: ((value: KPointer) => void) = (value: KPointer): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } } readLocalizedEdgeColors(): LocalizedEdgeColors { let valueDeserializer: Deserializer = this @@ -1083,14 +1092,15 @@ return (_continuationValue as KPointer); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissPopupAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissPopupAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissPopupAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissPopupAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCanvasPattern(): CanvasPattern { let valueDeserializer: Deserializer = this @@ -1106,39 +1116,42 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavigationTransitionProxy(transitionProxy); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionProxy: NavigationTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readColorMetrics(): ColorMetrics { let valueDeserializer: Deserializer = this @@ -1318,17 +1331,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): number => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: number | undefined|undefined ; -const _continuationCallback: ((index: number) => void) = (value: number): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as number); } + return (index: number): number => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: number | undefined|undefined ; + const _continuationCallback: ((index: number) => void) = (value: number): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as number); } } readImageAnalyzerController(): ImageAnalyzerController { let valueDeserializer: Deserializer = this @@ -1360,14 +1374,15 @@ return (_continuationValue as number); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (breakpoints: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(breakpoints); -(isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (breakpoints: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(breakpoints); + (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer: Deserializer = this @@ -1379,14 +1394,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TimePickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTimePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TimePickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTimePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRectangle(): Rectangle { let valueDeserializer: Deserializer = this @@ -1641,33 +1657,41 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TextPickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextPickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TextPickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextPickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextMenuItemId(): TextMenuItemId { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextMenuItemIdInternal.fromPtr(ptr) } + readAffinity(): Affinity { + let valueDeserializer: Deserializer = this + const _AffinityStub_result: string = (valueDeserializer.readString() as string) + let value: Affinity = ({_AffinityStub: _AffinityStub_result} as Affinity) + return value + } readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: number, end: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabBarIconStyle(): TabBarIconStyle { let valueDeserializer: Deserializer = this @@ -1932,14 +1956,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TabContentTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTabContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TabContentTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTabContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIconOptions(): IconOptions { let valueDeserializer: Deserializer = this @@ -2220,31 +2245,33 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (rangeBefore: TextRange, rangeAfter: TextRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(rangeBefore); -_argsSerializer.writeTextRange(rangeAfter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (rangeBefore: TextRange, rangeAfter: TextRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(rangeBefore); + _argsSerializer.writeTextRange(rangeAfter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: StyledStringChangeValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeStyledStringChangeValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: StyledStringChangeValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeStyledStringChangeValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { let valueDeserializer: Deserializer = this @@ -2483,52 +2510,54 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: NavigationMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let from_type: int32 = RuntimeType.UNDEFINED; -from_type = runtimeType(from); -if (((RuntimeType.OBJECT == from_type))) { - _argsSerializer.writeInt8(0); - const from_0 = unsafeCast(from); - _argsSerializer.writeNavDestinationContext(from_0); -} -else if (((RuntimeType.STRING == from_type))) { - _argsSerializer.writeInt8(1); - const from_1 = unsafeCast(from); - _argsSerializer.writeString(from_1); -} -let to_type: int32 = RuntimeType.UNDEFINED; -to_type = runtimeType(to); -if (((RuntimeType.OBJECT == to_type))) { - _argsSerializer.writeInt8(0); - const to_0 = unsafeCast(to); - _argsSerializer.writeNavDestinationContext(to_0); -} -else if (((RuntimeType.STRING == to_type))) { - _argsSerializer.writeInt8(1); - const to_1 = unsafeCast(to); - _argsSerializer.writeString(to_1); -} -_argsSerializer.writeInt32(operation); -_argsSerializer.writeBoolean(isAnimated); -(isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let from_type: int32 = RuntimeType.UNDEFINED; + from_type = runtimeType(from); + if (RuntimeType.OBJECT == from_type) { + _argsSerializer.writeInt8(0); + const from_0 = unsafeCast(from); + _argsSerializer.writeNavDestinationContext(from_0); + } + else if (RuntimeType.STRING == from_type) { + _argsSerializer.writeInt8(1); + const from_1 = unsafeCast(from); + _argsSerializer.writeString(from_1); + } + let to_type: int32 = RuntimeType.UNDEFINED; + to_type = runtimeType(to); + if (RuntimeType.OBJECT == to_type) { + _argsSerializer.writeInt8(0); + const to_0 = unsafeCast(to); + _argsSerializer.writeNavDestinationContext(to_0); + } + else if (RuntimeType.STRING == to_type) { + _argsSerializer.writeInt8(1); + const to_1 = unsafeCast(to); + _argsSerializer.writeString(to_1); + } + _argsSerializer.writeInt32(operation); + _argsSerializer.writeBoolean(isAnimated); + (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextModifier(): TextModifier { let value: TextModifier = ({} as TextModifier) @@ -2725,27 +2754,29 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: Date): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt64((parameter.getTime() as number)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Date): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt64((parameter.getTime() as number)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: DatePickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDatePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: DatePickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDatePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLunarSwitchStyle(): LunarSwitchStyle { let valueDeserializer: Deserializer = this @@ -2848,79 +2879,85 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SheetType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SheetType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SpringBackAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSpringBackAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SpringBackAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSpringBackAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissSheetAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissSheetAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissSheetAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissSheetAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (sheetDismiss: SheetDismiss): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSheetDismiss(sheetDismiss); -(isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sheetDismiss: SheetDismiss): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSheetDismiss(sheetDismiss); + (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissContentCoverAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissContentCoverAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissContentCoverAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissContentCoverAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readContextMenuAnimationOptions(): ContextMenuAnimationOptions { let valueDeserializer: Deserializer = this @@ -2952,15 +2989,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: { isVisible: boolean }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const event_isVisible = event.isVisible; -_argsSerializer.writeBoolean(event_isVisible); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: { isVisible: boolean }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const event_isVisible = event.isVisible; + _argsSerializer.writeBoolean(event_isVisible); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPopupMessageOptions(): PopupMessageOptions { let valueDeserializer: Deserializer = this @@ -3382,14 +3420,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissDialogAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissDialogAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissDialogAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissDialogAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { let valueDeserializer: Deserializer = this @@ -3556,26 +3595,28 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: float32): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFloat32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: float32): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFloat32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomTheme(): CustomTheme { let valueDeserializer: Deserializer = this @@ -3713,15 +3754,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, progress: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, progress: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorStyle(): LinearIndicatorStyle { let valueDeserializer: Deserializer = this @@ -3797,6 +3839,19 @@ return; } let value: DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } + readCustomSpanMetrics(): CustomSpanMetrics { + let valueDeserializer: Deserializer = this + const width_result: number = (valueDeserializer.readNumber() as number) + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf: number | undefined|undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readNumber() as number) + } + const height_result: number | undefined|undefined = height_buf + let value: CustomSpanMetrics = ({width: width_result,height: height_result} as CustomSpanMetrics) + return value + } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { let valueDeserializer: Deserializer = this const fontSize_result: number = (valueDeserializer.readNumber() as number) @@ -3901,14 +3956,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: UIExtensionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeUIExtensionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: UIExtensionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeUIExtensionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readWaterFlowAttribute(): WaterFlowAttribute { + let value: WaterFlowAttribute = ({} as WaterFlowAttribute) + return value } readWaterFlowSections(): WaterFlowSections { let valueDeserializer: Deserializer = this @@ -4183,6 +4243,14 @@ return; } let value: SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) return value } + readWindowSceneAttribute(): WindowSceneAttribute { + let value: WindowSceneAttribute = ({} as WindowSceneAttribute) + return value + } + readWebAttribute(): WebAttribute { + let value: WebAttribute = ({} as WebAttribute) + return value + } readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { let valueDeserializer: Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -4225,15 +4293,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectedText: { plainText: string }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const selectedText_plainText = selectedText.plainText; -_argsSerializer.writeString(selectedText_plainText); -(isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedText: { plainText: string }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const selectedText_plainText = selectedText.plainText; + _argsSerializer.writeString(selectedText_plainText); + (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEventResult(): EventResult { let valueDeserializer: Deserializer = this @@ -4446,6 +4515,11 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return JsGeolocationInternal.fromPtr(ptr) } + readWebCookie(): WebCookie { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return WebCookieInternal.fromPtr(ptr) + } readScreenCaptureConfig(): ScreenCaptureConfig { let valueDeserializer: Deserializer = this const captureMode_result: WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) @@ -4961,57 +5035,59 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast>(value); - _argsSerializer.writeInt32(value_1.length); - for (let i = 0; i < value_1.length; i++) { - const value_1_element: string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast>(value); + _argsSerializer.writeInt32(value_1.length); + for (let i = 0; i < value_1.length; i++) { + const value_1_element: string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selected: number | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type: int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0); - const selected_0 = unsafeCast(selected); - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1); - const selected_1 = unsafeCast>(selected); - _argsSerializer.writeInt32(selected_1.length); - for (let i = 0; i < selected_1.length; i++) { - const selected_1_element: number = selected_1[i]; - _argsSerializer.writeNumber(selected_1_element); + return (selected: number | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type: int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0); + const selected_0 = unsafeCast(selected); + _argsSerializer.writeNumber(selected_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1); + const selected_1 = unsafeCast>(selected); + _argsSerializer.writeInt32(selected_1.length); + for (let i = 0; i < selected_1.length; i++) { + const selected_1_element: number = selected_1[i]; + _argsSerializer.writeNumber(selected_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDividerOptions(): DividerOptions { let valueDeserializer: Deserializer = this @@ -5067,25 +5143,30 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: ResourceStr): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast(value); - _argsSerializer.writeResource(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ResourceStr): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast(value); + _argsSerializer.writeResource(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readTextInputAttribute(): TextInputAttribute { + let value: TextInputAttribute = ({} as TextInputAttribute) + return value } readInputCounterOptions(): InputCounterOptions { let valueDeserializer: Deserializer = this @@ -5291,16 +5372,54 @@ return; } let value: TextMenuItem = ({content: content_result,icon: icon_result,id: id_result} as TextMenuItem) return value } + readLineMetrics(): LineMetrics { + let valueDeserializer: Deserializer = this + const _LineMetricsStub_result: string = (valueDeserializer.readString() as string) + let value: LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) + return value + } + readPositionWithAffinity(): PositionWithAffinity { + let valueDeserializer: Deserializer = this + const position_result: number = (valueDeserializer.readNumber() as number) + const affinity_result: Affinity = valueDeserializer.readAffinity() + let value: PositionWithAffinity = ({position: position_result,affinity: affinity_result} as PositionWithAffinity) + return value + } + readMutableStyledString(): MutableStyledString { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return MutableStyledStringInternal.fromPtr(ptr) + } + readPreviewText(): PreviewText { + let valueDeserializer: Deserializer = this + const offset_result: number = (valueDeserializer.readNumber() as number) + const value_result: string = (valueDeserializer.readString() as string) + let value: PreviewText = ({offset: offset_result,value: value_result} as PreviewText) + return value + } + readLayoutManager(): LayoutManager { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } readTextClockController(): TextClockController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextClockControllerInternal.fromPtr(ptr) } + readTextAreaAttribute(): TextAreaAttribute { + let value: TextAreaAttribute = ({} as TextAreaAttribute) + return value + } readTextAreaController(): TextAreaController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextAreaControllerInternal.fromPtr(ptr) } + readTextAttribute(): TextAttribute { + let value: TextAttribute = ({} as TextAttribute) + return value + } readSelectionMenuOptions(): SelectionMenuOptions { let valueDeserializer: Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5391,6 +5510,10 @@ return; } let value: TabBarOptions = ({icon: icon_result,text: text_result} as TabBarOptions) return value } + readTabsAttribute(): TabsAttribute { + let value: TabsAttribute = ({} as TabsAttribute) + return value + } readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { let valueDeserializer: Deserializer = this const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5492,6 +5615,10 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return TabsControllerInternal.fromPtr(ptr) } + readSymbolGlyphAttribute(): SymbolGlyphAttribute { + let value: SymbolGlyphAttribute = ({} as SymbolGlyphAttribute) + return value + } readSymbolEffect(): SymbolEffect { let value: SymbolEffect = ({} as SymbolEffect) return value @@ -5502,6 +5629,10 @@ return; } readDotIndicator(): DotIndicator { throw new Error("Can not deserialize builder class") } + readSwiperAttribute(): SwiperAttribute { + let value: SwiperAttribute = ({} as SwiperAttribute) + return value + } readSwiperAutoFill(): SwiperAutoFill { let valueDeserializer: Deserializer = this const minSize_buf_selector: number = valueDeserializer.readInt8() @@ -5604,38 +5735,52 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SwiperContentTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSwiperContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SwiperContentTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSwiperContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSliderAttribute(): SliderAttribute { + let value: SliderAttribute = ({} as SliderAttribute) + return value + } + readShapeAttribute(): ShapeAttribute { + let value: ShapeAttribute = ({} as ShapeAttribute) + return value } readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selected: number | Resource): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type: int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0); - const selected_0 = unsafeCast(selected); - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1); - const selected_1 = unsafeCast(selected); - _argsSerializer.writeResource(selected_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selected: number | Resource): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type: int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0); + const selected_0 = unsafeCast(selected); + _argsSerializer.writeNumber(selected_0); + } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1); + const selected_1 = unsafeCast(selected); + _argsSerializer.writeResource(selected_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSelectAttribute(): SelectAttribute { + let value: SelectAttribute = ({} as SelectAttribute) + return value } readLocalizedEdges(): LocalizedEdges { let valueDeserializer: Deserializer = this @@ -5703,6 +5848,10 @@ return; } let value: Edges = ({top: top_result,left: left_result,bottom: bottom_result,right: right_result} as Edges) return value } + readSearchAttribute(): SearchAttribute { + let value: SearchAttribute = ({} as SearchAttribute) + return value + } readSearchButtonOptions(): SearchButtonOptions { let valueDeserializer: Deserializer = this const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5789,6 +5938,10 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return SearchControllerInternal.fromPtr(ptr) } + readScrollAttribute(): ScrollAttribute { + let value: ScrollAttribute = ({} as ScrollAttribute) + return value + } readEdgeEffectOptions(): EdgeEffectOptions { let valueDeserializer: Deserializer = this const alwaysEnabled_result: boolean = valueDeserializer.readBoolean() @@ -5799,20 +5952,30 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): OffsetResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32(scrollState); -_argsSerializer.writeInt32(scrollSource); -let _continuationValue: OffsetResult | undefined|undefined ; -const _continuationCallback: ((value: OffsetResult) => void) = (value: OffsetResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OffsetResult); } + return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): OffsetResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32(scrollState); + _argsSerializer.writeInt32(scrollSource); + let _continuationValue: OffsetResult | undefined|undefined ; + const _continuationCallback: ((value: OffsetResult) => void) = (value: OffsetResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OffsetResult); } + } + readRectResult(): RectResult { + let valueDeserializer: Deserializer = this + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) + return value } readScrollToIndexOptions(): ScrollToIndexOptions { let valueDeserializer: Deserializer = this @@ -5826,6 +5989,13 @@ return (_continuationValue as OffsetResult); } let value: ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) return value } + readOffsetResult(): OffsetResult { + let valueDeserializer: Deserializer = this + const xOffset_result: number = (valueDeserializer.readNumber() as number) + const yOffset_result: number = (valueDeserializer.readNumber() as number) + let value: OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) + return value + } readScrollPageOptions(): ScrollPageOptions { let valueDeserializer: Deserializer = this const next_result: boolean = valueDeserializer.readBoolean() @@ -5908,6 +6078,10 @@ return (_continuationValue as OffsetResult); } let ptr: KPointer = valueDeserializer.readPointer() return RichEditorControllerInternal.fromPtr(ptr) } + readRichEditorAttribute(): RichEditorAttribute { + let value: RichEditorAttribute = ({} as RichEditorAttribute) + return value + } readPlaceholderStyle(): PlaceholderStyle { let valueDeserializer: Deserializer = this const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6056,6 +6230,31 @@ return (_continuationValue as OffsetResult); } let value: RichEditorRange = ({start: start_result,end: end_result} as RichEditorRange) return value } + readRichEditorSelection(): RichEditorSelection { + let valueDeserializer: Deserializer = this + const selection_buf_value0: number = (valueDeserializer.readNumber() as number) + const selection_buf_value1: number = (valueDeserializer.readNumber() as number) + const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) + const spans_buf_length: int32 = valueDeserializer.readInt32() + let spans_buf: Array = new Array() + for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const spans_buf_buf_selector: number = valueDeserializer.readInt8() + let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined + if (spans_buf_buf_selector == 0) { + spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() + } + else { + throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") + } + spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) + } + const spans_result: Array = spans_buf + let value: RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) + return value + } readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { let valueDeserializer: Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6648,14 +6847,15 @@ return (_continuationValue as OffsetResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: PanelMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: PanelMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavContentInfo(): NavContentInfo { let valueDeserializer: Deserializer = this @@ -6741,6 +6941,10 @@ return; } let value: NavigationOptions = ({launchMode: launchMode_result,animated: animated_result} as NavigationOptions) return value } + readNavDestinationAttribute(): NavDestinationAttribute { + let value: NavDestinationAttribute = ({} as NavDestinationAttribute) + return value + } readNavigationToolbarOptions(): NavigationToolbarOptions { let valueDeserializer: Deserializer = this const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6915,6 +7119,14 @@ return; } let value: SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } + readRouteMapConfig(): RouteMapConfig { + let valueDeserializer: Deserializer = this + const name_result: string = (valueDeserializer.readString() as string) + const pageSourceFile_result: string = (valueDeserializer.readString() as string) + const data_result: Object = (valueDeserializer.readCustomObject("Object") as Object) + let value: RouteMapConfig = ({name: name_result,pageSourceFile: pageSourceFile_result,data: data_result} as RouteMapConfig) + return value + } readMenuItemOptions(): MenuItemOptions { let valueDeserializer: Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7130,6 +7342,30 @@ return; } let value: ListDividerOptions = ({strokeWidth: strokeWidth_result,color: color_result,startMargin: startMargin_result,endMargin: endMargin_result} as ListDividerOptions) return value } + readListAttribute(): ListAttribute { + let value: ListAttribute = ({} as ListAttribute) + return value + } + readVisibleListContentInfo(): VisibleListContentInfo { + let valueDeserializer: Deserializer = this + const index_result: number = (valueDeserializer.readNumber() as number) + const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemGroupArea_buf: ListItemGroupArea | undefined|undefined + if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) + } + const itemGroupArea_result: ListItemGroupArea | undefined|undefined = itemGroupArea_buf + const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemIndexInGroup_buf: number | undefined|undefined + if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) + } + const itemIndexInGroup_result: number | undefined|undefined = itemIndexInGroup_buf + let value: VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) + return value + } readCloseSwipeActionOptions(): CloseSwipeActionOptions { let valueDeserializer: Deserializer = this const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7177,37 +7413,53 @@ return; } let value: BreakPoints = ({value: value_result,reference: reference_result} as BreakPoints) return value } + readGridAttribute(): GridAttribute { + let value: GridAttribute = ({} as GridAttribute) + return value + } readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): [ number, number, number, number ] => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: [ number, number, number, number ] | undefined|undefined ; -const _continuationCallback: ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number, number, number ]); } + return (index: number): [ number, number, number, number ] => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: [ number, number, number, number ] | undefined|undefined ; + const _continuationCallback: ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number, number, number ]); } } readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): [ number, number ] => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: [ number, number ] | undefined|undefined ; -const _continuationCallback: ((value: [ number, number ]) => void) = (value: [ number, number ]): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number ]); } + return (index: number): [ number, number ] => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: [ number, number ] | undefined|undefined ; + const _continuationCallback: ((value: [ number, number ]) => void) = (value: [ number, number ]): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number ]); } + } + readPanGestureOptions(): PanGestureOptions { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return PanGestureOptionsInternal.fromPtr(ptr) + } + readEventTargetInfo(): EventTargetInfo { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return EventTargetInfoInternal.fromPtr(ptr) } readWindowStatusType(): WindowStatusType { let valueDeserializer: Deserializer = this @@ -7568,6 +7820,16 @@ return (_continuationValue as [ number, number ]); } let value: AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } + readComponent3DAttribute(): Component3DAttribute { + let value: Component3DAttribute = ({} as Component3DAttribute) + return value + } + readContext(): Context { + let valueDeserializer: Deserializer = this + const _ContextStub_result: string = (valueDeserializer.readString() as string) + let value: Context = ({_ContextStub: _ContextStub_result} as Context) + return value + } readUIGestureEvent(): UIGestureEvent { let value: UIGestureEvent = ({} as UIGestureEvent) return value @@ -7576,15 +7838,16 @@ return (_continuationValue as [ number, number ]); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isExpanding: boolean, currentRatio: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isExpanding); -_argsSerializer.writeNumber(currentRatio); -(isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isExpanding: boolean, currentRatio: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isExpanding); + _argsSerializer.writeNumber(currentRatio); + (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer: Deserializer = this @@ -7608,82 +7871,88 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (oldValue: SizeOptions, newValue: SizeOptions): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSizeOptions(oldValue); -_argsSerializer.writeSizeOptions(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: SizeOptions, newValue: SizeOptions): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSizeOptions(oldValue); + _argsSerializer.writeSizeOptions(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: MouseEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeMouseEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: MouseEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeMouseEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readHoverCallback(isSync: boolean = false): HoverCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: KeyEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: KeyEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: TouchEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: TouchEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnMoveHandler(isSync: boolean = false): OnMoveHandler { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: number, to: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer: Deserializer = this @@ -7703,6 +7972,30 @@ return; } let value: RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } + readCaretOffset(): CaretOffset { + let valueDeserializer: Deserializer = this + const index_result: number = (valueDeserializer.readNumber() as number) + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + let value: CaretOffset = ({index: index_result,x: x_result,y: y_result} as CaretOffset) + return value + } + readDirectionalEdgesT(): DirectionalEdgesT { + let valueDeserializer: Deserializer = this + const start_result: number = (valueDeserializer.readNumber() as number) + const end_result: number = (valueDeserializer.readNumber() as number) + const top_result: number = (valueDeserializer.readNumber() as number) + const bottom_result: number = (valueDeserializer.readNumber() as number) + let value: DirectionalEdgesT = ({start: start_result,end: end_result,top: top_result,bottom: bottom_result} as DirectionalEdgesT) + return value + } + readMeasureResult(): MeasureResult { + let valueDeserializer: Deserializer = this + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: MeasureResult = ({width: width_result,height: height_result} as MeasureResult) + return value + } readConstraintSizeOptions(): ConstraintSizeOptions { let valueDeserializer: Deserializer = this const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7740,23 +8033,24 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array): GestureJudgeResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBaseGestureEvent(event); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(recognizers.length); -for (let i = 0; i < recognizers.length; i++) { - const recognizers_element: GestureRecognizer = recognizers[i]; - _argsSerializer.writeGestureRecognizer(recognizers_element); -} -let _continuationValue: GestureJudgeResult | undefined|undefined ; -const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array): GestureJudgeResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBaseGestureEvent(event); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(recognizers.length); + for (let i = 0; i < recognizers.length; i++) { + const recognizers_element: GestureRecognizer = recognizers[i]; + _argsSerializer.writeGestureRecognizer(recognizers_element); + } + let _continuationValue: GestureJudgeResult | undefined|undefined ; + const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readAccessibilityOptions(): AccessibilityOptions { let valueDeserializer: Deserializer = this @@ -9552,14 +9846,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (transitionIn: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(transitionIn); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionIn: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(transitionIn); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { let valueDeserializer: Deserializer = this @@ -9770,15 +10065,6 @@ return; } let value: DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } - readRectResult(): RectResult { - let valueDeserializer: Deserializer = this - const x_result: number = (valueDeserializer.readNumber() as number) - const y_result: number = (valueDeserializer.readNumber() as number) - const width_result: number = (valueDeserializer.readNumber() as number) - const height_result: number = (valueDeserializer.readNumber() as number) - let value: RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) - return value - } readDrawModifier(): DrawModifier { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -9790,11 +10076,32 @@ return; } let value: IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) return value } + readSummary(): Summary { + let valueDeserializer: Deserializer = this + const _SummaryStub_result: string = (valueDeserializer.readString() as string) + let value: Summary = ({_SummaryStub: _SummaryStub_result} as Summary) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return UnifiedDataInternal.fromPtr(ptr) } + readTouchObject(): TouchObject { + let valueDeserializer: Deserializer = this + const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) + const id_result: number = (valueDeserializer.readNumber() as number) + const displayX_result: number = (valueDeserializer.readNumber() as number) + const displayY_result: number = (valueDeserializer.readNumber() as number) + const windowX_result: number = (valueDeserializer.readNumber() as number) + const windowY_result: number = (valueDeserializer.readNumber() as number) + const screenX_result: number = (valueDeserializer.readNumber() as number) + const screenY_result: number = (valueDeserializer.readNumber() as number) + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + let value: TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + return value + } readColumnSplitDividerStyle(): ColumnSplitDividerStyle { let valueDeserializer: Deserializer = this const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9857,11 +10164,39 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return CanvasRenderingContext2DInternal.fromPtr(ptr) } + readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) + } + readRenderingContextSettings(): RenderingContextSettings { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) + } readImageBitmap(): ImageBitmap { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return ImageBitmapInternal.fromPtr(ptr) } + readTextMetrics(): TextMetrics { + let valueDeserializer: Deserializer = this + const actualBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxLeft_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxRight_result: number = (valueDeserializer.readNumber() as number) + const alphabeticBaseline_result: number = (valueDeserializer.readNumber() as number) + const emHeightAscent_result: number = (valueDeserializer.readNumber() as number) + const emHeightDescent_result: number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) + const hangingBaseline_result: number = (valueDeserializer.readNumber() as number) + const ideographicBaseline_result: number = (valueDeserializer.readNumber() as number) + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: TextMetrics = ({actualBoundingBoxAscent: actualBoundingBoxAscent_result,actualBoundingBoxDescent: actualBoundingBoxDescent_result,actualBoundingBoxLeft: actualBoundingBoxLeft_result,actualBoundingBoxRight: actualBoundingBoxRight_result,alphabeticBaseline: alphabeticBaseline_result,emHeightAscent: emHeightAscent_result,emHeightDescent: emHeightDescent_result,fontBoundingBoxAscent: fontBoundingBoxAscent_result,fontBoundingBoxDescent: fontBoundingBoxDescent_result,hangingBaseline: hangingBaseline_result,ideographicBaseline: ideographicBaseline_result,width: width_result,height: height_result} as TextMetrics) + return value + } readImageData(): ImageData { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -10028,6 +10363,10 @@ return; } let value: CalendarDialogOptions = ({hintRadius: hintRadius_result,selected: selected_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CalendarDialogOptions) return value } + readCalendarPickerAttribute(): CalendarPickerAttribute { + let value: CalendarPickerAttribute = ({} as CalendarPickerAttribute) + return value + } readCalendarController(): CalendarController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -10187,6 +10526,10 @@ return; } let value: BadgeStyle = ({color: color_result,fontSize: fontSize_result,badgeSize: badgeSize_result,badgeColor: badgeColor_result,borderColor: borderColor_result,borderWidth: borderWidth_result,fontWeight: fontWeight_result} as BadgeStyle) return value } + readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { + let value: AlphabetIndexerAttribute = ({} as AlphabetIndexerAttribute) + return value + } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer: Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12157,14 +12500,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSnapshotOptions(): SnapshotOptions { let valueDeserializer: Deserializer = this @@ -12189,29 +12533,31 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (result: PixelMap): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePixelMap(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: PixelMap): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePixelMap(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: int32, mark: KPointer, end: int32): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(index); -_argsSerializer.writePointer(mark); -_argsSerializer.writeInt32(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: int32, mark: KPointer, end: int32): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(index); + _argsSerializer.writePointer(mark); + _argsSerializer.writeInt32(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer: Deserializer = this @@ -12275,77 +12621,82 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (options: WithThemeOptions): WithThemeAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeOptions(options); -let _continuationValue: WithThemeAttribute | undefined|undefined ; -const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WithThemeAttribute); } + return (options: WithThemeOptions): WithThemeAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeOptions(options); + let _continuationValue: WithThemeAttribute | undefined|undefined ; + const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WithThemeAttribute); } } readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavContentInfo(from); -_argsSerializer.writeNavContentInfo(to); -_argsSerializer.writeInt32(operation); -let _continuationValue: NavigationAnimatedTransition | undefined|undefined ; -const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as NavigationAnimatedTransition); } + return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavContentInfo(from); + _argsSerializer.writeNavContentInfo(to); + _argsSerializer.writeInt32(operation); + let _continuationValue: NavigationAnimatedTransition | undefined|undefined ; + const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as NavigationAnimatedTransition); } } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (type: RouteType, progress: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(type); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (type: RouteType, progress: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(type); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollCallback(isSync: boolean = false): OnScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (scrollOffset: number, scrollState: ScrollState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(scrollOffset); -_argsSerializer.writeInt32(scrollState); -(isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (scrollOffset: number, scrollState: ScrollState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(scrollOffset); + _argsSerializer.writeInt32(scrollState); + (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedOptions(): IsolatedOptions { let valueDeserializer: Deserializer = this @@ -12358,17 +12709,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (options: IsolatedOptions): IsolatedComponentAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedOptions(options); -let _continuationValue: IsolatedComponentAttribute | undefined|undefined ; -const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as IsolatedComponentAttribute); } + return (options: IsolatedOptions): IsolatedComponentAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedOptions(options); + let _continuationValue: IsolatedComponentAttribute | undefined|undefined ; + const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as IsolatedComponentAttribute); } } readWithThemeAttribute(): WithThemeAttribute { let value: WithThemeAttribute = ({} as WithThemeAttribute) @@ -12378,297 +12730,315 @@ return (_continuationValue as IsolatedComponentAttribute); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WithThemeAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WithThemeAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WebResourceResponse): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceResponse(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebResourceResponse): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceResponse(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WebKeyboardOptions): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardOptions(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebKeyboardOptions): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardOptions(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CustomBuilder | DragItemInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.FUNCTION == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast(value); - _argsSerializer.writeDragItemInfo(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder | DragItemInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.FUNCTION == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast(value); + _argsSerializer.writeDragItemInfo(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: [ number, number ]): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -(isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number ]): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: [ number, number, number, number ]): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -const value_2 = value[2]; -_argsSerializer.writeNumber(value_2); -const value_3 = value[3]; -_argsSerializer.writeNumber(value_3); -(isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number, number, number ]): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + const value_2 = value[2]; + _argsSerializer.writeNumber(value_2); + const value_3 = value[3]; + _argsSerializer.writeNumber(value_3); + (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TouchResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TouchResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string, param: unknown) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (name: string, param: unknown): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(name); -_argsSerializer.writeCustomObject("Any", param); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (name: string, param: unknown): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(name); + _argsSerializer.writeCustomObject("Any", param); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: KPointer): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: KPointer): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: TabContentAnimatedTransition | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeTabContentAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: TabContentAnimatedTransition | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeTabContentAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined, error?: Array | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: StyledString | undefined, error?: Array | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeStyledString(value_value); -} -let error_type: int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length); - for (let i = 0; i < error_value.length; i++) { - const error_value_element: string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: StyledString | undefined, error?: Array | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeStyledString(value_value); + } + let error_type: int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length); + for (let i = 0; i < error_value.length; i++) { + const error_value_element: string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeNavigationAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: NavigationAnimatedTransition | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeNavigationAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (error?: Array | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let error_type: int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length); - for (let i = 0; i < error_value.length; i++) { - const error_value_element: string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error?: Array | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let error_type: int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length); + for (let i = 0; i < error_value.length; i++) { + const error_value_element: string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: OnScrollFrameBeginHandlerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollFrameBeginHandlerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OnScrollFrameBeginHandlerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: OffsetResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOffsetResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OffsetResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOffsetResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (titleMode: NavigationTitleMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(titleMode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (titleMode: NavigationTitleMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(titleMode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: NavigationMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: { offsetRemain: number }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: { offsetRemain: number }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_offsetRemain = value.offsetRemain; -_argsSerializer.writeNumber(value_offsetRemain); -(isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: { offsetRemain: number }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_offsetRemain = value.offsetRemain; + _argsSerializer.writeNumber(value_offsetRemain); + (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedComponentAttribute(): IsolatedComponentAttribute { let value: IsolatedComponentAttribute = ({} as IsolatedComponentAttribute) @@ -12678,110 +13048,118 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: IsolatedComponentAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedComponentAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: IsolatedComponentAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedComponentAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: HitTestMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: HitTestMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: GestureRecognizer): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureRecognizer): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: GestureJudgeResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureJudgeResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CustomBuilder): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: ComputedBarAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeComputedBarAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ComputedBarAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeComputedBarAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length); -for (let i = 0; i < value.length; i++) { - const value_element: string = value[i]; - _argsSerializer.writeString(value_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length); + for (let i = 0; i < value.length; i++) { + const value_element: string = value[i]; + _argsSerializer.writeString(value_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xPos: number, yPos: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xPos); -_argsSerializer.writeNumber(yPos); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (xPos: number, yPos: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xPos); + _argsSerializer.writeNumber(yPos); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorController(): LinearIndicatorController { let valueDeserializer: Deserializer = this @@ -12822,11 +13200,6 @@ return; } let value: ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readMutableStyledString(): MutableStyledString { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return MutableStyledStringInternal.fromPtr(ptr) - } readUrlStyle(): UrlStyle { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -13061,23 +13434,24 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: { code: number, want?: Want }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const parameter_code = parameter.code; -_argsSerializer.writeNumber(parameter_code); -const parameter_want = parameter.want; -let parameter_want_type: int32 = RuntimeType.UNDEFINED; -parameter_want_type = runtimeType(parameter_want); -_argsSerializer.writeInt8(parameter_want_type); -if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { - const parameter_want_value = parameter_want!; - _argsSerializer.writeWant(parameter_want_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: { code: number, want?: Want }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const parameter_code = parameter.code; + _argsSerializer.writeNumber(parameter_code); + const parameter_want = parameter.want; + let parameter_want_type: int32 = RuntimeType.UNDEFINED; + parameter_want_type = runtimeType(parameter_want); + _argsSerializer.writeInt8(parameter_want_type); + if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { + const parameter_want_value = parameter_want!; + _argsSerializer.writeWant(parameter_want_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer: Deserializer = this @@ -13217,20 +13591,21 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: Object | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeCustomObject("Object", event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Object | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeCustomObject("Object", event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readXComponentOptions(): XComponentOptions { let valueDeserializer: Deserializer = this @@ -13262,14 +13637,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (details: AdsBlockedDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeAdsBlockedDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: AdsBlockedDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeAdsBlockedDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebKeyboardOptions(): WebKeyboardOptions { let valueDeserializer: Deserializer = this @@ -13310,30 +13686,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (keyboardCallbackInfo: WebKeyboardCallbackInfo): WebKeyboardOptions => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); -let _continuationValue: WebKeyboardOptions | undefined|undefined ; -const _continuationCallback: ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebKeyboardOptions); } + return (keyboardCallbackInfo: WebKeyboardCallbackInfo): WebKeyboardOptions => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); + let _continuationValue: WebKeyboardOptions | undefined|undefined ; + const _continuationCallback: ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebKeyboardOptions); } } readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (viewportFit: ViewportFit): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(viewportFit); -(isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (viewportFit: ViewportFit): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(viewportFit); + (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readExpandedMenuItemOptions(): ExpandedMenuItemOptions { let valueDeserializer: Deserializer = this @@ -13375,13 +13753,14 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { let valueDeserializer: Deserializer = this @@ -13395,14 +13774,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (data: RenderProcessNotRespondingData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRenderProcessNotRespondingData(data); -(isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (data: RenderProcessNotRespondingData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRenderProcessNotRespondingData(data); + (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { let valueDeserializer: Deserializer = this @@ -13415,17 +13795,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (webResourceRequest: WebResourceRequest): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceRequest(webResourceRequest); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (webResourceRequest: WebResourceRequest): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceRequest(webResourceRequest); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { let valueDeserializer: Deserializer = this @@ -13457,14 +13838,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: NativeEmbedTouchInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedTouchInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedTouchInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedTouchInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { let valueDeserializer: Deserializer = this @@ -13477,14 +13859,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedDataInfo(): NativeEmbedDataInfo { let valueDeserializer: Deserializer = this @@ -13523,14 +13906,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: NativeEmbedDataInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedDataInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedDataInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedDataInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readScriptItem(): ScriptItem { let valueDeserializer: Deserializer = this @@ -13555,14 +13939,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (details: IntelligentTrackingPreventionDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIntelligentTrackingPreventionDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: IntelligentTrackingPreventionDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIntelligentTrackingPreventionDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLoadCommittedDetails(): LoadCommittedDetails { let valueDeserializer: Deserializer = this @@ -13578,27 +13963,29 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (loadCommittedDetails: LoadCommittedDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); -(isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (loadCommittedDetails: LoadCommittedDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); + (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (threatType: ThreatType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(threatType); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (threatType: ThreatType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(threatType); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnOverScrollEvent(): OnOverScrollEvent { let valueDeserializer: Deserializer = this @@ -13611,14 +13998,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnOverScrollEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnOverScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnOverScrollEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnOverScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnLoadInterceptEvent(): OnLoadInterceptEvent { let valueDeserializer: Deserializer = this @@ -13630,17 +14018,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnLoadInterceptEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnLoadInterceptEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnLoadInterceptEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnLoadInterceptEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readLargestContentfulPaint(): LargestContentfulPaint { let valueDeserializer: Deserializer = this @@ -13693,14 +14082,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (largestContentfulPaint: LargestContentfulPaint): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (largestContentfulPaint: LargestContentfulPaint): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFirstMeaningfulPaint(): FirstMeaningfulPaint { let valueDeserializer: Deserializer = this @@ -13725,14 +14115,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (firstMeaningfulPaint: FirstMeaningfulPaint): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (firstMeaningfulPaint: FirstMeaningfulPaint): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { let valueDeserializer: Deserializer = this @@ -13745,14 +14136,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnFirstContentfulPaintEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFirstContentfulPaintEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFirstContentfulPaintEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { let valueDeserializer: Deserializer = this @@ -13764,14 +14156,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnAudioStateChangedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAudioStateChangedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnAudioStateChangedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAudioStateChangedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDataResubmittedEvent(): OnDataResubmittedEvent { let valueDeserializer: Deserializer = this @@ -13783,14 +14176,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnDataResubmittedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDataResubmittedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDataResubmittedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDataResubmittedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageVisibleEvent(): OnPageVisibleEvent { let valueDeserializer: Deserializer = this @@ -13802,14 +14196,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageVisibleEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageVisibleEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageVisibleEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageVisibleEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { let valueDeserializer: Deserializer = this @@ -13821,14 +14216,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnFaviconReceivedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFaviconReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFaviconReceivedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFaviconReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { let valueDeserializer: Deserializer = this @@ -13841,14 +14237,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnTouchIconUrlReceivedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTouchIconUrlReceivedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnWindowNewEvent(): OnWindowNewEvent { let valueDeserializer: Deserializer = this @@ -13863,14 +14260,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnWindowNewEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnWindowNewEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnWindowNewEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnWindowNewEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { let valueDeserializer: Deserializer = this @@ -13896,14 +14294,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnClientAuthenticationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnClientAuthenticationEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnClientAuthenticationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnClientAuthenticationEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSslErrorEvent(): SslErrorEvent { let valueDeserializer: Deserializer = this @@ -13921,14 +14320,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (sslErrorEvent: SslErrorEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSslErrorEvent(sslErrorEvent); -(isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sslErrorEvent: SslErrorEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSslErrorEvent(sslErrorEvent); + (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { let valueDeserializer: Deserializer = this @@ -13953,14 +14353,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnSslErrorEventReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSslErrorEventReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollEvent(): OnScrollEvent { let valueDeserializer: Deserializer = this @@ -13973,14 +14374,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScrollEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScrollEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { let valueDeserializer: Deserializer = this @@ -13994,26 +14396,28 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnSearchResultReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSearchResultReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSearchResultReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSearchResultReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuShowEvent(): OnContextMenuShowEvent { let valueDeserializer: Deserializer = this @@ -14026,17 +14430,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnContextMenuShowEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnContextMenuShowEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnContextMenuShowEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnContextMenuShowEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { let valueDeserializer: Deserializer = this @@ -14048,14 +14453,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScreenCaptureRequestEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScreenCaptureRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScreenCaptureRequestEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPermissionRequestEvent(): OnPermissionRequestEvent { let valueDeserializer: Deserializer = this @@ -14067,14 +14473,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPermissionRequestEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPermissionRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPermissionRequestEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPermissionRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnInterceptRequestEvent(): OnInterceptRequestEvent { let valueDeserializer: Deserializer = this @@ -14086,17 +14493,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnInterceptRequestEvent): WebResourceResponse => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnInterceptRequestEvent(parameter); -let _continuationValue: WebResourceResponse | undefined|undefined ; -const _continuationCallback: ((value: WebResourceResponse) => void) = (value: WebResourceResponse): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebResourceResponse); } + return (parameter: OnInterceptRequestEvent): WebResourceResponse => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnInterceptRequestEvent(parameter); + let _continuationValue: WebResourceResponse | undefined|undefined ; + const _continuationCallback: ((value: WebResourceResponse) => void) = (value: WebResourceResponse): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebResourceResponse); } } readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { let valueDeserializer: Deserializer = this @@ -14110,17 +14518,18 @@ return (_continuationValue as WebResourceResponse); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnHttpAuthRequestEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpAuthRequestEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnHttpAuthRequestEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpAuthRequestEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScaleChangeEvent(): OnScaleChangeEvent { let valueDeserializer: Deserializer = this @@ -14133,14 +14542,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScaleChangeEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScaleChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScaleChangeEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScaleChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullScreenEnterEvent(): FullScreenEnterEvent { let valueDeserializer: Deserializer = this @@ -14166,14 +14576,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: FullScreenEnterEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullScreenEnterEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: FullScreenEnterEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullScreenEnterEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnResourceLoadEvent(): OnResourceLoadEvent { let valueDeserializer: Deserializer = this @@ -14185,59 +14596,62 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnResourceLoadEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnResourceLoadEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnResourceLoadEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnResourceLoadEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: { callback_: Function, fileSelector: Object }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { callback_: Function, fileSelector: Object } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_callback_ = event_value.callback_; - _argsSerializer.writeFunction(event_value_callback_); - const event_value_fileSelector = event_value.fileSelector; - _argsSerializer.writeCustomObject("Object", event_value_fileSelector); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { callback_: Function, fileSelector: Object } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_callback_ = event_value.callback_; + _argsSerializer.writeFunction(event_value_callback_); + const event_value_fileSelector = event_value.fileSelector; + _argsSerializer.writeCustomObject("Object", event_value_fileSelector); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: { detail: Object }) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { detail: Object } | undefined): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_detail = event_value.detail; - _argsSerializer.writeCustomObject("Object", event_value_detail); -} -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: { detail: Object } | undefined): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_detail = event_value.detail; + _argsSerializer.writeCustomObject("Object", event_value_detail); + } + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { let valueDeserializer: Deserializer = this @@ -14250,17 +14664,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnShowFileSelectorEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnShowFileSelectorEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnShowFileSelectorEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnShowFileSelectorEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRenderExitedEvent(): OnRenderExitedEvent { let valueDeserializer: Deserializer = this @@ -14272,70 +14687,73 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnRenderExitedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRenderExitedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRenderExitedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRenderExitedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: { handler: Function, error: Object }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { handler: Function, error: Object } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_handler = event_value.handler; - _argsSerializer.writeFunction(event_value_handler); - const event_value_error = event_value.error; - _argsSerializer.writeCustomObject("Object", event_value_error); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { handler: Function, error: Object } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_handler = event_value.handler; + _argsSerializer.writeFunction(event_value_handler); + const event_value_error = event_value.error; + _argsSerializer.writeCustomObject("Object", event_value_error); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: { data: string | WebResourceRequest }) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { data: string | WebResourceRequest } | undefined): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_data = event_value.data; - let event_value_data_type: int32 = RuntimeType.UNDEFINED; - event_value_data_type = runtimeType(event_value_data); - if (((RuntimeType.STRING == event_value_data_type))) { - _argsSerializer.writeInt8(0); - const event_value_data_0 = unsafeCast(event_value_data); - _argsSerializer.writeString(event_value_data_0); - } - else if (((RuntimeType.OBJECT == event_value_data_type))) { - _argsSerializer.writeInt8(1); - const event_value_data_1 = unsafeCast(event_value_data); - _argsSerializer.writeWebResourceRequest(event_value_data_1); - } -} -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: { data: string | WebResourceRequest } | undefined): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_data = event_value.data; + let event_value_data_type: int32 = RuntimeType.UNDEFINED; + event_value_data_type = runtimeType(event_value_data); + if (RuntimeType.STRING == event_value_data_type) { + _argsSerializer.writeInt8(0); + const event_value_data_0 = unsafeCast(event_value_data); + _argsSerializer.writeString(event_value_data_0); + } + else if (RuntimeType.OBJECT == event_value_data_type) { + _argsSerializer.writeInt8(1); + const event_value_data_1 = unsafeCast(event_value_data); + _argsSerializer.writeWebResourceRequest(event_value_data_1); + } + } + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { let valueDeserializer: Deserializer = this @@ -14348,14 +14766,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnRefreshAccessedHistoryEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRefreshAccessedHistoryEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDownloadStartEvent(): OnDownloadStartEvent { let valueDeserializer: Deserializer = this @@ -14371,14 +14790,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnDownloadStartEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDownloadStartEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDownloadStartEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDownloadStartEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { let valueDeserializer: Deserializer = this @@ -14391,14 +14811,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnHttpErrorReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnHttpErrorReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnErrorReceiveEvent(): OnErrorReceiveEvent { let valueDeserializer: Deserializer = this @@ -14411,14 +14832,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnErrorReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnErrorReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnConsoleEvent(): OnConsoleEvent { let valueDeserializer: Deserializer = this @@ -14430,17 +14852,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnConsoleEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConsoleEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConsoleEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConsoleEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnPromptEvent(): OnPromptEvent { let valueDeserializer: Deserializer = this @@ -14455,17 +14878,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPromptEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPromptEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnPromptEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPromptEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnConfirmEvent(): OnConfirmEvent { let valueDeserializer: Deserializer = this @@ -14479,17 +14903,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnConfirmEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConfirmEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConfirmEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConfirmEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { let valueDeserializer: Deserializer = this @@ -14503,17 +14928,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnBeforeUnloadEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnBeforeUnloadEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnBeforeUnloadEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnBeforeUnloadEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnAlertEvent(): OnAlertEvent { let valueDeserializer: Deserializer = this @@ -14527,17 +14953,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnAlertEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAlertEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnAlertEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAlertEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnGeolocationShowEvent(): OnGeolocationShowEvent { let valueDeserializer: Deserializer = this @@ -14550,14 +14977,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnGeolocationShowEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnGeolocationShowEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnGeolocationShowEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnGeolocationShowEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTitleReceiveEvent(): OnTitleReceiveEvent { let valueDeserializer: Deserializer = this @@ -14569,14 +14997,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnTitleReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTitleReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTitleReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTitleReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnProgressChangeEvent(): OnProgressChangeEvent { let valueDeserializer: Deserializer = this @@ -14588,14 +15017,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnProgressChangeEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnProgressChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnProgressChangeEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnProgressChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageBeginEvent(): OnPageBeginEvent { let valueDeserializer: Deserializer = this @@ -14607,14 +15037,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageBeginEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageBeginEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageBeginEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageBeginEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageEndEvent(): OnPageEndEvent { let valueDeserializer: Deserializer = this @@ -14626,14 +15057,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageEndEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageEndEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageEndEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageEndEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebMediaOptions(): WebMediaOptions { let valueDeserializer: Deserializer = this @@ -14748,11 +15180,6 @@ return; } let value: WebOptions = ({src: src_result,controller: controller_result,renderMode: renderMode_result,incognitoMode: incognitoMode_result,sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) return value } - readWebCookie(): WebCookie { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return WebCookieInternal.fromPtr(ptr) - } readHeader(): Header { let valueDeserializer: Deserializer = this const headerKey_result: string = (valueDeserializer.readString() as string) @@ -14770,14 +15197,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PlaybackInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePlaybackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PlaybackInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePlaybackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPreparedInfo(): PreparedInfo { let valueDeserializer: Deserializer = this @@ -14789,14 +15217,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PreparedInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePreparedInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreparedInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePreparedInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullscreenInfo(): FullscreenInfo { let valueDeserializer: Deserializer = this @@ -14808,14 +15237,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: FullscreenInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullscreenInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FullscreenInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullscreenInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVideoOptions(): VideoOptions { let valueDeserializer: Deserializer = this @@ -15104,59 +15534,61 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string | Array, index: number | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast>(value); - _argsSerializer.writeInt32(value_1.length); - for (let i = 0; i < value_1.length; i++) { - const value_1_element: string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array, index: number | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); } -} -let index_type: int32 = RuntimeType.UNDEFINED; -index_type = runtimeType(index); -if (((RuntimeType.NUMBER == index_type))) { - _argsSerializer.writeInt8(0); - const index_0 = unsafeCast(index); - _argsSerializer.writeNumber(index_0); -} -else if (((RuntimeType.OBJECT == index_type))) { - _argsSerializer.writeInt8(1); - const index_1 = unsafeCast>(index); - _argsSerializer.writeInt32(index_1.length); - for (let i = 0; i < index_1.length; i++) { - const index_1_element: number = index_1[i]; - _argsSerializer.writeNumber(index_1_element); + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast>(value); + _argsSerializer.writeInt32(value_1.length); + for (let i = 0; i < value_1.length; i++) { + const value_1_element: string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + let index_type: int32 = RuntimeType.UNDEFINED; + index_type = runtimeType(index); + if (RuntimeType.NUMBER == index_type) { + _argsSerializer.writeInt8(0); + const index_0 = unsafeCast(index); + _argsSerializer.writeNumber(index_0); + } + else if (RuntimeType.OBJECT == index_type) { + _argsSerializer.writeInt8(1); + const index_1 = unsafeCast>(index); + _argsSerializer.writeInt32(index_1.length); + for (let i = 0; i < index_1.length; i++) { + const index_1_element: number = index_1[i]; + _argsSerializer.writeNumber(index_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Number_Void(isSync: boolean = false): ((value: string, index: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { let valueDeserializer: Deserializer = this @@ -15364,15 +15796,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextInputOptions(): TextInputOptions { let valueDeserializer: Deserializer = this @@ -15422,10 +15855,11 @@ return; } let value: TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } - readLayoutManager(): LayoutManager { + readTextBox(): TextBox { let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return LayoutManagerInternal.fromPtr(ptr) + const _TextBoxStub_result: string = (valueDeserializer.readString() as string) + let value: TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) + return value } readStyledStringController(): StyledStringController { let valueDeserializer: Deserializer = this @@ -15465,48 +15899,51 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, event: PasteEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, event: PasteEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKeyType); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKeyType); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaOptions(): TextAreaOptions { let valueDeserializer: Deserializer = this @@ -15572,18 +16009,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (currentIndex: number, comingIndex: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(currentIndex); -_argsSerializer.writeNumber(comingIndex); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (currentIndex: number, comingIndex: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(currentIndex); + _argsSerializer.writeNumber(comingIndex); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTabContentTransitionProxy(): TabContentTransitionProxy { let valueDeserializer: Deserializer = this @@ -15594,18 +16032,19 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): TabContentAnimatedTransition | undefined => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue: TabContentAnimatedTransition | undefined|undefined ; -const _continuationCallback: ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TabContentAnimatedTransition); } + return (from: number, to: number): TabContentAnimatedTransition | undefined => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue: TabContentAnimatedTransition | undefined|undefined ; + const _continuationCallback: ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TabContentAnimatedTransition); } } readBarGridColumnOptions(): BarGridColumnOptions { let valueDeserializer: Deserializer = this @@ -15651,29 +16090,31 @@ return (_continuationValue as TabContentAnimatedTransition); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsAnimationEvent(): TabsAnimationEvent { let valueDeserializer: Deserializer = this @@ -15687,16 +16128,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsOptions(): TabsOptions { let valueDeserializer: Deserializer = this @@ -15758,17 +16200,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectedIndex: number, index: number, position: number, mainAxisLength: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectedIndex); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(position); -_argsSerializer.writeNumber(mainAxisLength); -(isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedIndex: number, index: number, position: number, mainAxisLength: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectedIndex); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(position); + _argsSerializer.writeNumber(mainAxisLength); + (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { let valueDeserializer: Deserializer = this @@ -15792,29 +16235,31 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperAnimationEvent(): SwiperAnimationEvent { let valueDeserializer: Deserializer = this @@ -15828,16 +16273,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIndicatorComponentController(): IndicatorComponentController { let valueDeserializer: Deserializer = this @@ -15915,15 +16361,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSliderOptions(): SliderOptions { let valueDeserializer: Deserializer = this @@ -16060,15 +16507,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, value: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, value: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSelectOption(): SelectOption { let valueDeserializer: Deserializer = this @@ -16116,14 +16564,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DeleteValue): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DeleteValue): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDeleteValue(): DeleteValue { let valueDeserializer: Deserializer = this @@ -16137,30 +16586,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DeleteValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: DeleteValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: InsertValue): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: InsertValue): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInsertValue(): InsertValue { let valueDeserializer: Deserializer = this @@ -16173,17 +16624,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: InsertValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: InsertValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTextDecorationOptions(): TextDecorationOptions { let valueDeserializer: Deserializer = this @@ -16226,90 +16678,88 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (content: string, event: PasteEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(content); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (content: string, event: PasteEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(content); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (totalOffsetX: number, totalOffsetY: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(totalOffsetX); -_argsSerializer.writeNumber(totalOffsetY); -(isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (totalOffsetX: number, totalOffsetY: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(totalOffsetX); + _argsSerializer.writeNumber(totalOffsetY); + (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectionStart: number, selectionEnd: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectionStart); -_argsSerializer.writeNumber(selectionEnd); -(isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readPreviewText(): PreviewText { - let valueDeserializer: Deserializer = this - const offset_result: number = (valueDeserializer.readNumber() as number) - const value_result: string = (valueDeserializer.readString() as string) - let value: PreviewText = ({offset: offset_result,value: value_result} as PreviewText) - return value + return (selectionStart: number, selectionEnd: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectionStart); + _argsSerializer.writeNumber(selectionEnd); + (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, previewText?: PreviewText | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -let previewText_type: int32 = RuntimeType.UNDEFINED; -previewText_type = runtimeType(previewText); -_argsSerializer.writeInt8(previewText_type); -if ((RuntimeType.UNDEFINED) != (previewText_type)) { - const previewText_value = previewText!; - _argsSerializer.writePreviewText(previewText_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, previewText?: PreviewText | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + let previewText_type: int32 = RuntimeType.UNDEFINED; + previewText_type = runtimeType(previewText); + _argsSerializer.writeInt8(previewText_type); + if ((RuntimeType.UNDEFINED) != (previewText_type)) { + const previewText_value = previewText!; + _argsSerializer.writePreviewText(previewText_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (searchContent: string, event?: SubmitEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(searchContent); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (searchContent: string, event?: SubmitEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(searchContent); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCaretStyle(): CaretStyle { let valueDeserializer: Deserializer = this @@ -16483,45 +16933,48 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (offset: number, state: ScrollState): OnScrollFrameBeginHandlerResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32(state); -let _continuationValue: OnScrollFrameBeginHandlerResult | undefined|undefined ; -const _continuationCallback: ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OnScrollFrameBeginHandlerResult); } + return (offset: number, state: ScrollState): OnScrollFrameBeginHandlerResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32(state); + let _continuationValue: OnScrollFrameBeginHandlerResult | undefined|undefined ; + const _continuationCallback: ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OnScrollFrameBeginHandlerResult); } } readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (side: Edge): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(side); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (side: Edge): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(side); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent, result: SaveButtonOnClickResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: SaveButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: SaveButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSaveButtonOptions(): SaveButtonOptions { let valueDeserializer: Deserializer = this @@ -16609,14 +17062,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: CopyEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCopyEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CopyEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCopyEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCutEvent(): CutEvent { let valueDeserializer: Deserializer = this @@ -16634,14 +17088,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: CutEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCutEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CutEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCutEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorChangeValue(): RichEditorChangeValue { let valueDeserializer: Deserializer = this @@ -16671,17 +17126,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorChangeValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorChangeValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorChangeValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorChangeValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readSubmitEvent(): SubmitEvent { let valueDeserializer: Deserializer = this @@ -16692,15 +17148,16 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer: Deserializer = this @@ -16767,20 +17224,21 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: PasteEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writePasteEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: PasteEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writePasteEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorDeleteValue(): RichEditorDeleteValue { let valueDeserializer: Deserializer = this @@ -16811,43 +17269,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorDeleteValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorDeleteValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorDeleteValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorDeleteValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TextRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TextRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorTextSpanResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorTextSpanResult(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorTextSpanResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorTextSpanResult(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorInsertValue(): RichEditorInsertValue { let valueDeserializer: Deserializer = this @@ -16867,68 +17328,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorInsertValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorInsertValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorInsertValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorInsertValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readRichEditorSelection(): RichEditorSelection { - let valueDeserializer: Deserializer = this - const selection_buf_value0: number = (valueDeserializer.readNumber() as number) - const selection_buf_value1: number = (valueDeserializer.readNumber() as number) - const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) - const spans_buf_length: int32 = valueDeserializer.readInt32() - let spans_buf: Array = new Array() - for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const spans_buf_buf_selector: number = valueDeserializer.readInt8() - let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined - if (spans_buf_buf_selector == 0) { - spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() - } - else { - throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") - } - spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) - } - const spans_result: Array = spans_buf - let value: RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) - return value + return (parameter: RichEditorRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorSelection): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorSelection(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorSelection): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorSelection(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readStyledStringChangeValue(): StyledStringChangeValue { let valueDeserializer: Deserializer = this @@ -16944,6 +17383,15 @@ return; } let value: StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } + readRichEditorParagraphResult(): RichEditorParagraphResult { + let valueDeserializer: Deserializer = this + const style_result: RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() + const range_buf_value0: number = (valueDeserializer.readNumber() as number) + const range_buf_value1: number = (valueDeserializer.readNumber() as number) + const range_result: [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) + let value: RichEditorParagraphResult = ({style: style_result,range: range_result} as RichEditorParagraphResult) + return value + } readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -16987,14 +17435,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (state: RefreshStatus): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(state); -(isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: RefreshStatus): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(state); + (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRefreshOptions(): RefreshOptions { let valueDeserializer: Deserializer = this @@ -17322,14 +17771,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: PluginErrorData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePluginErrorData(info); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: PluginErrorData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePluginErrorData(info); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPluginComponentOptions(): PluginComponentOptions { let valueDeserializer: Deserializer = this @@ -17342,18 +17792,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (input: Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(input.length); -for (let i = 0; i < input.length; i++) { - const input_element: number = input[i]; - _argsSerializer.writeNumber(input_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (input: Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(input.length); + for (let i = 0; i < input.length; i++) { + const input_element: number = input[i]; + _argsSerializer.writeNumber(input_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPatternLockController(): PatternLockController { let valueDeserializer: Deserializer = this @@ -17412,15 +17863,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: PasteButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: PasteButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPasteButtonOptions(): PasteButtonOptions { let valueDeserializer: Deserializer = this @@ -17452,16 +17904,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (width: number, height: number, mode: PanelMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(width); -_argsSerializer.writeNumber(height); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (width: number, height: number, mode: PanelMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(width); + _argsSerializer.writeNumber(height); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNodeController(): NodeController { let value: NodeController = ({} as NodeController) @@ -17570,14 +18023,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: NavDestinationContext): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavDestinationContext(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: NavDestinationContext): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavDestinationContext(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavigationMenuItem(): NavigationMenuItem { let valueDeserializer: Deserializer = this @@ -17639,16 +18093,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer: Deserializer = this @@ -17752,15 +18207,16 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: LocationButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: LocationButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLocationButtonOptions(): LocationButtonOptions { let valueDeserializer: Deserializer = this @@ -17917,83 +18373,67 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (from: number, to: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } - } - readVisibleListContentInfo(): VisibleListContentInfo { - let valueDeserializer: Deserializer = this - const index_result: number = (valueDeserializer.readNumber() as number) - const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemGroupArea_buf: ListItemGroupArea | undefined|undefined - if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) - } - const itemGroupArea_result: ListItemGroupArea | undefined|undefined = itemGroupArea_buf - const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemIndexInGroup_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) - } - const itemIndexInGroup_result: number | undefined|undefined = itemIndexInGroup_buf - let value: VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) - return value + return (index: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: VisibleListContentInfo, end: VisibleListContentInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeVisibleListContentInfo(start); -_argsSerializer.writeVisibleListContentInfo(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: VisibleListContentInfo, end: VisibleListContentInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeVisibleListContentInfo(start); + _argsSerializer.writeVisibleListContentInfo(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number, end: number, center: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: number, end: number, center: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -_argsSerializer.writeNumber(center); -(isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number, center: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + _argsSerializer.writeNumber(center); + (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer: Deserializer = this @@ -18138,14 +18578,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (result: ImageLoadResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageLoadResult(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: ImageLoadResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageLoadResult(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageFrameInfo(): ImageFrameInfo { let valueDeserializer: Deserializer = this @@ -18264,50 +18705,52 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (error: ImageError): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageError(error); -(isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error: ImageError): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageError(error); + (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_width = event_value.width; - _argsSerializer.writeNumber(event_value_width); - const event_value_height = event_value.height; - _argsSerializer.writeNumber(event_value_height); - const event_value_componentWidth = event_value.componentWidth; - _argsSerializer.writeNumber(event_value_componentWidth); - const event_value_componentHeight = event_value.componentHeight; - _argsSerializer.writeNumber(event_value_componentHeight); - const event_value_loadingStatus = event_value.loadingStatus; - _argsSerializer.writeNumber(event_value_loadingStatus); - const event_value_contentWidth = event_value.contentWidth; - _argsSerializer.writeNumber(event_value_contentWidth); - const event_value_contentHeight = event_value.contentHeight; - _argsSerializer.writeNumber(event_value_contentHeight); - const event_value_contentOffsetX = event_value.contentOffsetX; - _argsSerializer.writeNumber(event_value_contentOffsetX); - const event_value_contentOffsetY = event_value.contentOffsetY; - _argsSerializer.writeNumber(event_value_contentOffsetY); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_width = event_value.width; + _argsSerializer.writeNumber(event_value_width); + const event_value_height = event_value.height; + _argsSerializer.writeNumber(event_value_height); + const event_value_componentWidth = event_value.componentWidth; + _argsSerializer.writeNumber(event_value_componentWidth); + const event_value_componentHeight = event_value.componentHeight; + _argsSerializer.writeNumber(event_value_componentHeight); + const event_value_loadingStatus = event_value.loadingStatus; + _argsSerializer.writeNumber(event_value_loadingStatus); + const event_value_contentWidth = event_value.contentWidth; + _argsSerializer.writeNumber(event_value_contentWidth); + const event_value_contentHeight = event_value.contentHeight; + _argsSerializer.writeNumber(event_value_contentHeight); + const event_value_contentOffsetX = event_value.contentOffsetX; + _argsSerializer.writeNumber(event_value_contentOffsetX); + const event_value_contentOffsetY = event_value.contentOffsetY; + _argsSerializer.writeNumber(event_value_contentOffsetY); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageSourceSize(): ImageSourceSize { let valueDeserializer: Deserializer = this @@ -18512,76 +18955,81 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (offset: number, state: ScrollState): { offsetRemain: number } => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32(state); -let _continuationValue: { offsetRemain: number } | undefined|undefined ; -const _continuationCallback: ((value: { offsetRemain: number }) => void) = (value: { offsetRemain: number }): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as { offsetRemain: number }); } + return (offset: number, state: ScrollState): { offsetRemain: number } => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32(state); + let _continuationValue: { offsetRemain: number } | undefined|undefined ; + const _continuationCallback: ((value: { offsetRemain: number }) => void) = (value: { offsetRemain: number }): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as { offsetRemain: number }); } } readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -_argsSerializer.writeBoolean(isSuccess); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + _argsSerializer.writeBoolean(isSuccess); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readItemDragInfo(): ItemDragInfo { let valueDeserializer: Deserializer = this @@ -18594,18 +19042,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number): CustomBuilder => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -let _continuationValue: CustomBuilder | undefined|undefined ; -const _continuationCallback: ((value: CustomBuilder) => void) = (value: CustomBuilder): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder); } + return (event: ItemDragInfo, itemIndex: number): CustomBuilder => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + let _continuationValue: CustomBuilder | undefined|undefined ; + const _continuationCallback: ((value: CustomBuilder) => void) = (value: CustomBuilder): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder); } } readComputedBarAttribute(): ComputedBarAttribute { let valueDeserializer: Deserializer = this @@ -18618,18 +19067,19 @@ return (_continuationValue as CustomBuilder); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, offset: number): ComputedBarAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(offset); -let _continuationValue: ComputedBarAttribute | undefined|undefined ; -const _continuationCallback: ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as ComputedBarAttribute); } + return (index: number, offset: number): ComputedBarAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(offset); + let _continuationValue: ComputedBarAttribute | undefined|undefined ; + const _continuationCallback: ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as ComputedBarAttribute); } } readGridLayoutOptions(): GridLayoutOptions { let valueDeserializer: Deserializer = this @@ -18670,21 +19120,11 @@ return (_continuationValue as ComputedBarAttribute); } let ptr: KPointer = valueDeserializer.readPointer() return PanRecognizerInternal.fromPtr(ptr) } - readEventTargetInfo(): EventTargetInfo { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return EventTargetInfoInternal.fromPtr(ptr) - } readScrollableTargetInfo(): ScrollableTargetInfo { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return ScrollableTargetInfoInternal.fromPtr(ptr) } - readPanGestureOptions(): PanGestureOptions { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return PanGestureOptionsInternal.fromPtr(ptr) - } readGestureEvent(): GestureEvent { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -18874,30 +19314,32 @@ return (_continuationValue as ComputedBarAttribute); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: any): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCustomObject("Any", info); -(isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: any): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCustomObject("Any", info); + (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: { errcode: number, msg: string }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: { errcode: number, msg: string }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const info_errcode = info.errcode; -_argsSerializer.writeNumber(info_errcode); -const info_msg = info.msg; -_argsSerializer.writeString(info_msg); -(isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: { errcode: number, msg: string }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const info_errcode = info.errcode; + _argsSerializer.writeNumber(info_errcode); + const info_msg = info.msg; + _argsSerializer.writeString(info_msg); + (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormCallbackInfo(): FormCallbackInfo { let valueDeserializer: Deserializer = this @@ -18910,14 +19352,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: FormCallbackInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFormCallbackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FormCallbackInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFormCallbackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormInfo(): FormInfo { let valueDeserializer: Deserializer = this @@ -18988,14 +19431,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (param: HoverEventParam): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeHoverEventParam(param); -(isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (param: HoverEventParam): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeHoverEventParam(param); + (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { let valueDeserializer: Deserializer = this @@ -19007,14 +19451,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: OnFoldStatusChangeInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFoldStatusChangeInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: OnFoldStatusChangeInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFoldStatusChangeInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFolderStackOptions(): FolderStackOptions { let valueDeserializer: Deserializer = this @@ -19097,14 +19542,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TerminationInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTerminationInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TerminationInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTerminationInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEllipseOptions(): EllipseOptions { let valueDeserializer: Deserializer = this @@ -19886,37 +20332,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32(scrollState); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readOffsetResult(): OffsetResult { - let valueDeserializer: Deserializer = this - const xOffset_result: number = (valueDeserializer.readNumber() as number) - const yOffset_result: number = (valueDeserializer.readNumber() as number) - let value: OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) - return value + return (xOffset: number, yOffset: number, scrollState: ScrollState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32(scrollState); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Void(isSync: boolean = false): ((first: number, last: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (first: number, last: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(first); -_argsSerializer.writeNumber(last); -(isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (first: number, last: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(first); + _argsSerializer.writeNumber(last); + (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextContentControllerBase(): TextContentControllerBase { let valueDeserializer: Deserializer = this @@ -20020,38 +20461,40 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TouchEvent): HitTestMode => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(parameter); -let _continuationValue: HitTestMode | undefined|undefined ; -const _continuationCallback: ((value: HitTestMode) => void) = (value: HitTestMode): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as HitTestMode); } + return (parameter: TouchEvent): HitTestMode => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(parameter); + let _continuationValue: HitTestMode | undefined|undefined ; + const _continuationCallback: ((value: HitTestMode) => void) = (value: HitTestMode): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as HitTestMode); } } readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (current: GestureRecognizer, others: Array): GestureRecognizer => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(others.length); -for (let i = 0; i < others.length; i++) { - const others_element: GestureRecognizer = others[i]; - _argsSerializer.writeGestureRecognizer(others_element); -} -let _continuationValue: GestureRecognizer | undefined|undefined ; -const _continuationCallback: ((value: GestureRecognizer) => void) = (value: GestureRecognizer): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureRecognizer); } + return (current: GestureRecognizer, others: Array): GestureRecognizer => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(others.length); + for (let i = 0; i < others.length; i++) { + const others_element: GestureRecognizer = others[i]; + _argsSerializer.writeGestureRecognizer(others_element); + } + let _continuationValue: GestureRecognizer | undefined|undefined ; + const _continuationCallback: ((value: GestureRecognizer) => void) = (value: GestureRecognizer): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureRecognizer); } } readGestureRecognizer(): GestureRecognizer { let valueDeserializer: Deserializer = this @@ -20093,18 +20536,19 @@ return (_continuationValue as GestureRecognizer); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (gestureInfo: GestureInfo, event: BaseGestureEvent): GestureJudgeResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureInfo(gestureInfo); -_argsSerializer.writeBaseGestureEvent(event); -let _continuationValue: GestureJudgeResult | undefined|undefined ; -const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (gestureInfo: GestureInfo, event: BaseGestureEvent): GestureJudgeResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureInfo(gestureInfo); + _argsSerializer.writeBaseGestureEvent(event); + let _continuationValue: GestureJudgeResult | undefined|undefined ; + const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { let valueDeserializer: Deserializer = this @@ -20202,14 +20646,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PreDragStatus): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreDragStatus): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readUniformDataType(): UniformDataType { let valueDeserializer: Deserializer = this @@ -20221,44 +20666,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type: int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: DragEvent, extraParams?: string | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type: int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined): CustomBuilder | DragItemInfo => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type: int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -let _continuationValue: CustomBuilder | DragItemInfo | undefined|undefined ; -const _continuationCallback: ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder | DragItemInfo); } + return (event: DragEvent, extraParams?: string | undefined): CustomBuilder | DragItemInfo => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type: int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + let _continuationValue: CustomBuilder | DragItemInfo | undefined|undefined ; + const _continuationCallback: ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder | DragItemInfo); } } readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { let valueDeserializer: Deserializer = this @@ -20384,15 +20831,16 @@ return (_continuationValue as CustomBuilder | DragItemInfo); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (oldValue: Area, newValue: Area): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeArea(oldValue); -_argsSerializer.writeArea(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: Area, newValue: Area): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeArea(oldValue); + _argsSerializer.writeArea(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMotionBlurOptions(): MotionBlurOptions { let valueDeserializer: Deserializer = this @@ -20431,45 +20879,48 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: KeyEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: KeyEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: AccessibilityHoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeAccessibilityHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: AccessibilityHoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeAccessibilityHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean, event: HoverEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOutlineOptions(): OutlineOptions { let valueDeserializer: Deserializer = this @@ -21552,21 +22003,22 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: Array): TouchResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length); -for (let i = 0; i < value.length; i++) { - const value_element: TouchTestInfo = value[i]; - _argsSerializer.writeTouchTestInfo(value_element); -} -let _continuationValue: TouchResult | undefined|undefined ; -const _continuationCallback: ((value: TouchResult) => void) = (value: TouchResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TouchResult); } + return (value: Array): TouchResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length); + for (let i = 0; i < value.length; i++) { + const value_element: TouchTestInfo = value[i]; + _argsSerializer.writeTouchTestInfo(value_element); + } + let _continuationValue: TouchResult | undefined|undefined ; + const _continuationCallback: ((value: TouchResult) => void) = (value: TouchResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TouchResult); } } readKeyEvent(): KeyEvent { let valueDeserializer: Deserializer = this @@ -21583,19 +22035,13 @@ return (_continuationValue as TouchResult); } let ptr: KPointer = valueDeserializer.readPointer() return PixelMapMockInternal.fromPtr(ptr) } - readTouchObject(): TouchObject { + readHistoricalPoint(): HistoricalPoint { let valueDeserializer: Deserializer = this - const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) - const id_result: number = (valueDeserializer.readNumber() as number) - const displayX_result: number = (valueDeserializer.readNumber() as number) - const displayY_result: number = (valueDeserializer.readNumber() as number) - const windowX_result: number = (valueDeserializer.readNumber() as number) - const windowY_result: number = (valueDeserializer.readNumber() as number) - const screenX_result: number = (valueDeserializer.readNumber() as number) - const screenY_result: number = (valueDeserializer.readNumber() as number) - const x_result: number = (valueDeserializer.readNumber() as number) - const y_result: number = (valueDeserializer.readNumber() as number) - let value: TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + const touchObject_result: TouchObject = valueDeserializer.readTouchObject() + const size_result: number = (valueDeserializer.readNumber() as number) + const force_result: number = (valueDeserializer.readNumber() as number) + const timestamp_result: number = (valueDeserializer.readNumber() as number) + let value: HistoricalPoint = ({touchObject: touchObject_result,size: size_result,force: force_result,timestamp: timestamp_result} as HistoricalPoint) return value } readAccessibilityHoverEvent(): AccessibilityHoverEvent { @@ -21724,14 +22170,15 @@ return (_continuationValue as TouchResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CheckboxGroupResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCheckboxGroupResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CheckboxGroupResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCheckboxGroupResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCheckboxGroupOptions(): CheckboxGroupOptions { let valueDeserializer: Deserializer = this @@ -21749,14 +22196,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMarkStyle(): MarkStyle { let valueDeserializer: Deserializer = this @@ -21827,15 +22275,15 @@ return; } let value: CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } - readCanvasRenderer(): CanvasRenderer { + readOffscreenCanvas(): OffscreenCanvas { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return CanvasRendererInternal.fromPtr(ptr) + return OffscreenCanvasInternal.fromPtr(ptr) } - readRenderingContextSettings(): RenderingContextSettings { + readCanvasRenderer(): CanvasRenderer { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return RenderingContextSettingsInternal.fromPtr(ptr) + return CanvasRendererInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer: Deserializer = this @@ -21897,14 +22345,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: CalendarRequestedData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarRequestedData(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarRequestedData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarRequestedData(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCalendarSelectedDate(): CalendarSelectedDate { let valueDeserializer: Deserializer = this @@ -21918,14 +22367,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: CalendarSelectedDate): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarSelectedDate(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarSelectedDate): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarSelectedDate(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWorkStateStyle(): WorkStateStyle { let valueDeserializer: Deserializer = this @@ -22659,43 +23109,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): Array => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: Array | undefined|undefined ; -const _continuationCallback: ((value: Array) => void) = (value: Array): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Array); } + return (index: number): Array => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: Array | undefined|undefined ; + const _continuationCallback: ((value: Array) => void) = (value: Array): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Array); } } readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer: Deserializer = this @@ -22883,6 +23336,11 @@ return; } let value: WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readSystemOps(): SystemOps { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return SystemOpsInternal.fromPtr(ptr) + } readLazyForEachOps(): LazyForEachOps { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() diff --git a/arkoala/arkui/src/peers/Serializer.ts b/arkoala/arkui/src/generated/peers/Serializer.ts similarity index 93% rename from arkoala/arkui/src/peers/Serializer.ts rename to arkoala/arkui/src/generated/peers/Serializer.ts index fd59a2c65..b025fb5dc 100644 --- a/arkoala/arkui/src/peers/Serializer.ts +++ b/arkoala/arkui/src/generated/peers/Serializer.ts @@ -13,56 +13,54 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, InteropNativeModule, ResourceHolder, nullptr, KPointer } from "@koalaui/interop" -import { int32, float32 } from "@koalaui/common" -import { MaterializedBase } from "./../MaterializedBase" -import { unsafeCast } from "./../shared/generated-utils" +import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, MaterializedBase, InteropNativeModule, ResourceHolder, nullptr, KPointer } from "@koalaui/interop" +import { int32, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, MeasureResult, SizeResult, PointLightStyle } from "./../ArkCommonInterfaces" -import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, Context, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawingLattice, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorDeleteDirection, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, ListItemGroupArea, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" @@ -71,7 +69,7 @@ import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMater import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -82,7 +80,7 @@ import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerO import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" @@ -92,7 +90,7 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { Scene, Component3DAttribute, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -101,54 +99,72 @@ import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -157,18 +173,12 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" +import { GridAttribute, GridDirection, GridItemAlignment, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { GestureControl } from "./../ArkGestureControlNamespace" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" @@ -178,15 +188,11 @@ import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialize import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" -import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { AttributeModifier } from "./../handwritten" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" -import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" @@ -205,23 +211,18 @@ import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" -import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" -import { SelectOption } from "./../ArkSelectInterfaces" import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" @@ -259,13 +260,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -277,6 +278,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { @@ -436,12 +438,12 @@ export class Serializer extends SerializerBase { const value_radius = value.radius let value_radius_type: int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { valueSerializer.writeInt8(0) const value_radius_0 = unsafeCast(value_radius) valueSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.OBJECT == value_radius_type))) { + else if (RuntimeType.OBJECT == value_radius_type) { valueSerializer.writeInt8(1) const value_radius_1 = unsafeCast(value_radius) valueSerializer.writeResource(value_radius_1) @@ -462,17 +464,17 @@ export class Serializer extends SerializerBase { const value_color_value = value_color! let value_color_value_type: int32 = RuntimeType.UNDEFINED value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.NUMBER == value_color_value_type))) { + if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(0) const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_1) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_2) @@ -491,12 +493,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -510,12 +512,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -615,12 +617,12 @@ export class Serializer extends SerializerBase { const value_weight_value_0 = unsafeCast(value_weight_value) valueSerializer.writeInt32(value_weight_value_0) } - else if (((RuntimeType.NUMBER == value_weight_value_type))) { + else if (RuntimeType.NUMBER == value_weight_value_type) { valueSerializer.writeInt8(1) const value_weight_value_1 = unsafeCast(value_weight_value) valueSerializer.writeNumber(value_weight_value_1) } - else if (((RuntimeType.STRING == value_weight_value_type))) { + else if (RuntimeType.STRING == value_weight_value_type) { valueSerializer.writeInt8(2) const value_weight_value_2 = unsafeCast(value_weight_value) valueSerializer.writeString(value_weight_value_2) @@ -634,12 +636,12 @@ export class Serializer extends SerializerBase { const value_family_value = value_family! let value_family_value_type: int32 = RuntimeType.UNDEFINED value_family_value_type = runtimeType(value_family_value) - if (((RuntimeType.STRING == value_family_value_type))) { + if (RuntimeType.STRING == value_family_value_type) { valueSerializer.writeInt8(0) const value_family_value_0 = unsafeCast(value_family_value) valueSerializer.writeString(value_family_value_0) } - else if (((RuntimeType.OBJECT == value_family_value_type))) { + else if (RuntimeType.OBJECT == value_family_value_type) { valueSerializer.writeInt8(1) const value_family_value_1 = unsafeCast(value_family_value) valueSerializer.writeResource(value_family_value_1) @@ -695,12 +697,12 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_1) @@ -830,17 +832,17 @@ export class Serializer extends SerializerBase { const value_color_0 = unsafeCast(value_color) valueSerializer.writeInt32(value_color_0) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1) const value_color_1 = unsafeCast(value_color) valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2) const value_color_2 = unsafeCast(value_color) valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3) const value_color_3 = unsafeCast(value_color) valueSerializer.writeResource(value_color_3) @@ -871,17 +873,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -911,17 +913,17 @@ export class Serializer extends SerializerBase { const value_top_value_0 = unsafeCast(value_top_value) valueSerializer.writeInt32(value_top_value_0) } - else if (((RuntimeType.NUMBER == value_top_value_type))) { + else if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(1) const value_top_value_1 = unsafeCast(value_top_value) valueSerializer.writeNumber(value_top_value_1) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(2) const value_top_value_2 = unsafeCast(value_top_value) valueSerializer.writeString(value_top_value_2) } - else if (((RuntimeType.OBJECT == value_top_value_type))) { + else if (RuntimeType.OBJECT == value_top_value_type) { valueSerializer.writeInt8(3) const value_top_value_3 = unsafeCast(value_top_value) valueSerializer.writeResource(value_top_value_3) @@ -940,17 +942,17 @@ export class Serializer extends SerializerBase { const value_end_value_0 = unsafeCast(value_end_value) valueSerializer.writeInt32(value_end_value_0) } - else if (((RuntimeType.NUMBER == value_end_value_type))) { + else if (RuntimeType.NUMBER == value_end_value_type) { valueSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) valueSerializer.writeNumber(value_end_value_1) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { valueSerializer.writeInt8(2) const value_end_value_2 = unsafeCast(value_end_value) valueSerializer.writeString(value_end_value_2) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(3) const value_end_value_3 = unsafeCast(value_end_value) valueSerializer.writeResource(value_end_value_3) @@ -969,17 +971,17 @@ export class Serializer extends SerializerBase { const value_bottom_value_0 = unsafeCast(value_bottom_value) valueSerializer.writeInt32(value_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_bottom_value_type) { valueSerializer.writeInt8(1) const value_bottom_value_1 = unsafeCast(value_bottom_value) valueSerializer.writeNumber(value_bottom_value_1) } - else if (((RuntimeType.STRING == value_bottom_value_type))) { + else if (RuntimeType.STRING == value_bottom_value_type) { valueSerializer.writeInt8(2) const value_bottom_value_2 = unsafeCast(value_bottom_value) valueSerializer.writeString(value_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_bottom_value_type) { valueSerializer.writeInt8(3) const value_bottom_value_3 = unsafeCast(value_bottom_value) valueSerializer.writeResource(value_bottom_value_3) @@ -998,17 +1000,17 @@ export class Serializer extends SerializerBase { const value_start_value_0 = unsafeCast(value_start_value) valueSerializer.writeInt32(value_start_value_0) } - else if (((RuntimeType.NUMBER == value_start_value_type))) { + else if (RuntimeType.NUMBER == value_start_value_type) { valueSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) valueSerializer.writeNumber(value_start_value_1) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { valueSerializer.writeInt8(2) const value_start_value_2 = unsafeCast(value_start_value) valueSerializer.writeString(value_start_value_2) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(3) const value_start_value_3 = unsafeCast(value_start_value) valueSerializer.writeResource(value_start_value_3) @@ -1055,12 +1057,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -1073,12 +1075,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -1481,17 +1483,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -1553,17 +1555,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -1582,12 +1584,12 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_0) } - else if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + else if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(1) const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -1609,12 +1611,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_0) } - else if (((RuntimeType.STRING == value_fontFamily_value_type))) { + else if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_1) @@ -1633,17 +1635,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -1725,6 +1727,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeAffinity(value: Affinity): void { + let valueSerializer: Serializer = this + const value__AffinityStub = value._AffinityStub + valueSerializer.writeString(value__AffinityStub) + } writeTabBarIconStyle(value: TabBarIconStyle): void { let valueSerializer: Serializer = this const value_selectedColor = value.selectedColor @@ -1740,17 +1747,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -1769,17 +1776,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -1812,22 +1819,22 @@ export class Serializer extends SerializerBase { const value_minFontSize_value = value_minFontSize! let value_minFontSize_value_type: int32 = RuntimeType.UNDEFINED value_minFontSize_value_type = runtimeType(value_minFontSize_value) - if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + if (RuntimeType.NUMBER == value_minFontSize_value_type) { valueSerializer.writeInt8(0) const value_minFontSize_value_0 = unsafeCast(value_minFontSize_value) valueSerializer.writeNumber(value_minFontSize_value_0) } - else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { + else if ((RuntimeType.STRING == value_minFontSize_value_type) || (RuntimeType.OBJECT == value_minFontSize_value_type)) { valueSerializer.writeInt8(1) const value_minFontSize_value_1 = unsafeCast(value_minFontSize_value) let value_minFontSize_value_1_type: int32 = RuntimeType.UNDEFINED value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) - if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { + if (RuntimeType.STRING == value_minFontSize_value_1_type) { valueSerializer.writeInt8(0) const value_minFontSize_value_1_0 = unsafeCast(value_minFontSize_value_1) valueSerializer.writeString(value_minFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_minFontSize_value_1_type) { valueSerializer.writeInt8(1) const value_minFontSize_value_1_1 = unsafeCast(value_minFontSize_value_1) valueSerializer.writeResource(value_minFontSize_value_1_1) @@ -1842,22 +1849,22 @@ export class Serializer extends SerializerBase { const value_maxFontSize_value = value_maxFontSize! let value_maxFontSize_value_type: int32 = RuntimeType.UNDEFINED value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) - if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { + if (RuntimeType.NUMBER == value_maxFontSize_value_type) { valueSerializer.writeInt8(0) const value_maxFontSize_value_0 = unsafeCast(value_maxFontSize_value) valueSerializer.writeNumber(value_maxFontSize_value_0) } - else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { + else if ((RuntimeType.STRING == value_maxFontSize_value_type) || (RuntimeType.OBJECT == value_maxFontSize_value_type)) { valueSerializer.writeInt8(1) const value_maxFontSize_value_1 = unsafeCast(value_maxFontSize_value) let value_maxFontSize_value_1_type: int32 = RuntimeType.UNDEFINED value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) - if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { + if (RuntimeType.STRING == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(0) const value_maxFontSize_value_1_0 = unsafeCast(value_maxFontSize_value_1) valueSerializer.writeString(value_maxFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(1) const value_maxFontSize_value_1_1 = unsafeCast(value_maxFontSize_value_1) valueSerializer.writeResource(value_maxFontSize_value_1_1) @@ -1955,17 +1962,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -1984,17 +1991,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -2032,17 +2039,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -2056,12 +2063,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type: int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0) const value_src_value_0 = unsafeCast(value_src_value) valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1) const value_src_value_1 = unsafeCast(value_src_value) valueSerializer.writeResource(value_src_value_1) @@ -2121,7 +2128,7 @@ export class Serializer extends SerializerBase { const value_leadingMargin_value_0 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLength(value_leadingMargin_value_0) } - else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (((value_leadingMargin_value!.hasOwnProperty("pixelMap"))))) { + else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && ((value_leadingMargin_value!.hasOwnProperty("pixelMap")))) { valueSerializer.writeInt8(1) const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) @@ -2154,17 +2161,17 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type: int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0) const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeString(value_fontSize_value_1) } - else if (((RuntimeType.OBJECT == value_fontSize_value_type))) { + else if (RuntimeType.OBJECT == value_fontSize_value_type) { valueSerializer.writeInt8(2) const value_fontSize_value_2 = unsafeCast(value_fontSize_value) valueSerializer.writeResource(value_fontSize_value_2) @@ -2186,17 +2193,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_element_0 = unsafeCast(value_fontColor_value_element) valueSerializer.writeInt32(value_fontColor_value_element_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_element_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_element_type) { valueSerializer.writeInt8(1) const value_fontColor_value_element_1 = unsafeCast(value_fontColor_value_element) valueSerializer.writeNumber(value_fontColor_value_element_1) } - else if (((RuntimeType.STRING == value_fontColor_value_element_type))) { + else if (RuntimeType.STRING == value_fontColor_value_element_type) { valueSerializer.writeInt8(2) const value_fontColor_value_element_2 = unsafeCast(value_fontColor_value_element) valueSerializer.writeString(value_fontColor_value_element_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_element_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_element_type) { valueSerializer.writeInt8(3) const value_fontColor_value_element_3 = unsafeCast(value_fontColor_value_element) valueSerializer.writeResource(value_fontColor_value_element_3) @@ -2211,7 +2218,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2221,7 +2228,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -2254,17 +2261,17 @@ export class Serializer extends SerializerBase { const value_fontColor_0 = unsafeCast(value_fontColor) valueSerializer.writeInt32(value_fontColor_0) } - else if (((RuntimeType.NUMBER == value_fontColor_type))) { + else if (RuntimeType.NUMBER == value_fontColor_type) { valueSerializer.writeInt8(1) const value_fontColor_1 = unsafeCast(value_fontColor) valueSerializer.writeNumber(value_fontColor_1) } - else if (((RuntimeType.STRING == value_fontColor_type))) { + else if (RuntimeType.STRING == value_fontColor_type) { valueSerializer.writeInt8(2) const value_fontColor_2 = unsafeCast(value_fontColor) valueSerializer.writeString(value_fontColor_2) } - else if (((RuntimeType.OBJECT == value_fontColor_type))) { + else if (RuntimeType.OBJECT == value_fontColor_type) { valueSerializer.writeInt8(3) const value_fontColor_3 = unsafeCast(value_fontColor) valueSerializer.writeResource(value_fontColor_3) @@ -2369,17 +2376,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -2398,7 +2405,7 @@ export class Serializer extends SerializerBase { const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeLength(value_fontSize_value_0) } - else if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + else if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_1) @@ -2420,7 +2427,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2430,7 +2437,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -2444,12 +2451,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_1) @@ -2471,7 +2478,7 @@ export class Serializer extends SerializerBase { const value_textShadow_value = value_textShadow! let value_textShadow_value_type: int32 = RuntimeType.UNDEFINED value_textShadow_value_type = runtimeType(value_textShadow_value) - if (((RuntimeType.OBJECT) == (value_textShadow_value_type)) && (((value_textShadow_value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_textShadow_value_type)) && ((value_textShadow_value!.hasOwnProperty("radius")))) { valueSerializer.writeInt8(0) const value_textShadow_value_0 = unsafeCast(value_textShadow_value) valueSerializer.writeShadowOptions(value_textShadow_value_0) @@ -2494,12 +2501,12 @@ export class Serializer extends SerializerBase { const value_letterSpacing_value = value_letterSpacing! let value_letterSpacing_value_type: int32 = RuntimeType.UNDEFINED value_letterSpacing_value_type = runtimeType(value_letterSpacing_value) - if (((RuntimeType.NUMBER == value_letterSpacing_value_type))) { + if (RuntimeType.NUMBER == value_letterSpacing_value_type) { valueSerializer.writeInt8(0) const value_letterSpacing_value_0 = unsafeCast(value_letterSpacing_value) valueSerializer.writeNumber(value_letterSpacing_value_0) } - else if (((RuntimeType.STRING == value_letterSpacing_value_type))) { + else if (RuntimeType.STRING == value_letterSpacing_value_type) { valueSerializer.writeInt8(1) const value_letterSpacing_value_1 = unsafeCast(value_letterSpacing_value) valueSerializer.writeString(value_letterSpacing_value_1) @@ -2513,17 +2520,17 @@ export class Serializer extends SerializerBase { const value_lineHeight_value = value_lineHeight! let value_lineHeight_value_type: int32 = RuntimeType.UNDEFINED value_lineHeight_value_type = runtimeType(value_lineHeight_value) - if (((RuntimeType.NUMBER == value_lineHeight_value_type))) { + if (RuntimeType.NUMBER == value_lineHeight_value_type) { valueSerializer.writeInt8(0) const value_lineHeight_value_0 = unsafeCast(value_lineHeight_value) valueSerializer.writeNumber(value_lineHeight_value_0) } - else if (((RuntimeType.STRING == value_lineHeight_value_type))) { + else if (RuntimeType.STRING == value_lineHeight_value_type) { valueSerializer.writeInt8(1) const value_lineHeight_value_1 = unsafeCast(value_lineHeight_value) valueSerializer.writeString(value_lineHeight_value_1) } - else if (((RuntimeType.OBJECT == value_lineHeight_value_type))) { + else if (RuntimeType.OBJECT == value_lineHeight_value_type) { valueSerializer.writeInt8(2) const value_lineHeight_value_2 = unsafeCast(value_lineHeight_value) valueSerializer.writeResource(value_lineHeight_value_2) @@ -2819,17 +2826,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -2848,17 +2855,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -2877,17 +2884,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = unsafeCast(value_strokeColor_value) valueSerializer.writeInt32(value_strokeColor_value_0) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1) const value_strokeColor_value_1 = unsafeCast(value_strokeColor_value) valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2) const value_strokeColor_value_2 = unsafeCast(value_strokeColor_value) valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3) const value_strokeColor_value_3 = unsafeCast(value_strokeColor_value) valueSerializer.writeResource(value_strokeColor_value_3) @@ -2955,17 +2962,17 @@ export class Serializer extends SerializerBase { const value_textColor_value_0 = unsafeCast(value_textColor_value) valueSerializer.writeInt32(value_textColor_value_0) } - else if (((RuntimeType.NUMBER == value_textColor_value_type))) { + else if (RuntimeType.NUMBER == value_textColor_value_type) { valueSerializer.writeInt8(1) const value_textColor_value_1 = unsafeCast(value_textColor_value) valueSerializer.writeNumber(value_textColor_value_1) } - else if (((RuntimeType.STRING == value_textColor_value_type))) { + else if (RuntimeType.STRING == value_textColor_value_type) { valueSerializer.writeInt8(2) const value_textColor_value_2 = unsafeCast(value_textColor_value) valueSerializer.writeString(value_textColor_value_2) } - else if (((RuntimeType.OBJECT == value_textColor_value_type))) { + else if (RuntimeType.OBJECT == value_textColor_value_type) { valueSerializer.writeInt8(3) const value_textColor_value_3 = unsafeCast(value_textColor_value) valueSerializer.writeResource(value_textColor_value_3) @@ -3081,12 +3088,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type: int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0) const value_centerX_value_0 = unsafeCast(value_centerX_value) valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1) const value_centerX_value_1 = unsafeCast(value_centerX_value) valueSerializer.writeString(value_centerX_value_1) @@ -3100,12 +3107,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type: int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0) const value_centerY_value_0 = unsafeCast(value_centerY_value) valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1) const value_centerY_value_1 = unsafeCast(value_centerY_value) valueSerializer.writeString(value_centerY_value_1) @@ -3130,12 +3137,12 @@ export class Serializer extends SerializerBase { const value_angle = value.angle let value_angle_type: int32 = RuntimeType.UNDEFINED value_angle_type = runtimeType(value_angle) - if (((RuntimeType.NUMBER == value_angle_type))) { + if (RuntimeType.NUMBER == value_angle_type) { valueSerializer.writeInt8(0) const value_angle_0 = unsafeCast(value_angle) valueSerializer.writeNumber(value_angle_0) } - else if (((RuntimeType.STRING == value_angle_type))) { + else if (RuntimeType.STRING == value_angle_type) { valueSerializer.writeInt8(1) const value_angle_1 = unsafeCast(value_angle) valueSerializer.writeString(value_angle_1) @@ -3175,12 +3182,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type: int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0) const value_centerX_value_0 = unsafeCast(value_centerX_value) valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1) const value_centerX_value_1 = unsafeCast(value_centerX_value) valueSerializer.writeString(value_centerX_value_1) @@ -3194,12 +3201,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type: int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0) const value_centerY_value_0 = unsafeCast(value_centerY_value) valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1) const value_centerY_value_1 = unsafeCast(value_centerY_value) valueSerializer.writeString(value_centerY_value_1) @@ -3216,12 +3223,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type: int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0) const value_x_value_0 = unsafeCast(value_x_value) valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1) const value_x_value_1 = unsafeCast(value_x_value) valueSerializer.writeString(value_x_value_1) @@ -3235,12 +3242,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type: int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0) const value_y_value_0 = unsafeCast(value_y_value) valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1) const value_y_value_1 = unsafeCast(value_y_value) valueSerializer.writeString(value_y_value_1) @@ -3254,12 +3261,12 @@ export class Serializer extends SerializerBase { const value_z_value = value_z! let value_z_value_type: int32 = RuntimeType.UNDEFINED value_z_value_type = runtimeType(value_z_value) - if (((RuntimeType.NUMBER == value_z_value_type))) { + if (RuntimeType.NUMBER == value_z_value_type) { valueSerializer.writeInt8(0) const value_z_value_0 = unsafeCast(value_z_value) valueSerializer.writeNumber(value_z_value_0) } - else if (((RuntimeType.STRING == value_z_value_type))) { + else if (RuntimeType.STRING == value_z_value_type) { valueSerializer.writeInt8(1) const value_z_value_1 = unsafeCast(value_z_value) valueSerializer.writeString(value_z_value_1) @@ -3276,12 +3283,12 @@ export class Serializer extends SerializerBase { const value_angle_value = value_angle! let value_angle_value_type: int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { valueSerializer.writeInt8(0) const value_angle_value_0 = unsafeCast(value_angle_value) valueSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { valueSerializer.writeInt8(1) const value_angle_value_1 = unsafeCast(value_angle_value) valueSerializer.writeString(value_angle_value_1) @@ -3307,17 +3314,17 @@ export class Serializer extends SerializerBase { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) valueSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { valueSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) valueSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { valueSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) valueSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { valueSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) valueSerializer.writeResource(value_colors_element_0_3) @@ -3415,12 +3422,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -3438,17 +3445,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -3467,17 +3474,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -3491,17 +3498,17 @@ export class Serializer extends SerializerBase { const value_dx = value.dx let value_dx_type: int32 = RuntimeType.UNDEFINED value_dx_type = runtimeType(value_dx) - if (((RuntimeType.NUMBER == value_dx_type))) { + if (RuntimeType.NUMBER == value_dx_type) { valueSerializer.writeInt8(0) const value_dx_0 = unsafeCast(value_dx) valueSerializer.writeNumber(value_dx_0) } - else if (((RuntimeType.STRING == value_dx_type))) { + else if (RuntimeType.STRING == value_dx_type) { valueSerializer.writeInt8(1) const value_dx_1 = unsafeCast(value_dx) valueSerializer.writeString(value_dx_1) } - else if (((RuntimeType.OBJECT == value_dx_type))) { + else if (RuntimeType.OBJECT == value_dx_type) { valueSerializer.writeInt8(2) const value_dx_2 = unsafeCast(value_dx) valueSerializer.writeResource(value_dx_2) @@ -3509,17 +3516,17 @@ export class Serializer extends SerializerBase { const value_dy = value.dy let value_dy_type: int32 = RuntimeType.UNDEFINED value_dy_type = runtimeType(value_dy) - if (((RuntimeType.NUMBER == value_dy_type))) { + if (RuntimeType.NUMBER == value_dy_type) { valueSerializer.writeInt8(0) const value_dy_0 = unsafeCast(value_dy) valueSerializer.writeNumber(value_dy_0) } - else if (((RuntimeType.STRING == value_dy_type))) { + else if (RuntimeType.STRING == value_dy_type) { valueSerializer.writeInt8(1) const value_dy_1 = unsafeCast(value_dy) valueSerializer.writeString(value_dy_1) } - else if (((RuntimeType.OBJECT == value_dy_type))) { + else if (RuntimeType.OBJECT == value_dy_type) { valueSerializer.writeInt8(2) const value_dy_2 = unsafeCast(value_dy) valueSerializer.writeResource(value_dy_2) @@ -3554,12 +3561,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -3792,6 +3799,19 @@ export class Serializer extends SerializerBase { const value__DrawContextStub = value._DrawContextStub valueSerializer.writeString(value__DrawContextStub) } + writeCustomSpanMetrics(value: CustomSpanMetrics): void { + let valueSerializer: Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + let value_height_type: int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer: Serializer = this const value_fontSize = value.fontSize @@ -3823,17 +3843,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -3924,6 +3944,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWaterFlowAttribute(value: WaterFlowAttribute): void { + } writeWaterFlowSections(value: WaterFlowSections): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -4075,17 +4097,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -4113,17 +4135,17 @@ export class Serializer extends SerializerBase { const value_shown = value.shown let value_shown_type: int32 = RuntimeType.UNDEFINED value_shown_type = runtimeType(value_shown) - if (((RuntimeType.STRING == value_shown_type))) { + if (RuntimeType.STRING == value_shown_type) { valueSerializer.writeInt8(0) const value_shown_0 = unsafeCast(value_shown) valueSerializer.writeString(value_shown_0) } - else if (((RuntimeType.OBJECT) == (value_shown_type)) && (((value_shown!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_shown_type)) && ((value_shown!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_shown_1 = unsafeCast(value_shown) valueSerializer.writePixelMap(value_shown_1) } - else if (((RuntimeType.OBJECT) == (value_shown_type)) && (((value_shown!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_shown_type)) && ((value_shown!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_shown_2 = unsafeCast(value_shown) valueSerializer.writeResource(value_shown_2) @@ -4131,17 +4153,17 @@ export class Serializer extends SerializerBase { const value_hidden = value.hidden let value_hidden_type: int32 = RuntimeType.UNDEFINED value_hidden_type = runtimeType(value_hidden) - if (((RuntimeType.STRING == value_hidden_type))) { + if (RuntimeType.STRING == value_hidden_type) { valueSerializer.writeInt8(0) const value_hidden_0 = unsafeCast(value_hidden) valueSerializer.writeString(value_hidden_0) } - else if (((RuntimeType.OBJECT) == (value_hidden_type)) && (((value_hidden!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_hidden_type)) && ((value_hidden!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_hidden_1 = unsafeCast(value_hidden) valueSerializer.writePixelMap(value_hidden_1) } - else if (((RuntimeType.OBJECT) == (value_hidden_type)) && (((value_hidden!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_hidden_type)) && ((value_hidden!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_hidden_2 = unsafeCast(value_hidden) valueSerializer.writeResource(value_hidden_2) @@ -4154,17 +4176,17 @@ export class Serializer extends SerializerBase { const value_switching_value = value_switching! let value_switching_value_type: int32 = RuntimeType.UNDEFINED value_switching_value_type = runtimeType(value_switching_value) - if (((RuntimeType.STRING == value_switching_value_type))) { + if (RuntimeType.STRING == value_switching_value_type) { valueSerializer.writeInt8(0) const value_switching_value_0 = unsafeCast(value_switching_value) valueSerializer.writeString(value_switching_value_0) } - else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && (((value_switching_value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && ((value_switching_value!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_switching_value_1 = unsafeCast(value_switching_value) valueSerializer.writePixelMap(value_switching_value_1) } - else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && (((value_switching_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && ((value_switching_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_switching_value_2 = unsafeCast(value_switching_value) valueSerializer.writeResource(value_switching_value_2) @@ -4254,6 +4276,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_lock_value) } } + writeWindowSceneAttribute(value: WindowSceneAttribute): void { + } + writeWebAttribute(value: WebAttribute): void { + } writeSelectionMenuOptionsExt(value: SelectionMenuOptionsExt): void { let valueSerializer: Serializer = this const value_onAppear = value.onAppear @@ -4750,6 +4776,23 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWebCookie(value: WebCookie): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeScreenCaptureConfig(value: ScreenCaptureConfig): void { let valueSerializer: Serializer = this const value_captureMode = value.captureMode @@ -4902,17 +4945,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -4966,12 +5009,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -5046,7 +5089,7 @@ export class Serializer extends SerializerBase { } } } - else if (((RuntimeType.OBJECT) == (value_range_type)) && (((value_range!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_range_type)) && ((value_range!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_range_2 = unsafeCast(value_range) valueSerializer.writeResource(value_range_2) @@ -5077,12 +5120,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type: int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0) const value_value_value_0 = unsafeCast(value_value_value) valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1) const value_value_value_1 = unsafeCast>(value_value_value) valueSerializer.writeInt32(value_value_value_1.length) @@ -5100,12 +5143,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type: int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0) const value_selected_value_0 = unsafeCast(value_selected_value) valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1) const value_selected_value_1 = unsafeCast>(value_selected_value) valueSerializer.writeInt32(value_selected_value_1.length) @@ -5123,12 +5166,12 @@ export class Serializer extends SerializerBase { const value_defaultPickerItemHeight_value = value_defaultPickerItemHeight! let value_defaultPickerItemHeight_value_type: int32 = RuntimeType.UNDEFINED value_defaultPickerItemHeight_value_type = runtimeType(value_defaultPickerItemHeight_value) - if (((RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type))) { + if (RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(0) const value_defaultPickerItemHeight_value_0 = unsafeCast(value_defaultPickerItemHeight_value) valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0) } - else if (((RuntimeType.STRING == value_defaultPickerItemHeight_value_type))) { + else if (RuntimeType.STRING == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(1) const value_defaultPickerItemHeight_value_1 = unsafeCast(value_defaultPickerItemHeight_value) valueSerializer.writeString(value_defaultPickerItemHeight_value_1) @@ -5246,17 +5289,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -5310,12 +5353,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -5361,17 +5404,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -5394,6 +5437,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeTextInputAttribute(value: TextInputAttribute): void { + } writeInputCounterOptions(value: InputCounterOptions): void { let valueSerializer: Serializer = this const value_thresholdPercentage = value.thresholdPercentage @@ -5439,17 +5484,17 @@ export class Serializer extends SerializerBase { const value_typing_value_0 = unsafeCast(value_typing_value) valueSerializer.writeInt32(value_typing_value_0) } - else if (((RuntimeType.NUMBER == value_typing_value_type))) { + else if (RuntimeType.NUMBER == value_typing_value_type) { valueSerializer.writeInt8(1) const value_typing_value_1 = unsafeCast(value_typing_value) valueSerializer.writeNumber(value_typing_value_1) } - else if (((RuntimeType.STRING == value_typing_value_type))) { + else if (RuntimeType.STRING == value_typing_value_type) { valueSerializer.writeInt8(2) const value_typing_value_2 = unsafeCast(value_typing_value) valueSerializer.writeString(value_typing_value_2) } - else if (((RuntimeType.OBJECT == value_typing_value_type))) { + else if (RuntimeType.OBJECT == value_typing_value_type) { valueSerializer.writeInt8(3) const value_typing_value_3 = unsafeCast(value_typing_value) valueSerializer.writeResource(value_typing_value_3) @@ -5468,17 +5513,17 @@ export class Serializer extends SerializerBase { const value_normal_value_0 = unsafeCast(value_normal_value) valueSerializer.writeInt32(value_normal_value_0) } - else if (((RuntimeType.NUMBER == value_normal_value_type))) { + else if (RuntimeType.NUMBER == value_normal_value_type) { valueSerializer.writeInt8(1) const value_normal_value_1 = unsafeCast(value_normal_value) valueSerializer.writeNumber(value_normal_value_1) } - else if (((RuntimeType.STRING == value_normal_value_type))) { + else if (RuntimeType.STRING == value_normal_value_type) { valueSerializer.writeInt8(2) const value_normal_value_2 = unsafeCast(value_normal_value) valueSerializer.writeString(value_normal_value_2) } - else if (((RuntimeType.OBJECT == value_normal_value_type))) { + else if (RuntimeType.OBJECT == value_normal_value_type) { valueSerializer.writeInt8(3) const value_normal_value_3 = unsafeCast(value_normal_value) valueSerializer.writeResource(value_normal_value_3) @@ -5497,17 +5542,17 @@ export class Serializer extends SerializerBase { const value_error_value_0 = unsafeCast(value_error_value) valueSerializer.writeInt32(value_error_value_0) } - else if (((RuntimeType.NUMBER == value_error_value_type))) { + else if (RuntimeType.NUMBER == value_error_value_type) { valueSerializer.writeInt8(1) const value_error_value_1 = unsafeCast(value_error_value) valueSerializer.writeNumber(value_error_value_1) } - else if (((RuntimeType.STRING == value_error_value_type))) { + else if (RuntimeType.STRING == value_error_value_type) { valueSerializer.writeInt8(2) const value_error_value_2 = unsafeCast(value_error_value) valueSerializer.writeString(value_error_value_2) } - else if (((RuntimeType.OBJECT == value_error_value_type))) { + else if (RuntimeType.OBJECT == value_error_value_type) { valueSerializer.writeInt8(3) const value_error_value_3 = unsafeCast(value_error_value) valueSerializer.writeResource(value_error_value_3) @@ -5526,17 +5571,17 @@ export class Serializer extends SerializerBase { const value_disable_value_0 = unsafeCast(value_disable_value) valueSerializer.writeInt32(value_disable_value_0) } - else if (((RuntimeType.NUMBER == value_disable_value_type))) { + else if (RuntimeType.NUMBER == value_disable_value_type) { valueSerializer.writeInt8(1) const value_disable_value_1 = unsafeCast(value_disable_value) valueSerializer.writeNumber(value_disable_value_1) } - else if (((RuntimeType.STRING == value_disable_value_type))) { + else if (RuntimeType.STRING == value_disable_value_type) { valueSerializer.writeInt8(2) const value_disable_value_2 = unsafeCast(value_disable_value) valueSerializer.writeString(value_disable_value_2) } - else if (((RuntimeType.OBJECT == value_disable_value_type))) { + else if (RuntimeType.OBJECT == value_disable_value_type) { valueSerializer.writeInt8(3) const value_disable_value_3 = unsafeCast(value_disable_value) valueSerializer.writeResource(value_disable_value_3) @@ -5595,12 +5640,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type: int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0) const value_content_0 = unsafeCast(value_content) valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1) const value_content_1 = unsafeCast(value_content) valueSerializer.writeResource(value_content_1) @@ -5613,12 +5658,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -5627,6 +5672,59 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeTextMenuItemId(value_id) } + writeLineMetrics(value: LineMetrics): void { + let valueSerializer: Serializer = this + const value__LineMetricsStub = value._LineMetricsStub + valueSerializer.writeString(value__LineMetricsStub) + } + writePositionWithAffinity(value: PositionWithAffinity): void { + let valueSerializer: Serializer = this + const value_position = value.position + valueSerializer.writeNumber(value_position) + const value_affinity = value.affinity + valueSerializer.writeAffinity(value_affinity) + } + writeMutableStyledString(value: MutableStyledString): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writePreviewText(value: PreviewText): void { + let valueSerializer: Serializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeLayoutManager(value: LayoutManager): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeTextClockController(value: TextClockController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -5644,6 +5742,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAreaAttribute(value: TextAreaAttribute): void { + } writeTextAreaController(value: TextAreaController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -5661,6 +5761,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAttribute(value: TextAttribute): void { + } writeSelectionMenuOptions(value: SelectionMenuOptions): void { let valueSerializer: Serializer = this const value_onAppear = value.onAppear @@ -5726,23 +5828,23 @@ export class Serializer extends SerializerBase { const value__icon_value = value__icon! let value__icon_value_type: int32 = RuntimeType.UNDEFINED value__icon_value_type = runtimeType(value__icon_value) - if ((((RuntimeType.STRING == value__icon_value_type))) || (((RuntimeType.OBJECT == value__icon_value_type)))) { + if ((RuntimeType.STRING == value__icon_value_type) || (RuntimeType.OBJECT == value__icon_value_type)) { valueSerializer.writeInt8(0) const value__icon_value_0 = unsafeCast(value__icon_value) let value__icon_value_0_type: int32 = RuntimeType.UNDEFINED value__icon_value_0_type = runtimeType(value__icon_value_0) - if (((RuntimeType.STRING == value__icon_value_0_type))) { + if (RuntimeType.STRING == value__icon_value_0_type) { valueSerializer.writeInt8(0) const value__icon_value_0_0 = unsafeCast(value__icon_value_0) valueSerializer.writeString(value__icon_value_0_0) } - else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { + else if (RuntimeType.OBJECT == value__icon_value_0_type) { valueSerializer.writeInt8(1) const value__icon_value_0_1 = unsafeCast(value__icon_value_0) valueSerializer.writeResource(value__icon_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (((value__icon_value!.hasOwnProperty("normal"))))) { + else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && ((value__icon_value!.hasOwnProperty("normal")))) { valueSerializer.writeInt8(1) const value__icon_value_1 = unsafeCast(value__icon_value) valueSerializer.writeTabBarSymbol(value__icon_value_1) @@ -5756,12 +5858,12 @@ export class Serializer extends SerializerBase { const value__text_value = value__text! let value__text_value_type: int32 = RuntimeType.UNDEFINED value__text_value_type = runtimeType(value__text_value) - if (((RuntimeType.STRING == value__text_value_type))) { + if (RuntimeType.STRING == value__text_value_type) { valueSerializer.writeInt8(0) const value__text_value_0 = unsafeCast(value__text_value) valueSerializer.writeString(value__text_value_0) } - else if (((RuntimeType.OBJECT == value__text_value_type))) { + else if (RuntimeType.OBJECT == value__text_value_type) { valueSerializer.writeInt8(1) const value__text_value_1 = unsafeCast(value__text_value) valueSerializer.writeResource(value__text_value_1) @@ -5824,7 +5926,7 @@ export class Serializer extends SerializerBase { const value__padding_value_1 = unsafeCast(value__padding_value) valueSerializer.writeLength(value__padding_value_1) } - else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && ((value__padding_value!.hasOwnProperty("stub")))) { valueSerializer.writeInt8(2) const value__padding_value_2 = unsafeCast(value__padding_value) valueSerializer.writeLocalizedPadding(value__padding_value_2) @@ -5881,17 +5983,17 @@ export class Serializer extends SerializerBase { const value__content_value = value__content! let value__content_value_type: int32 = RuntimeType.UNDEFINED value__content_value_type = runtimeType(value__content_value) - if (((RuntimeType.STRING == value__content_value_type))) { + if (RuntimeType.STRING == value__content_value_type) { valueSerializer.writeInt8(0) const value__content_value_0 = unsafeCast(value__content_value) valueSerializer.writeString(value__content_value_0) } - else if (((RuntimeType.OBJECT) == (value__content_value_type)) && (((value__content_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value__content_value_type)) && ((value__content_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value__content_value_1 = unsafeCast(value__content_value) valueSerializer.writeResource(value__content_value_1) } - else if (((RuntimeType.OBJECT) == (value__content_value_type)) && (((value__content_value!.hasOwnProperty("_ComponentContentStub"))))) { + else if (((RuntimeType.OBJECT) == (value__content_value_type)) && ((value__content_value!.hasOwnProperty("_ComponentContentStub")))) { valueSerializer.writeInt8(2) const value__content_value_2 = unsafeCast(value__content_value) valueSerializer.writeComponentContent(value__content_value_2) @@ -5984,7 +6086,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value__padding_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && ((value__padding_value!.hasOwnProperty("stub")))) { valueSerializer.writeInt8(1) const value__padding_value_1 = unsafeCast(value__padding_value) valueSerializer.writeLocalizedPadding(value__padding_value_1) @@ -6009,12 +6111,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -6028,18 +6130,20 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) } } } + writeTabsAttribute(value: TabsAttribute): void { + } writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { let valueSerializer: Serializer = this const value_colorMode = value.colorMode @@ -6095,17 +6199,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = unsafeCast(value_inactiveColor_value) valueSerializer.writeInt32(value_inactiveColor_value_0) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1) const value_inactiveColor_value_1 = unsafeCast(value_inactiveColor_value) valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2) const value_inactiveColor_value_2 = unsafeCast(value_inactiveColor_value) valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3) const value_inactiveColor_value_3 = unsafeCast(value_inactiveColor_value) valueSerializer.writeResource(value_inactiveColor_value_3) @@ -6161,6 +6265,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeSymbolGlyphAttribute(value: SymbolGlyphAttribute): void { + } writeSymbolEffect(value: SymbolEffect): void { } writeDigitIndicator(value: DigitIndicator): void { @@ -6226,17 +6332,17 @@ export class Serializer extends SerializerBase { const value__fontColor_value_0 = unsafeCast(value__fontColor_value) valueSerializer.writeInt32(value__fontColor_value_0) } - else if (((RuntimeType.NUMBER == value__fontColor_value_type))) { + else if (RuntimeType.NUMBER == value__fontColor_value_type) { valueSerializer.writeInt8(1) const value__fontColor_value_1 = unsafeCast(value__fontColor_value) valueSerializer.writeNumber(value__fontColor_value_1) } - else if (((RuntimeType.STRING == value__fontColor_value_type))) { + else if (RuntimeType.STRING == value__fontColor_value_type) { valueSerializer.writeInt8(2) const value__fontColor_value_2 = unsafeCast(value__fontColor_value) valueSerializer.writeString(value__fontColor_value_2) } - else if (((RuntimeType.OBJECT == value__fontColor_value_type))) { + else if (RuntimeType.OBJECT == value__fontColor_value_type) { valueSerializer.writeInt8(3) const value__fontColor_value_3 = unsafeCast(value__fontColor_value) valueSerializer.writeResource(value__fontColor_value_3) @@ -6255,17 +6361,17 @@ export class Serializer extends SerializerBase { const value__selectedFontColor_value_0 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeInt32(value__selectedFontColor_value_0) } - else if (((RuntimeType.NUMBER == value__selectedFontColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedFontColor_value_type) { valueSerializer.writeInt8(1) const value__selectedFontColor_value_1 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeNumber(value__selectedFontColor_value_1) } - else if (((RuntimeType.STRING == value__selectedFontColor_value_type))) { + else if (RuntimeType.STRING == value__selectedFontColor_value_type) { valueSerializer.writeInt8(2) const value__selectedFontColor_value_2 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeString(value__selectedFontColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedFontColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedFontColor_value_type) { valueSerializer.writeInt8(3) const value__selectedFontColor_value_3 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeResource(value__selectedFontColor_value_3) @@ -6391,17 +6497,17 @@ export class Serializer extends SerializerBase { const value__color_value_0 = unsafeCast(value__color_value) valueSerializer.writeInt32(value__color_value_0) } - else if (((RuntimeType.NUMBER == value__color_value_type))) { + else if (RuntimeType.NUMBER == value__color_value_type) { valueSerializer.writeInt8(1) const value__color_value_1 = unsafeCast(value__color_value) valueSerializer.writeNumber(value__color_value_1) } - else if (((RuntimeType.STRING == value__color_value_type))) { + else if (RuntimeType.STRING == value__color_value_type) { valueSerializer.writeInt8(2) const value__color_value_2 = unsafeCast(value__color_value) valueSerializer.writeString(value__color_value_2) } - else if (((RuntimeType.OBJECT == value__color_value_type))) { + else if (RuntimeType.OBJECT == value__color_value_type) { valueSerializer.writeInt8(3) const value__color_value_3 = unsafeCast(value__color_value) valueSerializer.writeResource(value__color_value_3) @@ -6420,17 +6526,17 @@ export class Serializer extends SerializerBase { const value__selectedColor_value_0 = unsafeCast(value__selectedColor_value) valueSerializer.writeInt32(value__selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value__selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedColor_value_type) { valueSerializer.writeInt8(1) const value__selectedColor_value_1 = unsafeCast(value__selectedColor_value) valueSerializer.writeNumber(value__selectedColor_value_1) } - else if (((RuntimeType.STRING == value__selectedColor_value_type))) { + else if (RuntimeType.STRING == value__selectedColor_value_type) { valueSerializer.writeInt8(2) const value__selectedColor_value_2 = unsafeCast(value__selectedColor_value) valueSerializer.writeString(value__selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedColor_value_type) { valueSerializer.writeInt8(3) const value__selectedColor_value_3 = unsafeCast(value__selectedColor_value) valueSerializer.writeResource(value__selectedColor_value_3) @@ -6445,17 +6551,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value) } } + writeSwiperAttribute(value: SwiperAttribute): void { + } writeSwiperAutoFill(value: SwiperAutoFill): void { let valueSerializer: Serializer = this const value_minSize = value.minSize let value_minSize_type: int32 = RuntimeType.UNDEFINED value_minSize_type = runtimeType(value_minSize) - if (((RuntimeType.STRING == value_minSize_type))) { + if (RuntimeType.STRING == value_minSize_type) { valueSerializer.writeInt8(0) const value_minSize_0 = unsafeCast(value_minSize) valueSerializer.writeString(value_minSize_0) } - else if (((RuntimeType.NUMBER == value_minSize_type))) { + else if (RuntimeType.NUMBER == value_minSize_type) { valueSerializer.writeInt8(1) const value_minSize_1 = unsafeCast(value_minSize) valueSerializer.writeNumber(value_minSize_1) @@ -6500,17 +6608,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -6537,23 +6645,29 @@ export class Serializer extends SerializerBase { const value_arrowColor_value_0 = unsafeCast(value_arrowColor_value) valueSerializer.writeInt32(value_arrowColor_value_0) } - else if (((RuntimeType.NUMBER == value_arrowColor_value_type))) { + else if (RuntimeType.NUMBER == value_arrowColor_value_type) { valueSerializer.writeInt8(1) const value_arrowColor_value_1 = unsafeCast(value_arrowColor_value) valueSerializer.writeNumber(value_arrowColor_value_1) } - else if (((RuntimeType.STRING == value_arrowColor_value_type))) { + else if (RuntimeType.STRING == value_arrowColor_value_type) { valueSerializer.writeInt8(2) const value_arrowColor_value_2 = unsafeCast(value_arrowColor_value) valueSerializer.writeString(value_arrowColor_value_2) } - else if (((RuntimeType.OBJECT == value_arrowColor_value_type))) { + else if (RuntimeType.OBJECT == value_arrowColor_value_type) { valueSerializer.writeInt8(3) const value_arrowColor_value_3 = unsafeCast(value_arrowColor_value) valueSerializer.writeResource(value_arrowColor_value_3) } } } + writeSliderAttribute(value: SliderAttribute): void { + } + writeShapeAttribute(value: ShapeAttribute): void { + } + writeSelectAttribute(value: SelectAttribute): void { + } writeLocalizedEdges(value: LocalizedEdges): void { let valueSerializer: Serializer = this const value_top = value.top @@ -6624,6 +6738,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_right_value) } } + writeSearchAttribute(value: SearchAttribute): void { + } writeSearchButtonOptions(value: SearchButtonOptions): void { let valueSerializer: Serializer = this const value_fontSize = value.fontSize @@ -6647,17 +6763,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -6727,11 +6843,24 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeScrollAttribute(value: ScrollAttribute): void { + } writeEdgeEffectOptions(value: EdgeEffectOptions): void { let valueSerializer: Serializer = this const value_alwaysEnabled = value.alwaysEnabled valueSerializer.writeBoolean(value_alwaysEnabled) } + writeRectResult(value: RectResult): void { + let valueSerializer: Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeScrollToIndexOptions(value: ScrollToIndexOptions): void { let valueSerializer: Serializer = this const value_extraOffset = value.extraOffset @@ -6743,6 +6872,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value) } } + writeOffsetResult(value: OffsetResult): void { + let valueSerializer: Serializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } writeScrollPageOptions(value: ScrollPageOptions): void { let valueSerializer: Serializer = this const value_next = value.next @@ -6772,12 +6908,12 @@ export class Serializer extends SerializerBase { const value_xOffset = value.xOffset let value_xOffset_type: int32 = RuntimeType.UNDEFINED value_xOffset_type = runtimeType(value_xOffset) - if (((RuntimeType.NUMBER == value_xOffset_type))) { + if (RuntimeType.NUMBER == value_xOffset_type) { valueSerializer.writeInt8(0) const value_xOffset_0 = unsafeCast(value_xOffset) valueSerializer.writeNumber(value_xOffset_0) } - else if (((RuntimeType.STRING == value_xOffset_type))) { + else if (RuntimeType.STRING == value_xOffset_type) { valueSerializer.writeInt8(1) const value_xOffset_1 = unsafeCast(value_xOffset) valueSerializer.writeString(value_xOffset_1) @@ -6785,12 +6921,12 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset let value_yOffset_type: int32 = RuntimeType.UNDEFINED value_yOffset_type = runtimeType(value_yOffset) - if (((RuntimeType.NUMBER == value_yOffset_type))) { + if (RuntimeType.NUMBER == value_yOffset_type) { valueSerializer.writeInt8(0) const value_yOffset_0 = unsafeCast(value_yOffset) valueSerializer.writeNumber(value_yOffset_0) } - else if (((RuntimeType.STRING == value_yOffset_type))) { + else if (RuntimeType.STRING == value_yOffset_type) { valueSerializer.writeInt8(1) const value_yOffset_1 = unsafeCast(value_yOffset) valueSerializer.writeString(value_yOffset_1) @@ -6803,12 +6939,12 @@ export class Serializer extends SerializerBase { const value_animation_value = value_animation! let value_animation_value_type: int32 = RuntimeType.UNDEFINED value_animation_value_type = runtimeType(value_animation_value) - if (((RuntimeType.OBJECT == value_animation_value_type))) { + if (RuntimeType.OBJECT == value_animation_value_type) { valueSerializer.writeInt8(0) const value_animation_value_0 = unsafeCast(value_animation_value) valueSerializer.writeScrollAnimationOptions(value_animation_value_0) } - else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { + else if (RuntimeType.BOOLEAN == value_animation_value_type) { valueSerializer.writeInt8(1) const value_animation_value_1 = unsafeCast(value_animation_value) valueSerializer.writeBoolean(value_animation_value_1) @@ -6849,6 +6985,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeRichEditorAttribute(value: RichEditorAttribute): void { + } writePlaceholderStyle(value: PlaceholderStyle): void { let valueSerializer: Serializer = this const value_font = value.font @@ -6872,17 +7010,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -6909,12 +7047,12 @@ export class Serializer extends SerializerBase { const value_valueResourceStr_value = value_valueResourceStr! let value_valueResourceStr_value_type: int32 = RuntimeType.UNDEFINED value_valueResourceStr_value_type = runtimeType(value_valueResourceStr_value) - if (((RuntimeType.STRING == value_valueResourceStr_value_type))) { + if (RuntimeType.STRING == value_valueResourceStr_value_type) { valueSerializer.writeInt8(0) const value_valueResourceStr_value_0 = unsafeCast(value_valueResourceStr_value) valueSerializer.writeString(value_valueResourceStr_value_0) } - else if (((RuntimeType.OBJECT == value_valueResourceStr_value_type))) { + else if (RuntimeType.OBJECT == value_valueResourceStr_value_type) { valueSerializer.writeInt8(1) const value_valueResourceStr_value_1 = unsafeCast(value_valueResourceStr_value) valueSerializer.writeResource(value_valueResourceStr_value_1) @@ -7012,6 +7150,31 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_end_value) } } + writeRichEditorSelection(value: RichEditorSelection): void { + let valueSerializer: Serializer = this + const value_selection = value.selection + const value_selection_0 = value_selection[0] + valueSerializer.writeNumber(value_selection_0) + const value_selection_1 = value_selection[1] + valueSerializer.writeNumber(value_selection_1) + const value_spans = value.spans + valueSerializer.writeInt32(value_spans.length) + for (let i = 0; i < value_spans.length; i++) { + const value_spans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] + let value_spans_element_type: int32 = RuntimeType.UNDEFINED + value_spans_element_type = runtimeType(value_spans_element) + if (((RuntimeType.OBJECT) == (value_spans_element_type)) && ((value_spans_element!.hasOwnProperty("value")))) { + valueSerializer.writeInt8(0) + const value_spans_element_0 = unsafeCast(value_spans_element) + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) + } + else if (((RuntimeType.OBJECT) == (value_spans_element_type)) && ((value_spans_element!.hasOwnProperty("imageStyle")))) { + valueSerializer.writeInt8(1) + const value_spans_element_1 = unsafeCast(value_spans_element) + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) + } + } + } writeRichEditorParagraphStyleOptions(value: RichEditorParagraphStyleOptions): void { let valueSerializer: Serializer = this const value_start = value.start @@ -7217,12 +7380,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -7236,12 +7399,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -7255,12 +7418,12 @@ export class Serializer extends SerializerBase { const value_radiusWidth_value = value_radiusWidth! let value_radiusWidth_value_type: int32 = RuntimeType.UNDEFINED value_radiusWidth_value_type = runtimeType(value_radiusWidth_value) - if (((RuntimeType.NUMBER == value_radiusWidth_value_type))) { + if (RuntimeType.NUMBER == value_radiusWidth_value_type) { valueSerializer.writeInt8(0) const value_radiusWidth_value_0 = unsafeCast(value_radiusWidth_value) valueSerializer.writeNumber(value_radiusWidth_value_0) } - else if (((RuntimeType.STRING == value_radiusWidth_value_type))) { + else if (RuntimeType.STRING == value_radiusWidth_value_type) { valueSerializer.writeInt8(1) const value_radiusWidth_value_1 = unsafeCast(value_radiusWidth_value) valueSerializer.writeString(value_radiusWidth_value_1) @@ -7274,12 +7437,12 @@ export class Serializer extends SerializerBase { const value_radiusHeight_value = value_radiusHeight! let value_radiusHeight_value_type: int32 = RuntimeType.UNDEFINED value_radiusHeight_value_type = runtimeType(value_radiusHeight_value) - if (((RuntimeType.NUMBER == value_radiusHeight_value_type))) { + if (RuntimeType.NUMBER == value_radiusHeight_value_type) { valueSerializer.writeInt8(0) const value_radiusHeight_value_0 = unsafeCast(value_radiusHeight_value) valueSerializer.writeNumber(value_radiusHeight_value_0) } - else if (((RuntimeType.STRING == value_radiusHeight_value_type))) { + else if (RuntimeType.STRING == value_radiusHeight_value_type) { valueSerializer.writeInt8(1) const value_radiusHeight_value_1 = unsafeCast(value_radiusHeight_value) valueSerializer.writeString(value_radiusHeight_value_1) @@ -7296,12 +7459,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -7315,12 +7478,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -7334,17 +7497,17 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.STRING == value_radius_value_type))) { + else if (RuntimeType.STRING == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeString(value_radius_value_1) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(2) const value_radius_value_2 = unsafeCast>(value_radius_value) valueSerializer.writeInt32(value_radius_value_2.length) @@ -7352,12 +7515,12 @@ export class Serializer extends SerializerBase { const value_radius_value_2_element: number | string = value_radius_value_2[i] let value_radius_value_2_element_type: int32 = RuntimeType.UNDEFINED value_radius_value_2_element_type = runtimeType(value_radius_value_2_element) - if (((RuntimeType.NUMBER == value_radius_value_2_element_type))) { + if (RuntimeType.NUMBER == value_radius_value_2_element_type) { valueSerializer.writeInt8(0) const value_radius_value_2_element_0 = unsafeCast(value_radius_value_2_element) valueSerializer.writeNumber(value_radius_value_2_element_0) } - else if (((RuntimeType.STRING == value_radius_value_2_element_type))) { + else if (RuntimeType.STRING == value_radius_value_2_element_type) { valueSerializer.writeInt8(1) const value_radius_value_2_element_1 = unsafeCast(value_radius_value_2_element) valueSerializer.writeString(value_radius_value_2_element_1) @@ -7424,17 +7587,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = unsafeCast(value_borderColor_value) valueSerializer.writeInt32(value_borderColor_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1 = unsafeCast(value_borderColor_value) valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_2 = unsafeCast(value_borderColor_value) valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_3 = unsafeCast(value_borderColor_value) valueSerializer.writeResource(value_borderColor_value_3) @@ -7477,17 +7640,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -7563,17 +7726,17 @@ export class Serializer extends SerializerBase { const value_strokeRadius_value = value_strokeRadius! let value_strokeRadius_value_type: int32 = RuntimeType.UNDEFINED value_strokeRadius_value_type = runtimeType(value_strokeRadius_value) - if (((RuntimeType.STRING == value_strokeRadius_value_type))) { + if (RuntimeType.STRING == value_strokeRadius_value_type) { valueSerializer.writeInt8(0) const value_strokeRadius_value_0 = unsafeCast(value_strokeRadius_value) valueSerializer.writeString(value_strokeRadius_value_0) } - else if (((RuntimeType.NUMBER == value_strokeRadius_value_type))) { + else if (RuntimeType.NUMBER == value_strokeRadius_value_type) { valueSerializer.writeInt8(1) const value_strokeRadius_value_1 = unsafeCast(value_strokeRadius_value) valueSerializer.writeNumber(value_strokeRadius_value_1) } - else if (((RuntimeType.OBJECT == value_strokeRadius_value_type))) { + else if (RuntimeType.OBJECT == value_strokeRadius_value_type) { valueSerializer.writeInt8(2) const value_strokeRadius_value_2 = unsafeCast(value_strokeRadius_value) valueSerializer.writeResource(value_strokeRadius_value_2) @@ -7602,17 +7765,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -7735,6 +7898,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_animated_value) } } + writeNavDestinationAttribute(value: NavDestinationAttribute): void { + } writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { let valueSerializer: Serializer = this const value_backgroundColor = value.backgroundColor @@ -7750,17 +7915,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7798,17 +7963,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7894,12 +8059,12 @@ export class Serializer extends SerializerBase { const value_main = value.main let value_main_type: int32 = RuntimeType.UNDEFINED value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { + if (RuntimeType.STRING == value_main_type) { valueSerializer.writeInt8(0) const value_main_0 = unsafeCast(value_main) valueSerializer.writeString(value_main_0) } - else if (((RuntimeType.OBJECT == value_main_type))) { + else if (RuntimeType.OBJECT == value_main_type) { valueSerializer.writeInt8(1) const value_main_1 = unsafeCast(value_main) valueSerializer.writeResource(value_main_1) @@ -7907,12 +8072,12 @@ export class Serializer extends SerializerBase { const value_sub = value.sub let value_sub_type: int32 = RuntimeType.UNDEFINED value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { + if (RuntimeType.STRING == value_sub_type) { valueSerializer.writeInt8(0) const value_sub_0 = unsafeCast(value_sub) valueSerializer.writeString(value_sub_0) } - else if (((RuntimeType.OBJECT == value_sub_type))) { + else if (RuntimeType.OBJECT == value_sub_type) { valueSerializer.writeInt8(1) const value_sub_1 = unsafeCast(value_sub) valueSerializer.writeResource(value_sub_1) @@ -7923,6 +8088,15 @@ export class Serializer extends SerializerBase { const value__SystemBarStyleStub = value._SystemBarStyleStub valueSerializer.writeString(value__SystemBarStyleStub) } + writeRouteMapConfig(value: RouteMapConfig): void { + let valueSerializer: Serializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_pageSourceFile = value.pageSourceFile + valueSerializer.writeString(value_pageSourceFile) + const value_data = value.data + valueSerializer.writeCustomObject("Object", value_data) + } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer: Serializer = this const value_startIcon = value.startIcon @@ -7933,12 +8107,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type: int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0) const value_startIcon_value_0 = unsafeCast(value_startIcon_value) valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1) const value_startIcon_value_1 = unsafeCast(value_startIcon_value) valueSerializer.writeResource(value_startIcon_value_1) @@ -7960,12 +8134,12 @@ export class Serializer extends SerializerBase { const value_content_value = value_content! let value_content_value_type: int32 = RuntimeType.UNDEFINED value_content_value_type = runtimeType(value_content_value) - if (((RuntimeType.STRING == value_content_value_type))) { + if (RuntimeType.STRING == value_content_value_type) { valueSerializer.writeInt8(0) const value_content_value_0 = unsafeCast(value_content_value) valueSerializer.writeString(value_content_value_0) } - else if (((RuntimeType.OBJECT == value_content_value_type))) { + else if (RuntimeType.OBJECT == value_content_value_type) { valueSerializer.writeInt8(1) const value_content_value_1 = unsafeCast(value_content_value) valueSerializer.writeResource(value_content_value_1) @@ -7979,12 +8153,12 @@ export class Serializer extends SerializerBase { const value_endIcon_value = value_endIcon! let value_endIcon_value_type: int32 = RuntimeType.UNDEFINED value_endIcon_value_type = runtimeType(value_endIcon_value) - if (((RuntimeType.STRING == value_endIcon_value_type))) { + if (RuntimeType.STRING == value_endIcon_value_type) { valueSerializer.writeInt8(0) const value_endIcon_value_0 = unsafeCast(value_endIcon_value) valueSerializer.writeString(value_endIcon_value_0) } - else if (((RuntimeType.OBJECT == value_endIcon_value_type))) { + else if (RuntimeType.OBJECT == value_endIcon_value_type) { valueSerializer.writeInt8(1) const value_endIcon_value_1 = unsafeCast(value_endIcon_value) valueSerializer.writeResource(value_endIcon_value_1) @@ -8006,12 +8180,12 @@ export class Serializer extends SerializerBase { const value_labelInfo_value = value_labelInfo! let value_labelInfo_value_type: int32 = RuntimeType.UNDEFINED value_labelInfo_value_type = runtimeType(value_labelInfo_value) - if (((RuntimeType.STRING == value_labelInfo_value_type))) { + if (RuntimeType.STRING == value_labelInfo_value_type) { valueSerializer.writeInt8(0) const value_labelInfo_value_0 = unsafeCast(value_labelInfo_value) valueSerializer.writeString(value_labelInfo_value_0) } - else if (((RuntimeType.OBJECT == value_labelInfo_value_type))) { + else if (RuntimeType.OBJECT == value_labelInfo_value_type) { valueSerializer.writeInt8(1) const value_labelInfo_value_1 = unsafeCast(value_labelInfo_value) valueSerializer.writeResource(value_labelInfo_value_1) @@ -8049,17 +8223,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -8132,17 +8306,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -8165,6 +8339,29 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeListAttribute(value: ListAttribute): void { + } + writeVisibleListContentInfo(value: VisibleListContentInfo): void { + let valueSerializer: Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_itemGroupArea = value.itemGroupArea + let value_itemGroupArea_type: int32 = RuntimeType.UNDEFINED + value_itemGroupArea_type = runtimeType(value_itemGroupArea) + valueSerializer.writeInt8(value_itemGroupArea_type) + if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { + const value_itemGroupArea_value = value_itemGroupArea! + valueSerializer.writeInt32(value_itemGroupArea_value) + } + const value_itemIndexInGroup = value.itemIndexInGroup + let value_itemIndexInGroup_type: int32 = RuntimeType.UNDEFINED + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) + valueSerializer.writeInt8(value_itemIndexInGroup_type) + if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { + const value_itemIndexInGroup_value = value_itemIndexInGroup! + valueSerializer.writeNumber(value_itemIndexInGroup_value) + } + } writeCloseSwipeActionOptions(value: CloseSwipeActionOptions): void { let valueSerializer: Serializer = this const value_onFinish = value.onFinish @@ -8221,6 +8418,42 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_reference_value) } } + writeGridAttribute(value: GridAttribute): void { + } + writePanGestureOptions(value: PanGestureOptions): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeEventTargetInfo(value: EventTargetInfo): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer: Serializer = this const value__WindowStatusTypeStub = value._WindowStatusTypeStub @@ -8431,17 +8664,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8495,12 +8728,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -8557,17 +8790,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2) const value_curve_value_2 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_2) @@ -8622,6 +8855,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } + writeComponent3DAttribute(value: Component3DAttribute): void { + } + writeContext(value: Context): void { + let valueSerializer: Serializer = this + const value__ContextStub = value._ContextStub + valueSerializer.writeString(value__ContextStub) + } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { @@ -8657,6 +8897,33 @@ export class Serializer extends SerializerBase { const value__RectShapeStub = value._RectShapeStub valueSerializer.writeString(value__RectShapeStub) } + writeCaretOffset(value: CaretOffset): void { + let valueSerializer: Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeDirectionalEdgesT(value: DirectionalEdgesT): void { + let valueSerializer: Serializer = this + const value_start = value.start + valueSerializer.writeNumber(value_start) + const value_end = value.end + valueSerializer.writeNumber(value_end) + const value_top = value.top + valueSerializer.writeNumber(value_top) + const value_bottom = value.bottom + valueSerializer.writeNumber(value_bottom) + } + writeMeasureResult(value: MeasureResult): void { + let valueSerializer: Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer: Serializer = this const value_minWidth = value.minWidth @@ -8718,17 +8985,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8806,17 +9073,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_3) @@ -8896,12 +9163,12 @@ export class Serializer extends SerializerBase { const value_showClose_value = value_showClose! let value_showClose_value_type: int32 = RuntimeType.UNDEFINED value_showClose_value_type = runtimeType(value_showClose_value) - if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + if (RuntimeType.BOOLEAN == value_showClose_value_type) { valueSerializer.writeInt8(0) const value_showClose_value_0 = unsafeCast(value_showClose_value) valueSerializer.writeBoolean(value_showClose_value_0) } - else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + else if (RuntimeType.OBJECT == value_showClose_value_type) { valueSerializer.writeInt8(1) const value_showClose_value_1 = unsafeCast(value_showClose_value) valueSerializer.writeResource(value_showClose_value_1) @@ -8923,12 +9190,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.OBJECT == value_title_value_type))) { + if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeSheetTitleOptions(value_title_value_0) } - else if (((RuntimeType.FUNCTION == value_title_value_type))) { + else if (RuntimeType.FUNCTION == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_title_value_1)) @@ -9037,7 +9304,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -9047,17 +9314,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -9079,17 +9346,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -9108,17 +9375,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -9137,17 +9404,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -9166,17 +9433,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -9197,12 +9464,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -9247,12 +9514,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -9338,17 +9605,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9453,12 +9720,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type: int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((RuntimeType.NUMBER == value_preview_value_type))) { + if (RuntimeType.NUMBER == value_preview_value_type) { valueSerializer.writeInt8(0) const value_preview_value_0 = unsafeCast(value_preview_value) valueSerializer.writeInt32(value_preview_value_0) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1) const value_preview_value_1 = unsafeCast(value_preview_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9611,17 +9878,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9694,12 +9961,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type: int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((RuntimeType.NUMBER == value_preview_value_type))) { + if (RuntimeType.NUMBER == value_preview_value_type) { valueSerializer.writeInt8(0) const value_preview_value_0 = unsafeCast(value_preview_value) valueSerializer.writeInt32(value_preview_value_0) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1) const value_preview_value_1 = unsafeCast(value_preview_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9852,17 +10119,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9900,12 +10167,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -9945,17 +10212,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_1) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_2) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_3) @@ -9974,17 +10241,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = unsafeCast(value_popupColor_value) valueSerializer.writeInt32(value_popupColor_value_0) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1) const value_popupColor_value_1 = unsafeCast(value_popupColor_value) valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2) const value_popupColor_value_2 = unsafeCast(value_popupColor_value) valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3) const value_popupColor_value_3 = unsafeCast(value_popupColor_value) valueSerializer.writeNumber(value_popupColor_value_3) @@ -10038,12 +10305,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type: int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0) const value_mask_value_0 = unsafeCast(value_mask_value) valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1) const value_mask_value_1 = unsafeCast<{ color: ResourceColor }>(value_mask_value) const value_mask_value_1_color = value_mask_value_1.color @@ -10054,17 +10321,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = unsafeCast(value_mask_value_1_color) valueSerializer.writeInt32(value_mask_value_1_color_0) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1) const value_mask_value_1_color_1 = unsafeCast(value_mask_value_1_color) valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2) const value_mask_value_1_color_2 = unsafeCast(value_mask_value_1_color) valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3) const value_mask_value_1_color_3 = unsafeCast(value_mask_value_1_color) valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10135,12 +10402,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -10178,12 +10445,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type: int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0) const value_onWillDismiss_value_0 = unsafeCast(value_onWillDismiss_value) valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1) const value_onWillDismiss_value_1 = unsafeCast<((parameter: DismissPopupAction) => void)>(value_onWillDismiss_value) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10280,12 +10547,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type: int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0) const value_mask_value_0 = unsafeCast(value_mask_value) valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1) const value_mask_value_1 = unsafeCast<{ color: ResourceColor }>(value_mask_value) const value_mask_value_1_color = value_mask_value_1.color @@ -10296,17 +10563,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = unsafeCast(value_mask_value_1_color) valueSerializer.writeInt32(value_mask_value_1_color_0) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1) const value_mask_value_1_color_1 = unsafeCast(value_mask_value_1_color) valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2) const value_mask_value_1_color_2 = unsafeCast(value_mask_value_1_color) valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3) const value_mask_value_1_color_3 = unsafeCast(value_mask_value_1_color) valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10358,17 +10625,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = unsafeCast(value_popupColor_value) valueSerializer.writeInt32(value_popupColor_value_0) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1) const value_popupColor_value_1 = unsafeCast(value_popupColor_value) valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2) const value_popupColor_value_2 = unsafeCast(value_popupColor_value) valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3) const value_popupColor_value_3 = unsafeCast(value_popupColor_value) valueSerializer.writeNumber(value_popupColor_value_3) @@ -10430,12 +10697,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -10465,12 +10732,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type: int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0) const value_onWillDismiss_value_0 = unsafeCast(value_onWillDismiss_value) valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1) const value_onWillDismiss_value_1 = unsafeCast<((parameter: DismissPopupAction) => void)>(value_onWillDismiss_value) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10565,12 +10832,12 @@ export class Serializer extends SerializerBase { const value_mode_value = value_mode! let value_mode_value_type: int32 = RuntimeType.UNDEFINED value_mode_value_type = runtimeType(value_mode_value) - if (((RuntimeType.NUMBER == value_mode_value_type))) { + if (RuntimeType.NUMBER == value_mode_value_type) { valueSerializer.writeInt8(0) const value_mode_value_0 = unsafeCast(value_mode_value) valueSerializer.writeInt32(value_mode_value_0) } - else if (((RuntimeType.OBJECT == value_mode_value_type))) { + else if (RuntimeType.OBJECT == value_mode_value_type) { valueSerializer.writeInt8(1) const value_mode_value_1 = unsafeCast>(value_mode_value) valueSerializer.writeInt32(value_mode_value_1.length) @@ -10596,12 +10863,12 @@ export class Serializer extends SerializerBase { const value_numberBadge_value = value_numberBadge! let value_numberBadge_value_type: int32 = RuntimeType.UNDEFINED value_numberBadge_value_type = runtimeType(value_numberBadge_value) - if (((RuntimeType.BOOLEAN == value_numberBadge_value_type))) { + if (RuntimeType.BOOLEAN == value_numberBadge_value_type) { valueSerializer.writeInt8(0) const value_numberBadge_value_0 = unsafeCast(value_numberBadge_value) valueSerializer.writeBoolean(value_numberBadge_value_0) } - else if (((RuntimeType.NUMBER == value_numberBadge_value_type))) { + else if (RuntimeType.NUMBER == value_numberBadge_value_type) { valueSerializer.writeInt8(1) const value_numberBadge_value_1 = unsafeCast(value_numberBadge_value) valueSerializer.writeNumber(value_numberBadge_value_1) @@ -10626,17 +10893,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2) const value_curve_value_2 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_2) @@ -10909,21 +11176,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeRotateOptions(value_rotate_value) } } - writeDrawingLattice(value: DrawingLattice): void { - let valueSerializer: Serializer = this - const value__DrawingLatticeStub = value._DrawingLatticeStub - valueSerializer.writeString(value__DrawingLatticeStub) - } - writeRectResult(value: RectResult): void { - let valueSerializer: Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_width = value.width - valueSerializer.writeNumber(value_width) - const value_height = value.height - valueSerializer.writeNumber(value_height) + writeDrawingLattice(value: DrawingLattice): void { + let valueSerializer: Serializer = this + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeDrawModifier(value: DrawModifier): void { let valueSerializer: Serializer = this @@ -10947,6 +11203,11 @@ export class Serializer extends SerializerBase { const value__IntentionCodeStub = value._IntentionCodeStub valueSerializer.writeString(value__IntentionCodeStub) } + writeSummary(value: Summary): void { + let valueSerializer: Serializer = this + const value__SummaryStub = value._SummaryStub + valueSerializer.writeString(value__SummaryStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -10964,6 +11225,29 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTouchObject(value: TouchObject): void { + let valueSerializer: Serializer = this + const value_type = value.type + valueSerializer.writeInt32(value_type) + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } writeColumnSplitDividerStyle(value: ColumnSplitDividerStyle): void { let valueSerializer: Serializer = this const value_startMargin = value.startMargin @@ -11006,17 +11290,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -11057,6 +11341,40 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeOffscreenCanvasRenderingContext2D(value: OffscreenCanvasRenderingContext2D): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeRenderingContextSettings(value: RenderingContextSettings): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeImageBitmap(value: ImageBitmap): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11074,6 +11392,35 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextMetrics(value: TextMetrics): void { + let valueSerializer: Serializer = this + const value_actualBoundingBoxAscent = value.actualBoundingBoxAscent + valueSerializer.writeNumber(value_actualBoundingBoxAscent) + const value_actualBoundingBoxDescent = value.actualBoundingBoxDescent + valueSerializer.writeNumber(value_actualBoundingBoxDescent) + const value_actualBoundingBoxLeft = value.actualBoundingBoxLeft + valueSerializer.writeNumber(value_actualBoundingBoxLeft) + const value_actualBoundingBoxRight = value.actualBoundingBoxRight + valueSerializer.writeNumber(value_actualBoundingBoxRight) + const value_alphabeticBaseline = value.alphabeticBaseline + valueSerializer.writeNumber(value_alphabeticBaseline) + const value_emHeightAscent = value.emHeightAscent + valueSerializer.writeNumber(value_emHeightAscent) + const value_emHeightDescent = value.emHeightDescent + valueSerializer.writeNumber(value_emHeightDescent) + const value_fontBoundingBoxAscent = value.fontBoundingBoxAscent + valueSerializer.writeNumber(value_fontBoundingBoxAscent) + const value_fontBoundingBoxDescent = value.fontBoundingBoxDescent + valueSerializer.writeNumber(value_fontBoundingBoxDescent) + const value_hangingBaseline = value.hangingBaseline + valueSerializer.writeNumber(value_hangingBaseline) + const value_ideographicBaseline = value.ideographicBaseline + valueSerializer.writeNumber(value_ideographicBaseline) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeImageData(value: ImageData): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11118,12 +11465,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type: int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0) const value_hintRadius_value_0 = unsafeCast(value_hintRadius_value) valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1) const value_hintRadius_value_1 = unsafeCast(value_hintRadius_value) valueSerializer.writeResource(value_hintRadius_value_1) @@ -11174,17 +11521,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11254,12 +11601,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -11282,6 +11629,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_hoverModeArea_value) } } + writeCalendarPickerAttribute(value: CalendarPickerAttribute): void { + } writeCalendarController(value: CalendarController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11327,17 +11676,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -11351,12 +11700,12 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type: int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0) const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeString(value_fontSize_value_1) @@ -11370,12 +11719,12 @@ export class Serializer extends SerializerBase { const value_badgeSize_value = value_badgeSize! let value_badgeSize_value_type: int32 = RuntimeType.UNDEFINED value_badgeSize_value_type = runtimeType(value_badgeSize_value) - if (((RuntimeType.NUMBER == value_badgeSize_value_type))) { + if (RuntimeType.NUMBER == value_badgeSize_value_type) { valueSerializer.writeInt8(0) const value_badgeSize_value_0 = unsafeCast(value_badgeSize_value) valueSerializer.writeNumber(value_badgeSize_value_0) } - else if (((RuntimeType.STRING == value_badgeSize_value_type))) { + else if (RuntimeType.STRING == value_badgeSize_value_type) { valueSerializer.writeInt8(1) const value_badgeSize_value_1 = unsafeCast(value_badgeSize_value) valueSerializer.writeString(value_badgeSize_value_1) @@ -11394,17 +11743,17 @@ export class Serializer extends SerializerBase { const value_badgeColor_value_0 = unsafeCast(value_badgeColor_value) valueSerializer.writeInt32(value_badgeColor_value_0) } - else if (((RuntimeType.NUMBER == value_badgeColor_value_type))) { + else if (RuntimeType.NUMBER == value_badgeColor_value_type) { valueSerializer.writeInt8(1) const value_badgeColor_value_1 = unsafeCast(value_badgeColor_value) valueSerializer.writeNumber(value_badgeColor_value_1) } - else if (((RuntimeType.STRING == value_badgeColor_value_type))) { + else if (RuntimeType.STRING == value_badgeColor_value_type) { valueSerializer.writeInt8(2) const value_badgeColor_value_2 = unsafeCast(value_badgeColor_value) valueSerializer.writeString(value_badgeColor_value_2) } - else if (((RuntimeType.OBJECT == value_badgeColor_value_type))) { + else if (RuntimeType.OBJECT == value_badgeColor_value_type) { valueSerializer.writeInt8(3) const value_badgeColor_value_3 = unsafeCast(value_badgeColor_value) valueSerializer.writeResource(value_badgeColor_value_3) @@ -11423,17 +11772,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = unsafeCast(value_borderColor_value) valueSerializer.writeInt32(value_borderColor_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1 = unsafeCast(value_borderColor_value) valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_2 = unsafeCast(value_borderColor_value) valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_3 = unsafeCast(value_borderColor_value) valueSerializer.writeResource(value_borderColor_value_3) @@ -11455,7 +11804,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -11465,13 +11814,15 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) } } } + writeAlphabetIndexerAttribute(value: AlphabetIndexerAttribute): void { + } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer: Serializer = this const value_title = value.title @@ -11482,12 +11833,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -11501,12 +11852,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -11515,12 +11866,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -11605,17 +11956,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11779,7 +12130,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -11789,17 +12140,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -11821,17 +12172,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -11850,17 +12201,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -11879,17 +12230,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -11908,17 +12259,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -11939,12 +12290,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -11989,12 +12340,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -12049,12 +12400,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -12068,12 +12419,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -12082,12 +12433,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -12172,17 +12523,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12346,7 +12697,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -12356,17 +12707,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12388,17 +12739,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12417,17 +12768,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -12446,17 +12797,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -12475,17 +12826,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -12506,12 +12857,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -12556,12 +12907,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -12606,12 +12957,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -12625,12 +12976,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -12639,12 +12990,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -12729,17 +13080,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12903,7 +13254,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -12913,17 +13264,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12945,17 +13296,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12974,17 +13325,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13003,17 +13354,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13032,17 +13383,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13063,12 +13414,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13113,12 +13464,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -13162,12 +13513,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -13180,12 +13531,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -13194,12 +13545,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -13287,17 +13638,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -13461,7 +13812,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -13471,17 +13822,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -13503,17 +13854,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -13532,17 +13883,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13561,17 +13912,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13590,17 +13941,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13621,12 +13972,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13671,12 +14022,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -13750,17 +14101,17 @@ export class Serializer extends SerializerBase { const value_curve = value.curve let value_curve_type: int32 = RuntimeType.UNDEFINED value_curve_type = runtimeType(value_curve) - if (((RuntimeType.NUMBER == value_curve_type))) { + if (RuntimeType.NUMBER == value_curve_type) { valueSerializer.writeInt8(0) const value_curve_0 = unsafeCast(value_curve) valueSerializer.writeInt32(value_curve_0) } - else if (((RuntimeType.STRING == value_curve_type))) { + else if (RuntimeType.STRING == value_curve_type) { valueSerializer.writeInt8(1) const value_curve_1 = unsafeCast(value_curve) valueSerializer.writeString(value_curve_1) } - else if (((RuntimeType.OBJECT == value_curve_type))) { + else if (RuntimeType.OBJECT == value_curve_type) { valueSerializer.writeInt8(2) const value_curve_2 = unsafeCast(value_curve) valueSerializer.writeICurve(value_curve_2) @@ -13866,23 +14217,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeMutableStyledString(value: MutableStyledString): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeUrlStyle(value: UrlStyle): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -13972,7 +14306,7 @@ export class Serializer extends SerializerBase { const value_leadingMargin_value_0 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLengthMetrics(value_leadingMargin_value_0) } - else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (((value_leadingMargin_value!.hasOwnProperty("pixelMap"))))) { + else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && ((value_leadingMargin_value!.hasOwnProperty("pixelMap")))) { valueSerializer.writeInt8(1) const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) @@ -14132,17 +14466,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -14156,12 +14490,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_1) @@ -14183,7 +14517,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -14193,7 +14527,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -14461,12 +14795,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type: int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0) const value_content_0 = unsafeCast(value_content) valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1) const value_content_1 = unsafeCast(value_content) valueSerializer.writeResource(value_content_1) @@ -14479,12 +14813,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type: int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0) const value_startIcon_value_0 = unsafeCast(value_startIcon_value) valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1) const value_startIcon_value_1 = unsafeCast(value_startIcon_value) valueSerializer.writeResource(value_startIcon_value_1) @@ -15059,12 +15393,12 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type: int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0) const value_src_0 = unsafeCast(value_src) valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT == value_src_type))) { + else if (RuntimeType.OBJECT == value_src_type) { valueSerializer.writeInt8(1) const value_src_1 = unsafeCast(value_src) valueSerializer.writeResource(value_src_1) @@ -15107,23 +15441,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value) } } - writeWebCookie(value: WebCookie): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeHeader(value: Header): void { let valueSerializer: Serializer = this const value_headerKey = value.headerKey @@ -15156,12 +15473,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type: int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0) const value_src_value_0 = unsafeCast(value_src_value) valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1) const value_src_value_1 = unsafeCast(value_src_value) valueSerializer.writeResource(value_src_value_1) @@ -15175,12 +15492,12 @@ export class Serializer extends SerializerBase { const value_currentProgressRate_value = value_currentProgressRate! let value_currentProgressRate_value_type: int32 = RuntimeType.UNDEFINED value_currentProgressRate_value_type = runtimeType(value_currentProgressRate_value) - if (((RuntimeType.NUMBER == value_currentProgressRate_value_type))) { + if (RuntimeType.NUMBER == value_currentProgressRate_value_type) { valueSerializer.writeInt8(0) const value_currentProgressRate_value_0 = unsafeCast(value_currentProgressRate_value) valueSerializer.writeNumber(value_currentProgressRate_value_0) } - else if (((RuntimeType.STRING == value_currentProgressRate_value_type))) { + else if (RuntimeType.STRING == value_currentProgressRate_value_type) { valueSerializer.writeInt8(1) const value_currentProgressRate_value_1 = unsafeCast(value_currentProgressRate_value) valueSerializer.writeString(value_currentProgressRate_value_1) @@ -15199,17 +15516,17 @@ export class Serializer extends SerializerBase { const value_previewUri_value = value_previewUri! let value_previewUri_value_type: int32 = RuntimeType.UNDEFINED value_previewUri_value_type = runtimeType(value_previewUri_value) - if (((RuntimeType.STRING == value_previewUri_value_type))) { + if (RuntimeType.STRING == value_previewUri_value_type) { valueSerializer.writeInt8(0) const value_previewUri_value_0 = unsafeCast(value_previewUri_value) valueSerializer.writeString(value_previewUri_value_0) } - else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && (((value_previewUri_value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && ((value_previewUri_value!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_previewUri_value_1 = unsafeCast(value_previewUri_value) valueSerializer.writePixelMap(value_previewUri_value_1) } - else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && (((value_previewUri_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && ((value_previewUri_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_previewUri_value_2 = unsafeCast(value_previewUri_value) valueSerializer.writeResource(value_previewUri_value_2) @@ -15242,12 +15559,12 @@ export class Serializer extends SerializerBase { const value_pointRadius_value = value_pointRadius! let value_pointRadius_value_type: int32 = RuntimeType.UNDEFINED value_pointRadius_value_type = runtimeType(value_pointRadius_value) - if (((RuntimeType.NUMBER == value_pointRadius_value_type))) { + if (RuntimeType.NUMBER == value_pointRadius_value_type) { valueSerializer.writeInt8(0) const value_pointRadius_value_0 = unsafeCast(value_pointRadius_value) valueSerializer.writeNumber(value_pointRadius_value_0) } - else if (((RuntimeType.OBJECT == value_pointRadius_value_type))) { + else if (RuntimeType.OBJECT == value_pointRadius_value_type) { valueSerializer.writeInt8(1) const value_pointRadius_value_1 = unsafeCast(value_pointRadius_value) valueSerializer.writeResource(value_pointRadius_value_1) @@ -15266,17 +15583,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -15295,17 +15612,17 @@ export class Serializer extends SerializerBase { const value_pointColor_value_0 = unsafeCast(value_pointColor_value) valueSerializer.writeInt32(value_pointColor_value_0) } - else if (((RuntimeType.NUMBER == value_pointColor_value_type))) { + else if (RuntimeType.NUMBER == value_pointColor_value_type) { valueSerializer.writeInt8(1) const value_pointColor_value_1 = unsafeCast(value_pointColor_value) valueSerializer.writeNumber(value_pointColor_value_1) } - else if (((RuntimeType.STRING == value_pointColor_value_type))) { + else if (RuntimeType.STRING == value_pointColor_value_type) { valueSerializer.writeInt8(2) const value_pointColor_value_2 = unsafeCast(value_pointColor_value) valueSerializer.writeString(value_pointColor_value_2) } - else if (((RuntimeType.OBJECT == value_pointColor_value_type))) { + else if (RuntimeType.OBJECT == value_pointColor_value_type) { valueSerializer.writeInt8(3) const value_pointColor_value_3 = unsafeCast(value_pointColor_value) valueSerializer.writeResource(value_pointColor_value_3) @@ -15319,12 +15636,12 @@ export class Serializer extends SerializerBase { const value_trackBorderRadius_value = value_trackBorderRadius! let value_trackBorderRadius_value_type: int32 = RuntimeType.UNDEFINED value_trackBorderRadius_value_type = runtimeType(value_trackBorderRadius_value) - if (((RuntimeType.NUMBER == value_trackBorderRadius_value_type))) { + if (RuntimeType.NUMBER == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(0) const value_trackBorderRadius_value_0 = unsafeCast(value_trackBorderRadius_value) valueSerializer.writeNumber(value_trackBorderRadius_value_0) } - else if (((RuntimeType.OBJECT == value_trackBorderRadius_value_type))) { + else if (RuntimeType.OBJECT == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(1) const value_trackBorderRadius_value_1 = unsafeCast(value_trackBorderRadius_value) valueSerializer.writeResource(value_trackBorderRadius_value_1) @@ -15421,12 +15738,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast>(value_value) valueSerializer.writeInt32(value_value_1.length) @@ -15438,12 +15755,12 @@ export class Serializer extends SerializerBase { const value_index = value.index let value_index_type: int32 = RuntimeType.UNDEFINED value_index_type = runtimeType(value_index) - if (((RuntimeType.NUMBER == value_index_type))) { + if (RuntimeType.NUMBER == value_index_type) { valueSerializer.writeInt8(0) const value_index_0 = unsafeCast(value_index) valueSerializer.writeNumber(value_index_0) } - else if (((RuntimeType.OBJECT == value_index_type))) { + else if (RuntimeType.OBJECT == value_index_type) { valueSerializer.writeInt8(1) const value_index_1 = unsafeCast>(value_index) valueSerializer.writeInt32(value_index_1.length) @@ -15475,12 +15792,12 @@ export class Serializer extends SerializerBase { const value_text = value.text let value_text_type: int32 = RuntimeType.UNDEFINED value_text_type = runtimeType(value_text) - if (((RuntimeType.STRING == value_text_type))) { + if (RuntimeType.STRING == value_text_type) { valueSerializer.writeInt8(0) const value_text_0 = unsafeCast(value_text) valueSerializer.writeString(value_text_0) } - else if (((RuntimeType.OBJECT == value_text_type))) { + else if (RuntimeType.OBJECT == value_text_type) { valueSerializer.writeInt8(1) const value_text_1 = unsafeCast(value_text) valueSerializer.writeResource(value_text_1) @@ -15503,12 +15820,12 @@ export class Serializer extends SerializerBase { const value_icon = value.icon let value_icon_type: int32 = RuntimeType.UNDEFINED value_icon_type = runtimeType(value_icon) - if (((RuntimeType.STRING == value_icon_type))) { + if (RuntimeType.STRING == value_icon_type) { valueSerializer.writeInt8(0) const value_icon_0 = unsafeCast(value_icon) valueSerializer.writeString(value_icon_0) } - else if (((RuntimeType.OBJECT == value_icon_type))) { + else if (RuntimeType.OBJECT == value_icon_type) { valueSerializer.writeInt8(1) const value_icon_1 = unsafeCast(value_icon) valueSerializer.writeResource(value_icon_1) @@ -15521,12 +15838,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -15560,7 +15877,7 @@ export class Serializer extends SerializerBase { } } } - else if (((RuntimeType.OBJECT) == (value_range_type)) && (((value_range!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_range_type)) && ((value_range!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_range_2 = unsafeCast(value_range) valueSerializer.writeResource(value_range_2) @@ -15591,12 +15908,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type: int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0) const value_value_value_0 = unsafeCast(value_value_value) valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1) const value_value_value_1 = unsafeCast>(value_value_value) valueSerializer.writeInt32(value_value_value_1.length) @@ -15614,12 +15931,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type: int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0) const value_selected_value_0 = unsafeCast(value_selected_value) valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1) const value_selected_value_1 = unsafeCast>(value_selected_value) valueSerializer.writeInt32(value_selected_value_1.length) @@ -15640,12 +15957,12 @@ export class Serializer extends SerializerBase { const value_onIconSrc_value = value_onIconSrc! let value_onIconSrc_value_type: int32 = RuntimeType.UNDEFINED value_onIconSrc_value_type = runtimeType(value_onIconSrc_value) - if (((RuntimeType.STRING == value_onIconSrc_value_type))) { + if (RuntimeType.STRING == value_onIconSrc_value_type) { valueSerializer.writeInt8(0) const value_onIconSrc_value_0 = unsafeCast(value_onIconSrc_value) valueSerializer.writeString(value_onIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_onIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_onIconSrc_value_type) { valueSerializer.writeInt8(1) const value_onIconSrc_value_1 = unsafeCast(value_onIconSrc_value) valueSerializer.writeResource(value_onIconSrc_value_1) @@ -15659,12 +15976,12 @@ export class Serializer extends SerializerBase { const value_offIconSrc_value = value_offIconSrc! let value_offIconSrc_value_type: int32 = RuntimeType.UNDEFINED value_offIconSrc_value_type = runtimeType(value_offIconSrc_value) - if (((RuntimeType.STRING == value_offIconSrc_value_type))) { + if (RuntimeType.STRING == value_offIconSrc_value_type) { valueSerializer.writeInt8(0) const value_offIconSrc_value_0 = unsafeCast(value_offIconSrc_value) valueSerializer.writeString(value_offIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_offIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_offIconSrc_value_type) { valueSerializer.writeInt8(1) const value_offIconSrc_value_1 = unsafeCast(value_offIconSrc_value) valueSerializer.writeResource(value_offIconSrc_value_1) @@ -15681,12 +15998,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -15700,12 +16017,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -15720,22 +16037,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_value) } } - writeLayoutManager(value: LayoutManager): void { + writeTextBox(value: TextBox): void { let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } + const value__TextBoxStub = value._TextBoxStub + valueSerializer.writeString(value__TextBoxStub) } writeStyledStringController(value: StyledStringController): void { let valueSerializer: Serializer = this @@ -15817,12 +16122,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -15836,12 +16141,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -16179,12 +16484,12 @@ export class Serializer extends SerializerBase { const value_image_value = value_image! let value_image_value_type: int32 = RuntimeType.UNDEFINED value_image_value_type = runtimeType(value_image_value) - if (((RuntimeType.STRING == value_image_value_type))) { + if (RuntimeType.STRING == value_image_value_type) { valueSerializer.writeInt8(0) const value_image_value_0 = unsafeCast(value_image_value) valueSerializer.writeString(value_image_value_0) } - else if (((RuntimeType.OBJECT == value_image_value_type))) { + else if (RuntimeType.OBJECT == value_image_value_type) { valueSerializer.writeInt8(1) const value_image_value_1 = unsafeCast(value_image_value) valueSerializer.writeResource(value_image_value_1) @@ -16268,12 +16573,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type: int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0) const value_x_value_0 = unsafeCast(value_x_value) valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1) const value_x_value_1 = unsafeCast(value_x_value) valueSerializer.writeString(value_x_value_1) @@ -16287,12 +16592,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type: int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0) const value_y_value_0 = unsafeCast(value_y_value) valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1) const value_y_value_1 = unsafeCast(value_y_value) valueSerializer.writeString(value_y_value_1) @@ -16306,12 +16611,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -16325,12 +16630,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -16342,12 +16647,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -16360,12 +16665,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -16413,17 +16718,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16438,13 +16743,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value) } } - writePreviewText(value: PreviewText): void { - let valueSerializer: Serializer = this - const value_offset = value.offset - valueSerializer.writeNumber(value_offset) - const value_value = value.value - valueSerializer.writeString(value_value) - } writeCaretStyle(value: CaretStyle): void { let valueSerializer: Serializer = this const value_width = value.width @@ -16468,17 +16766,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16503,12 +16801,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -16657,12 +16955,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_1) @@ -16789,17 +17087,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16839,12 +17137,12 @@ export class Serializer extends SerializerBase { const value_richEditorDeleteSpans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_richEditorDeleteSpans[i] let value_richEditorDeleteSpans_element_type: int32 = RuntimeType.UNDEFINED value_richEditorDeleteSpans_element_type = runtimeType(value_richEditorDeleteSpans_element) - if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && (((value_richEditorDeleteSpans_element!.hasOwnProperty("value"))))) { + if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && ((value_richEditorDeleteSpans_element!.hasOwnProperty("value")))) { valueSerializer.writeInt8(0) const value_richEditorDeleteSpans_element_0 = unsafeCast(value_richEditorDeleteSpans_element) valueSerializer.writeRichEditorTextSpanResult(value_richEditorDeleteSpans_element_0) } - else if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && (((value_richEditorDeleteSpans_element!.hasOwnProperty("imageStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && ((value_richEditorDeleteSpans_element!.hasOwnProperty("imageStyle")))) { valueSerializer.writeInt8(1) const value_richEditorDeleteSpans_element_1 = unsafeCast(value_richEditorDeleteSpans_element) valueSerializer.writeRichEditorImageSpanResult(value_richEditorDeleteSpans_element_1) @@ -16866,31 +17164,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_previewText_value) } } - writeRichEditorSelection(value: RichEditorSelection): void { - let valueSerializer: Serializer = this - const value_selection = value.selection - const value_selection_0 = value_selection[0] - valueSerializer.writeNumber(value_selection_0) - const value_selection_1 = value_selection[1] - valueSerializer.writeNumber(value_selection_1) - const value_spans = value.spans - valueSerializer.writeInt32(value_spans.length) - for (let i = 0; i < value_spans.length; i++) { - const value_spans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] - let value_spans_element_type: int32 = RuntimeType.UNDEFINED - value_spans_element_type = runtimeType(value_spans_element) - if (((RuntimeType.OBJECT) == (value_spans_element_type)) && (((value_spans_element!.hasOwnProperty("value"))))) { - valueSerializer.writeInt8(0) - const value_spans_element_0 = unsafeCast(value_spans_element) - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) - } - else if (((RuntimeType.OBJECT) == (value_spans_element_type)) && (((value_spans_element!.hasOwnProperty("imageStyle"))))) { - valueSerializer.writeInt8(1) - const value_spans_element_1 = unsafeCast(value_spans_element) - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) - } - } - } writeStyledStringChangeValue(value: StyledStringChangeValue): void { let valueSerializer: Serializer = this const value_range = value.range @@ -16906,6 +17179,16 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } + writeRichEditorParagraphResult(value: RichEditorParagraphResult): void { + let valueSerializer: Serializer = this + const value_style = value.style + valueSerializer.writeRichEditorParagraphStyle(value_style) + const value_range = value.range + const value_range_0 = value_range[0] + valueSerializer.writeNumber(value_range_0) + const value_range_1 = value_range[1] + valueSerializer.writeNumber(value_range_1) + } writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -16970,12 +17253,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type: int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0) const value_offset_value_0 = unsafeCast(value_offset_value) valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.STRING == value_offset_value_type))) { + else if (RuntimeType.STRING == value_offset_value_type) { valueSerializer.writeInt8(1) const value_offset_value_1 = unsafeCast(value_offset_value) valueSerializer.writeString(value_offset_value_1) @@ -16989,12 +17272,12 @@ export class Serializer extends SerializerBase { const value_friction_value = value_friction! let value_friction_value_type: int32 = RuntimeType.UNDEFINED value_friction_value_type = runtimeType(value_friction_value) - if (((RuntimeType.NUMBER == value_friction_value_type))) { + if (RuntimeType.NUMBER == value_friction_value_type) { valueSerializer.writeInt8(0) const value_friction_value_0 = unsafeCast(value_friction_value) valueSerializer.writeNumber(value_friction_value_0) } - else if (((RuntimeType.STRING == value_friction_value_type))) { + else if (RuntimeType.STRING == value_friction_value_type) { valueSerializer.writeInt8(1) const value_friction_value_1 = unsafeCast(value_friction_value) valueSerializer.writeString(value_friction_value_1) @@ -17008,12 +17291,12 @@ export class Serializer extends SerializerBase { const value_promptText_value = value_promptText! let value_promptText_value_type: int32 = RuntimeType.UNDEFINED value_promptText_value_type = runtimeType(value_promptText_value) - if (((RuntimeType.STRING == value_promptText_value_type))) { + if (RuntimeType.STRING == value_promptText_value_type) { valueSerializer.writeInt8(0) const value_promptText_value_0 = unsafeCast(value_promptText_value) valueSerializer.writeString(value_promptText_value_0) } - else if (((RuntimeType.OBJECT == value_promptText_value_type))) { + else if (RuntimeType.OBJECT == value_promptText_value_type) { valueSerializer.writeInt8(1) const value_promptText_value_1 = unsafeCast(value_promptText_value) valueSerializer.writeResource(value_promptText_value_1) @@ -17079,17 +17362,17 @@ export class Serializer extends SerializerBase { const value_checkedBackgroundColor_value_0 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeInt32(value_checkedBackgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(1) const value_checkedBackgroundColor_value_1 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeNumber(value_checkedBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(2) const value_checkedBackgroundColor_value_2 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeString(value_checkedBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(3) const value_checkedBackgroundColor_value_3 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeResource(value_checkedBackgroundColor_value_3) @@ -17108,17 +17391,17 @@ export class Serializer extends SerializerBase { const value_uncheckedBorderColor_value_0 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeInt32(value_uncheckedBorderColor_value_0) } - else if (((RuntimeType.NUMBER == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.NUMBER == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(1) const value_uncheckedBorderColor_value_1 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeNumber(value_uncheckedBorderColor_value_1) } - else if (((RuntimeType.STRING == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.STRING == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(2) const value_uncheckedBorderColor_value_2 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeString(value_uncheckedBorderColor_value_2) } - else if (((RuntimeType.OBJECT == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.OBJECT == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(3) const value_uncheckedBorderColor_value_3 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeResource(value_uncheckedBorderColor_value_3) @@ -17137,17 +17420,17 @@ export class Serializer extends SerializerBase { const value_indicatorColor_value_0 = unsafeCast(value_indicatorColor_value) valueSerializer.writeInt32(value_indicatorColor_value_0) } - else if (((RuntimeType.NUMBER == value_indicatorColor_value_type))) { + else if (RuntimeType.NUMBER == value_indicatorColor_value_type) { valueSerializer.writeInt8(1) const value_indicatorColor_value_1 = unsafeCast(value_indicatorColor_value) valueSerializer.writeNumber(value_indicatorColor_value_1) } - else if (((RuntimeType.STRING == value_indicatorColor_value_type))) { + else if (RuntimeType.STRING == value_indicatorColor_value_type) { valueSerializer.writeInt8(2) const value_indicatorColor_value_2 = unsafeCast(value_indicatorColor_value) valueSerializer.writeString(value_indicatorColor_value_2) } - else if (((RuntimeType.OBJECT == value_indicatorColor_value_type))) { + else if (RuntimeType.OBJECT == value_indicatorColor_value_type) { valueSerializer.writeInt8(3) const value_indicatorColor_value_3 = unsafeCast(value_indicatorColor_value) valueSerializer.writeResource(value_indicatorColor_value_3) @@ -17216,12 +17499,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17235,12 +17518,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -17264,12 +17547,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17283,12 +17566,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -17336,12 +17619,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -17355,12 +17638,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -17439,12 +17722,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -17457,12 +17740,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -17500,12 +17783,12 @@ export class Serializer extends SerializerBase { const value_activeIcon_value = value_activeIcon! let value_activeIcon_value_type: int32 = RuntimeType.UNDEFINED value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { + if (RuntimeType.STRING == value_activeIcon_value_type) { valueSerializer.writeInt8(0) const value_activeIcon_value_0 = unsafeCast(value_activeIcon_value) valueSerializer.writeString(value_activeIcon_value_0) } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + else if (RuntimeType.OBJECT == value_activeIcon_value_type) { valueSerializer.writeInt8(1) const value_activeIcon_value_1 = unsafeCast(value_activeIcon_value) valueSerializer.writeResource(value_activeIcon_value_1) @@ -17525,12 +17808,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -17543,12 +17826,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -17596,23 +17879,23 @@ export class Serializer extends SerializerBase { const value_header_value = value_header! let value_header_value_type: int32 = RuntimeType.UNDEFINED value_header_value_type = runtimeType(value_header_value) - if (((RuntimeType.STRING == value_header_value_type)) || ((RuntimeType.OBJECT == value_header_value_type))) { + if ((RuntimeType.STRING == value_header_value_type) || (RuntimeType.OBJECT == value_header_value_type)) { valueSerializer.writeInt8(0) const value_header_value_0 = unsafeCast(value_header_value) let value_header_value_0_type: int32 = RuntimeType.UNDEFINED value_header_value_0_type = runtimeType(value_header_value_0) - if (((RuntimeType.STRING == value_header_value_0_type))) { + if (RuntimeType.STRING == value_header_value_0_type) { valueSerializer.writeInt8(0) const value_header_value_0_0 = unsafeCast(value_header_value_0) valueSerializer.writeString(value_header_value_0_0) } - else if (((RuntimeType.OBJECT == value_header_value_0_type))) { + else if (RuntimeType.OBJECT == value_header_value_0_type) { valueSerializer.writeInt8(1) const value_header_value_0_1 = unsafeCast(value_header_value_0) valueSerializer.writeResource(value_header_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_header_value_type))) { + else if (RuntimeType.FUNCTION == value_header_value_type) { valueSerializer.writeInt8(1) const value_header_value_1 = unsafeCast(value_header_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_header_value_1)) @@ -17626,23 +17909,23 @@ export class Serializer extends SerializerBase { const value_footer_value = value_footer! let value_footer_value_type: int32 = RuntimeType.UNDEFINED value_footer_value_type = runtimeType(value_footer_value) - if (((RuntimeType.STRING == value_footer_value_type)) || ((RuntimeType.OBJECT == value_footer_value_type))) { + if ((RuntimeType.STRING == value_footer_value_type) || (RuntimeType.OBJECT == value_footer_value_type)) { valueSerializer.writeInt8(0) const value_footer_value_0 = unsafeCast(value_footer_value) let value_footer_value_0_type: int32 = RuntimeType.UNDEFINED value_footer_value_0_type = runtimeType(value_footer_value_0) - if (((RuntimeType.STRING == value_footer_value_0_type))) { + if (RuntimeType.STRING == value_footer_value_0_type) { valueSerializer.writeInt8(0) const value_footer_value_0_0 = unsafeCast(value_footer_value_0) valueSerializer.writeString(value_footer_value_0_0) } - else if (((RuntimeType.OBJECT == value_footer_value_0_type))) { + else if (RuntimeType.OBJECT == value_footer_value_0_type) { valueSerializer.writeInt8(1) const value_footer_value_0_1 = unsafeCast(value_footer_value_0) valueSerializer.writeResource(value_footer_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_footer_value_type))) { + else if (RuntimeType.FUNCTION == value_footer_value_type) { valueSerializer.writeInt8(1) const value_footer_value_1 = unsafeCast(value_footer_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_footer_value_1)) @@ -17749,12 +18032,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_1) @@ -17779,12 +18062,12 @@ export class Serializer extends SerializerBase { const value_start_value = value_start! let value_start_value_type: int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.FUNCTION == value_start_value_type))) { + if (RuntimeType.FUNCTION == value_start_value_type) { valueSerializer.writeInt8(0) const value_start_value_0 = unsafeCast(value_start_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_start_value_0)) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) valueSerializer.writeSwipeActionItem(value_start_value_1) @@ -17798,12 +18081,12 @@ export class Serializer extends SerializerBase { const value_end_value = value_end! let value_end_value_type: int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.FUNCTION == value_end_value_type))) { + if (RuntimeType.FUNCTION == value_end_value_type) { valueSerializer.writeInt8(0) const value_end_value_0 = unsafeCast(value_end_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_end_value_0)) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) valueSerializer.writeSwipeActionItem(value_end_value_1) @@ -17837,27 +18120,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value) } } - writeVisibleListContentInfo(value: VisibleListContentInfo): void { - let valueSerializer: Serializer = this - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_itemGroupArea = value.itemGroupArea - let value_itemGroupArea_type: int32 = RuntimeType.UNDEFINED - value_itemGroupArea_type = runtimeType(value_itemGroupArea) - valueSerializer.writeInt8(value_itemGroupArea_type) - if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { - const value_itemGroupArea_value = value_itemGroupArea! - valueSerializer.writeInt32(value_itemGroupArea_value) - } - const value_itemIndexInGroup = value.itemIndexInGroup - let value_itemIndexInGroup_type: int32 = RuntimeType.UNDEFINED - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) - valueSerializer.writeInt8(value_itemIndexInGroup_type) - if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { - const value_itemIndexInGroup_value = value_itemIndexInGroup! - valueSerializer.writeNumber(value_itemIndexInGroup_value) - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer: Serializer = this const value_minSpace = value.minSpace @@ -17923,12 +18185,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_1) @@ -17970,12 +18232,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17989,12 +18251,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -18027,17 +18289,17 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type: int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0) const value_src_0 = unsafeCast(value_src) valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT) == (value_src_type)) && (((value_src!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_src_type)) && ((value_src!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value_src_1 = unsafeCast(value_src) valueSerializer.writeResource(value_src_1) } - else if (((RuntimeType.OBJECT) == (value_src_type)) && (((value_src!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_src_type)) && ((value_src!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(2) const value_src_2 = unsafeCast(value_src) valueSerializer.writePixelMap(value_src_2) @@ -18050,12 +18312,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -18069,12 +18331,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -18088,12 +18350,12 @@ export class Serializer extends SerializerBase { const value_top_value = value_top! let value_top_value_type: int32 = RuntimeType.UNDEFINED value_top_value_type = runtimeType(value_top_value) - if (((RuntimeType.NUMBER == value_top_value_type))) { + if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(0) const value_top_value_0 = unsafeCast(value_top_value) valueSerializer.writeNumber(value_top_value_0) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(1) const value_top_value_1 = unsafeCast(value_top_value) valueSerializer.writeString(value_top_value_1) @@ -18107,12 +18369,12 @@ export class Serializer extends SerializerBase { const value_left_value = value_left! let value_left_value_type: int32 = RuntimeType.UNDEFINED value_left_value_type = runtimeType(value_left_value) - if (((RuntimeType.NUMBER == value_left_value_type))) { + if (RuntimeType.NUMBER == value_left_value_type) { valueSerializer.writeInt8(0) const value_left_value_0 = unsafeCast(value_left_value) valueSerializer.writeNumber(value_left_value_0) } - else if (((RuntimeType.STRING == value_left_value_type))) { + else if (RuntimeType.STRING == value_left_value_type) { valueSerializer.writeInt8(1) const value_left_value_1 = unsafeCast(value_left_value) valueSerializer.writeString(value_left_value_1) @@ -18177,12 +18439,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type: int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0) const value_columns_value_0 = unsafeCast(value_columns_value) valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.OBJECT == value_columns_value_type))) { + else if (RuntimeType.OBJECT == value_columns_value_type) { valueSerializer.writeInt8(1) const value_columns_value_1 = unsafeCast(value_columns_value) valueSerializer.writeGridRowColumnOption(value_columns_value_1) @@ -18215,12 +18477,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type: int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0) const value_columns_value_0 = unsafeCast(value_columns_value) valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.STRING == value_columns_value_type))) { + else if (RuntimeType.STRING == value_columns_value_type) { valueSerializer.writeInt8(1) const value_columns_value_1 = unsafeCast(value_columns_value) valueSerializer.writeString(value_columns_value_1) @@ -18242,12 +18504,12 @@ export class Serializer extends SerializerBase { const value_gutter_value = value_gutter! let value_gutter_value_type: int32 = RuntimeType.UNDEFINED value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER == value_gutter_value_type))) { + if (RuntimeType.NUMBER == value_gutter_value_type) { valueSerializer.writeInt8(0) const value_gutter_value_0 = unsafeCast(value_gutter_value) valueSerializer.writeNumber(value_gutter_value_0) } - else if (((RuntimeType.STRING == value_gutter_value_type))) { + else if (RuntimeType.STRING == value_gutter_value_type) { valueSerializer.writeInt8(1) const value_gutter_value_1 = unsafeCast(value_gutter_value) valueSerializer.writeString(value_gutter_value_1) @@ -18261,12 +18523,12 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type: int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER == value_margin_value_type))) { + if (RuntimeType.NUMBER == value_margin_value_type) { valueSerializer.writeInt8(0) const value_margin_value_0 = unsafeCast(value_margin_value) valueSerializer.writeNumber(value_margin_value_0) } - else if (((RuntimeType.STRING == value_margin_value_type))) { + else if (RuntimeType.STRING == value_margin_value_type) { valueSerializer.writeInt8(1) const value_margin_value_1 = unsafeCast(value_margin_value) valueSerializer.writeString(value_margin_value_1) @@ -18283,12 +18545,12 @@ export class Serializer extends SerializerBase { const value_span_value = value_span! let value_span_value_type: int32 = RuntimeType.UNDEFINED value_span_value_type = runtimeType(value_span_value) - if (((RuntimeType.NUMBER == value_span_value_type))) { + if (RuntimeType.NUMBER == value_span_value_type) { valueSerializer.writeInt8(0) const value_span_value_0 = unsafeCast(value_span_value) valueSerializer.writeNumber(value_span_value_0) } - else if (((RuntimeType.OBJECT == value_span_value_type))) { + else if (RuntimeType.OBJECT == value_span_value_type) { valueSerializer.writeInt8(1) const value_span_value_1 = unsafeCast(value_span_value) valueSerializer.writeGridColColumnOption(value_span_value_1) @@ -18302,12 +18564,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type: int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0) const value_offset_value_0 = unsafeCast(value_offset_value) valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.OBJECT == value_offset_value_type))) { + else if (RuntimeType.OBJECT == value_offset_value_type) { valueSerializer.writeInt8(1) const value_offset_value_1 = unsafeCast(value_offset_value) valueSerializer.writeGridColColumnOption(value_offset_value_1) @@ -18321,12 +18583,12 @@ export class Serializer extends SerializerBase { const value_order_value = value_order! let value_order_value_type: int32 = RuntimeType.UNDEFINED value_order_value_type = runtimeType(value_order_value) - if (((RuntimeType.NUMBER == value_order_value_type))) { + if (RuntimeType.NUMBER == value_order_value_type) { valueSerializer.writeInt8(0) const value_order_value_0 = unsafeCast(value_order_value) valueSerializer.writeNumber(value_order_value_0) } - else if (((RuntimeType.OBJECT == value_order_value_type))) { + else if (RuntimeType.OBJECT == value_order_value_type) { valueSerializer.writeInt8(1) const value_order_value_1 = unsafeCast(value_order_value) valueSerializer.writeGridColColumnOption(value_order_value_1) @@ -18411,23 +18673,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeEventTargetInfo(value: EventTargetInfo): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeScrollableTargetInfo(value: ScrollableTargetInfo): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -18445,23 +18690,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writePanGestureOptions(value: PanGestureOptions): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeGestureEvent(value: GestureEvent): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -18591,12 +18819,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -18621,12 +18849,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeResource(value_radius_value_1) @@ -18640,12 +18868,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -18659,12 +18887,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -18749,12 +18977,12 @@ export class Serializer extends SerializerBase { const value_id = value.id let value_id_type: int32 = RuntimeType.UNDEFINED value_id_type = runtimeType(value_id) - if (((RuntimeType.NUMBER == value_id_type))) { + if (RuntimeType.NUMBER == value_id_type) { valueSerializer.writeInt8(0) const value_id_0 = unsafeCast(value_id) valueSerializer.writeNumber(value_id_0) } - else if (((RuntimeType.STRING == value_id_type))) { + else if (RuntimeType.STRING == value_id_type) { valueSerializer.writeInt8(1) const value_id_1 = unsafeCast(value_id) valueSerializer.writeString(value_id_1) @@ -18913,12 +19141,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -18932,12 +19160,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -19025,12 +19253,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeResource(value_radius_value_1) @@ -19044,12 +19272,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -19063,12 +19291,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -19085,7 +19313,7 @@ export class Serializer extends SerializerBase { const value_colors_value_element: ResourceColor | LinearGradient = value_colors_value[i] let value_colors_value_element_type: int32 = RuntimeType.UNDEFINED value_colors_value_element_type = runtimeType(value_colors_value_element) - if ((((RuntimeType.NUMBER) == (value_colors_value_element_type)) && ((unsafeCast(value_colors_value_element)) >= (0)) && ((unsafeCast(value_colors_value_element)) <= (11))) || (((RuntimeType.NUMBER == value_colors_value_element_type))) || (((RuntimeType.STRING == value_colors_value_element_type))) || (((RuntimeType.OBJECT == value_colors_value_element_type)))) { + if ((((RuntimeType.NUMBER) == (value_colors_value_element_type)) && ((unsafeCast(value_colors_value_element)) >= (0)) && ((unsafeCast(value_colors_value_element)) <= (11))) || (RuntimeType.NUMBER == value_colors_value_element_type) || (RuntimeType.STRING == value_colors_value_element_type) || (RuntimeType.OBJECT == value_colors_value_element_type)) { valueSerializer.writeInt8(0) const value_colors_value_element_0 = unsafeCast(value_colors_value_element) let value_colors_value_element_0_type: int32 = RuntimeType.UNDEFINED @@ -19095,17 +19323,17 @@ export class Serializer extends SerializerBase { const value_colors_value_element_0_0 = unsafeCast(value_colors_value_element_0) valueSerializer.writeInt32(value_colors_value_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_value_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_value_element_0_type) { valueSerializer.writeInt8(1) const value_colors_value_element_0_1 = unsafeCast(value_colors_value_element_0) valueSerializer.writeNumber(value_colors_value_element_0_1) } - else if (((RuntimeType.STRING == value_colors_value_element_0_type))) { + else if (RuntimeType.STRING == value_colors_value_element_0_type) { valueSerializer.writeInt8(2) const value_colors_value_element_0_2 = unsafeCast(value_colors_value_element_0) valueSerializer.writeString(value_colors_value_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_value_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_value_element_0_type) { valueSerializer.writeInt8(3) const value_colors_value_element_0_3 = unsafeCast(value_colors_value_element_0) valueSerializer.writeResource(value_colors_value_element_0_3) @@ -19154,17 +19382,17 @@ export class Serializer extends SerializerBase { const value_color_0 = unsafeCast(value_color) valueSerializer.writeInt32(value_color_0) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1) const value_color_1 = unsafeCast(value_color) valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2) const value_color_2 = unsafeCast(value_color) valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3) const value_color_3 = unsafeCast(value_color) valueSerializer.writeResource(value_color_3) @@ -19240,17 +19468,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_3) @@ -19301,17 +19529,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -19457,7 +19685,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -19467,17 +19695,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -19499,17 +19727,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -19528,17 +19756,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -19557,17 +19785,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -19586,17 +19814,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -19612,12 +19840,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -19662,12 +19890,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -19750,23 +19978,23 @@ export class Serializer extends SerializerBase { const value_scene_value = value_scene! let value_scene_value_type: int32 = RuntimeType.UNDEFINED value_scene_value_type = runtimeType(value_scene_value) - if ((((RuntimeType.STRING == value_scene_value_type))) || (((RuntimeType.OBJECT == value_scene_value_type)))) { + if ((RuntimeType.STRING == value_scene_value_type) || (RuntimeType.OBJECT == value_scene_value_type)) { valueSerializer.writeInt8(0) const value_scene_value_0 = unsafeCast(value_scene_value) let value_scene_value_0_type: int32 = RuntimeType.UNDEFINED value_scene_value_0_type = runtimeType(value_scene_value_0) - if (((RuntimeType.STRING == value_scene_value_0_type))) { + if (RuntimeType.STRING == value_scene_value_0_type) { valueSerializer.writeInt8(0) const value_scene_value_0_0 = unsafeCast(value_scene_value_0) valueSerializer.writeString(value_scene_value_0_0) } - else if (((RuntimeType.OBJECT == value_scene_value_0_type))) { + else if (RuntimeType.OBJECT == value_scene_value_0_type) { valueSerializer.writeInt8(1) const value_scene_value_0_1 = unsafeCast(value_scene_value_0) valueSerializer.writeResource(value_scene_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_scene_value_type)) && (((value_scene_value!.hasOwnProperty("_SceneStub"))))) { + else if (((RuntimeType.OBJECT) == (value_scene_value_type)) && ((value_scene_value!.hasOwnProperty("_SceneStub")))) { valueSerializer.writeInt8(1) const value_scene_value_1 = unsafeCast(value_scene_value) valueSerializer.writeScene(value_scene_value_1) @@ -19815,13 +20043,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeOffsetResult(value: OffsetResult): void { - let valueSerializer: Serializer = this - const value_xOffset = value.xOffset - valueSerializer.writeNumber(value_xOffset) - const value_yOffset = value.yOffset - valueSerializer.writeNumber(value_yOffset) - } writeTextContentControllerBase(value: TextContentControllerBase): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -19902,12 +20123,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -19920,12 +20141,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -20384,17 +20605,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeInt32(value_color_value_0_top_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_top_value_1 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_top_value_2 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_top_value_3 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20413,17 +20634,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeInt32(value_color_value_0_right_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_right_value_1 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_right_value_2 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_right_value_3 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20442,17 +20663,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeInt32(value_color_value_0_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_bottom_value_1 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_bottom_value_2 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_bottom_value_3 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20471,24 +20692,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeInt32(value_color_value_0_left_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_left_value_1 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_left_value_2 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_left_value_3 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) let value_color_value_1_type: int32 = RuntimeType.UNDEFINED @@ -20498,17 +20719,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = unsafeCast(value_color_value_1) valueSerializer.writeInt32(value_color_value_1_0) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1) const value_color_value_1_1 = unsafeCast(value_color_value_1) valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2) const value_color_value_1_2 = unsafeCast(value_color_value_1) valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3) const value_color_value_1_3 = unsafeCast(value_color_value_1) valueSerializer.writeResource(value_color_value_1_3) @@ -20578,7 +20799,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type: int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0) const value_style_value_0 = unsafeCast(value_style_value) const value_style_value_0_top = value_style_value_0.top @@ -20614,7 +20835,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value_0_left_value) } } - else if (((RuntimeType.NUMBER == value_style_value_type))) { + else if (RuntimeType.NUMBER == value_style_value_type) { valueSerializer.writeInt8(1) const value_style_value_1 = unsafeCast(value_style_value) valueSerializer.writeInt32(value_style_value_1) @@ -20694,17 +20915,17 @@ export class Serializer extends SerializerBase { const value_source_value = value_source! let value_source_value_type: int32 = RuntimeType.UNDEFINED value_source_value_type = runtimeType(value_source_value) - if (((RuntimeType.STRING == value_source_value_type))) { + if (RuntimeType.STRING == value_source_value_type) { valueSerializer.writeInt8(0) const value_source_value_0 = unsafeCast(value_source_value) valueSerializer.writeString(value_source_value_0) } - else if (((RuntimeType.OBJECT) == (value_source_value_type)) && (((value_source_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_source_value_type)) && ((value_source_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value_source_value_1 = unsafeCast(value_source_value) valueSerializer.writeResource(value_source_value_1) } - else if (((RuntimeType.OBJECT) == (value_source_value_type)) && (((value_source_value!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_source_value_type)) && ((value_source_value!.hasOwnProperty("colors")))) { valueSerializer.writeInt8(2) const value_source_value_2 = unsafeCast(value_source_value) valueSerializer.writeLinearGradient_common(value_source_value_2) @@ -20910,17 +21131,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeInt32(value_color_value_0_top_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_top_value_1 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_top_value_2 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_top_value_3 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20939,17 +21160,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeInt32(value_color_value_0_right_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_right_value_1 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_right_value_2 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_right_value_3 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20968,17 +21189,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeInt32(value_color_value_0_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_bottom_value_1 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_bottom_value_2 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_bottom_value_3 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20997,24 +21218,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeInt32(value_color_value_0_left_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_left_value_1 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_left_value_2 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_left_value_3 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) let value_color_value_1_type: int32 = RuntimeType.UNDEFINED @@ -21024,17 +21245,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = unsafeCast(value_color_value_1) valueSerializer.writeInt32(value_color_value_1_0) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1) const value_color_value_1_1 = unsafeCast(value_color_value_1) valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2) const value_color_value_1_2 = unsafeCast(value_color_value_1) valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3) const value_color_value_1_3 = unsafeCast(value_color_value_1) valueSerializer.writeResource(value_color_value_1_3) @@ -21109,7 +21330,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type: int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0) const value_style_value_0 = unsafeCast(value_style_value) const value_style_value_0_top = value_style_value_0.top @@ -21145,7 +21366,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value_0_left_value) } } - else if (((RuntimeType.NUMBER == value_style_value_type))) { + else if (RuntimeType.NUMBER == value_style_value_type) { valueSerializer.writeInt8(1) const value_style_value_1 = unsafeCast(value_style_value) valueSerializer.writeInt32(value_style_value_1) @@ -21360,17 +21581,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -21413,17 +21634,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = unsafeCast(value_inactiveColor_value) valueSerializer.writeInt32(value_inactiveColor_value_0) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1) const value_inactiveColor_value_1 = unsafeCast(value_inactiveColor_value) valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2) const value_inactiveColor_value_2 = unsafeCast(value_inactiveColor_value) valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3) const value_inactiveColor_value_3 = unsafeCast(value_inactiveColor_value) valueSerializer.writeResource(value_inactiveColor_value_3) @@ -21567,28 +21788,16 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTouchObject(value: TouchObject): void { + writeHistoricalPoint(value: HistoricalPoint): void { let valueSerializer: Serializer = this - const value_type = value.type - valueSerializer.writeInt32(value_type) - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - const value_windowX = value.windowX - valueSerializer.writeNumber(value_windowX) - const value_windowY = value.windowY - valueSerializer.writeNumber(value_windowY) - const value_screenX = value.screenX - valueSerializer.writeNumber(value_screenX) - const value_screenY = value.screenY - valueSerializer.writeNumber(value_screenY) - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) + const value_touchObject = value.touchObject + valueSerializer.writeTouchObject(value_touchObject) + const value_size = value.size + valueSerializer.writeNumber(value_size) + const value_force = value.force + valueSerializer.writeNumber(value_force) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) } writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): void { let valueSerializer: Serializer = this @@ -21695,12 +21904,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_1) @@ -21717,12 +21926,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -21736,12 +21945,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -21785,17 +21994,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = unsafeCast(value_strokeColor_value) valueSerializer.writeInt32(value_strokeColor_value_0) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1) const value_strokeColor_value_1 = unsafeCast(value_strokeColor_value) valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2) const value_strokeColor_value_2 = unsafeCast(value_strokeColor_value) valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3) const value_strokeColor_value_3 = unsafeCast(value_strokeColor_value) valueSerializer.writeResource(value_strokeColor_value_3) @@ -21845,7 +22054,7 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } - writeCanvasRenderer(value: CanvasRenderer): void { + writeOffscreenCanvas(value: OffscreenCanvas): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -21862,7 +22071,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeRenderingContextSettings(value: RenderingContextSettings): void { + writeCanvasRenderer(value: CanvasRenderer): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -21928,12 +22137,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type: int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0) const value_hintRadius_value_0 = unsafeCast(value_hintRadius_value) valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1) const value_hintRadius_value_1 = unsafeCast(value_hintRadius_value) valueSerializer.writeResource(value_hintRadius_value_1) @@ -21985,17 +22194,17 @@ export class Serializer extends SerializerBase { const value_workDayMarkColor_value_0 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeInt32(value_workDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_workDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_workDayMarkColor_value_1 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeNumber(value_workDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_workDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_workDayMarkColor_value_2 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeString(value_workDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_workDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_workDayMarkColor_value_3 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeResource(value_workDayMarkColor_value_3) @@ -22014,17 +22223,17 @@ export class Serializer extends SerializerBase { const value_offDayMarkColor_value_0 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeInt32(value_offDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_offDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_offDayMarkColor_value_1 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeNumber(value_offDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_offDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_offDayMarkColor_value_2 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeString(value_offDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_offDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_offDayMarkColor_value_3 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeResource(value_offDayMarkColor_value_3) @@ -22086,17 +22295,17 @@ export class Serializer extends SerializerBase { const value_weekColor_value_0 = unsafeCast(value_weekColor_value) valueSerializer.writeInt32(value_weekColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekColor_value_type) { valueSerializer.writeInt8(1) const value_weekColor_value_1 = unsafeCast(value_weekColor_value) valueSerializer.writeNumber(value_weekColor_value_1) } - else if (((RuntimeType.STRING == value_weekColor_value_type))) { + else if (RuntimeType.STRING == value_weekColor_value_type) { valueSerializer.writeInt8(2) const value_weekColor_value_2 = unsafeCast(value_weekColor_value) valueSerializer.writeString(value_weekColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekColor_value_type) { valueSerializer.writeInt8(3) const value_weekColor_value_3 = unsafeCast(value_weekColor_value) valueSerializer.writeResource(value_weekColor_value_3) @@ -22115,17 +22324,17 @@ export class Serializer extends SerializerBase { const value_weekendDayColor_value_0 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeInt32(value_weekendDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekendDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendDayColor_value_type) { valueSerializer.writeInt8(1) const value_weekendDayColor_value_1 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeNumber(value_weekendDayColor_value_1) } - else if (((RuntimeType.STRING == value_weekendDayColor_value_type))) { + else if (RuntimeType.STRING == value_weekendDayColor_value_type) { valueSerializer.writeInt8(2) const value_weekendDayColor_value_2 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeString(value_weekendDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendDayColor_value_type) { valueSerializer.writeInt8(3) const value_weekendDayColor_value_3 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeResource(value_weekendDayColor_value_3) @@ -22144,17 +22353,17 @@ export class Serializer extends SerializerBase { const value_weekendLunarColor_value_0 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeInt32(value_weekendLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekendLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(1) const value_weekendLunarColor_value_1 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeNumber(value_weekendLunarColor_value_1) } - else if (((RuntimeType.STRING == value_weekendLunarColor_value_type))) { + else if (RuntimeType.STRING == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(2) const value_weekendLunarColor_value_2 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeString(value_weekendLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(3) const value_weekendLunarColor_value_3 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeResource(value_weekendLunarColor_value_3) @@ -22208,17 +22417,17 @@ export class Serializer extends SerializerBase { const value_focusedDayColor_value_0 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeInt32(value_focusedDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedDayColor_value_type) { valueSerializer.writeInt8(1) const value_focusedDayColor_value_1 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeNumber(value_focusedDayColor_value_1) } - else if (((RuntimeType.STRING == value_focusedDayColor_value_type))) { + else if (RuntimeType.STRING == value_focusedDayColor_value_type) { valueSerializer.writeInt8(2) const value_focusedDayColor_value_2 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeString(value_focusedDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedDayColor_value_type) { valueSerializer.writeInt8(3) const value_focusedDayColor_value_3 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeResource(value_focusedDayColor_value_3) @@ -22237,17 +22446,17 @@ export class Serializer extends SerializerBase { const value_focusedLunarColor_value_0 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeInt32(value_focusedLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(1) const value_focusedLunarColor_value_1 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeNumber(value_focusedLunarColor_value_1) } - else if (((RuntimeType.STRING == value_focusedLunarColor_value_type))) { + else if (RuntimeType.STRING == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(2) const value_focusedLunarColor_value_2 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeString(value_focusedLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(3) const value_focusedLunarColor_value_3 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeResource(value_focusedLunarColor_value_3) @@ -22266,17 +22475,17 @@ export class Serializer extends SerializerBase { const value_focusedAreaBackgroundColor_value_0 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeInt32(value_focusedAreaBackgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(1) const value_focusedAreaBackgroundColor_value_1 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(2) const value_focusedAreaBackgroundColor_value_2 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(3) const value_focusedAreaBackgroundColor_value_3 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3) @@ -22306,17 +22515,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthDayColor_value_0 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeInt32(value_nonCurrentMonthDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthDayColor_value_1 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthDayColor_value_2 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthDayColor_value_3 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3) @@ -22335,17 +22544,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthLunarColor_value_0 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeInt32(value_nonCurrentMonthLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthLunarColor_value_1 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthLunarColor_value_2 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthLunarColor_value_3 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3) @@ -22364,17 +22573,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthWorkDayMarkColor_value_0 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeInt32(value_nonCurrentMonthWorkDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthWorkDayMarkColor_value_1 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthWorkDayMarkColor_value_2 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthWorkDayMarkColor_value_3 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3) @@ -22393,17 +22602,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthOffDayMarkColor_value_0 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeInt32(value_nonCurrentMonthOffDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthOffDayMarkColor_value_1 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthOffDayMarkColor_value_2 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthOffDayMarkColor_value_3 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3) @@ -22425,17 +22634,17 @@ export class Serializer extends SerializerBase { const value_dayColor_value_0 = unsafeCast(value_dayColor_value) valueSerializer.writeInt32(value_dayColor_value_0) } - else if (((RuntimeType.NUMBER == value_dayColor_value_type))) { + else if (RuntimeType.NUMBER == value_dayColor_value_type) { valueSerializer.writeInt8(1) const value_dayColor_value_1 = unsafeCast(value_dayColor_value) valueSerializer.writeNumber(value_dayColor_value_1) } - else if (((RuntimeType.STRING == value_dayColor_value_type))) { + else if (RuntimeType.STRING == value_dayColor_value_type) { valueSerializer.writeInt8(2) const value_dayColor_value_2 = unsafeCast(value_dayColor_value) valueSerializer.writeString(value_dayColor_value_2) } - else if (((RuntimeType.OBJECT == value_dayColor_value_type))) { + else if (RuntimeType.OBJECT == value_dayColor_value_type) { valueSerializer.writeInt8(3) const value_dayColor_value_3 = unsafeCast(value_dayColor_value) valueSerializer.writeResource(value_dayColor_value_3) @@ -22454,17 +22663,17 @@ export class Serializer extends SerializerBase { const value_lunarColor_value_0 = unsafeCast(value_lunarColor_value) valueSerializer.writeInt32(value_lunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_lunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_lunarColor_value_type) { valueSerializer.writeInt8(1) const value_lunarColor_value_1 = unsafeCast(value_lunarColor_value) valueSerializer.writeNumber(value_lunarColor_value_1) } - else if (((RuntimeType.STRING == value_lunarColor_value_type))) { + else if (RuntimeType.STRING == value_lunarColor_value_type) { valueSerializer.writeInt8(2) const value_lunarColor_value_2 = unsafeCast(value_lunarColor_value) valueSerializer.writeString(value_lunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_lunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_lunarColor_value_type) { valueSerializer.writeInt8(3) const value_lunarColor_value_3 = unsafeCast(value_lunarColor_value) valueSerializer.writeResource(value_lunarColor_value_3) @@ -22483,17 +22692,17 @@ export class Serializer extends SerializerBase { const value_markLunarColor_value_0 = unsafeCast(value_markLunarColor_value) valueSerializer.writeInt32(value_markLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_markLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_markLunarColor_value_type) { valueSerializer.writeInt8(1) const value_markLunarColor_value_1 = unsafeCast(value_markLunarColor_value) valueSerializer.writeNumber(value_markLunarColor_value_1) } - else if (((RuntimeType.STRING == value_markLunarColor_value_type))) { + else if (RuntimeType.STRING == value_markLunarColor_value_type) { valueSerializer.writeInt8(2) const value_markLunarColor_value_2 = unsafeCast(value_markLunarColor_value) valueSerializer.writeString(value_markLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_markLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_markLunarColor_value_type) { valueSerializer.writeInt8(3) const value_markLunarColor_value_3 = unsafeCast(value_markLunarColor_value) valueSerializer.writeResource(value_markLunarColor_value_3) @@ -22738,12 +22947,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type: int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((RuntimeType.NUMBER == value_position_value_type))) { + if (RuntimeType.NUMBER == value_position_value_type) { valueSerializer.writeInt8(0) const value_position_value_0 = unsafeCast(value_position_value) valueSerializer.writeInt32(value_position_value_0) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1) const value_position_value_1 = unsafeCast(value_position_value) valueSerializer.writePosition(value_position_value_1) @@ -22764,12 +22973,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type: int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((RuntimeType.NUMBER == value_position_value_type))) { + if (RuntimeType.NUMBER == value_position_value_type) { valueSerializer.writeInt8(0) const value_position_value_0 = unsafeCast(value_position_value) valueSerializer.writeInt32(value_position_value_0) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1) const value_position_value_1 = unsafeCast(value_position_value) valueSerializer.writePosition(value_position_value_1) @@ -22896,12 +23105,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -22919,17 +23128,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -22948,17 +23157,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -23004,12 +23213,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -23022,12 +23231,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -23128,6 +23337,23 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeSystemOps(value: SystemOps): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeLazyForEachOps(value: LazyForEachOps): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) diff --git a/arkoala-arkts/arkui/src/generated/MaterializedBase.ts b/arkoala/arkui/src/generated/shared/generated-utils.ts similarity index 69% rename from arkoala-arkts/arkui/src/generated/MaterializedBase.ts rename to arkoala/arkui/src/generated/shared/generated-utils.ts index dd2abe858..59eb317f5 100644 --- a/arkoala-arkts/arkui/src/generated/MaterializedBase.ts +++ b/arkoala/arkui/src/generated/shared/generated-utils.ts @@ -13,9 +13,20 @@ * limitations under the License. */ -import { Finalizable } from "@koalaui/interop" +export { unsafeCast } from "@koalaui/interop" -export interface MaterializedBase { - getPeer(): Finalizable | undefined +export enum GestureName { + Tap, + LongPress, + Pan, + Pinch, + Swipe, + Rotation, + Group } +export class GestureComponent { + public type?: GestureName + public value?: T + public hasEvent?: Int32Array +} diff --git a/arkoala/arkui/src/use_properties.ts b/arkoala/arkui/src/generated/use_properties.ts similarity index 93% rename from arkoala/arkui/src/use_properties.ts rename to arkoala/arkui/src/generated/use_properties.ts index bdd36496b..2aa4d4cf2 100644 --- a/arkoala/arkui/src/use_properties.ts +++ b/arkoala/arkui/src/generated/use_properties.ts @@ -1,5 +1,3 @@ -// stub for idlize generated code - import { GeneratedPartialPropertiesType, PeerNode, PeerNodeType } from "@koalaui/arkoala" import { PeerEventsProperties } from "./peer_events" import { DataNode, contextNode } from "@koalaui/runtime" diff --git a/arkoala/arkui/src/handwritten/ArkNavPathStack.ts b/arkoala/arkui/src/handwritten/ArkNavPathStack.ts index cca42b1a1..c4912da13 100644 --- a/arkoala/arkui/src/handwritten/ArkNavPathStack.ts +++ b/arkoala/arkui/src/handwritten/ArkNavPathStack.ts @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { GlobalStateManager, MutableState } from "@koalaui/runtime" export class PathData { readonly name: string diff --git a/arkoala/arkui/src/handwritten/ArkPageTransition.ts b/arkoala/arkui/src/handwritten/ArkPageTransition.ts index f681be159..7b3adec0c 100644 --- a/arkoala/arkui/src/handwritten/ArkPageTransition.ts +++ b/arkoala/arkui/src/handwritten/ArkPageTransition.ts @@ -17,6 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ComponentBase } from "../ComponentBase" + /** @memo:stable */ export class ArkCommonTransitionComponent extends ComponentBase { // getPeer(): ArkCommonTransitionPeer { diff --git a/arkoala/arkui/src/index.ts b/arkoala/arkui/src/index.ts index a0aa4dab8..cf654d259 100644 --- a/arkoala/arkui/src/index.ts +++ b/arkoala/arkui/src/index.ts @@ -12,43 +12,43 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from "./ArkUIGeneratedNativeModule" -export * from "./ArkUIGeneratedNativeModuleEmpty" +export * from "./generated/ArkUIGeneratedNativeModule" +export * from "./generated/ArkUIGeneratedNativeModuleEmpty" export * from "./peer_events_checker" export * from "./root_construct" -export * from "./ArkButton" -export * from "./ArkColumn" -export { ArkCommonMethodComponent} from "./ArkCommon" -export * from "./ArkXComponentControllerMaterialized" -export * from "./ArkScrollerMaterialized" -export * from "./ArkVideoControllerMaterialized" -export * from "./ArkCanvasRenderingContext2DMaterialized" +export * from "./generated/ArkButton" +export * from "./generated/ArkColumn" +export { ArkCommonMethodComponent} from "./generated/ArkCommon" +export * from "./generated/ArkXComponentControllerMaterialized" +export * from "./generated/ArkScrollerMaterialized" +export * from "./generated/ArkVideoControllerMaterialized" +export * from "./generated/ArkCanvasRenderingContext2DMaterialized" export * from "./ComponentBase" -export * from "./ArkColumnSplit" -export * from "./ArkRow" -export * from "./ArkRowSplit" -export * from "./ArkText" -export * from "./ArkTextArea" -export * from "./ArkTextInput" -export * from "./ArkImage" -export * from "./ArkMediaCachedImage" -export * from "./ArkStack" -export * from "./ArkList" -export * from "./ArkListItem" -export * from "./ArkDatePicker" -export * from "./ArkDivider" -export * from "./ArkFlex" -export * from "./ArkFormLink" -export * from "./ArkVideo" -export * from "./ArkWeb" -export * from "./ArkNavigator" -export * from "./ArkGrid" -export * from "./ArkGridItem" -export * from "./ArkScrollBar" -export * from "./ArkScroll" -export * from "./ArkSlider" -export * from "./ArkStepper" -export * from "./ArkSwiper" +export * from "./generated/ArkColumnSplit" +export * from "./generated/ArkRow" +export * from "./generated/ArkRowSplit" +export * from "./generated/ArkText" +export * from "./generated/ArkTextArea" +export * from "./generated/ArkTextInput" +export * from "./generated/ArkImage" +export * from "./generated/ArkMediaCachedImage" +export * from "./generated/ArkStack" +export * from "./generated/ArkList" +export * from "./generated/ArkListItem" +export * from "./generated/ArkDatePicker" +export * from "./generated/ArkDivider" +export * from "./generated/ArkFlex" +export * from "./generated/ArkFormLink" +export * from "./generated/ArkVideo" +export * from "./generated/ArkWeb" +export * from "./generated/ArkNavigator" +export * from "./generated/ArkGrid" +export * from "./generated/ArkGridItem" +export * from "./generated/ArkScrollBar" +export * from "./generated/ArkScroll" +export * from "./generated/ArkSlider" +export * from "./generated/ArkStepper" +export * from "./generated/ArkSwiper" export * from "./shared/ArkResource" export * from "./ArkComponentRoot" export * from "./ArkCustomDialogCommon" @@ -58,71 +58,71 @@ export * from "./Events" export * from "./ArkRoot" export * from "./ForEach" export * from "./LazyForEach" -export * from "./ArkTabs" +export * from "./generated/ArkTabs" export * from "./shared/Controllers" export * from "./ArkAnimation" export * from "./handwritten/ArkPageTransition" export * from "./handwritten/ArkNavPathStack" export * from "./shared/ohos.router" export * from "./shared/ohos.matrix4" -export * from "./ArkNavDestination" +export * from "./generated/ArkNavDestination" export * from "./ArkGesture" -export * from "./ArkCanvas" -export * from "./ArkGauge" -export * from "./ArkBadge" -export * from "./ArkHyperlink" -export * from "./ArkToggle" -export * from "./ArkRefresh" -export * from "./ArkAlphabetIndexer" -export * from "./ArkBlank" -export * from "./ArkCheckbox" -export * from "./ArkCheckboxgroup" -export * from "./ArkMenu" -export * from "./ArkMenuItem" -export * from "./ArkMenuItemGroup" -export * from "./ArkListItemGroup" -export * from "./ArkLoadingProgress" -export * from "./ArkImageAnimator" -export * from "./ArkRating" -export * from "./ArkSearch" -export * from "./ArkTextClock" -export * from "./ArkTextPicker" -export * from "./ArkTextTimer" -export * from "./ArkTimePicker" +export * from "./generated/ArkCanvas" +export * from "./generated/ArkGauge" +export * from "./generated/ArkBadge" +export * from "./generated/ArkHyperlink" +export * from "./generated/ArkToggle" +export * from "./generated/ArkRefresh" +export * from "./generated/ArkAlphabetIndexer" +export * from "./generated/ArkBlank" +export * from "./generated/ArkCheckbox" +export * from "./generated/ArkCheckboxgroup" +export * from "./generated/ArkMenu" +export * from "./generated/ArkMenuItem" +export * from "./generated/ArkMenuItemGroup" +export * from "./generated/ArkListItemGroup" +export * from "./generated/ArkLoadingProgress" +export * from "./generated/ArkImageAnimator" +export * from "./generated/ArkRating" +export * from "./generated/ArkSearch" +export * from "./generated/ArkTextClock" +export * from "./generated/ArkTextPicker" +export * from "./generated/ArkTextTimer" +export * from "./generated/ArkTimePicker" -export * from "./ArkTabContent" -export * from "./ArkSidebar" +export * from "./generated/ArkTabContent" +export * from "./generated/ArkSidebar" -export * from "./ArkMarquee" -export * from "./ArkSpan" -export * from "./ArkSelect" -export * from "./ArkCounter" -export * from "./ArkGridCol" -export * from "./ArkGridRow" -export * from "./ArkXcomponent" -export * from "./ArkRelativeContainer" -export * from "./ArkWeb" -export * from "./ArkEffectComponent" +export * from "./generated/ArkMarquee" +export * from "./generated/ArkSpan" +export * from "./generated/ArkSelect" +export * from "./generated/ArkCounter" +export * from "./generated/ArkGridCol" +export * from "./generated/ArkGridRow" +export * from "./generated/ArkXcomponent" +export * from "./generated/ArkRelativeContainer" +export * from "./generated/ArkWeb" +export * from "./generated/ArkEffectComponent" -export * from "./ArkRadio" -export * from "./ArkPatternLock" +export * from "./generated/ArkRadio" +export * from "./generated/ArkPatternLock" -export * from "./ArkRichEditor" -export * from "./ArkQrcode" +export * from "./generated/ArkRichEditor" +export * from "./generated/ArkQrcode" //shape -export * from "./ArkShape" -export * from "./ArkLine" -export * from "./ArkCircle" -export * from "./ArkEllipse" -export * from "./ArkPolygon" -export * from "./ArkPolyline" -export * from "./ArkRect" -export * from "./ArkPath" +export * from "./generated/ArkShape" +export * from "./generated/ArkLine" +export * from "./generated/ArkCircle" +export * from "./generated/ArkEllipse" +export * from "./generated/ArkPolygon" +export * from "./generated/ArkPolyline" +export * from "./generated/ArkRect" +export * from "./generated/ArkPath" export { _r, _rawfile, __registerResources } from "./resources" export * from "./ArkTransition" -export * from "./ArkDataPanel" -export * from "./ArkPanel" +export * from "./generated/ArkDataPanel" +export * from "./generated/ArkPanel" export { ArkPageTransitionEnterComponent, ArkPageTransitionEnterComponent as PageTransitionEnterAttribute, @@ -134,9 +134,9 @@ export { export { Observed, observableProxy } from "@koalaui/common" export * from "@koalaui/arkui-common" export * from "./shared/ArkUtils" -export * from "./peers/ArkButtonPeer" -export { ArkCommonMethodPeer } from "./peers/ArkCommonPeer" -export * from "./peers/ArkTextInputPeer" +export * from "./generated/peers/ArkButtonPeer" +export { ArkCommonMethodPeer } from "./generated/peers/ArkCommonPeer" +export * from "./generated/peers/ArkTextInputPeer" export { startApplicationByPageUrl } from "./startApplication" @@ -144,83 +144,83 @@ export { startApplicationByPageUrl } from "./startApplication" export { ArkUINodeType } from "./peers/ArkUINodeType" export { LinearGradient } from "./shared/LinearGradient" -export * from "./peers/ArkCommonPeer" -export * from "./ArkSubTabBarStyleBuilder" -export * from "./ArkBottomTabBarStyleBuilder" -export * from "./ArkIndicatorBuilder" +export * from "./generated/peers/ArkCommonPeer" +export * from "./generated/ArkSubTabBarStyleBuilder" +export * from "./generated/ArkBottomTabBarStyleBuilder" +export * from "./generated/ArkIndicatorBuilder" export * from "./ArkNavigation" export { Attach } from "./ComponentBase" -export * from "./ArkNavPathStackMaterialized" -export * from "./ArkTabsControllerMaterialized" -export * from "./ArkRenderingContextSettingsMaterialized" +export * from "./generated/ArkNavPathStackMaterialized" +export * from "./generated/ArkTabsControllerMaterialized" +export * from "./generated/ArkRenderingContextSettingsMaterialized" -export * from "./ArkAlertDialogInterfaces" -export * from "./ArkAlphabetIndexerInterfaces" -export * from "./ArkArkuiCustomInterfaces" -export * from "./ArkArkuiExternalInterfaces" -export * from "./ArkBadgeInterfaces" -export * from "./ArkButtonInterfaces" -export * from "./ArkCanvasInterfaces" -export * from "./ArkCalendarPickerInterfaces" -export * from "./ArkCheckboxgroupInterfaces" -export * from "./ArkCommonInterfaces" -export * from "./ArkComponent3dInterfaces" -export * from "./ArkDataPanelInterfaces" -export * from "./ArkEnumsInterfaces" -export * from "./ArkFocusInterfaces" -export * from "./ArkFormComponentInterfaces" -export * from "./ArkGestureInterfaces" -export * from "./ArkGridContainerInterfaces" -export * from "./ArkGridInterfaces" -export * from "./ArkGridItemInterfaces" -export * from "./ArkGridRowInterfaces" -export * from "./ArkImageCommonInterfaces" -export * from "./ArkImageInterfaces" -export * from "./ArkLazyForEachInterfaces" -export * from "./ArkListInterfaces" -export * from "./ArkListItemGroupInterfaces" -export * from "./ArkListItemInterfaces" -export * from "./ArkLoadingProgressInterfaces" -export * from "./ArkLocationButtonInterfaces" -export * from "./ArkMenuInterfaces" -export * from "./ArkNavDestinationInterfaces" -export * from "./ArkNavigationInterfaces" -export * from "./ArkNavigatorInterfaces" -export * from "./ArkNavRouterInterfaces" -export * from "./ArkPageTransitionInterfaces" -export * from "./ArkPanelInterfaces" -export * from "./ArkParticleInterfaces" -export * from "./ArkPasteButtonInterfaces" -export * from "./ArkPatternLockInterfaces" -export * from "./ArkProgressInterfaces" -export * from "./ArkRadioInterfaces" -export * from "./ArkRefreshInterfaces" -export * from "./ArkRelativeContainerInterfaces" -export * from "./ArkResourceInterfaces" -export * from "./ArkRichEditorInterfaces" -export * from "./ArkSaveButtonInterfaces" -export * from "./ArkScrollBarInterfaces" -export * from "./ArkScrollInterfaces" -export * from "./ArkSearchInterfaces" -export * from "./ArkSecurityComponentInterfaces" -export * from "./ArkSelectInterfaces" -export * from "./ArkSidebarInterfaces" -export * from "./ArkSliderInterfaces" -export * from "./ArkStateManagementInterfaces" -export * from "./ArkStepperItemInterfaces" -export * from "./ArkStyledStringInterfaces" -export * from "./ArkSwiperInterfaces" -export * from "./ArkSymbolglyphInterfaces" -export * from "./ArkTabContentInterfaces" -export * from "./ArkTabsInterfaces" -export * from "./ArkTextAreaInterfaces" -export * from "./ArkTextCommonInterfaces" -export * from "./ArkTextInputInterfaces" -export * from "./ArkTextInterfaces" -export * from "./ArkTimePickerInterfaces" -export * from "./ArkToggleInterfaces" -export * from "./ArkUiExtensionComponentInterfaces" -export * from "./ArkVideoInterfaces" -export * from "./ArkWaterFlowInterfaces" -export * from "./ArkWebInterfaces" +export * from "./generated/ArkAlertDialogInterfaces" +export * from "./generated/ArkAlphabetIndexerInterfaces" +export * from "./generated/ArkArkuiCustomInterfaces" +export * from "./generated/ArkArkuiExternalInterfaces" +export * from "./generated/ArkBadgeInterfaces" +export * from "./generated/ArkButtonInterfaces" +export * from "./generated/ArkCanvasInterfaces" +export * from "./generated/ArkCalendarPickerInterfaces" +export * from "./generated/ArkCheckboxgroupInterfaces" +export * from "./generated/ArkCommonInterfaces" +export * from "./generated/ArkComponent3dInterfaces" +export * from "./generated/ArkDataPanelInterfaces" +export * from "./generated/ArkEnumsInterfaces" +export * from "./generated/ArkFocusInterfaces" +export * from "./generated/ArkFormComponentInterfaces" +export * from "./generated/ArkGestureInterfaces" +export * from "./generated/ArkGridContainerInterfaces" +export * from "./generated/ArkGridInterfaces" +export * from "./generated/ArkGridItemInterfaces" +export * from "./generated/ArkGridRowInterfaces" +export * from "./generated/ArkImageCommonInterfaces" +export * from "./generated/ArkImageInterfaces" +export * from "./generated/ArkLazyForEachInterfaces" +export * from "./generated/ArkListInterfaces" +export * from "./generated/ArkListItemGroupInterfaces" +export * from "./generated/ArkListItemInterfaces" +export * from "./generated/ArkLoadingProgressInterfaces" +export * from "./generated/ArkLocationButtonInterfaces" +export * from "./generated/ArkMenuInterfaces" +export * from "./generated/ArkNavDestinationInterfaces" +export * from "./generated/ArkNavigationInterfaces" +export * from "./generated/ArkNavigatorInterfaces" +export * from "./generated/ArkNavRouterInterfaces" +export * from "./generated/ArkPageTransitionInterfaces" +export * from "./generated/ArkPanelInterfaces" +export * from "./generated/ArkParticleInterfaces" +export * from "./generated/ArkPasteButtonInterfaces" +export * from "./generated/ArkPatternLockInterfaces" +export * from "./generated/ArkProgressInterfaces" +export * from "./generated/ArkRadioInterfaces" +export * from "./generated/ArkRefreshInterfaces" +export * from "./generated/ArkRelativeContainerInterfaces" +export * from "./generated/ArkResourceInterfaces" +export * from "./generated/ArkRichEditorInterfaces" +export * from "./generated/ArkSaveButtonInterfaces" +export * from "./generated/ArkScrollBarInterfaces" +export * from "./generated/ArkScrollInterfaces" +export * from "./generated/ArkSearchInterfaces" +export * from "./generated/ArkSecurityComponentInterfaces" +export * from "./generated/ArkSelectInterfaces" +export * from "./generated/ArkSidebarInterfaces" +export * from "./generated/ArkSliderInterfaces" +export * from "./generated/ArkStateManagementInterfaces" +export * from "./generated/ArkStepperItemInterfaces" +export * from "./generated/ArkStyledStringInterfaces" +export * from "./generated/ArkSwiperInterfaces" +export * from "./generated/ArkSymbolglyphInterfaces" +export * from "./generated/ArkTabContentInterfaces" +export * from "./generated/ArkTabsInterfaces" +export * from "./generated/ArkTextAreaInterfaces" +export * from "./generated/ArkTextCommonInterfaces" +export * from "./generated/ArkTextInputInterfaces" +export * from "./generated/ArkTextInterfaces" +export * from "./generated/ArkTimePickerInterfaces" +export * from "./generated/ArkToggleInterfaces" +export * from "./generated/ArkUiExtensionComponentInterfaces" +export * from "./generated/ArkVideoInterfaces" +export * from "./generated/ArkWaterFlowInterfaces" +export * from "./generated/ArkWebInterfaces" diff --git a/arkoala/arkui/src/peer_events_checker.ts b/arkoala/arkui/src/peer_events_checker.ts index 4ec05894c..441b21d9f 100644 --- a/arkoala/arkui/src/peer_events_checker.ts +++ b/arkoala/arkui/src/peer_events_checker.ts @@ -1,7 +1,7 @@ -import {InteropNativeModule, ResourceHolder} from "@koalaui/interop" -import {setCustomEventsChecker} from "@koalaui/arkoala" -import {Deserializer} from "./peers/Deserializer" -import {deserializeAndCallCallback} from "./peers/CallbackDeserializeCall" +import { InteropNativeModule, ResourceHolder } from "@koalaui/interop" +import { setCustomEventsChecker } from "@koalaui/arkoala" +import { Deserializer } from "./generated/peers/Deserializer" +import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" enum CallbackEventKind { Event_CallCallback = 0, diff --git a/arkoala/arkui/src/peers/ArkNavigationPeer.ts b/arkoala/arkui/src/peers/ArkNavigationPeer.ts index 726568187..1987a2c1a 100644 --- a/arkoala/arkui/src/peers/ArkNavigationPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavigationPeer.ts @@ -17,11 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32 } from "@koalaui/common" -import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import {ArkCommonMethodAttributes, ArkCommonMethodPeer} from "./ArkCommonPeer" -import {ComponentBase} from "../ComponentBase"; -import {PeerNode} from "../PeerNode"; -import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { KPointer } from "@koalaui/interop" +import { ArkCommonMethodAttributes, ArkCommonMethodPeer } from "../generated/peers/ArkCommonPeer" +import { ComponentBase } from "../ComponentBase"; +import { PeerNode } from "../PeerNode"; +import { ArkUIGeneratedNativeModule } from "../generated/ArkUIGeneratedNativeModule" export class ArkNavigationPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/root_construct.ts b/arkoala/arkui/src/root_construct.ts index 9bfc51572..4bc42c5c8 100644 --- a/arkoala/arkui/src/root_construct.ts +++ b/arkoala/arkui/src/root_construct.ts @@ -1,4 +1,4 @@ -import { ArkRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkRootPeer } from "./generated/peers/ArkStaticComponentsPeer" import { setRootConstruct } from "@koalaui/arkoala" setRootConstruct(() => ArkRootPeer.create()) \ No newline at end of file diff --git a/arkoala/arkui/src/shared/Controllers.ts b/arkoala/arkui/src/shared/Controllers.ts index d7bbde2f4..fbf5731b6 100644 --- a/arkoala/arkui/src/shared/Controllers.ts +++ b/arkoala/arkui/src/shared/Controllers.ts @@ -13,10 +13,9 @@ * limitations under the License. */ -import { Access, nullptr, pointer, withFloat32Array, KFloat32ArrayPtr, withInt32Array, KInt32ArrayPtr } from "@koalaui/interop"; -import { parseDimension, translateGeoLengthToArray } from "./basic" -import {WebCookie} from "../ArkWebCookieMaterialized"; -import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule"; +import { nullptr, pointer } from "@koalaui/interop"; +import { WebCookie } from "../generated/ArkWebCookieMaterialized"; +import { ArkUIGeneratedNativeModule } from "../generated/ArkUIGeneratedNativeModule"; interface RunJavaScriptType { script: string; diff --git a/arkoala/arkui/src/shared/basic.ts b/arkoala/arkui/src/shared/basic.ts index 8a2a4b5b6..3b7b2dd48 100644 --- a/arkoala/arkui/src/shared/basic.ts +++ b/arkoala/arkui/src/shared/basic.ts @@ -15,7 +15,6 @@ import { ArkoalaColor, translateColorToArkoalaColor } from "./ArkoalaColor" import { isEdgeColors, isEdgeWidths } from "./utils" -import { Access, withFloat32Array, withString } from "@koalaui/interop"; import { parseFontWeight } from "../base/textUtils"; import { clamp } from "@koalaui/common"; diff --git a/arkoala/arkui/src/shared/generated-utils.ts b/arkoala/arkui/src/shared/generated-utils.ts deleted file mode 100644 index a8f915e93..000000000 --- a/arkoala/arkui/src/shared/generated-utils.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * TODO: move to compat - */ - -/** - * Only to workaround non-int enums - */ -export function unsafeCast(value: unknown): T { - return value as unknown as T -} - -export enum GestureName { - Tap, - LongPress, - Pan, - Pinch, - Swipe, - Rotation, - Group -} - -export class GestureComponent { - public type?: GestureName - public value?: T - public hasEvent?: Int32Array -} diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index 75a4c7974..23c705968 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -138,6 +138,29 @@ inline Ark_RuntimeType runtimeType(const Opt_Length& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) +{ + return INTEROP_RUNTIME_BOOLEAN; +} +template <> +inline void WriteToString(std::string* result, const Opt_Boolean* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Resource& value) { return INTEROP_RUNTIME_OBJECT; @@ -505,29 +528,6 @@ inline Ark_RuntimeType runtimeType(const Opt_PixelMap& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) -{ - return INTEROP_RUNTIME_BOOLEAN; -} -template <> -inline void WriteToString(std::string* result, const Opt_Boolean* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) { switch (value.selector) { @@ -5584,6 +5584,37 @@ inline Ark_RuntimeType runtimeType(const Opt_TextMenuItemId& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Affinity& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Affinity* value) { + result->append("{"); + // Ark_String _AffinityStub + result->append("._AffinityStub="); + WriteToString(result, &value->_AffinityStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Affinity* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Affinity& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const MenuOnAppearCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -6771,6 +6802,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_StyledStringChangeValue_Bo return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value); + +inline void WriteToString(std::string* result, const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorImageSpanStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -7374,6 +7444,35 @@ inline Ark_RuntimeType runtimeType(const Opt_SwipeActionItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ListItemGroupArea& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ListItemGroupArea value) { + result->append("Ark_ListItemGroupArea("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ListItemGroupArea& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_BreakpointsReference& value) { return INTEROP_RUNTIME_NUMBER; @@ -10951,6 +11050,41 @@ inline Ark_RuntimeType runtimeType(const Opt_DrawContext& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CustomSpanMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CustomSpanMetrics* value) { + result->append("{"); + // Ark_Number width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CustomSpanMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CustomSpanMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CustomSpanMeasureInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -11303,6 +11437,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_UIExtensionProxy_Void& val return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WaterFlowAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WaterFlowAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WaterFlowAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WaterFlowAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_WaterFlowLayoutMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -11797,6 +11959,62 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Number_surfaceHeight_surfac return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WindowSceneAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WindowSceneAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WindowSceneAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WindowSceneAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_WebAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WebAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WebAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SelectionMenuOptionsExt& value) { return INTEROP_RUNTIME_OBJECT; @@ -12936,6 +13154,62 @@ inline Ark_RuntimeType runtimeType(const Opt_RenderMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebCookie& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebCookie value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_WebCookie* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WebCookie& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_HitTestType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_HitTestType value) { + result->append("Ark_HitTestType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_HitTestType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_HitTestType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Object_object__String_name_Array_String_methodList& value) { return INTEROP_RUNTIME_OBJECT; @@ -13092,6 +13366,122 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_String_script_Callback_Stri return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_MessageLevel& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_MessageLevel value) { + result->append("Ark_MessageLevel("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MessageLevel* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MessageLevel& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuInputFieldType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuInputFieldType value) { + result->append("Ark_ContextMenuInputFieldType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuInputFieldType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuSourceType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuSourceType value) { + result->append("Ark_ContextMenuSourceType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuSourceType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuMediaType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuMediaType value) { + result->append("Ark_ContextMenuMediaType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuMediaType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ScreenCaptureConfig& value) { return INTEROP_RUNTIME_OBJECT; @@ -13123,6 +13513,35 @@ inline Ark_RuntimeType runtimeType(const Opt_ScreenCaptureConfig& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FileSelectorMode& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_FileSelectorMode value) { + result->append("Ark_FileSelectorMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FileSelectorMode* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_FileSelectorMode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_VideoController& value) { return INTEROP_RUNTIME_OBJECT; @@ -13672,6 +14091,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_ResourceStr_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextInputAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextInputAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextInputAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextInputAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_InputCounterOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14029,6 +14476,161 @@ inline Ark_RuntimeType runtimeType(const Opt_RectWidthStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_LineMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LineMetrics* value) { + result->append("{"); + // Ark_String _LineMetricsStub + result->append("._LineMetricsStub="); + WriteToString(result, &value->_LineMetricsStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LineMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LineMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PositionWithAffinity& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PositionWithAffinity* value) { + result->append("{"); + // Ark_Number position + result->append(".position="); + WriteToString(result, &value->position); + // Ark_Affinity affinity + result->append(", "); + result->append(".affinity="); + WriteToString(result, &value->affinity); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PositionWithAffinity* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PositionWithAffinity& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MutableStyledString& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MutableStyledString value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_MutableStyledString* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MutableStyledString& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PreviewText& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PreviewText* value) { + result->append("{"); + // Ark_Number offset + result->append(".offset="); + WriteToString(result, &value->offset); + // Ark_String value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PreviewText* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PreviewText& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_LayoutManager& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LayoutManager value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LayoutManager& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextClockController& value) { return INTEROP_RUNTIME_OBJECT; @@ -14056,6 +14658,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TextClockController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextAreaAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAreaAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextAreaAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextAreaAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextAreaController& value) { return INTEROP_RUNTIME_OBJECT; @@ -14083,6 +14713,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TextAreaController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SelectionMenuOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14391,6 +15049,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TabBarOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TabsAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TabsAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TabsAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TabsAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_BackgroundBlurStyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14655,6 +15341,34 @@ inline Ark_RuntimeType runtimeType(const Opt_BarPosition& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SymbolGlyphAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SymbolGlyphAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SymbolEffect& value) { return INTEROP_RUNTIME_OBJECT; @@ -14920,6 +15634,34 @@ inline Ark_RuntimeType runtimeType(const Opt_DotIndicator& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SwiperAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SwiperAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SwiperAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SwiperAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SwiperAutoFill& value) { return INTEROP_RUNTIME_OBJECT; @@ -15033,6 +15775,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_SwiperContentTransitionPro return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SliderAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SliderAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SliderAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SliderAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SliderBlockType& value) { return INTEROP_RUNTIME_NUMBER; @@ -15091,6 +15861,34 @@ inline Ark_RuntimeType runtimeType(const Opt_SliderStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ShapeAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ShapeAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ShapeAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ShapeAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Callback_Union_Number_Resource_Void& value) { return INTEROP_RUNTIME_OBJECT; @@ -15122,6 +15920,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Union_Number_Resource_Void return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SelectAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SelectAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SelectAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SelectAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_MenuAlignType& value) { return INTEROP_RUNTIME_NUMBER; @@ -15266,6 +16092,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Edges& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SearchAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SearchAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SearchAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SearchAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SearchButtonOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15489,6 +16343,34 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollBarDirection& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ScrollAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScrollAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScrollAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ScrollAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_EdgeEffectOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15625,6 +16507,49 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollOnWillScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RectResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RectResult* value) { + result->append("{"); + // Ark_Number x + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + // Ark_Number width + result->append(", "); + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RectResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RectResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollToIndexOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15685,6 +16610,41 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollAlign& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffsetResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffsetResult* value) { + result->append("{"); + // Ark_Number xOffset + result->append(".xOffset="); + WriteToString(result, &value->xOffset); + // Ark_Number yOffset + result->append(", "); + result->append(".yOffset="); + WriteToString(result, &value->yOffset); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffsetResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffsetResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Boolean_next_Axis_direction& value) { return INTEROP_RUNTIME_OBJECT; @@ -16011,6 +16971,34 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PlaceholderStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -16356,45 +17344,6 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorTextSpanResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value); - -inline void WriteToString(std::string* result, const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorDeleteDirection& value) { return INTEROP_RUNTIME_NUMBER; @@ -16494,6 +17443,41 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorRange& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorSelection& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorSelection* value) { + result->append("{"); + // Ark_Tuple_Number_Number selection + result->append(".selection="); + WriteToString(result, &value->selection); + // Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans + result->append(", "); + result->append(".spans="); + WriteToString(result, &value->spans); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorSelection* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorSelection& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorParagraphStyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -17638,6 +18622,34 @@ inline Ark_RuntimeType runtimeType(const Opt_NavigationOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_NavDestinationAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavDestinationAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavDestinationAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_NavDestinationAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationToolbarOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -17944,6 +18956,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_NavigationMenuItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RouteMapConfig& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RouteMapConfig* value) { + result->append("{"); + // Ark_String name + result->append(".name="); + WriteToString(result, &value->name); + // Ark_String pageSourceFile + result->append(", "); + result->append(".pageSourceFile="); + WriteToString(result, &value->pageSourceFile); + // Ark_CustomObject data + result->append(", "); + result->append(".data="); + WriteToString(result, &value->data); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RouteMapConfig* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RouteMapConfig& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_CustomBuilder& value) { switch (value.selector) { @@ -18442,6 +19493,34 @@ inline Ark_RuntimeType runtimeType(const Opt_ListItemStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ListAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ListAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ListAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ListAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LengthConstrain& value) { return INTEROP_RUNTIME_OBJECT; @@ -18477,18 +19556,18 @@ inline Ark_RuntimeType runtimeType(const Opt_LengthConstrain& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ListItemGroupArea& value) +inline Ark_RuntimeType runtimeType(const Ark_ChainEdgeEffect& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ListItemGroupArea value) { - result->append("Ark_ListItemGroupArea("); +inline void WriteToString(std::string* result, const Ark_ChainEdgeEffect value) { + result->append("Ark_ChainEdgeEffect("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* value) { +inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -18501,28 +19580,38 @@ inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ListItemGroupArea& value) +inline Ark_RuntimeType runtimeType(const Opt_ChainEdgeEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ChainEdgeEffect& value) +inline Ark_RuntimeType runtimeType(const Ark_VisibleListContentInfo& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ChainEdgeEffect value) { - result->append("Ark_ChainEdgeEffect("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_VisibleListContentInfo* value) { + result->append("{"); + // Ark_Number index + result->append(".index="); + WriteToString(result, &value->index); + // Ark_ListItemGroupArea itemGroupArea + result->append(", "); + result->append(".itemGroupArea="); + WriteToString(result, &value->itemGroupArea); + // Ark_Number itemIndexInGroup + result->append(", "); + result->append(".itemIndexInGroup="); + WriteToString(result, &value->itemIndexInGroup); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) { +inline void WriteToString(std::string* result, const Opt_VisibleListContentInfo* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -18530,7 +19619,7 @@ inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ChainEdgeEffect& value) +inline Ark_RuntimeType runtimeType(const Opt_VisibleListContentInfo& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -18961,6 +20050,34 @@ inline Ark_RuntimeType runtimeType(const Opt_GridItemStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GridAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GridAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GridAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GridAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_GridItemAlignment& value) { return INTEROP_RUNTIME_NUMBER; @@ -19052,6 +20169,118 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Tuple_Number_Number return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PanGestureOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PanGestureOptions value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PanGestureOptions* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PanGestureOptions& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_EventTargetInfo& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_EventTargetInfo value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_EventTargetInfo* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_EventTargetInfo& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureRecognizerState& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureRecognizerState value) { + result->append("Ark_GestureRecognizerState("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureRecognizerState* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GestureRecognizerState& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureControl_GestureType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureControl_GestureType value) { + result->append("Ark_GestureControl_GestureType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureControl_GestureType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GestureControl_GestureType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PanDirection& value) { return INTEROP_RUNTIME_NUMBER; @@ -19932,6 +21161,34 @@ inline Ark_RuntimeType runtimeType(const Opt_AnimateParam& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Component3DAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Component3DAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Component3DAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Component3DAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ModelType& value) { return INTEROP_RUNTIME_NUMBER; @@ -20006,6 +21263,37 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceStr_Scene& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Context& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Context* value) { + result->append("{"); + // Ark_String _ContextStub + result->append("._ContextStub="); + WriteToString(result, &value->_ContextStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Context* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Context& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) { return INTEROP_RUNTIME_NUMBER; @@ -20406,6 +21694,123 @@ inline Ark_RuntimeType runtimeType(const Opt_ContentClipMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CaretOffset& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CaretOffset* value) { + result->append("{"); + // Ark_Number index + result->append(".index="); + WriteToString(result, &value->index); + // Ark_Number x + result->append(", "); + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CaretOffset* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CaretOffset& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DirectionalEdgesT& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DirectionalEdgesT* value) { + result->append("{"); + // Ark_Number start + result->append(".start="); + WriteToString(result, &value->start); + // Ark_Number end + result->append(", "); + result->append(".end="); + WriteToString(result, &value->end); + // Ark_Number top + result->append(", "); + result->append(".top="); + WriteToString(result, &value->top); + // Ark_Number bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_DirectionalEdgesT* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_DirectionalEdgesT& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MeasureResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MeasureResult* value) { + result->append("{"); + // Ark_Number width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MeasureResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MeasureResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ConstraintSizeOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -21902,35 +23307,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Alignment_align& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureControl_GestureType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_GestureControl_GestureType value) { - result->append("Ark_GestureControl_GestureType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_GestureControl_GestureType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureControl_GestureType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_PathShape& value) { return INTEROP_RUNTIME_OBJECT; @@ -23173,49 +24549,6 @@ inline Ark_RuntimeType runtimeType(const Opt_TouchTestStrategy& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RectResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RectResult* value) { - result->append("{"); - // Ark_Number x - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Number y - result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); - // Ark_Number width - result->append(", "); - result->append(".width="); - WriteToString(result, &value->width); - // Ark_Number height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_RectResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_RectResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Array_Rectangle& value) { return INTEROP_RUNTIME_OBJECT; @@ -23400,6 +24733,37 @@ inline Ark_RuntimeType runtimeType(const Opt_DragResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Summary& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Summary* value) { + result->append("{"); + // Ark_String _SummaryStub + result->append("._SummaryStub="); + WriteToString(result, &value->_SummaryStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Summary* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Summary& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_UnifiedData& value) { return INTEROP_RUNTIME_OBJECT; @@ -23456,6 +24820,73 @@ inline Ark_RuntimeType runtimeType(const Opt_DragBehavior& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TouchObject& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TouchObject* value) { + result->append("{"); + // Ark_TouchType type + result->append(".type="); + WriteToString(result, value->type); + // Ark_Number id + result->append(", "); + result->append(".id="); + WriteToString(result, &value->id); + // Ark_Number displayX + result->append(", "); + result->append(".displayX="); + WriteToString(result, &value->displayX); + // Ark_Number displayY + result->append(", "); + result->append(".displayY="); + WriteToString(result, &value->displayY); + // Ark_Number windowX + result->append(", "); + result->append(".windowX="); + WriteToString(result, &value->windowX); + // Ark_Number windowY + result->append(", "); + result->append(".windowY="); + WriteToString(result, &value->windowY); + // Ark_Number screenX + result->append(", "); + result->append(".screenX="); + WriteToString(result, &value->screenX); + // Ark_Number screenY + result->append(", "); + result->append(".screenY="); + WriteToString(result, &value->screenY); + // Ark_Number x + result->append(", "); + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TouchObject* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TouchObject& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_AccessibilityHoverType& value) { return INTEROP_RUNTIME_NUMBER; @@ -23824,6 +25255,60 @@ inline Ark_RuntimeType runtimeType(const Opt_CanvasRenderingContext2D& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffscreenCanvasRenderingContext2D& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffscreenCanvasRenderingContext2D value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffscreenCanvasRenderingContext2D* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffscreenCanvasRenderingContext2D& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_RenderingContextSettings& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RenderingContextSettings value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_RenderingContextSettings* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RenderingContextSettings& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageBitmap& value) { return INTEROP_RUNTIME_OBJECT; @@ -23851,6 +25336,85 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageBitmap& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextMetrics* value) { + result->append("{"); + // Ark_Number actualBoundingBoxAscent + result->append(".actualBoundingBoxAscent="); + WriteToString(result, &value->actualBoundingBoxAscent); + // Ark_Number actualBoundingBoxDescent + result->append(", "); + result->append(".actualBoundingBoxDescent="); + WriteToString(result, &value->actualBoundingBoxDescent); + // Ark_Number actualBoundingBoxLeft + result->append(", "); + result->append(".actualBoundingBoxLeft="); + WriteToString(result, &value->actualBoundingBoxLeft); + // Ark_Number actualBoundingBoxRight + result->append(", "); + result->append(".actualBoundingBoxRight="); + WriteToString(result, &value->actualBoundingBoxRight); + // Ark_Number alphabeticBaseline + result->append(", "); + result->append(".alphabeticBaseline="); + WriteToString(result, &value->alphabeticBaseline); + // Ark_Number emHeightAscent + result->append(", "); + result->append(".emHeightAscent="); + WriteToString(result, &value->emHeightAscent); + // Ark_Number emHeightDescent + result->append(", "); + result->append(".emHeightDescent="); + WriteToString(result, &value->emHeightDescent); + // Ark_Number fontBoundingBoxAscent + result->append(", "); + result->append(".fontBoundingBoxAscent="); + WriteToString(result, &value->fontBoundingBoxAscent); + // Ark_Number fontBoundingBoxDescent + result->append(", "); + result->append(".fontBoundingBoxDescent="); + WriteToString(result, &value->fontBoundingBoxDescent); + // Ark_Number hangingBaseline + result->append(", "); + result->append(".hangingBaseline="); + WriteToString(result, &value->hangingBaseline); + // Ark_Number ideographicBaseline + result->append(", "); + result->append(".ideographicBaseline="); + WriteToString(result, &value->ideographicBaseline); + // Ark_Number width + result->append(", "); + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageData& value) { return INTEROP_RUNTIME_OBJECT; @@ -23996,6 +25560,34 @@ inline Ark_RuntimeType runtimeType(const Opt_CalendarDialogOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CalendarPickerAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CalendarPickerAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CalendarPickerAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CalendarPickerAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CalendarAlign& value) { return INTEROP_RUNTIME_NUMBER; @@ -24259,6 +25851,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_BadgePosition_Position& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_AlphabetIndexerAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AlphabetIndexerAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_AlphabetIndexerAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_AlphabetIndexerAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_IndexerAlign& value) { return INTEROP_RUNTIME_NUMBER; @@ -26206,16 +27826,43 @@ inline Ark_RuntimeType runtimeType(const Opt_ButtonTriggerClickCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_inspector& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScopeinspector& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScopeinspector value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScopeinspector* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GlobalScopeinspector& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_Profiler_inspector& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_inspector value) { +inline void WriteToString(std::string* result, const Ark_GlobalScope_Profiler_inspector value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* value) { +inline void WriteToString(std::string* result, const Opt_GlobalScope_Profiler_inspector* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -26228,7 +27875,7 @@ inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_inspector& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_Profiler_inspector& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -26307,33 +27954,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_MutableStyledString& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_MutableStyledString value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_MutableStyledString* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_MutableStyledString& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UrlStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -26870,6 +28490,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_ImageAttachment_Custom return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_SpanStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_SpanStyle* value); + +inline void WriteToString(std::string* result, const Array_SpanStyle* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_SpanStyle*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_SpanStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_SpanStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Number_code_Want_want& value) { return INTEROP_RUNTIME_OBJECT; @@ -31495,68 +33154,6 @@ inline Ark_RuntimeType runtimeType(const Opt_WebOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_WebCookie& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_WebCookie value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_WebCookie* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_WebCookie& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Header& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_Header* value) { - result->append("{"); - // Ark_String headerKey - result->append(".headerKey="); - WriteToString(result, &value->headerKey); - // Ark_String headerValue - result->append(", "); - result->append(".headerValue="); - WriteToString(result, &value->headerValue); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Header* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Header& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Resource_Buffer& value) { switch (value.selector) { @@ -31614,52 +33211,51 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Resource_Buffer return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ViewportFit& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Buffer_Resource& value) { - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ViewportFit value) { - result->append("Ark_ViewportFit("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + case 3: return runtimeType(value.value3); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number_Buffer_Resource: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Opt_ViewportFit* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); +inline void WriteToString(std::string* result, const Ark_Union_String_Number_Buffer_Resource* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_String + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Number + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + // Ark_Buffer + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, value->value2); + } + // Ark_Resource + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, &value->value3); } result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ViewportFit& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuEditStateFlags& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuEditStateFlags value) { - result->append("Ark_ContextMenuEditStateFlags("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFlags* value) { +inline void WriteToString(std::string* result, const Opt_Union_String_Number_Buffer_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -31667,28 +33263,34 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFla result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuEditStateFlags& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Buffer_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuInputFieldType& value) +inline Ark_RuntimeType runtimeType(const Ark_Header& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuInputFieldType value) { - result->append("Ark_ContextMenuInputFieldType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Header* value) { + result->append("{"); + // Ark_String headerKey + result->append(".headerKey="); + WriteToString(result, &value->headerKey); + // Ark_String headerValue + result->append(", "); + result->append(".headerValue="); + WriteToString(result, &value->headerValue); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldType* value) { +inline void WriteToString(std::string* result, const Opt_Header* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -31696,23 +33298,23 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldTy result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuInputFieldType& value) +inline Ark_RuntimeType runtimeType(const Opt_Header& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuMediaType& value) +inline Ark_RuntimeType runtimeType(const Ark_ViewportFit& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuMediaType value) { - result->append("Ark_ContextMenuMediaType("); +inline void WriteToString(std::string* result, const Ark_ViewportFit value) { + result->append("Ark_ViewportFit("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* value) { +inline void WriteToString(std::string* result, const Opt_ViewportFit* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -31725,23 +33327,23 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* v result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuMediaType& value) +inline Ark_RuntimeType runtimeType(const Opt_ViewportFit& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuSourceType& value) +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuEditStateFlags& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuSourceType value) { - result->append("Ark_ContextMenuSourceType("); +inline void WriteToString(std::string* result, const Ark_ContextMenuEditStateFlags value) { + result->append("Ark_ContextMenuEditStateFlags("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* value) { +inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFlags* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -31754,7 +33356,7 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuSourceType& value) +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuEditStateFlags& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -31817,35 +33419,6 @@ inline Ark_RuntimeType runtimeType(const Opt_WebLayoutMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FileSelectorMode& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_FileSelectorMode value) { - result->append("Ark_FileSelectorMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_FileSelectorMode* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_FileSelectorMode& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ThreatType& value) { return INTEROP_RUNTIME_NUMBER; @@ -31962,35 +33535,6 @@ inline Ark_RuntimeType runtimeType(const Opt_CacheMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_HitTestType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_HitTestType value) { - result->append("Ark_HitTestType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_HitTestType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_HitTestType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_MixedMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -32020,35 +33564,6 @@ inline Ark_RuntimeType runtimeType(const Opt_MixedMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_MessageLevel& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_MessageLevel value) { - result->append("Ark_MessageLevel("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_MessageLevel* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_MessageLevel& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_PlaybackInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -32996,21 +34511,25 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_TextMenuItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LayoutManager& value) +inline Ark_RuntimeType runtimeType(const Ark_TextBox& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LayoutManager value) { - WriteToString(result, static_cast(value)); +inline void WriteToString(std::string* result, const Ark_TextBox* value) { + result->append("{"); + // Ark_String _TextBoxStub + result->append("._TextBoxStub="); + WriteToString(result, &value->_TextBoxStub); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { +inline void WriteToString(std::string* result, const Opt_TextBox* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -33018,7 +34537,46 @@ inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LayoutManager& value) +inline Ark_RuntimeType runtimeType(const Opt_TextBox& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_TextBox& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_TextBox* value); + +inline void WriteToString(std::string* result, const Array_TextBox* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_TextBox*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_TextBox* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_TextBox& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -35494,41 +37052,6 @@ inline Ark_RuntimeType runtimeType(const Opt_OnTextSelectionChangeCallback& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PreviewText& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PreviewText* value) { - result->append("{"); - // Ark_Number offset - result->append(".offset="); - WriteToString(result, &value->offset); - // Ark_String value - result->append(", "); - result->append(".value="); - WriteToString(result, &value->value); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PreviewText* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PreviewText& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const EditableTextOnChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -37071,24 +38594,20 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorRange_Void& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RichEditorSelection& value) +inline Ark_RuntimeType runtimeType(const Callback_RichEditorSelection_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_RichEditorSelection* value) { +inline void WriteToString(std::string* result, const Callback_RichEditorSelection_Void* value) { result->append("{"); - // Ark_Tuple_Number_Number selection - result->append(".selection="); - WriteToString(result, &value->selection); - // Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans - result->append(", "); - result->append(".spans="); - WriteToString(result, &value->spans); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_RichEditorSelection* value) { +inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSelection_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37101,25 +38620,33 @@ inline void WriteToString(std::string* result, const Opt_RichEditorSelection* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_RichEditorSelection& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorSelection_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_RichEditorSelection_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_StyledStringChangeValue& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_RichEditorSelection_Void* value) { +inline void WriteToString(std::string* result, const Ark_StyledStringChangeValue* value) { result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); + // Ark_TextRange range + result->append(".range="); + WriteToString(result, &value->range); + // Ark_StyledString replacementString + result->append(", "); + result->append(".replacementString="); + WriteToString(result, value->replacementString); + // Ark_StyledString previewText + result->append(", "); + result->append(".previewText="); + WriteToString(result, &value->previewText); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSelection_Void* value) { +inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37132,33 +38659,197 @@ inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSele result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorSelection_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_StyledStringChangeValue& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_StyledStringChangeValue& value) +inline Ark_RuntimeType runtimeType(const Ark_RichEditorSpan& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_RichEditorSpan: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorSpan* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_RichEditorImageSpanResult + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_RichEditorTextSpanResult + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorSpan* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorSpan& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_RichEditorSpan& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_StyledStringChangeValue* value) { +inline void WriteToString(std::string* result, const Ark_RichEditorSpan* value); + +inline void WriteToString(std::string* result, const Array_RichEditorSpan* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_RichEditorSpan*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_RichEditorSpan* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_RichEditorSpan& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorParagraphResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorParagraphResult* value) { result->append("{"); - // Ark_TextRange range + // Ark_RichEditorParagraphStyle style + result->append(".style="); + WriteToString(result, &value->style); + // Ark_Tuple_Number_Number range + result->append(", "); result->append(".range="); WriteToString(result, &value->range); - // Ark_StyledString replacementString - result->append(", "); - result->append(".replacementString="); - WriteToString(result, value->replacementString); - // Ark_StyledString previewText + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorParagraphResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorParagraphResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_RichEditorParagraphResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorParagraphResult* value); + +inline void WriteToString(std::string* result, const Array_RichEditorParagraphResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_RichEditorParagraphResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_RichEditorParagraphResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_RichEditorParagraphResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); result->append(", "); - result->append(".previewText="); - WriteToString(result, &value->previewText); + // Ark_RichEditorImageSpanResult + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_RichEditorTextSpanResult + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue* value) { +inline void WriteToString(std::string* result, const Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37171,7 +38862,46 @@ inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_StyledStringChangeValue& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value); + +inline void WriteToString(std::string* result, const Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -38887,6 +40617,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_NavDestinationContext_NavBar& return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_CustomObject& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_CustomObject* value); + +inline void WriteToString(std::string* result, const Array_CustomObject* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_CustomObject*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_CustomObject* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_CustomObject& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationTitleMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -40275,45 +42044,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Boolean& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_VisibleListContentInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_VisibleListContentInfo* value) { - result->append("{"); - // Ark_Number index - result->append(".index="); - WriteToString(result, &value->index); - // Ark_ListItemGroupArea itemGroupArea - result->append(", "); - result->append(".itemGroupArea="); - WriteToString(result, &value->itemGroupArea); - // Ark_Number itemIndexInGroup - result->append(", "); - result->append(".itemIndexInGroup="); - WriteToString(result, &value->itemIndexInGroup); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_VisibleListContentInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_VisibleListContentInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const OnScrollVisibleContentChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -41991,33 +43721,6 @@ inline Ark_RuntimeType runtimeType(const Opt_PanRecognizer& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EventTargetInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_EventTargetInfo value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_EventTargetInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_EventTargetInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollableTargetInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -42045,35 +43748,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollableTargetInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureRecognizerState& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_GestureRecognizerState value) { - result->append("Ark_GestureRecognizerState("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_GestureRecognizerState* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureRecognizerState& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GesturePriority& value) { return INTEROP_RUNTIME_NUMBER; @@ -42142,33 +43816,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Number_distance_fingers_Pan return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PanGestureOptions& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PanGestureOptions value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_PanGestureOptions* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PanGestureOptions& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GestureEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -43986,33 +45633,48 @@ inline Ark_RuntimeType runtimeType(const Opt_SceneOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_CustomObject& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScopecommon& value) { return INTEROP_RUNTIME_OBJECT; } - template <> -inline void WriteToString(std::string* result, const Ark_CustomObject* value); - -inline void WriteToString(std::string* result, const Array_CustomObject* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_CustomObject*)&value->array[i]); +inline void WriteToString(std::string* result, const Ark_GlobalScopecommon value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScopecommon* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Array_CustomObject* value) { +inline Ark_RuntimeType runtimeType(const Opt_GlobalScopecommon& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_cursorControl_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_cursorControl_common value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_cursorControl_common* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); + WriteToString(result, value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -44020,21 +45682,21 @@ inline void WriteToString(std::string* result, const Opt_Array_CustomObject* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_CustomObject& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_cursorControl_common& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_common& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_focusControl_common& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_common value) { +inline void WriteToString(std::string* result, const Ark_GlobalScope_focusControl_common value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_common* value) { +inline void WriteToString(std::string* result, const Opt_GlobalScope_focusControl_common* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -44047,7 +45709,7 @@ inline void WriteToString(std::string* result, const Opt_GlobalScope_common* val result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_common& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_focusControl_common& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -44209,41 +45871,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollOnScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_OffsetResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_OffsetResult* value) { - result->append("{"); - // Ark_Number xOffset - result->append(".xOffset="); - WriteToString(result, &value->xOffset); - // Ark_Number yOffset - result->append(", "); - result->append(".yOffset="); - WriteToString(result, &value->yOffset); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_OffsetResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_OffsetResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollSource& value) { return INTEROP_RUNTIME_NUMBER; @@ -47955,56 +49582,32 @@ inline Ark_RuntimeType runtimeType(const Opt_PixelMapMock& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TouchObject& value) +inline Ark_RuntimeType runtimeType(const Ark_HistoricalPoint& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TouchObject* value) { +inline void WriteToString(std::string* result, const Ark_HistoricalPoint* value) { result->append("{"); - // Ark_TouchType type - result->append(".type="); - WriteToString(result, value->type); - // Ark_Number id + // Ark_TouchObject touchObject + result->append(".touchObject="); + WriteToString(result, &value->touchObject); + // Ark_Number size result->append(", "); - result->append(".id="); - WriteToString(result, &value->id); - // Ark_Number displayX - result->append(", "); - result->append(".displayX="); - WriteToString(result, &value->displayX); - // Ark_Number displayY - result->append(", "); - result->append(".displayY="); - WriteToString(result, &value->displayY); - // Ark_Number windowX - result->append(", "); - result->append(".windowX="); - WriteToString(result, &value->windowX); - // Ark_Number windowY - result->append(", "); - result->append(".windowY="); - WriteToString(result, &value->windowY); - // Ark_Number screenX - result->append(", "); - result->append(".screenX="); - WriteToString(result, &value->screenX); - // Ark_Number screenY - result->append(", "); - result->append(".screenY="); - WriteToString(result, &value->screenY); - // Ark_Number x + result->append(".size="); + WriteToString(result, &value->size); + // Ark_Number force result->append(", "); - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Number y + result->append(".force="); + WriteToString(result, &value->force); + // Ark_Number timestamp result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); + result->append(".timestamp="); + WriteToString(result, &value->timestamp); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TouchObject* value) { +inline void WriteToString(std::string* result, const Opt_HistoricalPoint* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -48017,7 +49620,46 @@ inline void WriteToString(std::string* result, const Opt_TouchObject* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TouchObject& value) +inline Ark_RuntimeType runtimeType(const Opt_HistoricalPoint& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_HistoricalPoint& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_HistoricalPoint* value); + +inline void WriteToString(std::string* result, const Array_HistoricalPoint* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_HistoricalPoint*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_HistoricalPoint* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_HistoricalPoint& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -48719,6 +50361,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_CanvasRenderingContext2D_Draw return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffscreenCanvas& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffscreenCanvas value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffscreenCanvas* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffscreenCanvas& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageAnalyzerType& value) { return INTEROP_RUNTIME_NUMBER; @@ -48820,33 +50489,6 @@ inline Ark_RuntimeType runtimeType(const Opt_CanvasRenderer& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RenderingContextSettings& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RenderingContextSettings value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_RenderingContextSettings* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_RenderingContextSettings& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_LengthMetricsUnit& value) { return INTEROP_RUNTIME_OBJECT; @@ -50422,6 +52064,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_WebHeader& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SystemOps& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SystemOps value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_SystemOps* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SystemOps& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LazyForEachOps& value) { return INTEROP_RUNTIME_OBJECT; @@ -50503,6 +52172,9 @@ inline Ark_RuntimeType runtimeType(const Opt_AnimationExtender& value) // Serializers class Serializer : public SerializerBase { + public: + Serializer(CallbackResourceHolder* resourceHolder = nullptr) : SerializerBase(resourceHolder) { + } public: Serializer(uint8_t* data, Ark_UInt32 dataLength = 0, CallbackResourceHolder* resourceHolder = nullptr) : SerializerBase(data, dataLength, resourceHolder) { } @@ -50594,12 +52266,12 @@ class Serializer : public SerializerBase { const auto value_radius = value.radius; Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; value_radius_type = value_radius.selector; - if (((value_radius_type == 0))) { + if (value_radius_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_0 = value_radius.value0; valueSerializer.writeNumber(value_radius_0); } - else if (((value_radius_type == 1))) { + else if (value_radius_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_1 = value_radius.value1; valueSerializer.writeResource(value_radius_1); @@ -50620,22 +52292,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeString(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeResource(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeInt32(value_color_value_3); @@ -50649,12 +52321,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -50668,12 +52340,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -50771,17 +52443,17 @@ class Serializer : public SerializerBase { const auto value_weight_value = value_weight.value; Ark_Int32 value_weight_value_type = INTEROP_RUNTIME_UNDEFINED; value_weight_value_type = value_weight_value.selector; - if (((value_weight_value_type == 0))) { + if (value_weight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weight_value_0 = value_weight_value.value0; valueSerializer.writeInt32(static_cast(value_weight_value_0)); } - else if (((value_weight_value_type == 1))) { + else if (value_weight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weight_value_1 = value_weight_value.value1; valueSerializer.writeNumber(value_weight_value_1); } - else if (((value_weight_value_type == 2))) { + else if (value_weight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weight_value_2 = value_weight_value.value2; valueSerializer.writeString(value_weight_value_2); @@ -50795,12 +52467,12 @@ class Serializer : public SerializerBase { const auto value_family_value = value_family.value; Ark_Int32 value_family_value_type = INTEROP_RUNTIME_UNDEFINED; value_family_value_type = value_family_value.selector; - if (((value_family_value_type == 0))) { + if (value_family_value_type == 0) { valueSerializer.writeInt8(0); const auto value_family_value_0 = value_family_value.value0; valueSerializer.writeString(value_family_value_0); } - else if (((value_family_value_type == 1))) { + else if (value_family_value_type == 1) { valueSerializer.writeInt8(1); const auto value_family_value_1 = value_family_value.value1; valueSerializer.writeResource(value_family_value_1); @@ -50860,12 +52532,12 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeICurve(value_curve_value_1); @@ -50891,12 +52563,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0)) || ((value_margin_value_type == 0)) || ((value_margin_value_type == 0))) { + if ((value_margin_value_type == 0) || (value_margin_value_type == 0) || (value_margin_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeLength(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; const auto value_margin_value_1_top = value_margin_value_1.top; @@ -50941,12 +52613,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -50992,22 +52664,22 @@ class Serializer : public SerializerBase { const auto value_color = value.color; Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; value_color_type = value_color.selector; - if (((value_color_type == 0))) { + if (value_color_type == 0) { valueSerializer.writeInt8(0); const auto value_color_0 = value_color.value0; valueSerializer.writeInt32(static_cast(value_color_0)); } - else if (((value_color_type == 1))) { + else if (value_color_type == 1) { valueSerializer.writeInt8(1); const auto value_color_1 = value_color.value1; valueSerializer.writeNumber(value_color_1); } - else if (((value_color_type == 2))) { + else if (value_color_type == 2) { valueSerializer.writeInt8(2); const auto value_color_2 = value_color.value2; valueSerializer.writeString(value_color_2); } - else if (((value_color_type == 3))) { + else if (value_color_type == 3) { valueSerializer.writeInt8(3); const auto value_color_3 = value_color.value3; valueSerializer.writeResource(value_color_3); @@ -51034,22 +52706,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -51075,22 +52747,22 @@ class Serializer : public SerializerBase { const auto value_top_value = value_top.value; Ark_Int32 value_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_top_value_type = value_top_value.selector; - if (((value_top_value_type == 0))) { + if (value_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_top_value_0 = value_top_value.value0; valueSerializer.writeInt32(static_cast(value_top_value_0)); } - else if (((value_top_value_type == 1))) { + else if (value_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_top_value_1 = value_top_value.value1; valueSerializer.writeNumber(value_top_value_1); } - else if (((value_top_value_type == 2))) { + else if (value_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_top_value_2 = value_top_value.value2; valueSerializer.writeString(value_top_value_2); } - else if (((value_top_value_type == 3))) { + else if (value_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_top_value_3 = value_top_value.value3; valueSerializer.writeResource(value_top_value_3); @@ -51104,22 +52776,22 @@ class Serializer : public SerializerBase { const auto value_end_value = value_end.value; Ark_Int32 value_end_value_type = INTEROP_RUNTIME_UNDEFINED; value_end_value_type = value_end_value.selector; - if (((value_end_value_type == 0))) { + if (value_end_value_type == 0) { valueSerializer.writeInt8(0); const auto value_end_value_0 = value_end_value.value0; valueSerializer.writeInt32(static_cast(value_end_value_0)); } - else if (((value_end_value_type == 1))) { + else if (value_end_value_type == 1) { valueSerializer.writeInt8(1); const auto value_end_value_1 = value_end_value.value1; valueSerializer.writeNumber(value_end_value_1); } - else if (((value_end_value_type == 2))) { + else if (value_end_value_type == 2) { valueSerializer.writeInt8(2); const auto value_end_value_2 = value_end_value.value2; valueSerializer.writeString(value_end_value_2); } - else if (((value_end_value_type == 3))) { + else if (value_end_value_type == 3) { valueSerializer.writeInt8(3); const auto value_end_value_3 = value_end_value.value3; valueSerializer.writeResource(value_end_value_3); @@ -51133,22 +52805,22 @@ class Serializer : public SerializerBase { const auto value_bottom_value = value_bottom.value; Ark_Int32 value_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_bottom_value_type = value_bottom_value.selector; - if (((value_bottom_value_type == 0))) { + if (value_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_bottom_value_0 = value_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_bottom_value_0)); } - else if (((value_bottom_value_type == 1))) { + else if (value_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_bottom_value_1 = value_bottom_value.value1; valueSerializer.writeNumber(value_bottom_value_1); } - else if (((value_bottom_value_type == 2))) { + else if (value_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_bottom_value_2 = value_bottom_value.value2; valueSerializer.writeString(value_bottom_value_2); } - else if (((value_bottom_value_type == 3))) { + else if (value_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_bottom_value_3 = value_bottom_value.value3; valueSerializer.writeResource(value_bottom_value_3); @@ -51162,22 +52834,22 @@ class Serializer : public SerializerBase { const auto value_start_value = value_start.value; Ark_Int32 value_start_value_type = INTEROP_RUNTIME_UNDEFINED; value_start_value_type = value_start_value.selector; - if (((value_start_value_type == 0))) { + if (value_start_value_type == 0) { valueSerializer.writeInt8(0); const auto value_start_value_0 = value_start_value.value0; valueSerializer.writeInt32(static_cast(value_start_value_0)); } - else if (((value_start_value_type == 1))) { + else if (value_start_value_type == 1) { valueSerializer.writeInt8(1); const auto value_start_value_1 = value_start_value.value1; valueSerializer.writeNumber(value_start_value_1); } - else if (((value_start_value_type == 2))) { + else if (value_start_value_type == 2) { valueSerializer.writeInt8(2); const auto value_start_value_2 = value_start_value.value2; valueSerializer.writeString(value_start_value_2); } - else if (((value_start_value_type == 3))) { + else if (value_start_value_type == 3) { valueSerializer.writeInt8(3); const auto value_start_value_3 = value_start_value.value3; valueSerializer.writeResource(value_start_value_3); @@ -51226,12 +52898,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -51244,12 +52916,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -51330,12 +53002,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeLengthMetrics(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; const auto value_margin_value_1_top = value_margin_value_1.top; @@ -51380,12 +53052,12 @@ class Serializer : public SerializerBase { const auto value_padding_value = value_padding.value; Ark_Int32 value_padding_value_type = INTEROP_RUNTIME_UNDEFINED; value_padding_value_type = value_padding_value.selector; - if (((value_padding_value_type == 0))) { + if (value_padding_value_type == 0) { valueSerializer.writeInt8(0); const auto value_padding_value_0 = value_padding_value.value0; valueSerializer.writeLengthMetrics(value_padding_value_0); } - else if (((value_padding_value_type == 1))) { + else if (value_padding_value_type == 1) { valueSerializer.writeInt8(1); const auto value_padding_value_1 = value_padding_value.value1; const auto value_padding_value_1_top = value_padding_value_1.top; @@ -51430,12 +53102,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0))) { + if (value_borderRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLengthMetrics(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -51572,22 +53244,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -51645,22 +53317,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -51674,17 +53346,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeInt32(static_cast(value_fontWeight_value_0)); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeNumber(value_fontWeight_value_1); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -51706,12 +53378,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeResource(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeString(value_fontFamily_value_1); @@ -51725,22 +53397,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -51754,12 +53426,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -51810,6 +53482,12 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeAffinity(Ark_Affinity value) + { + Serializer& valueSerializer = *this; + const auto value__AffinityStub = value._AffinityStub; + valueSerializer.writeString(value__AffinityStub); + } void writeTabBarIconStyle(Ark_TabBarIconStyle value) { Serializer& valueSerializer = *this; @@ -51821,22 +53499,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -51850,22 +53528,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -51899,22 +53577,22 @@ class Serializer : public SerializerBase { const auto value_minFontSize_value = value_minFontSize.value; Ark_Int32 value_minFontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_minFontSize_value_type = value_minFontSize_value.selector; - if (((value_minFontSize_value_type == 0))) { + if (value_minFontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_minFontSize_value_0 = value_minFontSize_value.value0; valueSerializer.writeNumber(value_minFontSize_value_0); } - else if (((value_minFontSize_value_type == 1)) || ((value_minFontSize_value_type == 1))) { + else if ((value_minFontSize_value_type == 1) || (value_minFontSize_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_minFontSize_value_1 = value_minFontSize_value.value1; Ark_Int32 value_minFontSize_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_minFontSize_value_1_type = value_minFontSize_value_1.selector; - if (((value_minFontSize_value_1_type == 0))) { + if (value_minFontSize_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_minFontSize_value_1_0 = value_minFontSize_value_1.value0; valueSerializer.writeString(value_minFontSize_value_1_0); } - else if (((value_minFontSize_value_1_type == 1))) { + else if (value_minFontSize_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_minFontSize_value_1_1 = value_minFontSize_value_1.value1; valueSerializer.writeResource(value_minFontSize_value_1_1); @@ -51929,22 +53607,22 @@ class Serializer : public SerializerBase { const auto value_maxFontSize_value = value_maxFontSize.value; Ark_Int32 value_maxFontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_maxFontSize_value_type = value_maxFontSize_value.selector; - if (((value_maxFontSize_value_type == 0))) { + if (value_maxFontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maxFontSize_value_0 = value_maxFontSize_value.value0; valueSerializer.writeNumber(value_maxFontSize_value_0); } - else if (((value_maxFontSize_value_type == 1)) || ((value_maxFontSize_value_type == 1))) { + else if ((value_maxFontSize_value_type == 1) || (value_maxFontSize_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_maxFontSize_value_1 = value_maxFontSize_value.value1; Ark_Int32 value_maxFontSize_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_maxFontSize_value_1_type = value_maxFontSize_value_1.selector; - if (((value_maxFontSize_value_1_type == 0))) { + if (value_maxFontSize_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_maxFontSize_value_1_0 = value_maxFontSize_value_1.value0; valueSerializer.writeString(value_maxFontSize_value_1_0); } - else if (((value_maxFontSize_value_1_type == 1))) { + else if (value_maxFontSize_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_maxFontSize_value_1_1 = value_maxFontSize_value_1.value1; valueSerializer.writeResource(value_maxFontSize_value_1_1); @@ -52039,22 +53717,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -52068,22 +53746,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -52118,22 +53796,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -52147,12 +53825,12 @@ class Serializer : public SerializerBase { const auto value_src_value = value_src.value; Ark_Int32 value_src_value_type = INTEROP_RUNTIME_UNDEFINED; value_src_value_type = value_src_value.selector; - if (((value_src_value_type == 0))) { + if (value_src_value_type == 0) { valueSerializer.writeInt8(0); const auto value_src_value_0 = value_src_value.value0; valueSerializer.writeString(value_src_value_0); } - else if (((value_src_value_type == 1))) { + else if (value_src_value_type == 1) { valueSerializer.writeInt8(1); const auto value_src_value_1 = value_src_value.value1; valueSerializer.writeResource(value_src_value_1); @@ -52210,12 +53888,12 @@ class Serializer : public SerializerBase { const auto value_leadingMargin_value = value_leadingMargin.value; Ark_Int32 value_leadingMargin_value_type = INTEROP_RUNTIME_UNDEFINED; value_leadingMargin_value_type = value_leadingMargin_value.selector; - if (((value_leadingMargin_value_type == 0)) || ((value_leadingMargin_value_type == 0)) || ((value_leadingMargin_value_type == 0))) { + if ((value_leadingMargin_value_type == 0) || (value_leadingMargin_value_type == 0) || (value_leadingMargin_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_leadingMargin_value_0 = value_leadingMargin_value.value0; valueSerializer.writeLength(value_leadingMargin_value_0); } - else if (((value_leadingMargin_value_type == 1))) { + else if (value_leadingMargin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_leadingMargin_value_1 = value_leadingMargin_value.value1; valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1); @@ -52249,17 +53927,17 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0))) { + if (value_fontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeNumber(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeString(value_fontSize_value_1); } - else if (((value_fontSize_value_type == 2))) { + else if (value_fontSize_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontSize_value_2 = value_fontSize_value.value2; valueSerializer.writeResource(value_fontSize_value_2); @@ -52276,22 +53954,22 @@ class Serializer : public SerializerBase { const Ark_ResourceColor value_fontColor_value_element = value_fontColor_value.array[i]; Ark_Int32 value_fontColor_value_element_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_element_type = value_fontColor_value_element.selector; - if (((value_fontColor_value_element_type == 0))) { + if (value_fontColor_value_element_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_element_0 = value_fontColor_value_element.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_element_0)); } - else if (((value_fontColor_value_element_type == 1))) { + else if (value_fontColor_value_element_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_element_1 = value_fontColor_value_element.value1; valueSerializer.writeNumber(value_fontColor_value_element_1); } - else if (((value_fontColor_value_element_type == 2))) { + else if (value_fontColor_value_element_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_element_2 = value_fontColor_value_element.value2; valueSerializer.writeString(value_fontColor_value_element_2); } - else if (((value_fontColor_value_element_type == 3))) { + else if (value_fontColor_value_element_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_element_3 = value_fontColor_value_element.value3; valueSerializer.writeResource(value_fontColor_value_element_3); @@ -52306,17 +53984,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -52345,22 +54023,22 @@ class Serializer : public SerializerBase { const auto value_fontColor = value.fontColor; Ark_Int32 value_fontColor_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_type = value_fontColor.selector; - if (((value_fontColor_type == 0))) { + if (value_fontColor_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_0 = value_fontColor.value0; valueSerializer.writeInt32(static_cast(value_fontColor_0)); } - else if (((value_fontColor_type == 1))) { + else if (value_fontColor_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_1 = value_fontColor.value1; valueSerializer.writeNumber(value_fontColor_1); } - else if (((value_fontColor_type == 2))) { + else if (value_fontColor_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_2 = value_fontColor.value2; valueSerializer.writeString(value_fontColor_2); } - else if (((value_fontColor_type == 3))) { + else if (value_fontColor_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_3 = value_fontColor.value3; valueSerializer.writeResource(value_fontColor_3); @@ -52462,22 +54140,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -52491,12 +54169,12 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0)) || ((value_fontSize_value_type == 0)) || ((value_fontSize_value_type == 0))) { + if ((value_fontSize_value_type == 0) || (value_fontSize_value_type == 0) || (value_fontSize_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeLength(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeNumber(value_fontSize_value_1); @@ -52518,17 +54196,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -52542,12 +54220,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeString(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeResource(value_fontFamily_value_1); @@ -52569,12 +54247,12 @@ class Serializer : public SerializerBase { const auto value_textShadow_value = value_textShadow.value; Ark_Int32 value_textShadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_textShadow_value_type = value_textShadow_value.selector; - if (((value_textShadow_value_type == 0))) { + if (value_textShadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_textShadow_value_0 = value_textShadow_value.value0; valueSerializer.writeShadowOptions(value_textShadow_value_0); } - else if (((value_textShadow_value_type == 1))) { + else if (value_textShadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_textShadow_value_1 = value_textShadow_value.value1; valueSerializer.writeInt32(value_textShadow_value_1.length); @@ -52592,12 +54270,12 @@ class Serializer : public SerializerBase { const auto value_letterSpacing_value = value_letterSpacing.value; Ark_Int32 value_letterSpacing_value_type = INTEROP_RUNTIME_UNDEFINED; value_letterSpacing_value_type = value_letterSpacing_value.selector; - if (((value_letterSpacing_value_type == 0))) { + if (value_letterSpacing_value_type == 0) { valueSerializer.writeInt8(0); const auto value_letterSpacing_value_0 = value_letterSpacing_value.value0; valueSerializer.writeNumber(value_letterSpacing_value_0); } - else if (((value_letterSpacing_value_type == 1))) { + else if (value_letterSpacing_value_type == 1) { valueSerializer.writeInt8(1); const auto value_letterSpacing_value_1 = value_letterSpacing_value.value1; valueSerializer.writeString(value_letterSpacing_value_1); @@ -52611,17 +54289,17 @@ class Serializer : public SerializerBase { const auto value_lineHeight_value = value_lineHeight.value; Ark_Int32 value_lineHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_lineHeight_value_type = value_lineHeight_value.selector; - if (((value_lineHeight_value_type == 0))) { + if (value_lineHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_lineHeight_value_0 = value_lineHeight_value.value0; valueSerializer.writeNumber(value_lineHeight_value_0); } - else if (((value_lineHeight_value_type == 1))) { + else if (value_lineHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_lineHeight_value_1 = value_lineHeight_value.value1; valueSerializer.writeString(value_lineHeight_value_1); } - else if (((value_lineHeight_value_type == 2))) { + else if (value_lineHeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_lineHeight_value_2 = value_lineHeight_value.value2; valueSerializer.writeResource(value_lineHeight_value_2); @@ -52798,12 +54476,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0)) || ((value_x_value_type == 0)) || ((value_x_value_type == 0))) { + if ((value_x_value_type == 0) || (value_x_value_type == 0) || (value_x_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeLength(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeGridRowSizeOption(value_x_value_1); @@ -52817,12 +54495,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0)) || ((value_y_value_type == 0)) || ((value_y_value_type == 0))) { + if ((value_y_value_type == 0) || (value_y_value_type == 0) || (value_y_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeLength(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeGridRowSizeOption(value_y_value_1); @@ -52897,22 +54575,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -52926,22 +54604,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -52955,22 +54633,22 @@ class Serializer : public SerializerBase { const auto value_strokeColor_value = value_strokeColor.value; Ark_Int32 value_strokeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeColor_value_type = value_strokeColor_value.selector; - if (((value_strokeColor_value_type == 0))) { + if (value_strokeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeColor_value_0 = value_strokeColor_value.value0; valueSerializer.writeInt32(static_cast(value_strokeColor_value_0)); } - else if (((value_strokeColor_value_type == 1))) { + else if (value_strokeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeColor_value_1 = value_strokeColor_value.value1; valueSerializer.writeNumber(value_strokeColor_value_1); } - else if (((value_strokeColor_value_type == 2))) { + else if (value_strokeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeColor_value_2 = value_strokeColor_value.value2; valueSerializer.writeString(value_strokeColor_value_2); } - else if (((value_strokeColor_value_type == 3))) { + else if (value_strokeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_strokeColor_value_3 = value_strokeColor_value.value3; valueSerializer.writeResource(value_strokeColor_value_3); @@ -53038,22 +54716,22 @@ class Serializer : public SerializerBase { const auto value_textColor_value = value_textColor.value; Ark_Int32 value_textColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_textColor_value_type = value_textColor_value.selector; - if (((value_textColor_value_type == 0))) { + if (value_textColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_textColor_value_0 = value_textColor_value.value0; valueSerializer.writeInt32(static_cast(value_textColor_value_0)); } - else if (((value_textColor_value_type == 1))) { + else if (value_textColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_textColor_value_1 = value_textColor_value.value1; valueSerializer.writeNumber(value_textColor_value_1); } - else if (((value_textColor_value_type == 2))) { + else if (value_textColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_textColor_value_2 = value_textColor_value.value2; valueSerializer.writeString(value_textColor_value_2); } - else if (((value_textColor_value_type == 3))) { + else if (value_textColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_textColor_value_3 = value_textColor_value.value3; valueSerializer.writeResource(value_textColor_value_3); @@ -53180,12 +54858,12 @@ class Serializer : public SerializerBase { const auto value_centerX_value = value_centerX.value; Ark_Int32 value_centerX_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerX_value_type = value_centerX_value.selector; - if (((value_centerX_value_type == 0))) { + if (value_centerX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerX_value_0 = value_centerX_value.value0; valueSerializer.writeNumber(value_centerX_value_0); } - else if (((value_centerX_value_type == 1))) { + else if (value_centerX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerX_value_1 = value_centerX_value.value1; valueSerializer.writeString(value_centerX_value_1); @@ -53199,12 +54877,12 @@ class Serializer : public SerializerBase { const auto value_centerY_value = value_centerY.value; Ark_Int32 value_centerY_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerY_value_type = value_centerY_value.selector; - if (((value_centerY_value_type == 0))) { + if (value_centerY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerY_value_0 = value_centerY_value.value0; valueSerializer.writeNumber(value_centerY_value_0); } - else if (((value_centerY_value_type == 1))) { + else if (value_centerY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerY_value_1 = value_centerY_value.value1; valueSerializer.writeString(value_centerY_value_1); @@ -53229,12 +54907,12 @@ class Serializer : public SerializerBase { const auto value_angle = value.angle; Ark_Int32 value_angle_type = INTEROP_RUNTIME_UNDEFINED; value_angle_type = value_angle.selector; - if (((value_angle_type == 0))) { + if (value_angle_type == 0) { valueSerializer.writeInt8(0); const auto value_angle_0 = value_angle.value0; valueSerializer.writeNumber(value_angle_0); } - else if (((value_angle_type == 1))) { + else if (value_angle_type == 1) { valueSerializer.writeInt8(1); const auto value_angle_1 = value_angle.value1; valueSerializer.writeString(value_angle_1); @@ -53275,12 +54953,12 @@ class Serializer : public SerializerBase { const auto value_centerX_value = value_centerX.value; Ark_Int32 value_centerX_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerX_value_type = value_centerX_value.selector; - if (((value_centerX_value_type == 0))) { + if (value_centerX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerX_value_0 = value_centerX_value.value0; valueSerializer.writeNumber(value_centerX_value_0); } - else if (((value_centerX_value_type == 1))) { + else if (value_centerX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerX_value_1 = value_centerX_value.value1; valueSerializer.writeString(value_centerX_value_1); @@ -53294,12 +54972,12 @@ class Serializer : public SerializerBase { const auto value_centerY_value = value_centerY.value; Ark_Int32 value_centerY_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerY_value_type = value_centerY_value.selector; - if (((value_centerY_value_type == 0))) { + if (value_centerY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerY_value_0 = value_centerY_value.value0; valueSerializer.writeNumber(value_centerY_value_0); } - else if (((value_centerY_value_type == 1))) { + else if (value_centerY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerY_value_1 = value_centerY_value.value1; valueSerializer.writeString(value_centerY_value_1); @@ -53317,12 +54995,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0))) { + if (value_x_value_type == 0) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeNumber(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeString(value_x_value_1); @@ -53336,12 +55014,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0))) { + if (value_y_value_type == 0) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeNumber(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeString(value_y_value_1); @@ -53355,12 +55033,12 @@ class Serializer : public SerializerBase { const auto value_z_value = value_z.value; Ark_Int32 value_z_value_type = INTEROP_RUNTIME_UNDEFINED; value_z_value_type = value_z_value.selector; - if (((value_z_value_type == 0))) { + if (value_z_value_type == 0) { valueSerializer.writeInt8(0); const auto value_z_value_0 = value_z_value.value0; valueSerializer.writeNumber(value_z_value_0); } - else if (((value_z_value_type == 1))) { + else if (value_z_value_type == 1) { valueSerializer.writeInt8(1); const auto value_z_value_1 = value_z_value.value1; valueSerializer.writeString(value_z_value_1); @@ -53378,12 +55056,12 @@ class Serializer : public SerializerBase { const auto value_angle_value = value_angle.value; Ark_Int32 value_angle_value_type = INTEROP_RUNTIME_UNDEFINED; value_angle_value_type = value_angle_value.selector; - if (((value_angle_value_type == 0))) { + if (value_angle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_angle_value_0 = value_angle_value.value0; valueSerializer.writeNumber(value_angle_value_0); } - else if (((value_angle_value_type == 1))) { + else if (value_angle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_angle_value_1 = value_angle_value.value1; valueSerializer.writeString(value_angle_value_1); @@ -53404,22 +55082,22 @@ class Serializer : public SerializerBase { const auto value_colors_element_0 = value_colors_element.value0; Ark_Int32 value_colors_element_0_type = INTEROP_RUNTIME_UNDEFINED; value_colors_element_0_type = value_colors_element_0.selector; - if (((value_colors_element_0_type == 0))) { + if (value_colors_element_0_type == 0) { valueSerializer.writeInt8(0); const auto value_colors_element_0_0 = value_colors_element_0.value0; valueSerializer.writeInt32(static_cast(value_colors_element_0_0)); } - else if (((value_colors_element_0_type == 1))) { + else if (value_colors_element_0_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_element_0_1 = value_colors_element_0.value1; valueSerializer.writeNumber(value_colors_element_0_1); } - else if (((value_colors_element_0_type == 2))) { + else if (value_colors_element_0_type == 2) { valueSerializer.writeInt8(2); const auto value_colors_element_0_2 = value_colors_element_0.value2; valueSerializer.writeString(value_colors_element_0_2); } - else if (((value_colors_element_0_type == 3))) { + else if (value_colors_element_0_type == 3) { valueSerializer.writeInt8(3); const auto value_colors_element_0_3 = value_colors_element_0.value3; valueSerializer.writeResource(value_colors_element_0_3); @@ -53496,12 +55174,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -53514,22 +55192,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -53543,22 +55221,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -53575,17 +55253,17 @@ class Serializer : public SerializerBase { const auto value_dx = value.dx; Ark_Int32 value_dx_type = INTEROP_RUNTIME_UNDEFINED; value_dx_type = value_dx.selector; - if (((value_dx_type == 0))) { + if (value_dx_type == 0) { valueSerializer.writeInt8(0); const auto value_dx_0 = value_dx.value0; valueSerializer.writeNumber(value_dx_0); } - else if (((value_dx_type == 1))) { + else if (value_dx_type == 1) { valueSerializer.writeInt8(1); const auto value_dx_1 = value_dx.value1; valueSerializer.writeString(value_dx_1); } - else if (((value_dx_type == 2))) { + else if (value_dx_type == 2) { valueSerializer.writeInt8(2); const auto value_dx_2 = value_dx.value2; valueSerializer.writeResource(value_dx_2); @@ -53593,17 +55271,17 @@ class Serializer : public SerializerBase { const auto value_dy = value.dy; Ark_Int32 value_dy_type = INTEROP_RUNTIME_UNDEFINED; value_dy_type = value_dy.selector; - if (((value_dy_type == 0))) { + if (value_dy_type == 0) { valueSerializer.writeInt8(0); const auto value_dy_0 = value_dy.value0; valueSerializer.writeNumber(value_dy_0); } - else if (((value_dy_type == 1))) { + else if (value_dy_type == 1) { valueSerializer.writeInt8(1); const auto value_dy_1 = value_dy.value1; valueSerializer.writeString(value_dy_1); } - else if (((value_dy_type == 2))) { + else if (value_dy_type == 2) { valueSerializer.writeInt8(2); const auto value_dy_2 = value_dy.value2; valueSerializer.writeResource(value_dy_2); @@ -53639,12 +55317,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -53881,6 +55559,20 @@ class Serializer : public SerializerBase { const auto value__DrawContextStub = value._DrawContextStub; valueSerializer.writeString(value__DrawContextStub); } + void writeCustomSpanMetrics(Ark_CustomSpanMetrics value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; + value_height_type = runtimeType(value_height); + valueSerializer.writeInt8(value_height_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_height_type)) { + const auto value_height_value = value_height.value; + valueSerializer.writeNumber(value_height_value); + } + } void writeCustomSpanMeasureInfo(Ark_CustomSpanMeasureInfo value) { Serializer& valueSerializer = *this; @@ -53910,22 +55602,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -53939,12 +55631,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0)) || ((value_radius_value_type == 0)) || ((value_radius_value_type == 0))) { + if ((value_radius_value_type == 0) || (value_radius_value_type == 0) || (value_radius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeLength(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; const auto value_radius_value_1_topLeft = value_radius_value_1.topLeft; @@ -53992,6 +55684,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeWaterFlowAttribute(Ark_WaterFlowAttribute value) + { + } void writeWaterFlowSections(Ark_WaterFlowSections value) { Serializer& valueSerializer = *this; @@ -54049,7 +55744,7 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; const auto value_margin_value_0_top = value_margin_value_0.top; @@ -54085,7 +55780,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_margin_value_0_left_value); } } - else if (((value_margin_value_type == 1)) || ((value_margin_value_type == 1)) || ((value_margin_value_type == 1))) { + else if ((value_margin_value_type == 1) || (value_margin_value_type == 1) || (value_margin_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; valueSerializer.writeLength(value_margin_value_1); @@ -54119,22 +55814,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -54163,17 +55858,17 @@ class Serializer : public SerializerBase { const auto value_shown = value.shown; Ark_Int32 value_shown_type = INTEROP_RUNTIME_UNDEFINED; value_shown_type = value_shown.selector; - if (((value_shown_type == 0))) { + if (value_shown_type == 0) { valueSerializer.writeInt8(0); const auto value_shown_0 = value_shown.value0; valueSerializer.writeString(value_shown_0); } - else if (((value_shown_type == 1))) { + else if (value_shown_type == 1) { valueSerializer.writeInt8(1); const auto value_shown_1 = value_shown.value1; valueSerializer.writePixelMap(value_shown_1); } - else if (((value_shown_type == 2))) { + else if (value_shown_type == 2) { valueSerializer.writeInt8(2); const auto value_shown_2 = value_shown.value2; valueSerializer.writeResource(value_shown_2); @@ -54181,17 +55876,17 @@ class Serializer : public SerializerBase { const auto value_hidden = value.hidden; Ark_Int32 value_hidden_type = INTEROP_RUNTIME_UNDEFINED; value_hidden_type = value_hidden.selector; - if (((value_hidden_type == 0))) { + if (value_hidden_type == 0) { valueSerializer.writeInt8(0); const auto value_hidden_0 = value_hidden.value0; valueSerializer.writeString(value_hidden_0); } - else if (((value_hidden_type == 1))) { + else if (value_hidden_type == 1) { valueSerializer.writeInt8(1); const auto value_hidden_1 = value_hidden.value1; valueSerializer.writePixelMap(value_hidden_1); } - else if (((value_hidden_type == 2))) { + else if (value_hidden_type == 2) { valueSerializer.writeInt8(2); const auto value_hidden_2 = value_hidden.value2; valueSerializer.writeResource(value_hidden_2); @@ -54204,17 +55899,17 @@ class Serializer : public SerializerBase { const auto value_switching_value = value_switching.value; Ark_Int32 value_switching_value_type = INTEROP_RUNTIME_UNDEFINED; value_switching_value_type = value_switching_value.selector; - if (((value_switching_value_type == 0))) { + if (value_switching_value_type == 0) { valueSerializer.writeInt8(0); const auto value_switching_value_0 = value_switching_value.value0; valueSerializer.writeString(value_switching_value_0); } - else if (((value_switching_value_type == 1))) { + else if (value_switching_value_type == 1) { valueSerializer.writeInt8(1); const auto value_switching_value_1 = value_switching_value.value1; valueSerializer.writePixelMap(value_switching_value_1); } - else if (((value_switching_value_type == 2))) { + else if (value_switching_value_type == 2) { valueSerializer.writeInt8(2); const auto value_switching_value_2 = value_switching_value.value2; valueSerializer.writeResource(value_switching_value_2); @@ -54296,6 +55991,12 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_lock_value); } } + void writeWindowSceneAttribute(Ark_WindowSceneAttribute value) + { + } + void writeWebAttribute(Ark_WebAttribute value) + { + } void writeSelectionMenuOptionsExt(Ark_SelectionMenuOptionsExt value) { Serializer& valueSerializer = *this; @@ -54564,6 +56265,11 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeWebCookie(Ark_WebCookie value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeScreenCaptureConfig(Ark_ScreenCaptureConfig value) { Serializer& valueSerializer = *this; @@ -54707,22 +56413,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -54784,12 +56490,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -54831,7 +56537,7 @@ class Serializer : public SerializerBase { const auto value_range = value.range; Ark_Int32 value_range_type = INTEROP_RUNTIME_UNDEFINED; value_range_type = value_range.selector; - if (((value_range_type == 0))) { + if (value_range_type == 0) { valueSerializer.writeInt8(0); const auto value_range_0 = value_range.value0; valueSerializer.writeInt32(value_range_0.length); @@ -54840,7 +56546,7 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_range_0_element); } } - else if (((value_range_type == 1))) { + else if (value_range_type == 1) { valueSerializer.writeInt8(1); const auto value_range_1 = value_range.value1; valueSerializer.writeInt32(value_range_1.length); @@ -54853,12 +56559,12 @@ class Serializer : public SerializerBase { } } } - else if (((value_range_type == 2))) { + else if (value_range_type == 2) { valueSerializer.writeInt8(2); const auto value_range_2 = value_range.value2; valueSerializer.writeResource(value_range_2); } - else if (((value_range_type == 3))) { + else if (value_range_type == 3) { valueSerializer.writeInt8(3); const auto value_range_3 = value_range.value3; valueSerializer.writeInt32(value_range_3.length); @@ -54867,7 +56573,7 @@ class Serializer : public SerializerBase { valueSerializer.writeTextPickerRangeContent(value_range_3_element); } } - else if (((value_range_type == 4))) { + else if (value_range_type == 4) { valueSerializer.writeInt8(4); const auto value_range_4 = value_range.value4; valueSerializer.writeInt32(value_range_4.length); @@ -54884,12 +56590,12 @@ class Serializer : public SerializerBase { const auto value_value_value = value_value.value; Ark_Int32 value_value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_value_type = value_value_value.selector; - if (((value_value_value_type == 0))) { + if (value_value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_value_0 = value_value_value.value0; valueSerializer.writeString(value_value_value_0); } - else if (((value_value_value_type == 1))) { + else if (value_value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_value_1 = value_value_value.value1; valueSerializer.writeInt32(value_value_value_1.length); @@ -54907,12 +56613,12 @@ class Serializer : public SerializerBase { const auto value_selected_value = value_selected.value; Ark_Int32 value_selected_value_type = INTEROP_RUNTIME_UNDEFINED; value_selected_value_type = value_selected_value.selector; - if (((value_selected_value_type == 0))) { + if (value_selected_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selected_value_0 = value_selected_value.value0; valueSerializer.writeNumber(value_selected_value_0); } - else if (((value_selected_value_type == 1))) { + else if (value_selected_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selected_value_1 = value_selected_value.value1; valueSerializer.writeInt32(value_selected_value_1.length); @@ -54930,12 +56636,12 @@ class Serializer : public SerializerBase { const auto value_defaultPickerItemHeight_value = value_defaultPickerItemHeight.value; Ark_Int32 value_defaultPickerItemHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_defaultPickerItemHeight_value_type = value_defaultPickerItemHeight_value.selector; - if (((value_defaultPickerItemHeight_value_type == 0))) { + if (value_defaultPickerItemHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_defaultPickerItemHeight_value_0 = value_defaultPickerItemHeight_value.value0; valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0); } - else if (((value_defaultPickerItemHeight_value_type == 1))) { + else if (value_defaultPickerItemHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_defaultPickerItemHeight_value_1 = value_defaultPickerItemHeight_value.value1; valueSerializer.writeString(value_defaultPickerItemHeight_value_1); @@ -55054,22 +56760,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -55131,12 +56837,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -55178,22 +56884,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -55216,6 +56922,9 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_endMargin_value); } } + void writeTextInputAttribute(Ark_TextInputAttribute value) + { + } void writeInputCounterOptions(Ark_InputCounterOptions value) { Serializer& valueSerializer = *this; @@ -55259,22 +56968,22 @@ class Serializer : public SerializerBase { const auto value_typing_value = value_typing.value; Ark_Int32 value_typing_value_type = INTEROP_RUNTIME_UNDEFINED; value_typing_value_type = value_typing_value.selector; - if (((value_typing_value_type == 0))) { + if (value_typing_value_type == 0) { valueSerializer.writeInt8(0); const auto value_typing_value_0 = value_typing_value.value0; valueSerializer.writeInt32(static_cast(value_typing_value_0)); } - else if (((value_typing_value_type == 1))) { + else if (value_typing_value_type == 1) { valueSerializer.writeInt8(1); const auto value_typing_value_1 = value_typing_value.value1; valueSerializer.writeNumber(value_typing_value_1); } - else if (((value_typing_value_type == 2))) { + else if (value_typing_value_type == 2) { valueSerializer.writeInt8(2); const auto value_typing_value_2 = value_typing_value.value2; valueSerializer.writeString(value_typing_value_2); } - else if (((value_typing_value_type == 3))) { + else if (value_typing_value_type == 3) { valueSerializer.writeInt8(3); const auto value_typing_value_3 = value_typing_value.value3; valueSerializer.writeResource(value_typing_value_3); @@ -55288,22 +56997,22 @@ class Serializer : public SerializerBase { const auto value_normal_value = value_normal.value; Ark_Int32 value_normal_value_type = INTEROP_RUNTIME_UNDEFINED; value_normal_value_type = value_normal_value.selector; - if (((value_normal_value_type == 0))) { + if (value_normal_value_type == 0) { valueSerializer.writeInt8(0); const auto value_normal_value_0 = value_normal_value.value0; valueSerializer.writeInt32(static_cast(value_normal_value_0)); } - else if (((value_normal_value_type == 1))) { + else if (value_normal_value_type == 1) { valueSerializer.writeInt8(1); const auto value_normal_value_1 = value_normal_value.value1; valueSerializer.writeNumber(value_normal_value_1); } - else if (((value_normal_value_type == 2))) { + else if (value_normal_value_type == 2) { valueSerializer.writeInt8(2); const auto value_normal_value_2 = value_normal_value.value2; valueSerializer.writeString(value_normal_value_2); } - else if (((value_normal_value_type == 3))) { + else if (value_normal_value_type == 3) { valueSerializer.writeInt8(3); const auto value_normal_value_3 = value_normal_value.value3; valueSerializer.writeResource(value_normal_value_3); @@ -55317,22 +57026,22 @@ class Serializer : public SerializerBase { const auto value_error_value = value_error.value; Ark_Int32 value_error_value_type = INTEROP_RUNTIME_UNDEFINED; value_error_value_type = value_error_value.selector; - if (((value_error_value_type == 0))) { + if (value_error_value_type == 0) { valueSerializer.writeInt8(0); const auto value_error_value_0 = value_error_value.value0; valueSerializer.writeInt32(static_cast(value_error_value_0)); } - else if (((value_error_value_type == 1))) { + else if (value_error_value_type == 1) { valueSerializer.writeInt8(1); const auto value_error_value_1 = value_error_value.value1; valueSerializer.writeNumber(value_error_value_1); } - else if (((value_error_value_type == 2))) { + else if (value_error_value_type == 2) { valueSerializer.writeInt8(2); const auto value_error_value_2 = value_error_value.value2; valueSerializer.writeString(value_error_value_2); } - else if (((value_error_value_type == 3))) { + else if (value_error_value_type == 3) { valueSerializer.writeInt8(3); const auto value_error_value_3 = value_error_value.value3; valueSerializer.writeResource(value_error_value_3); @@ -55346,22 +57055,22 @@ class Serializer : public SerializerBase { const auto value_disable_value = value_disable.value; Ark_Int32 value_disable_value_type = INTEROP_RUNTIME_UNDEFINED; value_disable_value_type = value_disable_value.selector; - if (((value_disable_value_type == 0))) { + if (value_disable_value_type == 0) { valueSerializer.writeInt8(0); const auto value_disable_value_0 = value_disable_value.value0; valueSerializer.writeInt32(static_cast(value_disable_value_0)); } - else if (((value_disable_value_type == 1))) { + else if (value_disable_value_type == 1) { valueSerializer.writeInt8(1); const auto value_disable_value_1 = value_disable_value.value1; valueSerializer.writeNumber(value_disable_value_1); } - else if (((value_disable_value_type == 2))) { + else if (value_disable_value_type == 2) { valueSerializer.writeInt8(2); const auto value_disable_value_2 = value_disable_value.value2; valueSerializer.writeString(value_disable_value_2); } - else if (((value_disable_value_type == 3))) { + else if (value_disable_value_type == 3) { valueSerializer.writeInt8(3); const auto value_disable_value_3 = value_disable_value.value3; valueSerializer.writeResource(value_disable_value_3); @@ -55411,12 +57120,12 @@ class Serializer : public SerializerBase { const auto value_content = value.content; Ark_Int32 value_content_type = INTEROP_RUNTIME_UNDEFINED; value_content_type = value_content.selector; - if (((value_content_type == 0))) { + if (value_content_type == 0) { valueSerializer.writeInt8(0); const auto value_content_0 = value_content.value0; valueSerializer.writeString(value_content_0); } - else if (((value_content_type == 1))) { + else if (value_content_type == 1) { valueSerializer.writeInt8(1); const auto value_content_1 = value_content.value1; valueSerializer.writeResource(value_content_1); @@ -55429,12 +57138,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -55443,16 +57152,54 @@ class Serializer : public SerializerBase { const auto value_id = value.id; valueSerializer.writeTextMenuItemId(value_id); } + void writeLineMetrics(Ark_LineMetrics value) + { + Serializer& valueSerializer = *this; + const auto value__LineMetricsStub = value._LineMetricsStub; + valueSerializer.writeString(value__LineMetricsStub); + } + void writePositionWithAffinity(Ark_PositionWithAffinity value) + { + Serializer& valueSerializer = *this; + const auto value_position = value.position; + valueSerializer.writeNumber(value_position); + const auto value_affinity = value.affinity; + valueSerializer.writeAffinity(value_affinity); + } + void writeMutableStyledString(Ark_MutableStyledString value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writePreviewText(Ark_PreviewText value) + { + Serializer& valueSerializer = *this; + const auto value_offset = value.offset; + valueSerializer.writeNumber(value_offset); + const auto value_value = value.value; + valueSerializer.writeString(value_value); + } + void writeLayoutManager(Ark_LayoutManager value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTextClockController(Ark_TextClockController value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextAreaAttribute(Ark_TextAreaAttribute value) + { + } void writeTextAreaController(Ark_TextAreaController value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextAttribute(Ark_TextAttribute value) + { + } void writeSelectionMenuOptions(Ark_SelectionMenuOptions value) { Serializer& valueSerializer = *this; @@ -55513,23 +57260,23 @@ class Serializer : public SerializerBase { const auto value__icon_value = value__icon.value; Ark_Int32 value__icon_value_type = INTEROP_RUNTIME_UNDEFINED; value__icon_value_type = value__icon_value.selector; - if (((value__icon_value_type == 0)) || ((value__icon_value_type == 0))) { + if ((value__icon_value_type == 0) || (value__icon_value_type == 0)) { valueSerializer.writeInt8(0); const auto value__icon_value_0 = value__icon_value.value0; Ark_Int32 value__icon_value_0_type = INTEROP_RUNTIME_UNDEFINED; value__icon_value_0_type = value__icon_value_0.selector; - if (((value__icon_value_0_type == 0))) { + if (value__icon_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value__icon_value_0_0 = value__icon_value_0.value0; valueSerializer.writeString(value__icon_value_0_0); } - else if (((value__icon_value_0_type == 1))) { + else if (value__icon_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value__icon_value_0_1 = value__icon_value_0.value1; valueSerializer.writeResource(value__icon_value_0_1); } } - else if (((value__icon_value_type == 1))) { + else if (value__icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value__icon_value_1 = value__icon_value.value1; valueSerializer.writeTabBarSymbol(value__icon_value_1); @@ -55543,12 +57290,12 @@ class Serializer : public SerializerBase { const auto value__text_value = value__text.value; Ark_Int32 value__text_value_type = INTEROP_RUNTIME_UNDEFINED; value__text_value_type = value__text_value.selector; - if (((value__text_value_type == 0))) { + if (value__text_value_type == 0) { valueSerializer.writeInt8(0); const auto value__text_value_0 = value__text_value.value0; valueSerializer.writeString(value__text_value_0); } - else if (((value__text_value_type == 1))) { + else if (value__text_value_type == 1) { valueSerializer.writeInt8(1); const auto value__text_value_1 = value__text_value.value1; valueSerializer.writeResource(value__text_value_1); @@ -55570,7 +57317,7 @@ class Serializer : public SerializerBase { const auto value__padding_value = value__padding.value; Ark_Int32 value__padding_value_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_type = value__padding_value.selector; - if (((value__padding_value_type == 0))) { + if (value__padding_value_type == 0) { valueSerializer.writeInt8(0); const auto value__padding_value_0 = value__padding_value.value0; const auto value__padding_value_0_top = value__padding_value_0.top; @@ -55606,12 +57353,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value__padding_value_0_left_value); } } - else if (((value__padding_value_type == 1)) || ((value__padding_value_type == 1)) || ((value__padding_value_type == 1))) { + else if ((value__padding_value_type == 1) || (value__padding_value_type == 1) || (value__padding_value_type == 1)) { valueSerializer.writeInt8(1); const auto value__padding_value_1 = value__padding_value.value1; valueSerializer.writeLength(value__padding_value_1); } - else if (((value__padding_value_type == 2))) { + else if (value__padding_value_type == 2) { valueSerializer.writeInt8(2); const auto value__padding_value_2 = value__padding_value.value2; valueSerializer.writeLocalizedPadding(value__padding_value_2); @@ -55669,17 +57416,17 @@ class Serializer : public SerializerBase { const auto value__content_value = value__content.value; Ark_Int32 value__content_value_type = INTEROP_RUNTIME_UNDEFINED; value__content_value_type = value__content_value.selector; - if (((value__content_value_type == 0))) { + if (value__content_value_type == 0) { valueSerializer.writeInt8(0); const auto value__content_value_0 = value__content_value.value0; valueSerializer.writeString(value__content_value_0); } - else if (((value__content_value_type == 1))) { + else if (value__content_value_type == 1) { valueSerializer.writeInt8(1); const auto value__content_value_1 = value__content_value.value1; valueSerializer.writeResource(value__content_value_1); } - else if (((value__content_value_type == 2))) { + else if (value__content_value_type == 2) { valueSerializer.writeInt8(2); const auto value__content_value_2 = value__content_value.value2; valueSerializer.writeComponentContent(value__content_value_2); @@ -55725,12 +57472,12 @@ class Serializer : public SerializerBase { const auto value__padding_value = value__padding.value; Ark_Int32 value__padding_value_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_type = value__padding_value.selector; - if (((value__padding_value_type == 0)) || ((value__padding_value_type == 0)) || ((value__padding_value_type == 0)) || ((value__padding_value_type == 0))) { + if ((value__padding_value_type == 0) || (value__padding_value_type == 0) || (value__padding_value_type == 0) || (value__padding_value_type == 0)) { valueSerializer.writeInt8(0); const auto value__padding_value_0 = value__padding_value.value0; Ark_Int32 value__padding_value_0_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_0_type = value__padding_value_0.selector; - if (((value__padding_value_0_type == 0))) { + if (value__padding_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value__padding_value_0_0 = value__padding_value_0.value0; const auto value__padding_value_0_0_top = value__padding_value_0_0.top; @@ -55766,13 +57513,13 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value__padding_value_0_0_left_value); } } - else if (((value__padding_value_0_type == 1)) || ((value__padding_value_0_type == 1)) || ((value__padding_value_0_type == 1))) { + else if ((value__padding_value_0_type == 1) || (value__padding_value_0_type == 1) || (value__padding_value_0_type == 1)) { valueSerializer.writeInt8(1); const auto value__padding_value_0_1 = value__padding_value_0.value1; valueSerializer.writeLength(value__padding_value_0_1); } } - else if (((value__padding_value_type == 1))) { + else if (value__padding_value_type == 1) { valueSerializer.writeInt8(1); const auto value__padding_value_1 = value__padding_value.value1; valueSerializer.writeLocalizedPadding(value__padding_value_1); @@ -55798,12 +57545,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -55817,18 +57564,21 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); } } } + void writeTabsAttribute(Ark_TabsAttribute value) + { + } void writeBackgroundBlurStyleOptions(Ark_BackgroundBlurStyleOptions value) { Serializer& valueSerializer = *this; @@ -55880,22 +57630,22 @@ class Serializer : public SerializerBase { const auto value_inactiveColor_value = value_inactiveColor.value; Ark_Int32 value_inactiveColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_inactiveColor_value_type = value_inactiveColor_value.selector; - if (((value_inactiveColor_value_type == 0))) { + if (value_inactiveColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_inactiveColor_value_0 = value_inactiveColor_value.value0; valueSerializer.writeInt32(static_cast(value_inactiveColor_value_0)); } - else if (((value_inactiveColor_value_type == 1))) { + else if (value_inactiveColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_inactiveColor_value_1 = value_inactiveColor_value.value1; valueSerializer.writeNumber(value_inactiveColor_value_1); } - else if (((value_inactiveColor_value_type == 2))) { + else if (value_inactiveColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_inactiveColor_value_2 = value_inactiveColor_value.value2; valueSerializer.writeString(value_inactiveColor_value_2); } - else if (((value_inactiveColor_value_type == 3))) { + else if (value_inactiveColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_inactiveColor_value_3 = value_inactiveColor_value.value3; valueSerializer.writeResource(value_inactiveColor_value_3); @@ -55943,6 +57693,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeSymbolGlyphAttribute(Ark_SymbolGlyphAttribute value) + { + } void writeSymbolEffect(Ark_SymbolEffect value) { } @@ -56005,22 +57758,22 @@ class Serializer : public SerializerBase { const auto value__fontColor_value = value__fontColor.value; Ark_Int32 value__fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__fontColor_value_type = value__fontColor_value.selector; - if (((value__fontColor_value_type == 0))) { + if (value__fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__fontColor_value_0 = value__fontColor_value.value0; valueSerializer.writeInt32(static_cast(value__fontColor_value_0)); } - else if (((value__fontColor_value_type == 1))) { + else if (value__fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__fontColor_value_1 = value__fontColor_value.value1; valueSerializer.writeNumber(value__fontColor_value_1); } - else if (((value__fontColor_value_type == 2))) { + else if (value__fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__fontColor_value_2 = value__fontColor_value.value2; valueSerializer.writeString(value__fontColor_value_2); } - else if (((value__fontColor_value_type == 3))) { + else if (value__fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__fontColor_value_3 = value__fontColor_value.value3; valueSerializer.writeResource(value__fontColor_value_3); @@ -56034,22 +57787,22 @@ class Serializer : public SerializerBase { const auto value__selectedFontColor_value = value__selectedFontColor.value; Ark_Int32 value__selectedFontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__selectedFontColor_value_type = value__selectedFontColor_value.selector; - if (((value__selectedFontColor_value_type == 0))) { + if (value__selectedFontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__selectedFontColor_value_0 = value__selectedFontColor_value.value0; valueSerializer.writeInt32(static_cast(value__selectedFontColor_value_0)); } - else if (((value__selectedFontColor_value_type == 1))) { + else if (value__selectedFontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__selectedFontColor_value_1 = value__selectedFontColor_value.value1; valueSerializer.writeNumber(value__selectedFontColor_value_1); } - else if (((value__selectedFontColor_value_type == 2))) { + else if (value__selectedFontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__selectedFontColor_value_2 = value__selectedFontColor_value.value2; valueSerializer.writeString(value__selectedFontColor_value_2); } - else if (((value__selectedFontColor_value_type == 3))) { + else if (value__selectedFontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__selectedFontColor_value_3 = value__selectedFontColor_value.value3; valueSerializer.writeResource(value__selectedFontColor_value_3); @@ -56171,22 +57924,22 @@ class Serializer : public SerializerBase { const auto value__color_value = value__color.value; Ark_Int32 value__color_value_type = INTEROP_RUNTIME_UNDEFINED; value__color_value_type = value__color_value.selector; - if (((value__color_value_type == 0))) { + if (value__color_value_type == 0) { valueSerializer.writeInt8(0); const auto value__color_value_0 = value__color_value.value0; valueSerializer.writeInt32(static_cast(value__color_value_0)); } - else if (((value__color_value_type == 1))) { + else if (value__color_value_type == 1) { valueSerializer.writeInt8(1); const auto value__color_value_1 = value__color_value.value1; valueSerializer.writeNumber(value__color_value_1); } - else if (((value__color_value_type == 2))) { + else if (value__color_value_type == 2) { valueSerializer.writeInt8(2); const auto value__color_value_2 = value__color_value.value2; valueSerializer.writeString(value__color_value_2); } - else if (((value__color_value_type == 3))) { + else if (value__color_value_type == 3) { valueSerializer.writeInt8(3); const auto value__color_value_3 = value__color_value.value3; valueSerializer.writeResource(value__color_value_3); @@ -56200,22 +57953,22 @@ class Serializer : public SerializerBase { const auto value__selectedColor_value = value__selectedColor.value; Ark_Int32 value__selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__selectedColor_value_type = value__selectedColor_value.selector; - if (((value__selectedColor_value_type == 0))) { + if (value__selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__selectedColor_value_0 = value__selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value__selectedColor_value_0)); } - else if (((value__selectedColor_value_type == 1))) { + else if (value__selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__selectedColor_value_1 = value__selectedColor_value.value1; valueSerializer.writeNumber(value__selectedColor_value_1); } - else if (((value__selectedColor_value_type == 2))) { + else if (value__selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__selectedColor_value_2 = value__selectedColor_value.value2; valueSerializer.writeString(value__selectedColor_value_2); } - else if (((value__selectedColor_value_type == 3))) { + else if (value__selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__selectedColor_value_3 = value__selectedColor_value.value3; valueSerializer.writeResource(value__selectedColor_value_3); @@ -56230,18 +57983,21 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value); } } + void writeSwiperAttribute(Ark_SwiperAttribute value) + { + } void writeSwiperAutoFill(Ark_SwiperAutoFill value) { Serializer& valueSerializer = *this; const auto value_minSize = value.minSize; Ark_Int32 value_minSize_type = INTEROP_RUNTIME_UNDEFINED; value_minSize_type = value_minSize.selector; - if (((value_minSize_type == 0))) { + if (value_minSize_type == 0) { valueSerializer.writeInt8(0); const auto value_minSize_0 = value_minSize.value0; valueSerializer.writeString(value_minSize_0); } - else if (((value_minSize_type == 1))) { + else if (value_minSize_type == 1) { valueSerializer.writeInt8(1); const auto value_minSize_1 = value_minSize.value1; valueSerializer.writeNumber(value_minSize_1); @@ -56282,22 +58038,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -56319,28 +58075,37 @@ class Serializer : public SerializerBase { const auto value_arrowColor_value = value_arrowColor.value; Ark_Int32 value_arrowColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_arrowColor_value_type = value_arrowColor_value.selector; - if (((value_arrowColor_value_type == 0))) { + if (value_arrowColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_arrowColor_value_0 = value_arrowColor_value.value0; valueSerializer.writeInt32(static_cast(value_arrowColor_value_0)); } - else if (((value_arrowColor_value_type == 1))) { + else if (value_arrowColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_arrowColor_value_1 = value_arrowColor_value.value1; valueSerializer.writeNumber(value_arrowColor_value_1); } - else if (((value_arrowColor_value_type == 2))) { + else if (value_arrowColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_arrowColor_value_2 = value_arrowColor_value.value2; valueSerializer.writeString(value_arrowColor_value_2); } - else if (((value_arrowColor_value_type == 3))) { + else if (value_arrowColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_arrowColor_value_3 = value_arrowColor_value.value3; valueSerializer.writeResource(value_arrowColor_value_3); } } } + void writeSliderAttribute(Ark_SliderAttribute value) + { + } + void writeShapeAttribute(Ark_ShapeAttribute value) + { + } + void writeSelectAttribute(Ark_SelectAttribute value) + { + } void writeLocalizedEdges(Ark_LocalizedEdges value) { Serializer& valueSerializer = *this; @@ -56413,6 +58178,9 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_right_value); } } + void writeSearchAttribute(Ark_SearchAttribute value) + { + } void writeSearchButtonOptions(Ark_SearchButtonOptions value) { Serializer& valueSerializer = *this; @@ -56432,22 +58200,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -56507,12 +58275,27 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeScrollAttribute(Ark_ScrollAttribute value) + { + } void writeEdgeEffectOptions(Ark_EdgeEffectOptions value) { Serializer& valueSerializer = *this; const auto value_alwaysEnabled = value.alwaysEnabled; valueSerializer.writeBoolean(value_alwaysEnabled); } + void writeRectResult(Ark_RectResult value) + { + Serializer& valueSerializer = *this; + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeScrollToIndexOptions(Ark_ScrollToIndexOptions value) { Serializer& valueSerializer = *this; @@ -56525,6 +58308,14 @@ class Serializer : public SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value); } } + void writeOffsetResult(Ark_OffsetResult value) + { + Serializer& valueSerializer = *this; + const auto value_xOffset = value.xOffset; + valueSerializer.writeNumber(value_xOffset); + const auto value_yOffset = value.yOffset; + valueSerializer.writeNumber(value_yOffset); + } void writeScrollPageOptions(Ark_ScrollPageOptions value) { Serializer& valueSerializer = *this; @@ -56557,12 +58348,12 @@ class Serializer : public SerializerBase { const auto value_xOffset = value.xOffset; Ark_Int32 value_xOffset_type = INTEROP_RUNTIME_UNDEFINED; value_xOffset_type = value_xOffset.selector; - if (((value_xOffset_type == 0))) { + if (value_xOffset_type == 0) { valueSerializer.writeInt8(0); const auto value_xOffset_0 = value_xOffset.value0; valueSerializer.writeNumber(value_xOffset_0); } - else if (((value_xOffset_type == 1))) { + else if (value_xOffset_type == 1) { valueSerializer.writeInt8(1); const auto value_xOffset_1 = value_xOffset.value1; valueSerializer.writeString(value_xOffset_1); @@ -56570,12 +58361,12 @@ class Serializer : public SerializerBase { const auto value_yOffset = value.yOffset; Ark_Int32 value_yOffset_type = INTEROP_RUNTIME_UNDEFINED; value_yOffset_type = value_yOffset.selector; - if (((value_yOffset_type == 0))) { + if (value_yOffset_type == 0) { valueSerializer.writeInt8(0); const auto value_yOffset_0 = value_yOffset.value0; valueSerializer.writeNumber(value_yOffset_0); } - else if (((value_yOffset_type == 1))) { + else if (value_yOffset_type == 1) { valueSerializer.writeInt8(1); const auto value_yOffset_1 = value_yOffset.value1; valueSerializer.writeString(value_yOffset_1); @@ -56588,12 +58379,12 @@ class Serializer : public SerializerBase { const auto value_animation_value = value_animation.value; Ark_Int32 value_animation_value_type = INTEROP_RUNTIME_UNDEFINED; value_animation_value_type = value_animation_value.selector; - if (((value_animation_value_type == 0))) { + if (value_animation_value_type == 0) { valueSerializer.writeInt8(0); const auto value_animation_value_0 = value_animation_value.value0; valueSerializer.writeScrollAnimationOptions(value_animation_value_0); } - else if (((value_animation_value_type == 1))) { + else if (value_animation_value_type == 1) { valueSerializer.writeInt8(1); const auto value_animation_value_1 = value_animation_value.value1; valueSerializer.writeBoolean(value_animation_value_1); @@ -56610,6 +58401,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeRichEditorAttribute(Ark_RichEditorAttribute value) + { + } void writePlaceholderStyle(Ark_PlaceholderStyle value) { Serializer& valueSerializer = *this; @@ -56629,22 +58423,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -56672,12 +58466,12 @@ class Serializer : public SerializerBase { const auto value_valueResourceStr_value = value_valueResourceStr.value; Ark_Int32 value_valueResourceStr_value_type = INTEROP_RUNTIME_UNDEFINED; value_valueResourceStr_value_type = value_valueResourceStr_value.selector; - if (((value_valueResourceStr_value_type == 0))) { + if (value_valueResourceStr_value_type == 0) { valueSerializer.writeInt8(0); const auto value_valueResourceStr_value_0 = value_valueResourceStr_value.value0; valueSerializer.writeString(value_valueResourceStr_value_0); } - else if (((value_valueResourceStr_value_type == 1))) { + else if (value_valueResourceStr_value_type == 1) { valueSerializer.writeInt8(1); const auto value_valueResourceStr_value_1 = value_valueResourceStr_value.value1; valueSerializer.writeResource(value_valueResourceStr_value_1); @@ -56782,6 +58576,32 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_end_value); } } + void writeRichEditorSelection(Ark_RichEditorSelection value) + { + Serializer& valueSerializer = *this; + const auto value_selection = value.selection; + const auto value_selection_0 = value_selection.value0; + valueSerializer.writeNumber(value_selection_0); + const auto value_selection_1 = value_selection.value1; + valueSerializer.writeNumber(value_selection_1); + const auto value_spans = value.spans; + valueSerializer.writeInt32(value_spans.length); + for (int i = 0; i < value_spans.length; i++) { + const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_spans_element = value_spans.array[i]; + Ark_Int32 value_spans_element_type = INTEROP_RUNTIME_UNDEFINED; + value_spans_element_type = value_spans_element.selector; + if (value_spans_element_type == 0) { + valueSerializer.writeInt8(0); + const auto value_spans_element_0 = value_spans_element.value0; + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0); + } + else if (value_spans_element_type == 1) { + valueSerializer.writeInt8(1); + const auto value_spans_element_1 = value_spans_element.value1; + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1); + } + } + } void writeRichEditorParagraphStyleOptions(Ark_RichEditorParagraphStyleOptions value) { Serializer& valueSerializer = *this; @@ -56997,12 +58817,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -57016,12 +58836,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -57035,12 +58855,12 @@ class Serializer : public SerializerBase { const auto value_radiusWidth_value = value_radiusWidth.value; Ark_Int32 value_radiusWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_radiusWidth_value_type = value_radiusWidth_value.selector; - if (((value_radiusWidth_value_type == 0))) { + if (value_radiusWidth_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radiusWidth_value_0 = value_radiusWidth_value.value0; valueSerializer.writeNumber(value_radiusWidth_value_0); } - else if (((value_radiusWidth_value_type == 1))) { + else if (value_radiusWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radiusWidth_value_1 = value_radiusWidth_value.value1; valueSerializer.writeString(value_radiusWidth_value_1); @@ -57054,12 +58874,12 @@ class Serializer : public SerializerBase { const auto value_radiusHeight_value = value_radiusHeight.value; Ark_Int32 value_radiusHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_radiusHeight_value_type = value_radiusHeight_value.selector; - if (((value_radiusHeight_value_type == 0))) { + if (value_radiusHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radiusHeight_value_0 = value_radiusHeight_value.value0; valueSerializer.writeNumber(value_radiusHeight_value_0); } - else if (((value_radiusHeight_value_type == 1))) { + else if (value_radiusHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radiusHeight_value_1 = value_radiusHeight_value.value1; valueSerializer.writeString(value_radiusHeight_value_1); @@ -57077,12 +58897,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -57096,12 +58916,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -57115,17 +58935,17 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeString(value_radius_value_1); } - else if (((value_radius_value_type == 2))) { + else if (value_radius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_radius_value_2 = value_radius_value.value2; valueSerializer.writeInt32(value_radius_value_2.length); @@ -57133,12 +58953,12 @@ class Serializer : public SerializerBase { const Ark_Union_Number_String value_radius_value_2_element = value_radius_value_2.array[i]; Ark_Int32 value_radius_value_2_element_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_2_element_type = value_radius_value_2_element.selector; - if (((value_radius_value_2_element_type == 0))) { + if (value_radius_value_2_element_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_2_element_0 = value_radius_value_2_element.value0; valueSerializer.writeNumber(value_radius_value_2_element_0); } - else if (((value_radius_value_2_element_type == 1))) { + else if (value_radius_value_2_element_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_2_element_1 = value_radius_value_2_element.value1; valueSerializer.writeString(value_radius_value_2_element_1); @@ -57202,22 +59022,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0))) { + if (value_borderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0)); } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; valueSerializer.writeNumber(value_borderColor_value_1); } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeString(value_borderColor_value_2); } - else if (((value_borderColor_value_type == 3))) { + else if (value_borderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_3 = value_borderColor_value.value3; valueSerializer.writeResource(value_borderColor_value_3); @@ -57255,22 +59075,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -57348,17 +59168,17 @@ class Serializer : public SerializerBase { const auto value_strokeRadius_value = value_strokeRadius.value; Ark_Int32 value_strokeRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeRadius_value_type = value_strokeRadius_value.selector; - if (((value_strokeRadius_value_type == 0))) { + if (value_strokeRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeRadius_value_0 = value_strokeRadius_value.value0; valueSerializer.writeString(value_strokeRadius_value_0); } - else if (((value_strokeRadius_value_type == 1))) { + else if (value_strokeRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeRadius_value_1 = value_strokeRadius_value.value1; valueSerializer.writeNumber(value_strokeRadius_value_1); } - else if (((value_strokeRadius_value_type == 2))) { + else if (value_strokeRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeRadius_value_2 = value_strokeRadius_value.value2; valueSerializer.writeResource(value_strokeRadius_value_2); @@ -57384,22 +59204,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57519,6 +59339,9 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_animated_value); } } + void writeNavDestinationAttribute(Ark_NavDestinationAttribute value) + { + } void writeNavigationToolbarOptions(Ark_NavigationToolbarOptions value) { Serializer& valueSerializer = *this; @@ -57530,22 +59353,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -57579,22 +59402,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -57667,12 +59490,12 @@ class Serializer : public SerializerBase { const auto value_height = value.height; Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; value_height_type = value_height.selector; - if (((value_height_type == 0))) { + if (value_height_type == 0) { valueSerializer.writeInt8(0); const auto value_height_0 = value_height.value0; valueSerializer.writeInt32(static_cast(value_height_0)); } - else if (((value_height_type == 1)) || ((value_height_type == 1)) || ((value_height_type == 1))) { + else if ((value_height_type == 1) || (value_height_type == 1) || (value_height_type == 1)) { valueSerializer.writeInt8(1); const auto value_height_1 = value_height.value1; valueSerializer.writeLength(value_height_1); @@ -57684,12 +59507,12 @@ class Serializer : public SerializerBase { const auto value_main = value.main; Ark_Int32 value_main_type = INTEROP_RUNTIME_UNDEFINED; value_main_type = value_main.selector; - if (((value_main_type == 0))) { + if (value_main_type == 0) { valueSerializer.writeInt8(0); const auto value_main_0 = value_main.value0; valueSerializer.writeString(value_main_0); } - else if (((value_main_type == 1))) { + else if (value_main_type == 1) { valueSerializer.writeInt8(1); const auto value_main_1 = value_main.value1; valueSerializer.writeResource(value_main_1); @@ -57697,12 +59520,12 @@ class Serializer : public SerializerBase { const auto value_sub = value.sub; Ark_Int32 value_sub_type = INTEROP_RUNTIME_UNDEFINED; value_sub_type = value_sub.selector; - if (((value_sub_type == 0))) { + if (value_sub_type == 0) { valueSerializer.writeInt8(0); const auto value_sub_0 = value_sub.value0; valueSerializer.writeString(value_sub_0); } - else if (((value_sub_type == 1))) { + else if (value_sub_type == 1) { valueSerializer.writeInt8(1); const auto value_sub_1 = value_sub.value1; valueSerializer.writeResource(value_sub_1); @@ -57714,6 +59537,16 @@ class Serializer : public SerializerBase { const auto value__SystemBarStyleStub = value._SystemBarStyleStub; valueSerializer.writeString(value__SystemBarStyleStub); } + void writeRouteMapConfig(Ark_RouteMapConfig value) + { + Serializer& valueSerializer = *this; + const auto value_name = value.name; + valueSerializer.writeString(value_name); + const auto value_pageSourceFile = value.pageSourceFile; + valueSerializer.writeString(value_pageSourceFile); + const auto value_data = value.data; + valueSerializer.writeCustomObject("Object", value_data); + } void writeMenuItemOptions(Ark_MenuItemOptions value) { Serializer& valueSerializer = *this; @@ -57725,12 +59558,12 @@ class Serializer : public SerializerBase { const auto value_startIcon_value = value_startIcon.value; Ark_Int32 value_startIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_startIcon_value_type = value_startIcon_value.selector; - if (((value_startIcon_value_type == 0))) { + if (value_startIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_startIcon_value_0 = value_startIcon_value.value0; valueSerializer.writeString(value_startIcon_value_0); } - else if (((value_startIcon_value_type == 1))) { + else if (value_startIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_startIcon_value_1 = value_startIcon_value.value1; valueSerializer.writeResource(value_startIcon_value_1); @@ -57752,12 +59585,12 @@ class Serializer : public SerializerBase { const auto value_content_value = value_content.value; Ark_Int32 value_content_value_type = INTEROP_RUNTIME_UNDEFINED; value_content_value_type = value_content_value.selector; - if (((value_content_value_type == 0))) { + if (value_content_value_type == 0) { valueSerializer.writeInt8(0); const auto value_content_value_0 = value_content_value.value0; valueSerializer.writeString(value_content_value_0); } - else if (((value_content_value_type == 1))) { + else if (value_content_value_type == 1) { valueSerializer.writeInt8(1); const auto value_content_value_1 = value_content_value.value1; valueSerializer.writeResource(value_content_value_1); @@ -57771,12 +59604,12 @@ class Serializer : public SerializerBase { const auto value_endIcon_value = value_endIcon.value; Ark_Int32 value_endIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_endIcon_value_type = value_endIcon_value.selector; - if (((value_endIcon_value_type == 0))) { + if (value_endIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_endIcon_value_0 = value_endIcon_value.value0; valueSerializer.writeString(value_endIcon_value_0); } - else if (((value_endIcon_value_type == 1))) { + else if (value_endIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_endIcon_value_1 = value_endIcon_value.value1; valueSerializer.writeResource(value_endIcon_value_1); @@ -57798,12 +59631,12 @@ class Serializer : public SerializerBase { const auto value_labelInfo_value = value_labelInfo.value; Ark_Int32 value_labelInfo_value_type = INTEROP_RUNTIME_UNDEFINED; value_labelInfo_value_type = value_labelInfo_value.selector; - if (((value_labelInfo_value_type == 0))) { + if (value_labelInfo_value_type == 0) { valueSerializer.writeInt8(0); const auto value_labelInfo_value_0 = value_labelInfo_value.value0; valueSerializer.writeString(value_labelInfo_value_0); } - else if (((value_labelInfo_value_type == 1))) { + else if (value_labelInfo_value_type == 1) { valueSerializer.writeInt8(1); const auto value_labelInfo_value_1 = value_labelInfo_value.value1; valueSerializer.writeResource(value_labelInfo_value_1); @@ -57839,22 +59672,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57913,22 +59746,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57951,6 +59784,31 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_endMargin_value); } } + void writeListAttribute(Ark_ListAttribute value) + { + } + void writeVisibleListContentInfo(Ark_VisibleListContentInfo value) + { + Serializer& valueSerializer = *this; + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + const auto value_itemGroupArea = value.itemGroupArea; + Ark_Int32 value_itemGroupArea_type = INTEROP_RUNTIME_UNDEFINED; + value_itemGroupArea_type = runtimeType(value_itemGroupArea); + valueSerializer.writeInt8(value_itemGroupArea_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemGroupArea_type)) { + const auto value_itemGroupArea_value = value_itemGroupArea.value; + valueSerializer.writeInt32(static_cast(value_itemGroupArea_value)); + } + const auto value_itemIndexInGroup = value.itemIndexInGroup; + Ark_Int32 value_itemIndexInGroup_type = INTEROP_RUNTIME_UNDEFINED; + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup); + valueSerializer.writeInt8(value_itemIndexInGroup_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemIndexInGroup_type)) { + const auto value_itemIndexInGroup_value = value_itemIndexInGroup.value; + valueSerializer.writeNumber(value_itemIndexInGroup_value); + } + } void writeCloseSwipeActionOptions(Ark_CloseSwipeActionOptions value) { Serializer& valueSerializer = *this; @@ -58000,6 +59858,19 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_reference_value)); } } + void writeGridAttribute(Ark_GridAttribute value) + { + } + void writePanGestureOptions(Ark_PanGestureOptions value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeEventTargetInfo(Ark_EventTargetInfo value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeWindowStatusType(Ark_WindowStatusType value) { Serializer& valueSerializer = *this; @@ -58218,22 +60089,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -58295,12 +60166,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -58358,17 +60229,17 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeString(value_curve_value_1); } - else if (((value_curve_value_type == 2))) { + else if (value_curve_value_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_value_2 = value_curve_value.value2; valueSerializer.writeICurve(value_curve_value_2); @@ -58425,6 +60296,15 @@ class Serializer : public SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value); } } + void writeComponent3DAttribute(Ark_Component3DAttribute value) + { + } + void writeContext(Ark_Context value) + { + Serializer& valueSerializer = *this; + const auto value__ContextStub = value._ContextStub; + valueSerializer.writeString(value__ContextStub); + } void writeUIGestureEvent(Ark_UIGestureEvent value) { } @@ -58464,6 +60344,36 @@ class Serializer : public SerializerBase { const auto value__RectShapeStub = value._RectShapeStub; valueSerializer.writeString(value__RectShapeStub); } + void writeCaretOffset(Ark_CaretOffset value) + { + Serializer& valueSerializer = *this; + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + } + void writeDirectionalEdgesT(Ark_DirectionalEdgesT value) + { + Serializer& valueSerializer = *this; + const auto value_start = value.start; + valueSerializer.writeNumber(value_start); + const auto value_end = value.end; + valueSerializer.writeNumber(value_end); + const auto value_top = value.top; + valueSerializer.writeNumber(value_top); + const auto value_bottom = value.bottom; + valueSerializer.writeNumber(value_bottom); + } + void writeMeasureResult(Ark_MeasureResult value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeConstraintSizeOptions(Ark_ConstraintSizeOptions value) { Serializer& valueSerializer = *this; @@ -58523,22 +60433,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -58592,12 +60502,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeInt32(static_cast(value_height_value_0)); } - else if (((value_height_value_type == 1)) || ((value_height_value_type == 1)) || ((value_height_value_type == 1))) { + else if ((value_height_value_type == 1) || (value_height_value_type == 1) || (value_height_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeLength(value_height_value_1); @@ -58619,22 +60529,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeNumber(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeString(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeResource(value_maskColor_value_3); @@ -58649,12 +60559,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_0 = value_detents_value.value0; Ark_Int32 value_detents_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_0_type = value_detents_value_0.selector; - if (((value_detents_value_0_type == 0))) { + if (value_detents_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_0_0 = value_detents_value_0.value0; valueSerializer.writeInt32(static_cast(value_detents_value_0_0)); } - else if (((value_detents_value_0_type == 1)) || ((value_detents_value_0_type == 1)) || ((value_detents_value_0_type == 1))) { + else if ((value_detents_value_0_type == 1) || (value_detents_value_0_type == 1) || (value_detents_value_0_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_0_1 = value_detents_value_0.value1; valueSerializer.writeLength(value_detents_value_0_1); @@ -58667,12 +60577,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_1_value = value_detents_value_1.value; Ark_Int32 value_detents_value_1_value_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_1_value_type = value_detents_value_1_value.selector; - if (((value_detents_value_1_value_type == 0))) { + if (value_detents_value_1_value_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_1_value_0 = value_detents_value_1_value.value0; valueSerializer.writeInt32(static_cast(value_detents_value_1_value_0)); } - else if (((value_detents_value_1_value_type == 1)) || ((value_detents_value_1_value_type == 1)) || ((value_detents_value_1_value_type == 1))) { + else if ((value_detents_value_1_value_type == 1) || (value_detents_value_1_value_type == 1) || (value_detents_value_1_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_1_value_1 = value_detents_value_1_value.value1; valueSerializer.writeLength(value_detents_value_1_value_1); @@ -58686,12 +60596,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_2_value = value_detents_value_2.value; Ark_Int32 value_detents_value_2_value_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_2_value_type = value_detents_value_2_value.selector; - if (((value_detents_value_2_value_type == 0))) { + if (value_detents_value_2_value_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_2_value_0 = value_detents_value_2_value.value0; valueSerializer.writeInt32(static_cast(value_detents_value_2_value_0)); } - else if (((value_detents_value_2_value_type == 1)) || ((value_detents_value_2_value_type == 1)) || ((value_detents_value_2_value_type == 1))) { + else if ((value_detents_value_2_value_type == 1) || (value_detents_value_2_value_type == 1) || (value_detents_value_2_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_2_value_1 = value_detents_value_2_value.value1; valueSerializer.writeLength(value_detents_value_2_value_1); @@ -58714,12 +60624,12 @@ class Serializer : public SerializerBase { const auto value_showClose_value = value_showClose.value; Ark_Int32 value_showClose_value_type = INTEROP_RUNTIME_UNDEFINED; value_showClose_value_type = value_showClose_value.selector; - if (((value_showClose_value_type == 0))) { + if (value_showClose_value_type == 0) { valueSerializer.writeInt8(0); const auto value_showClose_value_0 = value_showClose_value.value0; valueSerializer.writeBoolean(value_showClose_value_0); } - else if (((value_showClose_value_type == 1))) { + else if (value_showClose_value_type == 1) { valueSerializer.writeInt8(1); const auto value_showClose_value_1 = value_showClose_value.value1; valueSerializer.writeResource(value_showClose_value_1); @@ -58741,12 +60651,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeSheetTitleOptions(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeCallbackResource(value_title_value_1.resource); @@ -58808,12 +60718,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -58849,7 +60759,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -58863,33 +60773,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -58900,22 +60810,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -58929,22 +60839,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -58958,22 +60868,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -58987,29 +60897,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -59023,12 +60933,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -59073,12 +60983,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -59168,22 +61078,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59299,12 +61209,12 @@ class Serializer : public SerializerBase { const auto value_preview_value = value_preview.value; Ark_Int32 value_preview_value_type = INTEROP_RUNTIME_UNDEFINED; value_preview_value_type = value_preview_value.selector; - if (((value_preview_value_type == 0))) { + if (value_preview_value_type == 0) { valueSerializer.writeInt8(0); const auto value_preview_value_0 = value_preview_value.value0; valueSerializer.writeInt32(static_cast(value_preview_value_0)); } - else if (((value_preview_value_type == 1))) { + else if (value_preview_value_type == 1) { valueSerializer.writeInt8(1); const auto value_preview_value_1 = value_preview_value.value1; valueSerializer.writeCallbackResource(value_preview_value_1.resource); @@ -59320,12 +61230,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -59361,7 +61271,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); } } - else if (((value_borderRadius_value_type == 2))) { + else if (value_borderRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderRadius_value_2 = value_borderRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2); @@ -59462,22 +61372,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59551,12 +61461,12 @@ class Serializer : public SerializerBase { const auto value_preview_value = value_preview.value; Ark_Int32 value_preview_value_type = INTEROP_RUNTIME_UNDEFINED; value_preview_value_type = value_preview_value.selector; - if (((value_preview_value_type == 0))) { + if (value_preview_value_type == 0) { valueSerializer.writeInt8(0); const auto value_preview_value_0 = value_preview_value.value0; valueSerializer.writeInt32(static_cast(value_preview_value_0)); } - else if (((value_preview_value_type == 1))) { + else if (value_preview_value_type == 1) { valueSerializer.writeInt8(1); const auto value_preview_value_1 = value_preview_value.value1; valueSerializer.writeCallbackResource(value_preview_value_1.resource); @@ -59572,12 +61482,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -59613,7 +61523,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); } } - else if (((value_borderRadius_value_type == 2))) { + else if (value_borderRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderRadius_value_2 = value_borderRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2); @@ -59714,22 +61624,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59767,12 +61677,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -59810,22 +61720,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeString(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeResource(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeNumber(value_maskColor_value_3); @@ -59839,22 +61749,22 @@ class Serializer : public SerializerBase { const auto value_popupColor_value = value_popupColor.value; Ark_Int32 value_popupColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_popupColor_value_type = value_popupColor_value.selector; - if (((value_popupColor_value_type == 0))) { + if (value_popupColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_popupColor_value_0 = value_popupColor_value.value0; valueSerializer.writeInt32(static_cast(value_popupColor_value_0)); } - else if (((value_popupColor_value_type == 1))) { + else if (value_popupColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_popupColor_value_1 = value_popupColor_value.value1; valueSerializer.writeString(value_popupColor_value_1); } - else if (((value_popupColor_value_type == 2))) { + else if (value_popupColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_popupColor_value_2 = value_popupColor_value.value2; valueSerializer.writeResource(value_popupColor_value_2); } - else if (((value_popupColor_value_type == 3))) { + else if (value_popupColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_popupColor_value_3 = value_popupColor_value.value3; valueSerializer.writeNumber(value_popupColor_value_3); @@ -59910,33 +61820,33 @@ class Serializer : public SerializerBase { const auto value_mask_value = value_mask.value; Ark_Int32 value_mask_value_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_type = value_mask_value.selector; - if (((value_mask_value_type == 0))) { + if (value_mask_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_0 = value_mask_value.value0; valueSerializer.writeBoolean(value_mask_value_0); } - else if (((value_mask_value_type == 1))) { + else if (value_mask_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1 = value_mask_value.value1; const auto value_mask_value_1_color = value_mask_value_1.color; Ark_Int32 value_mask_value_1_color_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_1_color_type = value_mask_value_1_color.selector; - if (((value_mask_value_1_color_type == 0))) { + if (value_mask_value_1_color_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_1_color_0 = value_mask_value_1_color.value0; valueSerializer.writeInt32(static_cast(value_mask_value_1_color_0)); } - else if (((value_mask_value_1_color_type == 1))) { + else if (value_mask_value_1_color_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1_color_1 = value_mask_value_1_color.value1; valueSerializer.writeNumber(value_mask_value_1_color_1); } - else if (((value_mask_value_1_color_type == 2))) { + else if (value_mask_value_1_color_type == 2) { valueSerializer.writeInt8(2); const auto value_mask_value_1_color_2 = value_mask_value_1_color.value2; valueSerializer.writeString(value_mask_value_1_color_2); } - else if (((value_mask_value_1_color_type == 3))) { + else if (value_mask_value_1_color_type == 3) { valueSerializer.writeInt8(3); const auto value_mask_value_1_color_3 = value_mask_value_1_color.value3; valueSerializer.writeResource(value_mask_value_1_color_3); @@ -60007,12 +61917,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -60050,12 +61960,12 @@ class Serializer : public SerializerBase { const auto value_onWillDismiss_value = value_onWillDismiss.value; Ark_Int32 value_onWillDismiss_value_type = INTEROP_RUNTIME_UNDEFINED; value_onWillDismiss_value_type = value_onWillDismiss_value.selector; - if (((value_onWillDismiss_value_type == 0))) { + if (value_onWillDismiss_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onWillDismiss_value_0 = value_onWillDismiss_value.value0; valueSerializer.writeBoolean(value_onWillDismiss_value_0); } - else if (((value_onWillDismiss_value_type == 1))) { + else if (value_onWillDismiss_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onWillDismiss_value_1 = value_onWillDismiss_value.value1; valueSerializer.writeCallbackResource(value_onWillDismiss_value_1.resource); @@ -60161,33 +62071,33 @@ class Serializer : public SerializerBase { const auto value_mask_value = value_mask.value; Ark_Int32 value_mask_value_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_type = value_mask_value.selector; - if (((value_mask_value_type == 0))) { + if (value_mask_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_0 = value_mask_value.value0; valueSerializer.writeBoolean(value_mask_value_0); } - else if (((value_mask_value_type == 1))) { + else if (value_mask_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1 = value_mask_value.value1; const auto value_mask_value_1_color = value_mask_value_1.color; Ark_Int32 value_mask_value_1_color_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_1_color_type = value_mask_value_1_color.selector; - if (((value_mask_value_1_color_type == 0))) { + if (value_mask_value_1_color_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_1_color_0 = value_mask_value_1_color.value0; valueSerializer.writeInt32(static_cast(value_mask_value_1_color_0)); } - else if (((value_mask_value_1_color_type == 1))) { + else if (value_mask_value_1_color_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1_color_1 = value_mask_value_1_color.value1; valueSerializer.writeNumber(value_mask_value_1_color_1); } - else if (((value_mask_value_1_color_type == 2))) { + else if (value_mask_value_1_color_type == 2) { valueSerializer.writeInt8(2); const auto value_mask_value_1_color_2 = value_mask_value_1_color.value2; valueSerializer.writeString(value_mask_value_1_color_2); } - else if (((value_mask_value_1_color_type == 3))) { + else if (value_mask_value_1_color_type == 3) { valueSerializer.writeInt8(3); const auto value_mask_value_1_color_3 = value_mask_value_1_color.value3; valueSerializer.writeResource(value_mask_value_1_color_3); @@ -60234,22 +62144,22 @@ class Serializer : public SerializerBase { const auto value_popupColor_value = value_popupColor.value; Ark_Int32 value_popupColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_popupColor_value_type = value_popupColor_value.selector; - if (((value_popupColor_value_type == 0))) { + if (value_popupColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_popupColor_value_0 = value_popupColor_value.value0; valueSerializer.writeInt32(static_cast(value_popupColor_value_0)); } - else if (((value_popupColor_value_type == 1))) { + else if (value_popupColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_popupColor_value_1 = value_popupColor_value.value1; valueSerializer.writeString(value_popupColor_value_1); } - else if (((value_popupColor_value_type == 2))) { + else if (value_popupColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_popupColor_value_2 = value_popupColor_value.value2; valueSerializer.writeResource(value_popupColor_value_2); } - else if (((value_popupColor_value_type == 3))) { + else if (value_popupColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_popupColor_value_3 = value_popupColor_value.value3; valueSerializer.writeNumber(value_popupColor_value_3); @@ -60311,12 +62221,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -60346,12 +62256,12 @@ class Serializer : public SerializerBase { const auto value_onWillDismiss_value = value_onWillDismiss.value; Ark_Int32 value_onWillDismiss_value_type = INTEROP_RUNTIME_UNDEFINED; value_onWillDismiss_value_type = value_onWillDismiss_value.selector; - if (((value_onWillDismiss_value_type == 0))) { + if (value_onWillDismiss_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onWillDismiss_value_0 = value_onWillDismiss_value.value0; valueSerializer.writeBoolean(value_onWillDismiss_value_0); } - else if (((value_onWillDismiss_value_type == 1))) { + else if (value_onWillDismiss_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onWillDismiss_value_1 = value_onWillDismiss_value.value1; valueSerializer.writeCallbackResource(value_onWillDismiss_value_1.resource); @@ -60453,12 +62363,12 @@ class Serializer : public SerializerBase { const auto value_mode_value = value_mode.value; Ark_Int32 value_mode_value_type = INTEROP_RUNTIME_UNDEFINED; value_mode_value_type = value_mode_value.selector; - if (((value_mode_value_type == 0))) { + if (value_mode_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mode_value_0 = value_mode_value.value0; valueSerializer.writeInt32(static_cast(value_mode_value_0)); } - else if (((value_mode_value_type == 1))) { + else if (value_mode_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mode_value_1 = value_mode_value.value1; valueSerializer.writeInt32(value_mode_value_1.length); @@ -60484,12 +62394,12 @@ class Serializer : public SerializerBase { const auto value_numberBadge_value = value_numberBadge.value; Ark_Int32 value_numberBadge_value_type = INTEROP_RUNTIME_UNDEFINED; value_numberBadge_value_type = value_numberBadge_value.selector; - if (((value_numberBadge_value_type == 0))) { + if (value_numberBadge_value_type == 0) { valueSerializer.writeInt8(0); const auto value_numberBadge_value_0 = value_numberBadge_value.value0; valueSerializer.writeBoolean(value_numberBadge_value_0); } - else if (((value_numberBadge_value_type == 1))) { + else if (value_numberBadge_value_type == 1) { valueSerializer.writeInt8(1); const auto value_numberBadge_value_1 = value_numberBadge_value.value1; valueSerializer.writeNumber(value_numberBadge_value_1); @@ -60515,17 +62425,17 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeString(value_curve_value_1); } - else if (((value_curve_value_type == 2))) { + else if (value_curve_value_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_value_2 = value_curve_value.value2; valueSerializer.writeICurve(value_curve_value_2); @@ -60808,18 +62718,6 @@ class Serializer : public SerializerBase { const auto value__DrawingLatticeStub = value._DrawingLatticeStub; valueSerializer.writeString(value__DrawingLatticeStub); } - void writeRectResult(Ark_RectResult value) - { - Serializer& valueSerializer = *this; - const auto value_x = value.x; - valueSerializer.writeNumber(value_x); - const auto value_y = value.y; - valueSerializer.writeNumber(value_y); - const auto value_width = value.width; - valueSerializer.writeNumber(value_width); - const auto value_height = value.height; - valueSerializer.writeNumber(value_height); - } void writeDrawModifier(Ark_DrawModifier value) { Serializer& valueSerializer = *this; @@ -60831,11 +62729,41 @@ class Serializer : public SerializerBase { const auto value__IntentionCodeStub = value._IntentionCodeStub; valueSerializer.writeString(value__IntentionCodeStub); } + void writeSummary(Ark_Summary value) + { + Serializer& valueSerializer = *this; + const auto value__SummaryStub = value._SummaryStub; + valueSerializer.writeString(value__SummaryStub); + } void writeUnifiedData(Ark_UnifiedData value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTouchObject(Ark_TouchObject value) + { + Serializer& valueSerializer = *this; + const auto value_type = value.type; + valueSerializer.writeInt32(static_cast(value_type)); + const auto value_id = value.id; + valueSerializer.writeNumber(value_id); + const auto value_displayX = value.displayX; + valueSerializer.writeNumber(value_displayX); + const auto value_displayY = value.displayY; + valueSerializer.writeNumber(value_displayY); + const auto value_windowX = value.windowX; + valueSerializer.writeNumber(value_windowX); + const auto value_windowY = value.windowY; + valueSerializer.writeNumber(value_windowY); + const auto value_screenX = value.screenX; + valueSerializer.writeNumber(value_screenX); + const auto value_screenY = value.screenY; + valueSerializer.writeNumber(value_screenY); + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + } void writeColumnSplitDividerStyle(Ark_ColumnSplitDividerStyle value) { Serializer& valueSerializer = *this; @@ -60875,22 +62803,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -60907,11 +62835,51 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeOffscreenCanvasRenderingContext2D(Ark_OffscreenCanvasRenderingContext2D value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeRenderingContextSettings(Ark_RenderingContextSettings value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeImageBitmap(Ark_ImageBitmap value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextMetrics(Ark_TextMetrics value) + { + Serializer& valueSerializer = *this; + const auto value_actualBoundingBoxAscent = value.actualBoundingBoxAscent; + valueSerializer.writeNumber(value_actualBoundingBoxAscent); + const auto value_actualBoundingBoxDescent = value.actualBoundingBoxDescent; + valueSerializer.writeNumber(value_actualBoundingBoxDescent); + const auto value_actualBoundingBoxLeft = value.actualBoundingBoxLeft; + valueSerializer.writeNumber(value_actualBoundingBoxLeft); + const auto value_actualBoundingBoxRight = value.actualBoundingBoxRight; + valueSerializer.writeNumber(value_actualBoundingBoxRight); + const auto value_alphabeticBaseline = value.alphabeticBaseline; + valueSerializer.writeNumber(value_alphabeticBaseline); + const auto value_emHeightAscent = value.emHeightAscent; + valueSerializer.writeNumber(value_emHeightAscent); + const auto value_emHeightDescent = value.emHeightDescent; + valueSerializer.writeNumber(value_emHeightDescent); + const auto value_fontBoundingBoxAscent = value.fontBoundingBoxAscent; + valueSerializer.writeNumber(value_fontBoundingBoxAscent); + const auto value_fontBoundingBoxDescent = value.fontBoundingBoxDescent; + valueSerializer.writeNumber(value_fontBoundingBoxDescent); + const auto value_hangingBaseline = value.hangingBaseline; + valueSerializer.writeNumber(value_hangingBaseline); + const auto value_ideographicBaseline = value.ideographicBaseline; + valueSerializer.writeNumber(value_ideographicBaseline); + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeImageData(Ark_ImageData value) { Serializer& valueSerializer = *this; @@ -60933,12 +62901,12 @@ class Serializer : public SerializerBase { const auto value_hintRadius_value = value_hintRadius.value; Ark_Int32 value_hintRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_hintRadius_value_type = value_hintRadius_value.selector; - if (((value_hintRadius_value_type == 0))) { + if (value_hintRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_hintRadius_value_0 = value_hintRadius_value.value0; valueSerializer.writeNumber(value_hintRadius_value_0); } - else if (((value_hintRadius_value_type == 1))) { + else if (value_hintRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_hintRadius_value_1 = value_hintRadius_value.value1; valueSerializer.writeResource(value_hintRadius_value_1); @@ -60990,22 +62958,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -61083,12 +63051,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -61111,6 +63079,9 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_hoverModeArea_value)); } } + void writeCalendarPickerAttribute(Ark_CalendarPickerAttribute value) + { + } void writeCalendarController(Ark_CalendarController value) { Serializer& valueSerializer = *this; @@ -61141,22 +63112,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -61170,12 +63141,12 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0))) { + if (value_fontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeNumber(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeString(value_fontSize_value_1); @@ -61189,12 +63160,12 @@ class Serializer : public SerializerBase { const auto value_badgeSize_value = value_badgeSize.value; Ark_Int32 value_badgeSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_badgeSize_value_type = value_badgeSize_value.selector; - if (((value_badgeSize_value_type == 0))) { + if (value_badgeSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_badgeSize_value_0 = value_badgeSize_value.value0; valueSerializer.writeNumber(value_badgeSize_value_0); } - else if (((value_badgeSize_value_type == 1))) { + else if (value_badgeSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_badgeSize_value_1 = value_badgeSize_value.value1; valueSerializer.writeString(value_badgeSize_value_1); @@ -61208,22 +63179,22 @@ class Serializer : public SerializerBase { const auto value_badgeColor_value = value_badgeColor.value; Ark_Int32 value_badgeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_badgeColor_value_type = value_badgeColor_value.selector; - if (((value_badgeColor_value_type == 0))) { + if (value_badgeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_badgeColor_value_0 = value_badgeColor_value.value0; valueSerializer.writeInt32(static_cast(value_badgeColor_value_0)); } - else if (((value_badgeColor_value_type == 1))) { + else if (value_badgeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_badgeColor_value_1 = value_badgeColor_value.value1; valueSerializer.writeNumber(value_badgeColor_value_1); } - else if (((value_badgeColor_value_type == 2))) { + else if (value_badgeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_badgeColor_value_2 = value_badgeColor_value.value2; valueSerializer.writeString(value_badgeColor_value_2); } - else if (((value_badgeColor_value_type == 3))) { + else if (value_badgeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_badgeColor_value_3 = value_badgeColor_value.value3; valueSerializer.writeResource(value_badgeColor_value_3); @@ -61237,22 +63208,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0))) { + if (value_borderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0)); } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; valueSerializer.writeNumber(value_borderColor_value_1); } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeString(value_borderColor_value_2); } - else if (((value_borderColor_value_type == 3))) { + else if (value_borderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_3 = value_borderColor_value.value3; valueSerializer.writeResource(value_borderColor_value_3); @@ -61274,23 +63245,26 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); } } } + void writeAlphabetIndexerAttribute(Ark_AlphabetIndexerAttribute value) + { + } void writeAlertDialogParamWithOptions(Ark_AlertDialogParamWithOptions value) { Serializer& valueSerializer = *this; @@ -61302,12 +63276,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -61321,12 +63295,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -61335,12 +63309,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -61422,22 +63396,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -61477,12 +63451,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -61518,7 +63492,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -61548,12 +63522,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -61589,7 +63563,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -61603,33 +63577,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -61640,22 +63614,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -61669,22 +63643,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -61698,22 +63672,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -61727,29 +63701,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -61763,12 +63737,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -61813,12 +63787,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -61874,12 +63848,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -61893,12 +63867,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -61907,12 +63881,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -61994,22 +63968,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -62049,12 +64023,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -62090,7 +64064,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -62120,12 +64094,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -62161,7 +64135,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -62175,33 +64149,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -62212,22 +64186,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -62241,22 +64215,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -62270,22 +64244,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -62299,29 +64273,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -62335,12 +64309,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -62385,12 +64359,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -62436,12 +64410,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -62455,12 +64429,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -62469,12 +64443,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -62556,22 +64530,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -62611,12 +64585,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -62652,7 +64626,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -62682,12 +64656,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -62723,7 +64697,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -62737,33 +64711,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -62774,22 +64748,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -62803,22 +64777,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -62832,22 +64806,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -62861,29 +64835,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -62897,12 +64871,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -62947,12 +64921,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -62997,12 +64971,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -63015,12 +64989,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -63029,12 +65003,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -63119,22 +65093,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -63174,12 +65148,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -63215,7 +65189,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -63245,12 +65219,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -63286,7 +65260,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -63300,33 +65274,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -63337,22 +65311,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -63366,22 +65340,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -63395,22 +65369,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -63424,29 +65398,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -63460,12 +65434,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -63510,12 +65484,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -63579,17 +65553,17 @@ class Serializer : public SerializerBase { const auto value_curve = value.curve; Ark_Int32 value_curve_type = INTEROP_RUNTIME_UNDEFINED; value_curve_type = value_curve.selector; - if (((value_curve_type == 0))) { + if (value_curve_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_0 = value_curve.value0; valueSerializer.writeInt32(static_cast(value_curve_0)); } - else if (((value_curve_type == 1))) { + else if (value_curve_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_1 = value_curve.value1; valueSerializer.writeString(value_curve_1); } - else if (((value_curve_type == 2))) { + else if (value_curve_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_2 = value_curve.value2; valueSerializer.writeICurve(value_curve_2); @@ -63692,11 +65666,6 @@ class Serializer : public SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value); } } - void writeMutableStyledString(Ark_MutableStyledString value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeUrlStyle(Ark_UrlStyle value) { Serializer& valueSerializer = *this; @@ -63758,12 +65727,12 @@ class Serializer : public SerializerBase { const auto value_leadingMargin_value = value_leadingMargin.value; Ark_Int32 value_leadingMargin_value_type = INTEROP_RUNTIME_UNDEFINED; value_leadingMargin_value_type = value_leadingMargin_value.selector; - if (((value_leadingMargin_value_type == 0))) { + if (value_leadingMargin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_leadingMargin_value_0 = value_leadingMargin_value.value0; valueSerializer.writeLengthMetrics(value_leadingMargin_value_0); } - else if (((value_leadingMargin_value_type == 1))) { + else if (value_leadingMargin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_leadingMargin_value_1 = value_leadingMargin_value.value1; valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1); @@ -63840,22 +65809,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -63869,12 +65838,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeString(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeResource(value_fontFamily_value_1); @@ -63896,17 +65865,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -64169,12 +66138,12 @@ class Serializer : public SerializerBase { const auto value_content = value.content; Ark_Int32 value_content_type = INTEROP_RUNTIME_UNDEFINED; value_content_type = value_content.selector; - if (((value_content_type == 0))) { + if (value_content_type == 0) { valueSerializer.writeInt8(0); const auto value_content_0 = value_content.value0; valueSerializer.writeString(value_content_0); } - else if (((value_content_type == 1))) { + else if (value_content_type == 1) { valueSerializer.writeInt8(1); const auto value_content_1 = value_content.value1; valueSerializer.writeResource(value_content_1); @@ -64187,12 +66156,12 @@ class Serializer : public SerializerBase { const auto value_startIcon_value = value_startIcon.value; Ark_Int32 value_startIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_startIcon_value_type = value_startIcon_value.selector; - if (((value_startIcon_value_type == 0))) { + if (value_startIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_startIcon_value_0 = value_startIcon_value.value0; valueSerializer.writeString(value_startIcon_value_0); } - else if (((value_startIcon_value_type == 1))) { + else if (value_startIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_startIcon_value_1 = value_startIcon_value.value1; valueSerializer.writeResource(value_startIcon_value_1); @@ -64783,12 +66752,12 @@ class Serializer : public SerializerBase { const auto value_controller = value.controller; Ark_Int32 value_controller_type = INTEROP_RUNTIME_UNDEFINED; value_controller_type = value_controller.selector; - if (((value_controller_type == 0))) { + if (value_controller_type == 0) { valueSerializer.writeInt8(0); const auto value_controller_0 = value_controller.value0; valueSerializer.writeWebController(value_controller_0); } - else if (((value_controller_type == 1))) { + else if (value_controller_type == 1) { valueSerializer.writeInt8(1); const auto value_controller_1 = value_controller.value1; valueSerializer.writeWebviewController(value_controller_1); @@ -64820,12 +66789,12 @@ class Serializer : public SerializerBase { const auto value_src = value.src; Ark_Int32 value_src_type = INTEROP_RUNTIME_UNDEFINED; value_src_type = value_src.selector; - if (((value_src_type == 0))) { + if (value_src_type == 0) { valueSerializer.writeInt8(0); const auto value_src_0 = value_src.value0; valueSerializer.writeString(value_src_0); } - else if (((value_src_type == 1))) { + else if (value_src_type == 1) { valueSerializer.writeInt8(1); const auto value_src_1 = value_src.value1; valueSerializer.writeResource(value_src_1); @@ -64833,12 +66802,12 @@ class Serializer : public SerializerBase { const auto value_controller = value.controller; Ark_Int32 value_controller_type = INTEROP_RUNTIME_UNDEFINED; value_controller_type = value_controller.selector; - if (((value_controller_type == 0))) { + if (value_controller_type == 0) { valueSerializer.writeInt8(0); const auto value_controller_0 = value_controller.value0; valueSerializer.writeWebController(value_controller_0); } - else if (((value_controller_type == 1))) { + else if (value_controller_type == 1) { valueSerializer.writeInt8(1); const auto value_controller_1 = value_controller.value1; valueSerializer.writeWebviewController(value_controller_1); @@ -64868,11 +66837,6 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value); } } - void writeWebCookie(Ark_WebCookie value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeHeader(Ark_Header value) { Serializer& valueSerializer = *this; @@ -64910,12 +66874,12 @@ class Serializer : public SerializerBase { const auto value_src_value = value_src.value; Ark_Int32 value_src_value_type = INTEROP_RUNTIME_UNDEFINED; value_src_value_type = value_src_value.selector; - if (((value_src_value_type == 0))) { + if (value_src_value_type == 0) { valueSerializer.writeInt8(0); const auto value_src_value_0 = value_src_value.value0; valueSerializer.writeString(value_src_value_0); } - else if (((value_src_value_type == 1))) { + else if (value_src_value_type == 1) { valueSerializer.writeInt8(1); const auto value_src_value_1 = value_src_value.value1; valueSerializer.writeResource(value_src_value_1); @@ -64929,17 +66893,17 @@ class Serializer : public SerializerBase { const auto value_currentProgressRate_value = value_currentProgressRate.value; Ark_Int32 value_currentProgressRate_value_type = INTEROP_RUNTIME_UNDEFINED; value_currentProgressRate_value_type = value_currentProgressRate_value.selector; - if (((value_currentProgressRate_value_type == 0))) { + if (value_currentProgressRate_value_type == 0) { valueSerializer.writeInt8(0); const auto value_currentProgressRate_value_0 = value_currentProgressRate_value.value0; valueSerializer.writeNumber(value_currentProgressRate_value_0); } - else if (((value_currentProgressRate_value_type == 1))) { + else if (value_currentProgressRate_value_type == 1) { valueSerializer.writeInt8(1); const auto value_currentProgressRate_value_1 = value_currentProgressRate_value.value1; valueSerializer.writeString(value_currentProgressRate_value_1); } - else if (((value_currentProgressRate_value_type == 2))) { + else if (value_currentProgressRate_value_type == 2) { valueSerializer.writeInt8(2); const auto value_currentProgressRate_value_2 = value_currentProgressRate_value.value2; valueSerializer.writeInt32(static_cast(value_currentProgressRate_value_2)); @@ -64953,17 +66917,17 @@ class Serializer : public SerializerBase { const auto value_previewUri_value = value_previewUri.value; Ark_Int32 value_previewUri_value_type = INTEROP_RUNTIME_UNDEFINED; value_previewUri_value_type = value_previewUri_value.selector; - if (((value_previewUri_value_type == 0))) { + if (value_previewUri_value_type == 0) { valueSerializer.writeInt8(0); const auto value_previewUri_value_0 = value_previewUri_value.value0; valueSerializer.writeString(value_previewUri_value_0); } - else if (((value_previewUri_value_type == 1))) { + else if (value_previewUri_value_type == 1) { valueSerializer.writeInt8(1); const auto value_previewUri_value_1 = value_previewUri_value.value1; valueSerializer.writePixelMap(value_previewUri_value_1); } - else if (((value_previewUri_value_type == 2))) { + else if (value_previewUri_value_type == 2) { valueSerializer.writeInt8(2); const auto value_previewUri_value_2 = value_previewUri_value.value2; valueSerializer.writeResource(value_previewUri_value_2); @@ -64997,12 +66961,12 @@ class Serializer : public SerializerBase { const auto value_pointRadius_value = value_pointRadius.value; Ark_Int32 value_pointRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_pointRadius_value_type = value_pointRadius_value.selector; - if (((value_pointRadius_value_type == 0))) { + if (value_pointRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_pointRadius_value_0 = value_pointRadius_value.value0; valueSerializer.writeNumber(value_pointRadius_value_0); } - else if (((value_pointRadius_value_type == 1))) { + else if (value_pointRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_pointRadius_value_1 = value_pointRadius_value.value1; valueSerializer.writeResource(value_pointRadius_value_1); @@ -65016,22 +66980,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -65045,22 +67009,22 @@ class Serializer : public SerializerBase { const auto value_pointColor_value = value_pointColor.value; Ark_Int32 value_pointColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_pointColor_value_type = value_pointColor_value.selector; - if (((value_pointColor_value_type == 0))) { + if (value_pointColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_pointColor_value_0 = value_pointColor_value.value0; valueSerializer.writeInt32(static_cast(value_pointColor_value_0)); } - else if (((value_pointColor_value_type == 1))) { + else if (value_pointColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_pointColor_value_1 = value_pointColor_value.value1; valueSerializer.writeNumber(value_pointColor_value_1); } - else if (((value_pointColor_value_type == 2))) { + else if (value_pointColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_pointColor_value_2 = value_pointColor_value.value2; valueSerializer.writeString(value_pointColor_value_2); } - else if (((value_pointColor_value_type == 3))) { + else if (value_pointColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_pointColor_value_3 = value_pointColor_value.value3; valueSerializer.writeResource(value_pointColor_value_3); @@ -65074,12 +67038,12 @@ class Serializer : public SerializerBase { const auto value_trackBorderRadius_value = value_trackBorderRadius.value; Ark_Int32 value_trackBorderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_trackBorderRadius_value_type = value_trackBorderRadius_value.selector; - if (((value_trackBorderRadius_value_type == 0))) { + if (value_trackBorderRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_trackBorderRadius_value_0 = value_trackBorderRadius_value.value0; valueSerializer.writeNumber(value_trackBorderRadius_value_0); } - else if (((value_trackBorderRadius_value_type == 1))) { + else if (value_trackBorderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_trackBorderRadius_value_1 = value_trackBorderRadius_value.value1; valueSerializer.writeResource(value_trackBorderRadius_value_1); @@ -65169,12 +67133,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeInt32(value_value_1.length); @@ -65186,12 +67150,12 @@ class Serializer : public SerializerBase { const auto value_index = value.index; Ark_Int32 value_index_type = INTEROP_RUNTIME_UNDEFINED; value_index_type = value_index.selector; - if (((value_index_type == 0))) { + if (value_index_type == 0) { valueSerializer.writeInt8(0); const auto value_index_0 = value_index.value0; valueSerializer.writeNumber(value_index_0); } - else if (((value_index_type == 1))) { + else if (value_index_type == 1) { valueSerializer.writeInt8(1); const auto value_index_1 = value_index.value1; valueSerializer.writeInt32(value_index_1.length); @@ -65212,12 +67176,12 @@ class Serializer : public SerializerBase { const auto value_text = value.text; Ark_Int32 value_text_type = INTEROP_RUNTIME_UNDEFINED; value_text_type = value_text.selector; - if (((value_text_type == 0))) { + if (value_text_type == 0) { valueSerializer.writeInt8(0); const auto value_text_0 = value_text.value0; valueSerializer.writeString(value_text_0); } - else if (((value_text_type == 1))) { + else if (value_text_type == 1) { valueSerializer.writeInt8(1); const auto value_text_1 = value_text.value1; valueSerializer.writeResource(value_text_1); @@ -65241,12 +67205,12 @@ class Serializer : public SerializerBase { const auto value_icon = value.icon; Ark_Int32 value_icon_type = INTEROP_RUNTIME_UNDEFINED; value_icon_type = value_icon.selector; - if (((value_icon_type == 0))) { + if (value_icon_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_0 = value_icon.value0; valueSerializer.writeString(value_icon_0); } - else if (((value_icon_type == 1))) { + else if (value_icon_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_1 = value_icon.value1; valueSerializer.writeResource(value_icon_1); @@ -65259,12 +67223,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65277,7 +67241,7 @@ class Serializer : public SerializerBase { const auto value_range = value.range; Ark_Int32 value_range_type = INTEROP_RUNTIME_UNDEFINED; value_range_type = value_range.selector; - if (((value_range_type == 0))) { + if (value_range_type == 0) { valueSerializer.writeInt8(0); const auto value_range_0 = value_range.value0; valueSerializer.writeInt32(value_range_0.length); @@ -65286,7 +67250,7 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_range_0_element); } } - else if (((value_range_type == 1))) { + else if (value_range_type == 1) { valueSerializer.writeInt8(1); const auto value_range_1 = value_range.value1; valueSerializer.writeInt32(value_range_1.length); @@ -65299,12 +67263,12 @@ class Serializer : public SerializerBase { } } } - else if (((value_range_type == 2))) { + else if (value_range_type == 2) { valueSerializer.writeInt8(2); const auto value_range_2 = value_range.value2; valueSerializer.writeResource(value_range_2); } - else if (((value_range_type == 3))) { + else if (value_range_type == 3) { valueSerializer.writeInt8(3); const auto value_range_3 = value_range.value3; valueSerializer.writeInt32(value_range_3.length); @@ -65313,7 +67277,7 @@ class Serializer : public SerializerBase { valueSerializer.writeTextPickerRangeContent(value_range_3_element); } } - else if (((value_range_type == 4))) { + else if (value_range_type == 4) { valueSerializer.writeInt8(4); const auto value_range_4 = value_range.value4; valueSerializer.writeInt32(value_range_4.length); @@ -65330,12 +67294,12 @@ class Serializer : public SerializerBase { const auto value_value_value = value_value.value; Ark_Int32 value_value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_value_type = value_value_value.selector; - if (((value_value_value_type == 0))) { + if (value_value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_value_0 = value_value_value.value0; valueSerializer.writeString(value_value_value_0); } - else if (((value_value_value_type == 1))) { + else if (value_value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_value_1 = value_value_value.value1; valueSerializer.writeInt32(value_value_value_1.length); @@ -65353,12 +67317,12 @@ class Serializer : public SerializerBase { const auto value_selected_value = value_selected.value; Ark_Int32 value_selected_value_type = INTEROP_RUNTIME_UNDEFINED; value_selected_value_type = value_selected_value.selector; - if (((value_selected_value_type == 0))) { + if (value_selected_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selected_value_0 = value_selected_value.value0; valueSerializer.writeNumber(value_selected_value_0); } - else if (((value_selected_value_type == 1))) { + else if (value_selected_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selected_value_1 = value_selected_value.value1; valueSerializer.writeInt32(value_selected_value_1.length); @@ -65380,12 +67344,12 @@ class Serializer : public SerializerBase { const auto value_onIconSrc_value = value_onIconSrc.value; Ark_Int32 value_onIconSrc_value_type = INTEROP_RUNTIME_UNDEFINED; value_onIconSrc_value_type = value_onIconSrc_value.selector; - if (((value_onIconSrc_value_type == 0))) { + if (value_onIconSrc_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onIconSrc_value_0 = value_onIconSrc_value.value0; valueSerializer.writeString(value_onIconSrc_value_0); } - else if (((value_onIconSrc_value_type == 1))) { + else if (value_onIconSrc_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onIconSrc_value_1 = value_onIconSrc_value.value1; valueSerializer.writeResource(value_onIconSrc_value_1); @@ -65399,12 +67363,12 @@ class Serializer : public SerializerBase { const auto value_offIconSrc_value = value_offIconSrc.value; Ark_Int32 value_offIconSrc_value_type = INTEROP_RUNTIME_UNDEFINED; value_offIconSrc_value_type = value_offIconSrc_value.selector; - if (((value_offIconSrc_value_type == 0))) { + if (value_offIconSrc_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offIconSrc_value_0 = value_offIconSrc_value.value0; valueSerializer.writeString(value_offIconSrc_value_0); } - else if (((value_offIconSrc_value_type == 1))) { + else if (value_offIconSrc_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offIconSrc_value_1 = value_offIconSrc_value.value1; valueSerializer.writeResource(value_offIconSrc_value_1); @@ -65422,12 +67386,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -65441,12 +67405,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65461,10 +67425,11 @@ class Serializer : public SerializerBase { valueSerializer.writeTextInputController(value_controller_value); } } - void writeLayoutManager(Ark_LayoutManager value) + void writeTextBox(Ark_TextBox value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); + const auto value__TextBoxStub = value._TextBoxStub; + valueSerializer.writeString(value__TextBoxStub); } void writeStyledStringController(Ark_StyledStringController value) { @@ -65512,12 +67477,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -65531,12 +67496,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65766,12 +67731,12 @@ class Serializer : public SerializerBase { const auto value_image_value = value_image.value; Ark_Int32 value_image_value_type = INTEROP_RUNTIME_UNDEFINED; value_image_value_type = value_image_value.selector; - if (((value_image_value_type == 0))) { + if (value_image_value_type == 0) { valueSerializer.writeInt8(0); const auto value_image_value_0 = value_image_value.value0; valueSerializer.writeString(value_image_value_0); } - else if (((value_image_value_type == 1))) { + else if (value_image_value_type == 1) { valueSerializer.writeInt8(1); const auto value_image_value_1 = value_image_value.value1; valueSerializer.writeResource(value_image_value_1); @@ -65857,12 +67822,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0))) { + if (value_x_value_type == 0) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeNumber(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeString(value_x_value_1); @@ -65876,12 +67841,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0))) { + if (value_y_value_type == 0) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeNumber(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeString(value_y_value_1); @@ -65895,12 +67860,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -65914,12 +67879,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -65932,12 +67897,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -65950,12 +67915,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -66001,22 +67966,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66031,14 +67996,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value)); } } - void writePreviewText(Ark_PreviewText value) - { - Serializer& valueSerializer = *this; - const auto value_offset = value.offset; - valueSerializer.writeNumber(value_offset); - const auto value_value = value.value; - valueSerializer.writeString(value_value); - } void writeCaretStyle(Ark_CaretStyle value) { Serializer& valueSerializer = *this; @@ -66058,22 +68015,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66099,12 +68056,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -66182,12 +68139,12 @@ class Serializer : public SerializerBase { const auto value_snapPagination_value = value_snapPagination.value; Ark_Int32 value_snapPagination_value_type = INTEROP_RUNTIME_UNDEFINED; value_snapPagination_value_type = value_snapPagination_value.selector; - if (((value_snapPagination_value_type == 0)) || ((value_snapPagination_value_type == 0)) || ((value_snapPagination_value_type == 0))) { + if ((value_snapPagination_value_type == 0) || (value_snapPagination_value_type == 0) || (value_snapPagination_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_snapPagination_value_0 = value_snapPagination_value.value0; valueSerializer.writeLength(value_snapPagination_value_0); } - else if (((value_snapPagination_value_type == 1))) { + else if (value_snapPagination_value_type == 1) { valueSerializer.writeInt8(1); const auto value_snapPagination_value_1 = value_snapPagination_value.value1; valueSerializer.writeInt32(value_snapPagination_value_1.length); @@ -66259,12 +68216,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeString(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeNumber(value_space_value_1); @@ -66375,22 +68332,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66434,12 +68391,12 @@ class Serializer : public SerializerBase { const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_richEditorDeleteSpans_element = value_richEditorDeleteSpans.array[i]; Ark_Int32 value_richEditorDeleteSpans_element_type = INTEROP_RUNTIME_UNDEFINED; value_richEditorDeleteSpans_element_type = value_richEditorDeleteSpans_element.selector; - if (((value_richEditorDeleteSpans_element_type == 0))) { + if (value_richEditorDeleteSpans_element_type == 0) { valueSerializer.writeInt8(0); const auto value_richEditorDeleteSpans_element_0 = value_richEditorDeleteSpans_element.value0; valueSerializer.writeRichEditorTextSpanResult(value_richEditorDeleteSpans_element_0); } - else if (((value_richEditorDeleteSpans_element_type == 1))) { + else if (value_richEditorDeleteSpans_element_type == 1) { valueSerializer.writeInt8(1); const auto value_richEditorDeleteSpans_element_1 = value_richEditorDeleteSpans_element.value1; valueSerializer.writeRichEditorImageSpanResult(value_richEditorDeleteSpans_element_1); @@ -66462,32 +68419,6 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_previewText_value); } } - void writeRichEditorSelection(Ark_RichEditorSelection value) - { - Serializer& valueSerializer = *this; - const auto value_selection = value.selection; - const auto value_selection_0 = value_selection.value0; - valueSerializer.writeNumber(value_selection_0); - const auto value_selection_1 = value_selection.value1; - valueSerializer.writeNumber(value_selection_1); - const auto value_spans = value.spans; - valueSerializer.writeInt32(value_spans.length); - for (int i = 0; i < value_spans.length; i++) { - const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_spans_element = value_spans.array[i]; - Ark_Int32 value_spans_element_type = INTEROP_RUNTIME_UNDEFINED; - value_spans_element_type = value_spans_element.selector; - if (((value_spans_element_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_spans_element_0 = value_spans_element.value0; - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0); - } - else if (((value_spans_element_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_spans_element_1 = value_spans_element.value1; - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1); - } - } - } void writeStyledStringChangeValue(Ark_StyledStringChangeValue value) { Serializer& valueSerializer = *this; @@ -66504,6 +68435,17 @@ class Serializer : public SerializerBase { valueSerializer.writeStyledString(value_previewText_value); } } + void writeRichEditorParagraphResult(Ark_RichEditorParagraphResult value) + { + Serializer& valueSerializer = *this; + const auto value_style = value.style; + valueSerializer.writeRichEditorParagraphStyle(value_style); + const auto value_range = value.range; + const auto value_range_0 = value_range.value0; + valueSerializer.writeNumber(value_range_0); + const auto value_range_1 = value_range.value1; + valueSerializer.writeNumber(value_range_1); + } void writeRichEditorBaseController(Ark_RichEditorBaseController value) { Serializer& valueSerializer = *this; @@ -66560,12 +68502,12 @@ class Serializer : public SerializerBase { const auto value_offset_value = value_offset.value; Ark_Int32 value_offset_value_type = INTEROP_RUNTIME_UNDEFINED; value_offset_value_type = value_offset_value.selector; - if (((value_offset_value_type == 0))) { + if (value_offset_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offset_value_0 = value_offset_value.value0; valueSerializer.writeNumber(value_offset_value_0); } - else if (((value_offset_value_type == 1))) { + else if (value_offset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offset_value_1 = value_offset_value.value1; valueSerializer.writeString(value_offset_value_1); @@ -66579,12 +68521,12 @@ class Serializer : public SerializerBase { const auto value_friction_value = value_friction.value; Ark_Int32 value_friction_value_type = INTEROP_RUNTIME_UNDEFINED; value_friction_value_type = value_friction_value.selector; - if (((value_friction_value_type == 0))) { + if (value_friction_value_type == 0) { valueSerializer.writeInt8(0); const auto value_friction_value_0 = value_friction_value.value0; valueSerializer.writeNumber(value_friction_value_0); } - else if (((value_friction_value_type == 1))) { + else if (value_friction_value_type == 1) { valueSerializer.writeInt8(1); const auto value_friction_value_1 = value_friction_value.value1; valueSerializer.writeString(value_friction_value_1); @@ -66598,12 +68540,12 @@ class Serializer : public SerializerBase { const auto value_promptText_value = value_promptText.value; Ark_Int32 value_promptText_value_type = INTEROP_RUNTIME_UNDEFINED; value_promptText_value_type = value_promptText_value.selector; - if (((value_promptText_value_type == 0))) { + if (value_promptText_value_type == 0) { valueSerializer.writeInt8(0); const auto value_promptText_value_0 = value_promptText_value.value0; valueSerializer.writeString(value_promptText_value_0); } - else if (((value_promptText_value_type == 1))) { + else if (value_promptText_value_type == 1) { valueSerializer.writeInt8(1); const auto value_promptText_value_1 = value_promptText_value.value1; valueSerializer.writeResource(value_promptText_value_1); @@ -66669,22 +68611,22 @@ class Serializer : public SerializerBase { const auto value_checkedBackgroundColor_value = value_checkedBackgroundColor.value; Ark_Int32 value_checkedBackgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_checkedBackgroundColor_value_type = value_checkedBackgroundColor_value.selector; - if (((value_checkedBackgroundColor_value_type == 0))) { + if (value_checkedBackgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_checkedBackgroundColor_value_0)); } - else if (((value_checkedBackgroundColor_value_type == 1))) { + else if (value_checkedBackgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_checkedBackgroundColor_value_1 = value_checkedBackgroundColor_value.value1; valueSerializer.writeNumber(value_checkedBackgroundColor_value_1); } - else if (((value_checkedBackgroundColor_value_type == 2))) { + else if (value_checkedBackgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_checkedBackgroundColor_value_2 = value_checkedBackgroundColor_value.value2; valueSerializer.writeString(value_checkedBackgroundColor_value_2); } - else if (((value_checkedBackgroundColor_value_type == 3))) { + else if (value_checkedBackgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_checkedBackgroundColor_value_3 = value_checkedBackgroundColor_value.value3; valueSerializer.writeResource(value_checkedBackgroundColor_value_3); @@ -66698,22 +68640,22 @@ class Serializer : public SerializerBase { const auto value_uncheckedBorderColor_value = value_uncheckedBorderColor.value; Ark_Int32 value_uncheckedBorderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_uncheckedBorderColor_value_type = value_uncheckedBorderColor_value.selector; - if (((value_uncheckedBorderColor_value_type == 0))) { + if (value_uncheckedBorderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value.value0; valueSerializer.writeInt32(static_cast(value_uncheckedBorderColor_value_0)); } - else if (((value_uncheckedBorderColor_value_type == 1))) { + else if (value_uncheckedBorderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_uncheckedBorderColor_value_1 = value_uncheckedBorderColor_value.value1; valueSerializer.writeNumber(value_uncheckedBorderColor_value_1); } - else if (((value_uncheckedBorderColor_value_type == 2))) { + else if (value_uncheckedBorderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_uncheckedBorderColor_value_2 = value_uncheckedBorderColor_value.value2; valueSerializer.writeString(value_uncheckedBorderColor_value_2); } - else if (((value_uncheckedBorderColor_value_type == 3))) { + else if (value_uncheckedBorderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_uncheckedBorderColor_value_3 = value_uncheckedBorderColor_value.value3; valueSerializer.writeResource(value_uncheckedBorderColor_value_3); @@ -66727,22 +68669,22 @@ class Serializer : public SerializerBase { const auto value_indicatorColor_value = value_indicatorColor.value; Ark_Int32 value_indicatorColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_indicatorColor_value_type = value_indicatorColor_value.selector; - if (((value_indicatorColor_value_type == 0))) { + if (value_indicatorColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_indicatorColor_value_0 = value_indicatorColor_value.value0; valueSerializer.writeInt32(static_cast(value_indicatorColor_value_0)); } - else if (((value_indicatorColor_value_type == 1))) { + else if (value_indicatorColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_indicatorColor_value_1 = value_indicatorColor_value.value1; valueSerializer.writeNumber(value_indicatorColor_value_1); } - else if (((value_indicatorColor_value_type == 2))) { + else if (value_indicatorColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_indicatorColor_value_2 = value_indicatorColor_value.value2; valueSerializer.writeString(value_indicatorColor_value_2); } - else if (((value_indicatorColor_value_type == 3))) { + else if (value_indicatorColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_indicatorColor_value_3 = value_indicatorColor_value.value3; valueSerializer.writeResource(value_indicatorColor_value_3); @@ -66816,12 +68758,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -66835,12 +68777,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -66866,12 +68808,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -66885,12 +68827,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -66929,12 +68871,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -66948,12 +68890,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -67024,12 +68966,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -67042,12 +68984,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -67087,12 +69029,12 @@ class Serializer : public SerializerBase { const auto value_activeIcon_value = value_activeIcon.value; Ark_Int32 value_activeIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_activeIcon_value_type = value_activeIcon_value.selector; - if (((value_activeIcon_value_type == 0))) { + if (value_activeIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_activeIcon_value_0 = value_activeIcon_value.value0; valueSerializer.writeString(value_activeIcon_value_0); } - else if (((value_activeIcon_value_type == 1))) { + else if (value_activeIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_activeIcon_value_1 = value_activeIcon_value.value1; valueSerializer.writeResource(value_activeIcon_value_1); @@ -67113,12 +69055,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -67131,12 +69073,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -67188,23 +69130,23 @@ class Serializer : public SerializerBase { const auto value_header_value = value_header.value; Ark_Int32 value_header_value_type = INTEROP_RUNTIME_UNDEFINED; value_header_value_type = value_header_value.selector; - if (((value_header_value_type == 0)) || ((value_header_value_type == 0))) { + if ((value_header_value_type == 0) || (value_header_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_header_value_0 = value_header_value.value0; Ark_Int32 value_header_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_header_value_0_type = value_header_value_0.selector; - if (((value_header_value_0_type == 0))) { + if (value_header_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_header_value_0_0 = value_header_value_0.value0; valueSerializer.writeString(value_header_value_0_0); } - else if (((value_header_value_0_type == 1))) { + else if (value_header_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_header_value_0_1 = value_header_value_0.value1; valueSerializer.writeResource(value_header_value_0_1); } } - else if (((value_header_value_type == 1))) { + else if (value_header_value_type == 1) { valueSerializer.writeInt8(1); const auto value_header_value_1 = value_header_value.value1; valueSerializer.writeCallbackResource(value_header_value_1.resource); @@ -67220,23 +69162,23 @@ class Serializer : public SerializerBase { const auto value_footer_value = value_footer.value; Ark_Int32 value_footer_value_type = INTEROP_RUNTIME_UNDEFINED; value_footer_value_type = value_footer_value.selector; - if (((value_footer_value_type == 0)) || ((value_footer_value_type == 0))) { + if ((value_footer_value_type == 0) || (value_footer_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_footer_value_0 = value_footer_value.value0; Ark_Int32 value_footer_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_footer_value_0_type = value_footer_value_0.selector; - if (((value_footer_value_0_type == 0))) { + if (value_footer_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_footer_value_0_0 = value_footer_value_0.value0; valueSerializer.writeString(value_footer_value_0_0); } - else if (((value_footer_value_0_type == 1))) { + else if (value_footer_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_footer_value_0_1 = value_footer_value_0.value1; valueSerializer.writeResource(value_footer_value_0_1); } } - else if (((value_footer_value_type == 1))) { + else if (value_footer_value_type == 1) { valueSerializer.writeInt8(1); const auto value_footer_value_1 = value_footer_value.value1; valueSerializer.writeCallbackResource(value_footer_value_1.resource); @@ -67352,12 +69294,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeNumber(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeString(value_space_value_1); @@ -67383,14 +69325,14 @@ class Serializer : public SerializerBase { const auto value_start_value = value_start.value; Ark_Int32 value_start_value_type = INTEROP_RUNTIME_UNDEFINED; value_start_value_type = value_start_value.selector; - if (((value_start_value_type == 0))) { + if (value_start_value_type == 0) { valueSerializer.writeInt8(0); const auto value_start_value_0 = value_start_value.value0; valueSerializer.writeCallbackResource(value_start_value_0.resource); valueSerializer.writePointer(reinterpret_cast(value_start_value_0.call)); valueSerializer.writePointer(reinterpret_cast(value_start_value_0.callSync)); } - else if (((value_start_value_type == 1))) { + else if (value_start_value_type == 1) { valueSerializer.writeInt8(1); const auto value_start_value_1 = value_start_value.value1; valueSerializer.writeSwipeActionItem(value_start_value_1); @@ -67404,14 +69346,14 @@ class Serializer : public SerializerBase { const auto value_end_value = value_end.value; Ark_Int32 value_end_value_type = INTEROP_RUNTIME_UNDEFINED; value_end_value_type = value_end_value.selector; - if (((value_end_value_type == 0))) { + if (value_end_value_type == 0) { valueSerializer.writeInt8(0); const auto value_end_value_0 = value_end_value.value0; valueSerializer.writeCallbackResource(value_end_value_0.resource); valueSerializer.writePointer(reinterpret_cast(value_end_value_0.call)); valueSerializer.writePointer(reinterpret_cast(value_end_value_0.callSync)); } - else if (((value_end_value_type == 1))) { + else if (value_end_value_type == 1) { valueSerializer.writeInt8(1); const auto value_end_value_1 = value_end_value.value1; valueSerializer.writeSwipeActionItem(value_end_value_1); @@ -67448,28 +69390,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value)); } } - void writeVisibleListContentInfo(Ark_VisibleListContentInfo value) - { - Serializer& valueSerializer = *this; - const auto value_index = value.index; - valueSerializer.writeNumber(value_index); - const auto value_itemGroupArea = value.itemGroupArea; - Ark_Int32 value_itemGroupArea_type = INTEROP_RUNTIME_UNDEFINED; - value_itemGroupArea_type = runtimeType(value_itemGroupArea); - valueSerializer.writeInt8(value_itemGroupArea_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemGroupArea_type)) { - const auto value_itemGroupArea_value = value_itemGroupArea.value; - valueSerializer.writeInt32(static_cast(value_itemGroupArea_value)); - } - const auto value_itemIndexInGroup = value.itemIndexInGroup; - Ark_Int32 value_itemIndexInGroup_type = INTEROP_RUNTIME_UNDEFINED; - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup); - valueSerializer.writeInt8(value_itemIndexInGroup_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemIndexInGroup_type)) { - const auto value_itemIndexInGroup_value = value_itemIndexInGroup.value; - valueSerializer.writeNumber(value_itemIndexInGroup_value); - } - } void writeChainAnimationOptions(Ark_ChainAnimationOptions value) { Serializer& valueSerializer = *this; @@ -67537,12 +69457,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeNumber(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeString(value_space_value_1); @@ -67573,12 +69493,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -67592,12 +69512,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -67632,17 +69552,17 @@ class Serializer : public SerializerBase { const auto value_src = value.src; Ark_Int32 value_src_type = INTEROP_RUNTIME_UNDEFINED; value_src_type = value_src.selector; - if (((value_src_type == 0))) { + if (value_src_type == 0) { valueSerializer.writeInt8(0); const auto value_src_0 = value_src.value0; valueSerializer.writeString(value_src_0); } - else if (((value_src_type == 1))) { + else if (value_src_type == 1) { valueSerializer.writeInt8(1); const auto value_src_1 = value_src.value1; valueSerializer.writeResource(value_src_1); } - else if (((value_src_type == 2))) { + else if (value_src_type == 2) { valueSerializer.writeInt8(2); const auto value_src_2 = value_src.value2; valueSerializer.writePixelMap(value_src_2); @@ -67655,12 +69575,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -67674,12 +69594,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -67693,12 +69613,12 @@ class Serializer : public SerializerBase { const auto value_top_value = value_top.value; Ark_Int32 value_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_top_value_type = value_top_value.selector; - if (((value_top_value_type == 0))) { + if (value_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_top_value_0 = value_top_value.value0; valueSerializer.writeNumber(value_top_value_0); } - else if (((value_top_value_type == 1))) { + else if (value_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_top_value_1 = value_top_value.value1; valueSerializer.writeString(value_top_value_1); @@ -67712,12 +69632,12 @@ class Serializer : public SerializerBase { const auto value_left_value = value_left.value; Ark_Int32 value_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_left_value_type = value_left_value.selector; - if (((value_left_value_type == 0))) { + if (value_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_left_value_0 = value_left_value.value0; valueSerializer.writeNumber(value_left_value_0); } - else if (((value_left_value_type == 1))) { + else if (value_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_left_value_1 = value_left_value.value1; valueSerializer.writeString(value_left_value_1); @@ -67767,12 +69687,12 @@ class Serializer : public SerializerBase { const auto value_gutter_value = value_gutter.value; Ark_Int32 value_gutter_value_type = INTEROP_RUNTIME_UNDEFINED; value_gutter_value_type = value_gutter_value.selector; - if (((value_gutter_value_type == 0)) || ((value_gutter_value_type == 0)) || ((value_gutter_value_type == 0))) { + if ((value_gutter_value_type == 0) || (value_gutter_value_type == 0) || (value_gutter_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_gutter_value_0 = value_gutter_value.value0; valueSerializer.writeLength(value_gutter_value_0); } - else if (((value_gutter_value_type == 1))) { + else if (value_gutter_value_type == 1) { valueSerializer.writeInt8(1); const auto value_gutter_value_1 = value_gutter_value.value1; valueSerializer.writeGutterOption(value_gutter_value_1); @@ -67786,12 +69706,12 @@ class Serializer : public SerializerBase { const auto value_columns_value = value_columns.value; Ark_Int32 value_columns_value_type = INTEROP_RUNTIME_UNDEFINED; value_columns_value_type = value_columns_value.selector; - if (((value_columns_value_type == 0))) { + if (value_columns_value_type == 0) { valueSerializer.writeInt8(0); const auto value_columns_value_0 = value_columns_value.value0; valueSerializer.writeNumber(value_columns_value_0); } - else if (((value_columns_value_type == 1))) { + else if (value_columns_value_type == 1) { valueSerializer.writeInt8(1); const auto value_columns_value_1 = value_columns_value.value1; valueSerializer.writeGridRowColumnOption(value_columns_value_1); @@ -67825,12 +69745,12 @@ class Serializer : public SerializerBase { const auto value_columns_value = value_columns.value; Ark_Int32 value_columns_value_type = INTEROP_RUNTIME_UNDEFINED; value_columns_value_type = value_columns_value.selector; - if (((value_columns_value_type == 0))) { + if (value_columns_value_type == 0) { valueSerializer.writeInt8(0); const auto value_columns_value_0 = value_columns_value.value0; valueSerializer.writeNumber(value_columns_value_0); } - else if (((value_columns_value_type == 1))) { + else if (value_columns_value_type == 1) { valueSerializer.writeInt8(1); const auto value_columns_value_1 = value_columns_value.value1; valueSerializer.writeString(value_columns_value_1); @@ -67852,12 +69772,12 @@ class Serializer : public SerializerBase { const auto value_gutter_value = value_gutter.value; Ark_Int32 value_gutter_value_type = INTEROP_RUNTIME_UNDEFINED; value_gutter_value_type = value_gutter_value.selector; - if (((value_gutter_value_type == 0))) { + if (value_gutter_value_type == 0) { valueSerializer.writeInt8(0); const auto value_gutter_value_0 = value_gutter_value.value0; valueSerializer.writeNumber(value_gutter_value_0); } - else if (((value_gutter_value_type == 1))) { + else if (value_gutter_value_type == 1) { valueSerializer.writeInt8(1); const auto value_gutter_value_1 = value_gutter_value.value1; valueSerializer.writeString(value_gutter_value_1); @@ -67871,12 +69791,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeNumber(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; valueSerializer.writeString(value_margin_value_1); @@ -67894,12 +69814,12 @@ class Serializer : public SerializerBase { const auto value_span_value = value_span.value; Ark_Int32 value_span_value_type = INTEROP_RUNTIME_UNDEFINED; value_span_value_type = value_span_value.selector; - if (((value_span_value_type == 0))) { + if (value_span_value_type == 0) { valueSerializer.writeInt8(0); const auto value_span_value_0 = value_span_value.value0; valueSerializer.writeNumber(value_span_value_0); } - else if (((value_span_value_type == 1))) { + else if (value_span_value_type == 1) { valueSerializer.writeInt8(1); const auto value_span_value_1 = value_span_value.value1; valueSerializer.writeGridColColumnOption(value_span_value_1); @@ -67913,12 +69833,12 @@ class Serializer : public SerializerBase { const auto value_offset_value = value_offset.value; Ark_Int32 value_offset_value_type = INTEROP_RUNTIME_UNDEFINED; value_offset_value_type = value_offset_value.selector; - if (((value_offset_value_type == 0))) { + if (value_offset_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offset_value_0 = value_offset_value.value0; valueSerializer.writeNumber(value_offset_value_0); } - else if (((value_offset_value_type == 1))) { + else if (value_offset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offset_value_1 = value_offset_value.value1; valueSerializer.writeGridColColumnOption(value_offset_value_1); @@ -67932,12 +69852,12 @@ class Serializer : public SerializerBase { const auto value_order_value = value_order.value; Ark_Int32 value_order_value_type = INTEROP_RUNTIME_UNDEFINED; value_order_value_type = value_order_value.selector; - if (((value_order_value_type == 0))) { + if (value_order_value_type == 0) { valueSerializer.writeInt8(0); const auto value_order_value_0 = value_order_value.value0; valueSerializer.writeNumber(value_order_value_0); } - else if (((value_order_value_type == 1))) { + else if (value_order_value_type == 1) { valueSerializer.writeInt8(1); const auto value_order_value_1 = value_order_value.value1; valueSerializer.writeGridColColumnOption(value_order_value_1); @@ -68018,21 +69938,11 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeEventTargetInfo(Ark_EventTargetInfo value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeScrollableTargetInfo(Ark_ScrollableTargetInfo value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writePanGestureOptions(Ark_PanGestureOptions value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeGestureEvent(Ark_GestureEvent value) { Serializer& valueSerializer = *this; @@ -68079,12 +69989,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -68110,12 +70020,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeResource(value_radius_value_1); @@ -68129,12 +70039,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -68148,12 +70058,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -68242,12 +70152,12 @@ class Serializer : public SerializerBase { const auto value_id = value.id; Ark_Int32 value_id_type = INTEROP_RUNTIME_UNDEFINED; value_id_type = value_id.selector; - if (((value_id_type == 0))) { + if (value_id_type == 0) { valueSerializer.writeInt8(0); const auto value_id_0 = value_id.value0; valueSerializer.writeNumber(value_id_0); } - else if (((value_id_type == 1))) { + else if (value_id_type == 1) { valueSerializer.writeInt8(1); const auto value_id_1 = value_id.value1; valueSerializer.writeString(value_id_1); @@ -68412,12 +70322,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -68431,12 +70341,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -68515,12 +70425,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeResource(value_radius_value_1); @@ -68534,12 +70444,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -68553,12 +70463,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -68575,33 +70485,33 @@ class Serializer : public SerializerBase { const Ark_Union_ResourceColor_LinearGradient value_colors_value_element = value_colors_value.array[i]; Ark_Int32 value_colors_value_element_type = INTEROP_RUNTIME_UNDEFINED; value_colors_value_element_type = value_colors_value_element.selector; - if (((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0))) { + if ((value_colors_value_element_type == 0) || (value_colors_value_element_type == 0) || (value_colors_value_element_type == 0) || (value_colors_value_element_type == 0)) { valueSerializer.writeInt8(0); const auto value_colors_value_element_0 = value_colors_value_element.value0; Ark_Int32 value_colors_value_element_0_type = INTEROP_RUNTIME_UNDEFINED; value_colors_value_element_0_type = value_colors_value_element_0.selector; - if (((value_colors_value_element_0_type == 0))) { + if (value_colors_value_element_0_type == 0) { valueSerializer.writeInt8(0); const auto value_colors_value_element_0_0 = value_colors_value_element_0.value0; valueSerializer.writeInt32(static_cast(value_colors_value_element_0_0)); } - else if (((value_colors_value_element_0_type == 1))) { + else if (value_colors_value_element_0_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_value_element_0_1 = value_colors_value_element_0.value1; valueSerializer.writeNumber(value_colors_value_element_0_1); } - else if (((value_colors_value_element_0_type == 2))) { + else if (value_colors_value_element_0_type == 2) { valueSerializer.writeInt8(2); const auto value_colors_value_element_0_2 = value_colors_value_element_0.value2; valueSerializer.writeString(value_colors_value_element_0_2); } - else if (((value_colors_value_element_0_type == 3))) { + else if (value_colors_value_element_0_type == 3) { valueSerializer.writeInt8(3); const auto value_colors_value_element_0_3 = value_colors_value_element_0.value3; valueSerializer.writeResource(value_colors_value_element_0_3); } } - else if (((value_colors_value_element_type == 1))) { + else if (value_colors_value_element_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_value_element_1 = value_colors_value_element.value1; valueSerializer.writeLinearGradient(value_colors_value_element_1); @@ -68641,22 +70551,22 @@ class Serializer : public SerializerBase { const auto value_color = value.color; Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; value_color_type = value_color.selector; - if (((value_color_type == 0))) { + if (value_color_type == 0) { valueSerializer.writeInt8(0); const auto value_color_0 = value_color.value0; valueSerializer.writeInt32(static_cast(value_color_0)); } - else if (((value_color_type == 1))) { + else if (value_color_type == 1) { valueSerializer.writeInt8(1); const auto value_color_1 = value_color.value1; valueSerializer.writeNumber(value_color_1); } - else if (((value_color_type == 2))) { + else if (value_color_type == 2) { valueSerializer.writeInt8(2); const auto value_color_2 = value_color.value2; valueSerializer.writeString(value_color_2); } - else if (((value_color_type == 3))) { + else if (value_color_type == 3) { valueSerializer.writeInt8(3); const auto value_color_3 = value_color.value3; valueSerializer.writeResource(value_color_3); @@ -68730,22 +70640,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeNumber(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeString(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeResource(value_maskColor_value_3); @@ -68791,22 +70701,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -68820,12 +70730,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -68904,12 +70814,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -68954,33 +70864,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -68991,22 +70901,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -69020,22 +70930,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -69049,22 +70959,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -69078,22 +70988,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); @@ -69109,12 +71019,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -69159,12 +71069,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -69224,23 +71134,23 @@ class Serializer : public SerializerBase { const auto value_scene_value = value_scene.value; Ark_Int32 value_scene_value_type = INTEROP_RUNTIME_UNDEFINED; value_scene_value_type = value_scene_value.selector; - if (((value_scene_value_type == 0)) || ((value_scene_value_type == 0))) { + if ((value_scene_value_type == 0) || (value_scene_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_scene_value_0 = value_scene_value.value0; Ark_Int32 value_scene_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_scene_value_0_type = value_scene_value_0.selector; - if (((value_scene_value_0_type == 0))) { + if (value_scene_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_scene_value_0_0 = value_scene_value_0.value0; valueSerializer.writeString(value_scene_value_0_0); } - else if (((value_scene_value_0_type == 1))) { + else if (value_scene_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_scene_value_0_1 = value_scene_value_0.value1; valueSerializer.writeResource(value_scene_value_0_1); } } - else if (((value_scene_value_type == 1))) { + else if (value_scene_value_type == 1) { valueSerializer.writeInt8(1); const auto value_scene_value_1 = value_scene_value.value1; valueSerializer.writeScene(value_scene_value_1); @@ -69265,14 +71175,6 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeOffsetResult(Ark_OffsetResult value) - { - Serializer& valueSerializer = *this; - const auto value_xOffset = value.xOffset; - valueSerializer.writeNumber(value_xOffset); - const auto value_yOffset = value.yOffset; - valueSerializer.writeNumber(value_yOffset); - } void writeTextContentControllerBase(Ark_TextContentControllerBase value) { Serializer& valueSerializer = *this; @@ -69330,12 +71232,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -69348,12 +71250,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -69726,7 +71628,7 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; const auto value_width_value_0_top = value_width_value_0.top; @@ -69762,7 +71664,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value); } } - else if (((value_width_value_type == 1)) || ((value_width_value_type == 1)) || ((value_width_value_type == 1))) { + else if ((value_width_value_type == 1) || (value_width_value_type == 1) || (value_width_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeLength(value_width_value_1); @@ -69776,7 +71678,7 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; const auto value_color_value_0_top = value_color_value_0.top; @@ -69787,22 +71689,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_top_value = value_color_value_0_top.value; Ark_Int32 value_color_value_0_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_top_value_type = value_color_value_0_top_value.selector; - if (((value_color_value_0_top_value_type == 0))) { + if (value_color_value_0_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_top_value_0 = value_color_value_0_top_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_top_value_0)); } - else if (((value_color_value_0_top_value_type == 1))) { + else if (value_color_value_0_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_top_value_1 = value_color_value_0_top_value.value1; valueSerializer.writeNumber(value_color_value_0_top_value_1); } - else if (((value_color_value_0_top_value_type == 2))) { + else if (value_color_value_0_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_top_value_2 = value_color_value_0_top_value.value2; valueSerializer.writeString(value_color_value_0_top_value_2); } - else if (((value_color_value_0_top_value_type == 3))) { + else if (value_color_value_0_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_top_value_3 = value_color_value_0_top_value.value3; valueSerializer.writeResource(value_color_value_0_top_value_3); @@ -69816,22 +71718,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_right_value = value_color_value_0_right.value; Ark_Int32 value_color_value_0_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_right_value_type = value_color_value_0_right_value.selector; - if (((value_color_value_0_right_value_type == 0))) { + if (value_color_value_0_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_right_value_0 = value_color_value_0_right_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_right_value_0)); } - else if (((value_color_value_0_right_value_type == 1))) { + else if (value_color_value_0_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_right_value_1 = value_color_value_0_right_value.value1; valueSerializer.writeNumber(value_color_value_0_right_value_1); } - else if (((value_color_value_0_right_value_type == 2))) { + else if (value_color_value_0_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_right_value_2 = value_color_value_0_right_value.value2; valueSerializer.writeString(value_color_value_0_right_value_2); } - else if (((value_color_value_0_right_value_type == 3))) { + else if (value_color_value_0_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_right_value_3 = value_color_value_0_right_value.value3; valueSerializer.writeResource(value_color_value_0_right_value_3); @@ -69845,22 +71747,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_bottom_value = value_color_value_0_bottom.value; Ark_Int32 value_color_value_0_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_bottom_value_type = value_color_value_0_bottom_value.selector; - if (((value_color_value_0_bottom_value_type == 0))) { + if (value_color_value_0_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_bottom_value_0)); } - else if (((value_color_value_0_bottom_value_type == 1))) { + else if (value_color_value_0_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value.value1; valueSerializer.writeNumber(value_color_value_0_bottom_value_1); } - else if (((value_color_value_0_bottom_value_type == 2))) { + else if (value_color_value_0_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value.value2; valueSerializer.writeString(value_color_value_0_bottom_value_2); } - else if (((value_color_value_0_bottom_value_type == 3))) { + else if (value_color_value_0_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value.value3; valueSerializer.writeResource(value_color_value_0_bottom_value_3); @@ -69874,55 +71776,55 @@ class Serializer : public SerializerBase { const auto value_color_value_0_left_value = value_color_value_0_left.value; Ark_Int32 value_color_value_0_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_left_value_type = value_color_value_0_left_value.selector; - if (((value_color_value_0_left_value_type == 0))) { + if (value_color_value_0_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_left_value_0 = value_color_value_0_left_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_left_value_0)); } - else if (((value_color_value_0_left_value_type == 1))) { + else if (value_color_value_0_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_left_value_1 = value_color_value_0_left_value.value1; valueSerializer.writeNumber(value_color_value_0_left_value_1); } - else if (((value_color_value_0_left_value_type == 2))) { + else if (value_color_value_0_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_left_value_2 = value_color_value_0_left_value.value2; valueSerializer.writeString(value_color_value_0_left_value_2); } - else if (((value_color_value_0_left_value_type == 3))) { + else if (value_color_value_0_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_left_value_3 = value_color_value_0_left_value.value3; valueSerializer.writeResource(value_color_value_0_left_value_3); } } } - else if (((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1))) { + else if ((value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; Ark_Int32 value_color_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_1_type = value_color_value_1.selector; - if (((value_color_value_1_type == 0))) { + if (value_color_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_1_0 = value_color_value_1.value0; valueSerializer.writeInt32(static_cast(value_color_value_1_0)); } - else if (((value_color_value_1_type == 1))) { + else if (value_color_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1_1 = value_color_value_1.value1; valueSerializer.writeNumber(value_color_value_1_1); } - else if (((value_color_value_1_type == 2))) { + else if (value_color_value_1_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_1_2 = value_color_value_1.value2; valueSerializer.writeString(value_color_value_1_2); } - else if (((value_color_value_1_type == 3))) { + else if (value_color_value_1_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_1_3 = value_color_value_1.value3; valueSerializer.writeResource(value_color_value_1_3); } } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeLocalizedEdgeColors(value_color_value_2); @@ -69936,7 +71838,7 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; const auto value_radius_value_0_topLeft = value_radius_value_0.topLeft; @@ -69972,7 +71874,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value); } } - else if (((value_radius_value_type == 1)) || ((value_radius_value_type == 1)) || ((value_radius_value_type == 1))) { + else if ((value_radius_value_type == 1) || (value_radius_value_type == 1) || (value_radius_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeLength(value_radius_value_1); @@ -69986,7 +71888,7 @@ class Serializer : public SerializerBase { const auto value_style_value = value_style.value; Ark_Int32 value_style_value_type = INTEROP_RUNTIME_UNDEFINED; value_style_value_type = value_style_value.selector; - if (((value_style_value_type == 0))) { + if (value_style_value_type == 0) { valueSerializer.writeInt8(0); const auto value_style_value_0 = value_style_value.value0; const auto value_style_value_0_top = value_style_value_0.top; @@ -70022,7 +71924,7 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value_0_left_value)); } } - else if (((value_style_value_type == 1))) { + else if (value_style_value_type == 1) { valueSerializer.writeInt8(1); const auto value_style_value_1 = value_style_value.value1; valueSerializer.writeInt32(static_cast(value_style_value_1)); @@ -70040,12 +71942,12 @@ class Serializer : public SerializerBase { const auto value_slice_value = value_slice.value; Ark_Int32 value_slice_value_type = INTEROP_RUNTIME_UNDEFINED; value_slice_value_type = value_slice_value.selector; - if (((value_slice_value_type == 0)) || ((value_slice_value_type == 0)) || ((value_slice_value_type == 0))) { + if ((value_slice_value_type == 0) || (value_slice_value_type == 0) || (value_slice_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_slice_value_0 = value_slice_value.value0; valueSerializer.writeLength(value_slice_value_0); } - else if (((value_slice_value_type == 1))) { + else if (value_slice_value_type == 1) { valueSerializer.writeInt8(1); const auto value_slice_value_1 = value_slice_value.value1; const auto value_slice_value_1_top = value_slice_value_1.top; @@ -70081,7 +71983,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_slice_value_1_left_value); } } - else if (((value_slice_value_type == 2))) { + else if (value_slice_value_type == 2) { valueSerializer.writeInt8(2); const auto value_slice_value_2 = value_slice_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_slice_value_2); @@ -70103,17 +72005,17 @@ class Serializer : public SerializerBase { const auto value_source_value = value_source.value; Ark_Int32 value_source_value_type = INTEROP_RUNTIME_UNDEFINED; value_source_value_type = value_source_value.selector; - if (((value_source_value_type == 0))) { + if (value_source_value_type == 0) { valueSerializer.writeInt8(0); const auto value_source_value_0 = value_source_value.value0; valueSerializer.writeString(value_source_value_0); } - else if (((value_source_value_type == 1))) { + else if (value_source_value_type == 1) { valueSerializer.writeInt8(1); const auto value_source_value_1 = value_source_value.value1; valueSerializer.writeResource(value_source_value_1); } - else if (((value_source_value_type == 2))) { + else if (value_source_value_type == 2) { valueSerializer.writeInt8(2); const auto value_source_value_2 = value_source_value.value2; valueSerializer.writeLinearGradient_common(value_source_value_2); @@ -70127,12 +72029,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0)) || ((value_width_value_type == 0)) || ((value_width_value_type == 0))) { + if ((value_width_value_type == 0) || (value_width_value_type == 0) || (value_width_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeLength(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; const auto value_width_value_1_top = value_width_value_1.top; @@ -70168,7 +72070,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_1_left_value); } } - else if (((value_width_value_type == 2))) { + else if (value_width_value_type == 2) { valueSerializer.writeInt8(2); const auto value_width_value_2 = value_width_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_width_value_2); @@ -70182,12 +72084,12 @@ class Serializer : public SerializerBase { const auto value_outset_value = value_outset.value; Ark_Int32 value_outset_value_type = INTEROP_RUNTIME_UNDEFINED; value_outset_value_type = value_outset_value.selector; - if (((value_outset_value_type == 0)) || ((value_outset_value_type == 0)) || ((value_outset_value_type == 0))) { + if ((value_outset_value_type == 0) || (value_outset_value_type == 0) || (value_outset_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_outset_value_0 = value_outset_value.value0; valueSerializer.writeLength(value_outset_value_0); } - else if (((value_outset_value_type == 1))) { + else if (value_outset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_outset_value_1 = value_outset_value.value1; const auto value_outset_value_1_top = value_outset_value_1.top; @@ -70223,7 +72125,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_outset_value_1_left_value); } } - else if (((value_outset_value_type == 2))) { + else if (value_outset_value_type == 2) { valueSerializer.writeInt8(2); const auto value_outset_value_2 = value_outset_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_outset_value_2); @@ -70249,7 +72151,7 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; const auto value_width_value_0_top = value_width_value_0.top; @@ -70285,12 +72187,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value); } } - else if (((value_width_value_type == 1)) || ((value_width_value_type == 1)) || ((value_width_value_type == 1))) { + else if ((value_width_value_type == 1) || (value_width_value_type == 1) || (value_width_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeLength(value_width_value_1); } - else if (((value_width_value_type == 2))) { + else if (value_width_value_type == 2) { valueSerializer.writeInt8(2); const auto value_width_value_2 = value_width_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_width_value_2); @@ -70304,7 +72206,7 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; const auto value_color_value_0_top = value_color_value_0.top; @@ -70315,22 +72217,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_top_value = value_color_value_0_top.value; Ark_Int32 value_color_value_0_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_top_value_type = value_color_value_0_top_value.selector; - if (((value_color_value_0_top_value_type == 0))) { + if (value_color_value_0_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_top_value_0 = value_color_value_0_top_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_top_value_0)); } - else if (((value_color_value_0_top_value_type == 1))) { + else if (value_color_value_0_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_top_value_1 = value_color_value_0_top_value.value1; valueSerializer.writeNumber(value_color_value_0_top_value_1); } - else if (((value_color_value_0_top_value_type == 2))) { + else if (value_color_value_0_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_top_value_2 = value_color_value_0_top_value.value2; valueSerializer.writeString(value_color_value_0_top_value_2); } - else if (((value_color_value_0_top_value_type == 3))) { + else if (value_color_value_0_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_top_value_3 = value_color_value_0_top_value.value3; valueSerializer.writeResource(value_color_value_0_top_value_3); @@ -70344,22 +72246,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_right_value = value_color_value_0_right.value; Ark_Int32 value_color_value_0_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_right_value_type = value_color_value_0_right_value.selector; - if (((value_color_value_0_right_value_type == 0))) { + if (value_color_value_0_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_right_value_0 = value_color_value_0_right_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_right_value_0)); } - else if (((value_color_value_0_right_value_type == 1))) { + else if (value_color_value_0_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_right_value_1 = value_color_value_0_right_value.value1; valueSerializer.writeNumber(value_color_value_0_right_value_1); } - else if (((value_color_value_0_right_value_type == 2))) { + else if (value_color_value_0_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_right_value_2 = value_color_value_0_right_value.value2; valueSerializer.writeString(value_color_value_0_right_value_2); } - else if (((value_color_value_0_right_value_type == 3))) { + else if (value_color_value_0_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_right_value_3 = value_color_value_0_right_value.value3; valueSerializer.writeResource(value_color_value_0_right_value_3); @@ -70373,22 +72275,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_bottom_value = value_color_value_0_bottom.value; Ark_Int32 value_color_value_0_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_bottom_value_type = value_color_value_0_bottom_value.selector; - if (((value_color_value_0_bottom_value_type == 0))) { + if (value_color_value_0_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_bottom_value_0)); } - else if (((value_color_value_0_bottom_value_type == 1))) { + else if (value_color_value_0_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value.value1; valueSerializer.writeNumber(value_color_value_0_bottom_value_1); } - else if (((value_color_value_0_bottom_value_type == 2))) { + else if (value_color_value_0_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value.value2; valueSerializer.writeString(value_color_value_0_bottom_value_2); } - else if (((value_color_value_0_bottom_value_type == 3))) { + else if (value_color_value_0_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value.value3; valueSerializer.writeResource(value_color_value_0_bottom_value_3); @@ -70402,55 +72304,55 @@ class Serializer : public SerializerBase { const auto value_color_value_0_left_value = value_color_value_0_left.value; Ark_Int32 value_color_value_0_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_left_value_type = value_color_value_0_left_value.selector; - if (((value_color_value_0_left_value_type == 0))) { + if (value_color_value_0_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_left_value_0 = value_color_value_0_left_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_left_value_0)); } - else if (((value_color_value_0_left_value_type == 1))) { + else if (value_color_value_0_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_left_value_1 = value_color_value_0_left_value.value1; valueSerializer.writeNumber(value_color_value_0_left_value_1); } - else if (((value_color_value_0_left_value_type == 2))) { + else if (value_color_value_0_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_left_value_2 = value_color_value_0_left_value.value2; valueSerializer.writeString(value_color_value_0_left_value_2); } - else if (((value_color_value_0_left_value_type == 3))) { + else if (value_color_value_0_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_left_value_3 = value_color_value_0_left_value.value3; valueSerializer.writeResource(value_color_value_0_left_value_3); } } } - else if (((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1))) { + else if ((value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; Ark_Int32 value_color_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_1_type = value_color_value_1.selector; - if (((value_color_value_1_type == 0))) { + if (value_color_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_1_0 = value_color_value_1.value0; valueSerializer.writeInt32(static_cast(value_color_value_1_0)); } - else if (((value_color_value_1_type == 1))) { + else if (value_color_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1_1 = value_color_value_1.value1; valueSerializer.writeNumber(value_color_value_1_1); } - else if (((value_color_value_1_type == 2))) { + else if (value_color_value_1_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_1_2 = value_color_value_1.value2; valueSerializer.writeString(value_color_value_1_2); } - else if (((value_color_value_1_type == 3))) { + else if (value_color_value_1_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_1_3 = value_color_value_1.value3; valueSerializer.writeResource(value_color_value_1_3); } } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeLocalizedEdgeColors(value_color_value_2); @@ -70464,7 +72366,7 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; const auto value_radius_value_0_topLeft = value_radius_value_0.topLeft; @@ -70500,12 +72402,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value); } } - else if (((value_radius_value_type == 1)) || ((value_radius_value_type == 1)) || ((value_radius_value_type == 1))) { + else if ((value_radius_value_type == 1) || (value_radius_value_type == 1) || (value_radius_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeLength(value_radius_value_1); } - else if (((value_radius_value_type == 2))) { + else if (value_radius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_radius_value_2 = value_radius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_radius_value_2); @@ -70519,7 +72421,7 @@ class Serializer : public SerializerBase { const auto value_style_value = value_style.value; Ark_Int32 value_style_value_type = INTEROP_RUNTIME_UNDEFINED; value_style_value_type = value_style_value.selector; - if (((value_style_value_type == 0))) { + if (value_style_value_type == 0) { valueSerializer.writeInt8(0); const auto value_style_value_0 = value_style_value.value0; const auto value_style_value_0_top = value_style_value_0.top; @@ -70555,7 +72457,7 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value_0_left_value)); } } - else if (((value_style_value_type == 1))) { + else if (value_style_value_type == 1) { valueSerializer.writeInt8(1); const auto value_style_value_1 = value_style_value.value1; valueSerializer.writeInt32(static_cast(value_style_value_1)); @@ -70569,7 +72471,7 @@ class Serializer : public SerializerBase { const auto value_dashGap_value = value_dashGap.value; Ark_Int32 value_dashGap_value_type = INTEROP_RUNTIME_UNDEFINED; value_dashGap_value_type = value_dashGap_value.selector; - if (((value_dashGap_value_type == 0))) { + if (value_dashGap_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dashGap_value_0 = value_dashGap_value.value0; const auto value_dashGap_value_0_top = value_dashGap_value_0.top; @@ -70605,12 +72507,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_dashGap_value_0_left_value); } } - else if (((value_dashGap_value_type == 1))) { + else if (value_dashGap_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dashGap_value_1 = value_dashGap_value.value1; valueSerializer.writeLengthMetrics(value_dashGap_value_1); } - else if (((value_dashGap_value_type == 2))) { + else if (value_dashGap_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dashGap_value_2 = value_dashGap_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_dashGap_value_2); @@ -70624,7 +72526,7 @@ class Serializer : public SerializerBase { const auto value_dashWidth_value = value_dashWidth.value; Ark_Int32 value_dashWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_dashWidth_value_type = value_dashWidth_value.selector; - if (((value_dashWidth_value_type == 0))) { + if (value_dashWidth_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dashWidth_value_0 = value_dashWidth_value.value0; const auto value_dashWidth_value_0_top = value_dashWidth_value_0.top; @@ -70660,12 +72562,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_dashWidth_value_0_left_value); } } - else if (((value_dashWidth_value_type == 1))) { + else if (value_dashWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dashWidth_value_1 = value_dashWidth_value.value1; valueSerializer.writeLengthMetrics(value_dashWidth_value_1); } - else if (((value_dashWidth_value_type == 2))) { + else if (value_dashWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dashWidth_value_2 = value_dashWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_dashWidth_value_2); @@ -70770,22 +72672,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -70823,22 +72725,22 @@ class Serializer : public SerializerBase { const auto value_inactiveColor_value = value_inactiveColor.value; Ark_Int32 value_inactiveColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_inactiveColor_value_type = value_inactiveColor_value.selector; - if (((value_inactiveColor_value_type == 0))) { + if (value_inactiveColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_inactiveColor_value_0 = value_inactiveColor_value.value0; valueSerializer.writeInt32(static_cast(value_inactiveColor_value_0)); } - else if (((value_inactiveColor_value_type == 1))) { + else if (value_inactiveColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_inactiveColor_value_1 = value_inactiveColor_value.value1; valueSerializer.writeNumber(value_inactiveColor_value_1); } - else if (((value_inactiveColor_value_type == 2))) { + else if (value_inactiveColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_inactiveColor_value_2 = value_inactiveColor_value.value2; valueSerializer.writeString(value_inactiveColor_value_2); } - else if (((value_inactiveColor_value_type == 3))) { + else if (value_inactiveColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_inactiveColor_value_3 = value_inactiveColor_value.value3; valueSerializer.writeResource(value_inactiveColor_value_3); @@ -70950,29 +72852,17 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeTouchObject(Ark_TouchObject value) + void writeHistoricalPoint(Ark_HistoricalPoint value) { Serializer& valueSerializer = *this; - const auto value_type = value.type; - valueSerializer.writeInt32(static_cast(value_type)); - const auto value_id = value.id; - valueSerializer.writeNumber(value_id); - const auto value_displayX = value.displayX; - valueSerializer.writeNumber(value_displayX); - const auto value_displayY = value.displayY; - valueSerializer.writeNumber(value_displayY); - const auto value_windowX = value.windowX; - valueSerializer.writeNumber(value_windowX); - const auto value_windowY = value.windowY; - valueSerializer.writeNumber(value_windowY); - const auto value_screenX = value.screenX; - valueSerializer.writeNumber(value_screenX); - const auto value_screenY = value.screenY; - valueSerializer.writeNumber(value_screenY); - const auto value_x = value.x; - valueSerializer.writeNumber(value_x); - const auto value_y = value.y; - valueSerializer.writeNumber(value_y); + const auto value_touchObject = value.touchObject; + valueSerializer.writeTouchObject(value_touchObject); + const auto value_size = value.size; + valueSerializer.writeNumber(value_size); + const auto value_force = value.force; + valueSerializer.writeNumber(value_force); + const auto value_timestamp = value.timestamp; + valueSerializer.writeNumber(value_timestamp); } void writeAccessibilityHoverEvent(Ark_AccessibilityHoverEvent value) { @@ -71033,12 +72923,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeString(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeNumber(value_space_value_1); @@ -71056,12 +72946,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -71075,12 +72965,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -71122,22 +73012,22 @@ class Serializer : public SerializerBase { const auto value_strokeColor_value = value_strokeColor.value; Ark_Int32 value_strokeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeColor_value_type = value_strokeColor_value.selector; - if (((value_strokeColor_value_type == 0))) { + if (value_strokeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeColor_value_0 = value_strokeColor_value.value0; valueSerializer.writeInt32(static_cast(value_strokeColor_value_0)); } - else if (((value_strokeColor_value_type == 1))) { + else if (value_strokeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeColor_value_1 = value_strokeColor_value.value1; valueSerializer.writeNumber(value_strokeColor_value_1); } - else if (((value_strokeColor_value_type == 2))) { + else if (value_strokeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeColor_value_2 = value_strokeColor_value.value2; valueSerializer.writeString(value_strokeColor_value_2); } - else if (((value_strokeColor_value_type == 3))) { + else if (value_strokeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_strokeColor_value_3 = value_strokeColor_value.value3; valueSerializer.writeResource(value_strokeColor_value_3); @@ -71190,12 +73080,12 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_indicatorBuilder_value.callSync)); } } - void writeCanvasRenderer(Ark_CanvasRenderer value) + void writeOffscreenCanvas(Ark_OffscreenCanvas value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeRenderingContextSettings(Ark_RenderingContextSettings value) + void writeCanvasRenderer(Ark_CanvasRenderer value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); @@ -71227,12 +73117,12 @@ class Serializer : public SerializerBase { const auto value_hintRadius_value = value_hintRadius.value; Ark_Int32 value_hintRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_hintRadius_value_type = value_hintRadius_value.selector; - if (((value_hintRadius_value_type == 0))) { + if (value_hintRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_hintRadius_value_0 = value_hintRadius_value.value0; valueSerializer.writeNumber(value_hintRadius_value_0); } - else if (((value_hintRadius_value_type == 1))) { + else if (value_hintRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_hintRadius_value_1 = value_hintRadius_value.value1; valueSerializer.writeResource(value_hintRadius_value_1); @@ -71282,22 +73172,22 @@ class Serializer : public SerializerBase { const auto value_workDayMarkColor_value = value_workDayMarkColor.value; Ark_Int32 value_workDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_workDayMarkColor_value_type = value_workDayMarkColor_value.selector; - if (((value_workDayMarkColor_value_type == 0))) { + if (value_workDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_workDayMarkColor_value_0 = value_workDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_workDayMarkColor_value_0)); } - else if (((value_workDayMarkColor_value_type == 1))) { + else if (value_workDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_workDayMarkColor_value_1 = value_workDayMarkColor_value.value1; valueSerializer.writeNumber(value_workDayMarkColor_value_1); } - else if (((value_workDayMarkColor_value_type == 2))) { + else if (value_workDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_workDayMarkColor_value_2 = value_workDayMarkColor_value.value2; valueSerializer.writeString(value_workDayMarkColor_value_2); } - else if (((value_workDayMarkColor_value_type == 3))) { + else if (value_workDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_workDayMarkColor_value_3 = value_workDayMarkColor_value.value3; valueSerializer.writeResource(value_workDayMarkColor_value_3); @@ -71311,22 +73201,22 @@ class Serializer : public SerializerBase { const auto value_offDayMarkColor_value = value_offDayMarkColor.value; Ark_Int32 value_offDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_offDayMarkColor_value_type = value_offDayMarkColor_value.selector; - if (((value_offDayMarkColor_value_type == 0))) { + if (value_offDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offDayMarkColor_value_0 = value_offDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_offDayMarkColor_value_0)); } - else if (((value_offDayMarkColor_value_type == 1))) { + else if (value_offDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offDayMarkColor_value_1 = value_offDayMarkColor_value.value1; valueSerializer.writeNumber(value_offDayMarkColor_value_1); } - else if (((value_offDayMarkColor_value_type == 2))) { + else if (value_offDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_offDayMarkColor_value_2 = value_offDayMarkColor_value.value2; valueSerializer.writeString(value_offDayMarkColor_value_2); } - else if (((value_offDayMarkColor_value_type == 3))) { + else if (value_offDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_offDayMarkColor_value_3 = value_offDayMarkColor_value.value3; valueSerializer.writeResource(value_offDayMarkColor_value_3); @@ -71384,22 +73274,22 @@ class Serializer : public SerializerBase { const auto value_weekColor_value = value_weekColor.value; Ark_Int32 value_weekColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekColor_value_type = value_weekColor_value.selector; - if (((value_weekColor_value_type == 0))) { + if (value_weekColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekColor_value_0 = value_weekColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekColor_value_0)); } - else if (((value_weekColor_value_type == 1))) { + else if (value_weekColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekColor_value_1 = value_weekColor_value.value1; valueSerializer.writeNumber(value_weekColor_value_1); } - else if (((value_weekColor_value_type == 2))) { + else if (value_weekColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekColor_value_2 = value_weekColor_value.value2; valueSerializer.writeString(value_weekColor_value_2); } - else if (((value_weekColor_value_type == 3))) { + else if (value_weekColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekColor_value_3 = value_weekColor_value.value3; valueSerializer.writeResource(value_weekColor_value_3); @@ -71413,22 +73303,22 @@ class Serializer : public SerializerBase { const auto value_weekendDayColor_value = value_weekendDayColor.value; Ark_Int32 value_weekendDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekendDayColor_value_type = value_weekendDayColor_value.selector; - if (((value_weekendDayColor_value_type == 0))) { + if (value_weekendDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekendDayColor_value_0 = value_weekendDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekendDayColor_value_0)); } - else if (((value_weekendDayColor_value_type == 1))) { + else if (value_weekendDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekendDayColor_value_1 = value_weekendDayColor_value.value1; valueSerializer.writeNumber(value_weekendDayColor_value_1); } - else if (((value_weekendDayColor_value_type == 2))) { + else if (value_weekendDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekendDayColor_value_2 = value_weekendDayColor_value.value2; valueSerializer.writeString(value_weekendDayColor_value_2); } - else if (((value_weekendDayColor_value_type == 3))) { + else if (value_weekendDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekendDayColor_value_3 = value_weekendDayColor_value.value3; valueSerializer.writeResource(value_weekendDayColor_value_3); @@ -71442,22 +73332,22 @@ class Serializer : public SerializerBase { const auto value_weekendLunarColor_value = value_weekendLunarColor.value; Ark_Int32 value_weekendLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekendLunarColor_value_type = value_weekendLunarColor_value.selector; - if (((value_weekendLunarColor_value_type == 0))) { + if (value_weekendLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekendLunarColor_value_0 = value_weekendLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekendLunarColor_value_0)); } - else if (((value_weekendLunarColor_value_type == 1))) { + else if (value_weekendLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekendLunarColor_value_1 = value_weekendLunarColor_value.value1; valueSerializer.writeNumber(value_weekendLunarColor_value_1); } - else if (((value_weekendLunarColor_value_type == 2))) { + else if (value_weekendLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekendLunarColor_value_2 = value_weekendLunarColor_value.value2; valueSerializer.writeString(value_weekendLunarColor_value_2); } - else if (((value_weekendLunarColor_value_type == 3))) { + else if (value_weekendLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekendLunarColor_value_3 = value_weekendLunarColor_value.value3; valueSerializer.writeResource(value_weekendLunarColor_value_3); @@ -71507,22 +73397,22 @@ class Serializer : public SerializerBase { const auto value_focusedDayColor_value = value_focusedDayColor.value; Ark_Int32 value_focusedDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedDayColor_value_type = value_focusedDayColor_value.selector; - if (((value_focusedDayColor_value_type == 0))) { + if (value_focusedDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedDayColor_value_0 = value_focusedDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedDayColor_value_0)); } - else if (((value_focusedDayColor_value_type == 1))) { + else if (value_focusedDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedDayColor_value_1 = value_focusedDayColor_value.value1; valueSerializer.writeNumber(value_focusedDayColor_value_1); } - else if (((value_focusedDayColor_value_type == 2))) { + else if (value_focusedDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedDayColor_value_2 = value_focusedDayColor_value.value2; valueSerializer.writeString(value_focusedDayColor_value_2); } - else if (((value_focusedDayColor_value_type == 3))) { + else if (value_focusedDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedDayColor_value_3 = value_focusedDayColor_value.value3; valueSerializer.writeResource(value_focusedDayColor_value_3); @@ -71536,22 +73426,22 @@ class Serializer : public SerializerBase { const auto value_focusedLunarColor_value = value_focusedLunarColor.value; Ark_Int32 value_focusedLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedLunarColor_value_type = value_focusedLunarColor_value.selector; - if (((value_focusedLunarColor_value_type == 0))) { + if (value_focusedLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedLunarColor_value_0 = value_focusedLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedLunarColor_value_0)); } - else if (((value_focusedLunarColor_value_type == 1))) { + else if (value_focusedLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedLunarColor_value_1 = value_focusedLunarColor_value.value1; valueSerializer.writeNumber(value_focusedLunarColor_value_1); } - else if (((value_focusedLunarColor_value_type == 2))) { + else if (value_focusedLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedLunarColor_value_2 = value_focusedLunarColor_value.value2; valueSerializer.writeString(value_focusedLunarColor_value_2); } - else if (((value_focusedLunarColor_value_type == 3))) { + else if (value_focusedLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedLunarColor_value_3 = value_focusedLunarColor_value.value3; valueSerializer.writeResource(value_focusedLunarColor_value_3); @@ -71565,22 +73455,22 @@ class Serializer : public SerializerBase { const auto value_focusedAreaBackgroundColor_value = value_focusedAreaBackgroundColor.value; Ark_Int32 value_focusedAreaBackgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedAreaBackgroundColor_value_type = value_focusedAreaBackgroundColor_value.selector; - if (((value_focusedAreaBackgroundColor_value_type == 0))) { + if (value_focusedAreaBackgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedAreaBackgroundColor_value_0)); } - else if (((value_focusedAreaBackgroundColor_value_type == 1))) { + else if (value_focusedAreaBackgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedAreaBackgroundColor_value_1 = value_focusedAreaBackgroundColor_value.value1; valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1); } - else if (((value_focusedAreaBackgroundColor_value_type == 2))) { + else if (value_focusedAreaBackgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedAreaBackgroundColor_value_2 = value_focusedAreaBackgroundColor_value.value2; valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2); } - else if (((value_focusedAreaBackgroundColor_value_type == 3))) { + else if (value_focusedAreaBackgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedAreaBackgroundColor_value_3 = value_focusedAreaBackgroundColor_value.value3; valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3); @@ -71606,22 +73496,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthDayColor_value = value_nonCurrentMonthDayColor.value; Ark_Int32 value_nonCurrentMonthDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthDayColor_value_type = value_nonCurrentMonthDayColor_value.selector; - if (((value_nonCurrentMonthDayColor_value_type == 0))) { + if (value_nonCurrentMonthDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthDayColor_value_0)); } - else if (((value_nonCurrentMonthDayColor_value_type == 1))) { + else if (value_nonCurrentMonthDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthDayColor_value_1 = value_nonCurrentMonthDayColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1); } - else if (((value_nonCurrentMonthDayColor_value_type == 2))) { + else if (value_nonCurrentMonthDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthDayColor_value_2 = value_nonCurrentMonthDayColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2); } - else if (((value_nonCurrentMonthDayColor_value_type == 3))) { + else if (value_nonCurrentMonthDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthDayColor_value_3 = value_nonCurrentMonthDayColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3); @@ -71635,22 +73525,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthLunarColor_value = value_nonCurrentMonthLunarColor.value; Ark_Int32 value_nonCurrentMonthLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthLunarColor_value_type = value_nonCurrentMonthLunarColor_value.selector; - if (((value_nonCurrentMonthLunarColor_value_type == 0))) { + if (value_nonCurrentMonthLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthLunarColor_value_0)); } - else if (((value_nonCurrentMonthLunarColor_value_type == 1))) { + else if (value_nonCurrentMonthLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthLunarColor_value_1 = value_nonCurrentMonthLunarColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1); } - else if (((value_nonCurrentMonthLunarColor_value_type == 2))) { + else if (value_nonCurrentMonthLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthLunarColor_value_2 = value_nonCurrentMonthLunarColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2); } - else if (((value_nonCurrentMonthLunarColor_value_type == 3))) { + else if (value_nonCurrentMonthLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthLunarColor_value_3 = value_nonCurrentMonthLunarColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3); @@ -71664,22 +73554,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthWorkDayMarkColor_value = value_nonCurrentMonthWorkDayMarkColor.value; Ark_Int32 value_nonCurrentMonthWorkDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthWorkDayMarkColor_value_type = value_nonCurrentMonthWorkDayMarkColor_value.selector; - if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 0))) { + if (value_nonCurrentMonthWorkDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthWorkDayMarkColor_value_0)); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 1))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthWorkDayMarkColor_value_1 = value_nonCurrentMonthWorkDayMarkColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 2))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthWorkDayMarkColor_value_2 = value_nonCurrentMonthWorkDayMarkColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 3))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthWorkDayMarkColor_value_3 = value_nonCurrentMonthWorkDayMarkColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3); @@ -71693,22 +73583,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthOffDayMarkColor_value = value_nonCurrentMonthOffDayMarkColor.value; Ark_Int32 value_nonCurrentMonthOffDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthOffDayMarkColor_value_type = value_nonCurrentMonthOffDayMarkColor_value.selector; - if (((value_nonCurrentMonthOffDayMarkColor_value_type == 0))) { + if (value_nonCurrentMonthOffDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthOffDayMarkColor_value_0)); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 1))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthOffDayMarkColor_value_1 = value_nonCurrentMonthOffDayMarkColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 2))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthOffDayMarkColor_value_2 = value_nonCurrentMonthOffDayMarkColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 3))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthOffDayMarkColor_value_3 = value_nonCurrentMonthOffDayMarkColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3); @@ -71726,22 +73616,22 @@ class Serializer : public SerializerBase { const auto value_dayColor_value = value_dayColor.value; Ark_Int32 value_dayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_dayColor_value_type = value_dayColor_value.selector; - if (((value_dayColor_value_type == 0))) { + if (value_dayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dayColor_value_0 = value_dayColor_value.value0; valueSerializer.writeInt32(static_cast(value_dayColor_value_0)); } - else if (((value_dayColor_value_type == 1))) { + else if (value_dayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dayColor_value_1 = value_dayColor_value.value1; valueSerializer.writeNumber(value_dayColor_value_1); } - else if (((value_dayColor_value_type == 2))) { + else if (value_dayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dayColor_value_2 = value_dayColor_value.value2; valueSerializer.writeString(value_dayColor_value_2); } - else if (((value_dayColor_value_type == 3))) { + else if (value_dayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_dayColor_value_3 = value_dayColor_value.value3; valueSerializer.writeResource(value_dayColor_value_3); @@ -71755,22 +73645,22 @@ class Serializer : public SerializerBase { const auto value_lunarColor_value = value_lunarColor.value; Ark_Int32 value_lunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_lunarColor_value_type = value_lunarColor_value.selector; - if (((value_lunarColor_value_type == 0))) { + if (value_lunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_lunarColor_value_0 = value_lunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_lunarColor_value_0)); } - else if (((value_lunarColor_value_type == 1))) { + else if (value_lunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_lunarColor_value_1 = value_lunarColor_value.value1; valueSerializer.writeNumber(value_lunarColor_value_1); } - else if (((value_lunarColor_value_type == 2))) { + else if (value_lunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_lunarColor_value_2 = value_lunarColor_value.value2; valueSerializer.writeString(value_lunarColor_value_2); } - else if (((value_lunarColor_value_type == 3))) { + else if (value_lunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_lunarColor_value_3 = value_lunarColor_value.value3; valueSerializer.writeResource(value_lunarColor_value_3); @@ -71784,22 +73674,22 @@ class Serializer : public SerializerBase { const auto value_markLunarColor_value = value_markLunarColor.value; Ark_Int32 value_markLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_markLunarColor_value_type = value_markLunarColor_value.selector; - if (((value_markLunarColor_value_type == 0))) { + if (value_markLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_markLunarColor_value_0 = value_markLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_markLunarColor_value_0)); } - else if (((value_markLunarColor_value_type == 1))) { + else if (value_markLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_markLunarColor_value_1 = value_markLunarColor_value.value1; valueSerializer.writeNumber(value_markLunarColor_value_1); } - else if (((value_markLunarColor_value_type == 2))) { + else if (value_markLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_markLunarColor_value_2 = value_markLunarColor_value.value2; valueSerializer.writeString(value_markLunarColor_value_2); } - else if (((value_markLunarColor_value_type == 3))) { + else if (value_markLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_markLunarColor_value_3 = value_markLunarColor_value.value3; valueSerializer.writeResource(value_markLunarColor_value_3); @@ -72047,12 +73937,12 @@ class Serializer : public SerializerBase { const auto value_position_value = value_position.value; Ark_Int32 value_position_value_type = INTEROP_RUNTIME_UNDEFINED; value_position_value_type = value_position_value.selector; - if (((value_position_value_type == 0))) { + if (value_position_value_type == 0) { valueSerializer.writeInt8(0); const auto value_position_value_0 = value_position_value.value0; valueSerializer.writeInt32(static_cast(value_position_value_0)); } - else if (((value_position_value_type == 1))) { + else if (value_position_value_type == 1) { valueSerializer.writeInt8(1); const auto value_position_value_1 = value_position_value.value1; valueSerializer.writePosition(value_position_value_1); @@ -72074,12 +73964,12 @@ class Serializer : public SerializerBase { const auto value_position_value = value_position.value; Ark_Int32 value_position_value_type = INTEROP_RUNTIME_UNDEFINED; value_position_value_type = value_position_value.selector; - if (((value_position_value_type == 0))) { + if (value_position_value_type == 0) { valueSerializer.writeInt8(0); const auto value_position_value_0 = value_position_value.value0; valueSerializer.writeInt32(static_cast(value_position_value_0)); } - else if (((value_position_value_type == 1))) { + else if (value_position_value_type == 1) { valueSerializer.writeInt8(1); const auto value_position_value_1 = value_position_value.value1; valueSerializer.writePosition(value_position_value_1); @@ -72160,12 +74050,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -72178,22 +74068,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -72207,22 +74097,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -72262,12 +74152,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -72280,12 +74170,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -72329,6 +74219,11 @@ class Serializer : public SerializerBase { const auto value_headerValue = value.headerValue; valueSerializer.writeString(value_headerValue); } + void writeSystemOps(Ark_SystemOps value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeLazyForEachOps(Ark_LazyForEachOps value) { Serializer& valueSerializer = *this; @@ -73768,6 +75663,13 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_Affinity readAffinity() + { + Ark_Affinity value = {}; + Deserializer& valueDeserializer = *this; + value._AffinityStub = static_cast(valueDeserializer.readString()); + return value; + } Ark_TabBarIconStyle readTabBarIconStyle() { Ark_TabBarIconStyle value = {}; @@ -76004,6 +77906,21 @@ class Deserializer : public DeserializerBase { value._DrawContextStub = static_cast(valueDeserializer.readString()); return value; } + Ark_CustomSpanMetrics readCustomSpanMetrics() + { + Ark_CustomSpanMetrics value = {}; + Deserializer& valueDeserializer = *this; + value.width = static_cast(valueDeserializer.readNumber()); + const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Number height_buf = {}; + height_buf.tag = height_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (height_buf_runtimeType)) + { + height_buf.value = static_cast(valueDeserializer.readNumber()); + } + value.height = height_buf; + return value; + } Ark_CustomSpanMeasureInfo readCustomSpanMeasureInfo() { Ark_CustomSpanMeasureInfo value = {}; @@ -76124,6 +78041,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_WaterFlowAttribute readWaterFlowAttribute() + { + Ark_WaterFlowAttribute value = {}; + return value; + } Ark_WaterFlowSections readWaterFlowSections() { Deserializer& valueDeserializer = *this; @@ -76451,6 +78373,16 @@ class Deserializer : public DeserializerBase { value.lock = lock_buf; return value; } + Ark_WindowSceneAttribute readWindowSceneAttribute() + { + Ark_WindowSceneAttribute value = {}; + return value; + } + Ark_WebAttribute readWebAttribute() + { + Ark_WebAttribute value = {}; + return value; + } Ark_SelectionMenuOptionsExt readSelectionMenuOptionsExt() { Ark_SelectionMenuOptionsExt value = {}; @@ -76742,6 +78674,12 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_WebCookie readWebCookie() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_ScreenCaptureConfig readScreenCaptureConfig() { Ark_ScreenCaptureConfig value = {}; @@ -77413,6 +79351,11 @@ class Deserializer : public DeserializerBase { value.endMargin = endMargin_buf; return value; } + Ark_TextInputAttribute readTextInputAttribute() + { + Ark_TextInputAttribute value = {}; + return value; + } Ark_InputCounterOptions readInputCounterOptions() { Ark_InputCounterOptions value = {}; @@ -77661,18 +79604,63 @@ class Deserializer : public DeserializerBase { value.id = static_cast(valueDeserializer.readTextMenuItemId()); return value; } + Ark_LineMetrics readLineMetrics() + { + Ark_LineMetrics value = {}; + Deserializer& valueDeserializer = *this; + value._LineMetricsStub = static_cast(valueDeserializer.readString()); + return value; + } + Ark_PositionWithAffinity readPositionWithAffinity() + { + Ark_PositionWithAffinity value = {}; + Deserializer& valueDeserializer = *this; + value.position = static_cast(valueDeserializer.readNumber()); + value.affinity = valueDeserializer.readAffinity(); + return value; + } + Ark_MutableStyledString readMutableStyledString() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_PreviewText readPreviewText() + { + Ark_PreviewText value = {}; + Deserializer& valueDeserializer = *this; + value.offset = static_cast(valueDeserializer.readNumber()); + value.value = static_cast(valueDeserializer.readString()); + return value; + } + Ark_LayoutManager readLayoutManager() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TextClockController readTextClockController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextAreaAttribute readTextAreaAttribute() + { + Ark_TextAreaAttribute value = {}; + return value; + } Ark_TextAreaController readTextAreaController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextAttribute readTextAttribute() + { + Ark_TextAttribute value = {}; + return value; + } Ark_SelectionMenuOptions readSelectionMenuOptions() { Ark_SelectionMenuOptions value = {}; @@ -78085,6 +80073,11 @@ class Deserializer : public DeserializerBase { value.text = text_buf; return value; } + Ark_TabsAttribute readTabsAttribute() + { + Ark_TabsAttribute value = {}; + return value; + } Ark_BackgroundBlurStyleOptions readBackgroundBlurStyleOptions() { Ark_BackgroundBlurStyleOptions value = {}; @@ -78204,6 +80197,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_SymbolGlyphAttribute readSymbolGlyphAttribute() + { + Ark_SymbolGlyphAttribute value = {}; + return value; + } Ark_SymbolEffect readSymbolEffect() { Ark_SymbolEffect value = {}; @@ -78501,6 +80499,11 @@ class Deserializer : public DeserializerBase { value._maxDisplayCount = _maxDisplayCount_buf; return value; } + Ark_SwiperAttribute readSwiperAttribute() + { + Ark_SwiperAttribute value = {}; + return value; + } Ark_SwiperAutoFill readSwiperAutoFill() { Ark_SwiperAutoFill value = {}; @@ -78620,6 +80623,21 @@ class Deserializer : public DeserializerBase { value.arrowColor = arrowColor_buf; return value; } + Ark_SliderAttribute readSliderAttribute() + { + Ark_SliderAttribute value = {}; + return value; + } + Ark_ShapeAttribute readShapeAttribute() + { + Ark_ShapeAttribute value = {}; + return value; + } + Ark_SelectAttribute readSelectAttribute() + { + Ark_SelectAttribute value = {}; + return value; + } Ark_LocalizedEdges readLocalizedEdges() { Ark_LocalizedEdges value = {}; @@ -78696,6 +80714,11 @@ class Deserializer : public DeserializerBase { value.right = right_buf; return value; } + Ark_SearchAttribute readSearchAttribute() + { + Ark_SearchAttribute value = {}; + return value; + } Ark_SearchButtonOptions readSearchButtonOptions() { Ark_SearchButtonOptions value = {}; @@ -78798,6 +80821,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_ScrollAttribute readScrollAttribute() + { + Ark_ScrollAttribute value = {}; + return value; + } Ark_EdgeEffectOptions readEdgeEffectOptions() { Ark_EdgeEffectOptions value = {}; @@ -78805,6 +80833,16 @@ class Deserializer : public DeserializerBase { value.alwaysEnabled = valueDeserializer.readBoolean(); return value; } + Ark_RectResult readRectResult() + { + Ark_RectResult value = {}; + Deserializer& valueDeserializer = *this; + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ScrollToIndexOptions readScrollToIndexOptions() { Ark_ScrollToIndexOptions value = {}; @@ -78819,6 +80857,14 @@ class Deserializer : public DeserializerBase { value.extraOffset = extraOffset_buf; return value; } + Ark_OffsetResult readOffsetResult() + { + Ark_OffsetResult value = {}; + Deserializer& valueDeserializer = *this; + value.xOffset = static_cast(valueDeserializer.readNumber()); + value.yOffset = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ScrollPageOptions readScrollPageOptions() { Ark_ScrollPageOptions value = {}; @@ -78918,6 +80964,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_RichEditorAttribute readRichEditorAttribute() + { + Ark_RichEditorAttribute value = {}; + return value; + } Ark_PlaceholderStyle readPlaceholderStyle() { Ark_PlaceholderStyle value = {}; @@ -79093,6 +81144,38 @@ class Deserializer : public DeserializerBase { value.end = end_buf; return value; } + Ark_RichEditorSelection readRichEditorSelection() + { + Ark_RichEditorSelection value = {}; + Deserializer& valueDeserializer = *this; + Ark_Tuple_Number_Number selection_buf = {}; + selection_buf.value0 = static_cast(valueDeserializer.readNumber()); + selection_buf.value1 = static_cast(valueDeserializer.readNumber()); + value.selection = selection_buf; + const Ark_Int32 spans_buf_length = valueDeserializer.readInt32(); + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf = {}; + valueDeserializer.resizeArray::type, + std::decay::type>(&spans_buf, spans_buf_length); + for (int spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const Ark_Int8 spans_buf_buf_selector = valueDeserializer.readInt8(); + Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf_buf = {}; + spans_buf_buf.selector = spans_buf_buf_selector; + if (spans_buf_buf_selector == 0) { + spans_buf_buf.selector = 0; + spans_buf_buf.value0 = valueDeserializer.readRichEditorTextSpanResult(); + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf.selector = 1; + spans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); + } + else { + INTEROP_FATAL("One of the branches for spans_buf_buf has to be chosen through deserialisation."); + } + spans_buf.array[spans_buf_i] = static_cast(spans_buf_buf); + } + value.spans = spans_buf; + return value; + } Ark_RichEditorParagraphStyleOptions readRichEditorParagraphStyleOptions() { Ark_RichEditorParagraphStyleOptions value = {}; @@ -79889,6 +81972,11 @@ class Deserializer : public DeserializerBase { value.animated = animated_buf; return value; } + Ark_NavDestinationAttribute readNavDestinationAttribute() + { + Ark_NavDestinationAttribute value = {}; + return value; + } Ark_NavigationToolbarOptions readNavigationToolbarOptions() { Ark_NavigationToolbarOptions value = {}; @@ -80098,6 +82186,15 @@ class Deserializer : public DeserializerBase { value._SystemBarStyleStub = static_cast(valueDeserializer.readString()); return value; } + Ark_RouteMapConfig readRouteMapConfig() + { + Ark_RouteMapConfig value = {}; + Deserializer& valueDeserializer = *this; + value.name = static_cast(valueDeserializer.readString()); + value.pageSourceFile = static_cast(valueDeserializer.readString()); + value.data = static_cast(valueDeserializer.readCustomObject("Object")); + return value; + } Ark_MenuItemOptions readMenuItemOptions() { Ark_MenuItemOptions value = {}; @@ -80357,6 +82454,34 @@ class Deserializer : public DeserializerBase { value.endMargin = endMargin_buf; return value; } + Ark_ListAttribute readListAttribute() + { + Ark_ListAttribute value = {}; + return value; + } + Ark_VisibleListContentInfo readVisibleListContentInfo() + { + Ark_VisibleListContentInfo value = {}; + Deserializer& valueDeserializer = *this; + value.index = static_cast(valueDeserializer.readNumber()); + const auto itemGroupArea_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ListItemGroupArea itemGroupArea_buf = {}; + itemGroupArea_buf.tag = itemGroupArea_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.itemGroupArea = itemGroupArea_buf; + const auto itemIndexInGroup_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Number itemIndexInGroup_buf = {}; + itemIndexInGroup_buf.tag = itemIndexInGroup_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf.value = static_cast(valueDeserializer.readNumber()); + } + value.itemIndexInGroup = itemIndexInGroup_buf; + return value; + } Ark_CloseSwipeActionOptions readCloseSwipeActionOptions() { Ark_CloseSwipeActionOptions value = {}; @@ -80413,6 +82538,23 @@ class Deserializer : public DeserializerBase { value.reference = reference_buf; return value; } + Ark_GridAttribute readGridAttribute() + { + Ark_GridAttribute value = {}; + return value; + } + Ark_PanGestureOptions readPanGestureOptions() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_EventTargetInfo readEventTargetInfo() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_WindowStatusType readWindowStatusType() { Ark_WindowStatusType value = {}; @@ -80831,6 +82973,18 @@ class Deserializer : public DeserializerBase { value.expectedFrameRateRange = expectedFrameRateRange_buf; return value; } + Ark_Component3DAttribute readComponent3DAttribute() + { + Ark_Component3DAttribute value = {}; + return value; + } + Ark_Context readContext() + { + Ark_Context value = {}; + Deserializer& valueDeserializer = *this; + value._ContextStub = static_cast(valueDeserializer.readString()); + return value; + } Ark_UIGestureEvent readUIGestureEvent() { Ark_UIGestureEvent value = {}; @@ -80879,6 +83033,33 @@ class Deserializer : public DeserializerBase { value._RectShapeStub = static_cast(valueDeserializer.readString()); return value; } + Ark_CaretOffset readCaretOffset() + { + Ark_CaretOffset value = {}; + Deserializer& valueDeserializer = *this; + value.index = static_cast(valueDeserializer.readNumber()); + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + return value; + } + Ark_DirectionalEdgesT readDirectionalEdgesT() + { + Ark_DirectionalEdgesT value = {}; + Deserializer& valueDeserializer = *this; + value.start = static_cast(valueDeserializer.readNumber()); + value.end = static_cast(valueDeserializer.readNumber()); + value.top = static_cast(valueDeserializer.readNumber()); + value.bottom = static_cast(valueDeserializer.readNumber()); + return value; + } + Ark_MeasureResult readMeasureResult() + { + Ark_MeasureResult value = {}; + Deserializer& valueDeserializer = *this; + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ConstraintSizeOptions readConstraintSizeOptions() { Ark_ConstraintSizeOptions value = {}; @@ -83297,16 +85478,6 @@ class Deserializer : public DeserializerBase { value._DrawingLatticeStub = static_cast(valueDeserializer.readString()); return value; } - Ark_RectResult readRectResult() - { - Ark_RectResult value = {}; - Deserializer& valueDeserializer = *this; - value.x = static_cast(valueDeserializer.readNumber()); - value.y = static_cast(valueDeserializer.readNumber()); - value.width = static_cast(valueDeserializer.readNumber()); - value.height = static_cast(valueDeserializer.readNumber()); - return value; - } Ark_DrawModifier readDrawModifier() { Deserializer& valueDeserializer = *this; @@ -83320,12 +85491,35 @@ class Deserializer : public DeserializerBase { value._IntentionCodeStub = static_cast(valueDeserializer.readString()); return value; } + Ark_Summary readSummary() + { + Ark_Summary value = {}; + Deserializer& valueDeserializer = *this; + value._SummaryStub = static_cast(valueDeserializer.readString()); + return value; + } Ark_UnifiedData readUnifiedData() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TouchObject readTouchObject() + { + Ark_TouchObject value = {}; + Deserializer& valueDeserializer = *this; + value.type = static_cast(valueDeserializer.readInt32()); + value.id = static_cast(valueDeserializer.readNumber()); + value.displayX = static_cast(valueDeserializer.readNumber()); + value.displayY = static_cast(valueDeserializer.readNumber()); + value.windowX = static_cast(valueDeserializer.readNumber()); + value.windowY = static_cast(valueDeserializer.readNumber()); + value.screenX = static_cast(valueDeserializer.readNumber()); + value.screenY = static_cast(valueDeserializer.readNumber()); + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ColumnSplitDividerStyle readColumnSplitDividerStyle() { Ark_ColumnSplitDividerStyle value = {}; @@ -83400,12 +85594,43 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_OffscreenCanvasRenderingContext2D readOffscreenCanvasRenderingContext2D() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_RenderingContextSettings readRenderingContextSettings() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_ImageBitmap readImageBitmap() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextMetrics readTextMetrics() + { + Ark_TextMetrics value = {}; + Deserializer& valueDeserializer = *this; + value.actualBoundingBoxAscent = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxDescent = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxLeft = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxRight = static_cast(valueDeserializer.readNumber()); + value.alphabeticBaseline = static_cast(valueDeserializer.readNumber()); + value.emHeightAscent = static_cast(valueDeserializer.readNumber()); + value.emHeightDescent = static_cast(valueDeserializer.readNumber()); + value.fontBoundingBoxAscent = static_cast(valueDeserializer.readNumber()); + value.fontBoundingBoxDescent = static_cast(valueDeserializer.readNumber()); + value.hangingBaseline = static_cast(valueDeserializer.readNumber()); + value.ideographicBaseline = static_cast(valueDeserializer.readNumber()); + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ImageData readImageData() { Deserializer& valueDeserializer = *this; @@ -83602,6 +85827,11 @@ class Deserializer : public DeserializerBase { value.hoverModeArea = hoverModeArea_buf; return value; } + Ark_CalendarPickerAttribute readCalendarPickerAttribute() + { + Ark_CalendarPickerAttribute value = {}; + return value; + } Ark_CalendarController readCalendarController() { Deserializer& valueDeserializer = *this; @@ -83798,6 +86028,11 @@ class Deserializer : public DeserializerBase { value.fontWeight = fontWeight_buf; return value; } + Ark_AlphabetIndexerAttribute readAlphabetIndexerAttribute() + { + Ark_AlphabetIndexerAttribute value = {}; + return value; + } Ark_AlertDialogParamWithOptions readAlertDialogParamWithOptions() { Ark_AlertDialogParamWithOptions value = {}; @@ -86333,12 +88568,6 @@ class Deserializer : public DeserializerBase { value.layoutStyle = layoutStyle_buf; return value; } - Ark_MutableStyledString readMutableStyledString() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_UrlStyle readUrlStyle() { Deserializer& valueDeserializer = *this; @@ -87574,12 +89803,6 @@ class Deserializer : public DeserializerBase { value.sharedRenderProcessToken = sharedRenderProcessToken_buf; return value; } - Ark_WebCookie readWebCookie() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_Header readHeader() { Ark_Header value = {}; @@ -88266,11 +90489,12 @@ class Deserializer : public DeserializerBase { value.controller = controller_buf; return value; } - Ark_LayoutManager readLayoutManager() + Ark_TextBox readTextBox() { + Ark_TextBox value = {}; Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + value._TextBoxStub = static_cast(valueDeserializer.readString()); + return value; } Ark_StyledStringController readStyledStringController() { @@ -88895,14 +91119,6 @@ class Deserializer : public DeserializerBase { value.style = style_buf; return value; } - Ark_PreviewText readPreviewText() - { - Ark_PreviewText value = {}; - Deserializer& valueDeserializer = *this; - value.offset = static_cast(valueDeserializer.readNumber()); - value.value = static_cast(valueDeserializer.readString()); - return value; - } Ark_CaretStyle readCaretStyle() { Ark_CaretStyle value = {}; @@ -89372,38 +91588,6 @@ class Deserializer : public DeserializerBase { value.previewText = previewText_buf; return value; } - Ark_RichEditorSelection readRichEditorSelection() - { - Ark_RichEditorSelection value = {}; - Deserializer& valueDeserializer = *this; - Ark_Tuple_Number_Number selection_buf = {}; - selection_buf.value0 = static_cast(valueDeserializer.readNumber()); - selection_buf.value1 = static_cast(valueDeserializer.readNumber()); - value.selection = selection_buf; - const Ark_Int32 spans_buf_length = valueDeserializer.readInt32(); - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf = {}; - valueDeserializer.resizeArray::type, - std::decay::type>(&spans_buf, spans_buf_length); - for (int spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const Ark_Int8 spans_buf_buf_selector = valueDeserializer.readInt8(); - Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf_buf = {}; - spans_buf_buf.selector = spans_buf_buf_selector; - if (spans_buf_buf_selector == 0) { - spans_buf_buf.selector = 0; - spans_buf_buf.value0 = valueDeserializer.readRichEditorTextSpanResult(); - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf.selector = 1; - spans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); - } - else { - INTEROP_FATAL("One of the branches for spans_buf_buf has to be chosen through deserialisation."); - } - spans_buf.array[spans_buf_i] = static_cast(spans_buf_buf); - } - value.spans = spans_buf; - return value; - } Ark_StyledStringChangeValue readStyledStringChangeValue() { Ark_StyledStringChangeValue value = {}; @@ -89420,6 +91604,17 @@ class Deserializer : public DeserializerBase { value.previewText = previewText_buf; return value; } + Ark_RichEditorParagraphResult readRichEditorParagraphResult() + { + Ark_RichEditorParagraphResult value = {}; + Deserializer& valueDeserializer = *this; + value.style = valueDeserializer.readRichEditorParagraphStyle(); + Ark_Tuple_Number_Number range_buf = {}; + range_buf.value0 = static_cast(valueDeserializer.readNumber()); + range_buf.value1 = static_cast(valueDeserializer.readNumber()); + value.range = range_buf; + return value; + } Ark_RichEditorBaseController readRichEditorBaseController() { Deserializer& valueDeserializer = *this; @@ -90442,29 +92637,6 @@ class Deserializer : public DeserializerBase { value.style = style_buf; return value; } - Ark_VisibleListContentInfo readVisibleListContentInfo() - { - Ark_VisibleListContentInfo value = {}; - Deserializer& valueDeserializer = *this; - value.index = static_cast(valueDeserializer.readNumber()); - const auto itemGroupArea_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ListItemGroupArea itemGroupArea_buf = {}; - itemGroupArea_buf.tag = itemGroupArea_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.itemGroupArea = itemGroupArea_buf; - const auto itemIndexInGroup_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number itemIndexInGroup_buf = {}; - itemIndexInGroup_buf.tag = itemIndexInGroup_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.itemIndexInGroup = itemIndexInGroup_buf; - return value; - } Ark_ChainAnimationOptions readChainAnimationOptions() { Ark_ChainAnimationOptions value = {}; @@ -91068,24 +93240,12 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_EventTargetInfo readEventTargetInfo() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_ScrollableTargetInfo readScrollableTargetInfo() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_PanGestureOptions readPanGestureOptions() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_GestureEvent readGestureEvent() { Deserializer& valueDeserializer = *this; @@ -92425,14 +94585,6 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_OffsetResult readOffsetResult() - { - Ark_OffsetResult value = {}; - Deserializer& valueDeserializer = *this; - value.xOffset = static_cast(valueDeserializer.readNumber()); - value.yOffset = static_cast(valueDeserializer.readNumber()); - return value; - } Ark_TextContentControllerBase readTextContentControllerBase() { Deserializer& valueDeserializer = *this; @@ -94204,20 +96356,14 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_TouchObject readTouchObject() + Ark_HistoricalPoint readHistoricalPoint() { - Ark_TouchObject value = {}; + Ark_HistoricalPoint value = {}; Deserializer& valueDeserializer = *this; - value.type = static_cast(valueDeserializer.readInt32()); - value.id = static_cast(valueDeserializer.readNumber()); - value.displayX = static_cast(valueDeserializer.readNumber()); - value.displayY = static_cast(valueDeserializer.readNumber()); - value.windowX = static_cast(valueDeserializer.readNumber()); - value.windowY = static_cast(valueDeserializer.readNumber()); - value.screenX = static_cast(valueDeserializer.readNumber()); - value.screenY = static_cast(valueDeserializer.readNumber()); - value.x = static_cast(valueDeserializer.readNumber()); - value.y = static_cast(valueDeserializer.readNumber()); + value.touchObject = valueDeserializer.readTouchObject(); + value.size = static_cast(valueDeserializer.readNumber()); + value.force = static_cast(valueDeserializer.readNumber()); + value.timestamp = static_cast(valueDeserializer.readNumber()); return value; } Ark_AccessibilityHoverEvent readAccessibilityHoverEvent() @@ -94463,17 +96609,17 @@ class Deserializer : public DeserializerBase { value.indicatorBuilder = indicatorBuilder_buf; return value; } - Ark_CanvasRenderer readCanvasRenderer() + Ark_OffscreenCanvas readOffscreenCanvas() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + return static_cast(ptr); } - Ark_RenderingContextSettings readRenderingContextSettings() + Ark_CanvasRenderer readCanvasRenderer() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + return static_cast(ptr); } Ark_LengthMetricsUnit readLengthMetricsUnit() { @@ -95650,6 +97796,12 @@ class Deserializer : public DeserializerBase { value.headerValue = static_cast(valueDeserializer.readString()); return value; } + Ark_SystemOps readSystemOps() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_LazyForEachOps readLazyForEachOps() { Deserializer& valueDeserializer = *this; diff --git a/arkoala/framework/native/src/generated/all_events.cc b/arkoala/framework/native/src/generated/all_events.cc index 8d2200ac5..f5dbfe49e 100644 --- a/arkoala/framework/native/src/generated/all_events.cc +++ b/arkoala/framework/native/src/generated/all_events.cc @@ -2509,12 +2509,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { _eventBufferSerializer.writeInt8(0); const auto selected_0 = selected.value0; _eventBufferSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { _eventBufferSerializer.writeInt8(1); const auto selected_1 = selected.value1; _eventBufferSerializer.writeResource(selected_1); @@ -2530,12 +2530,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3033,12 +3033,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3240,12 +3240,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3284,12 +3284,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeInt32(value_1.length); @@ -3300,12 +3300,12 @@ namespace Generated { } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { _eventBufferSerializer.writeInt8(0); const auto index_0 = index.value0; _eventBufferSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { _eventBufferSerializer.writeInt8(1); const auto index_1 = index.value1; _eventBufferSerializer.writeInt32(index_1.length); @@ -3325,12 +3325,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { _eventBufferSerializer.writeInt8(0); const auto selected_0 = selected.value0; _eventBufferSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { _eventBufferSerializer.writeInt8(1); const auto selected_1 = selected.value1; _eventBufferSerializer.writeInt32(selected_1.length); @@ -3350,12 +3350,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeInt32(value_1.length); @@ -3689,12 +3689,12 @@ namespace Generated { const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { _eventBufferSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; _eventBufferSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { _eventBufferSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; _eventBufferSerializer.writeWebResourceRequest(event_value_data_1); diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 2d0a02d76..00363f012 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -26,11 +26,7 @@ #include -#define INTEROP_FATAL(msg, ...) \ - do { \ - fprintf(stderr, msg "\n", ##__VA_ARGS__); \ - abort(); \ - } while(0) +#define INTEROP_FATAL(msg, ...) do { fprintf(stderr, msg "\n", ##__VA_ARGS__); abort(); } while (0) typedef enum InteropTag { @@ -465,6 +461,8 @@ typedef struct Opt_Type_TextPickerOptions_range Opt_Type_TextPickerOptions_range typedef struct TextMenuItemIdPeer TextMenuItemIdPeer; typedef struct TextMenuItemIdPeer* Ark_TextMenuItemId; typedef struct Opt_TextMenuItemId Opt_TextMenuItemId; +typedef struct Ark_Affinity Ark_Affinity; +typedef struct Opt_Affinity Opt_Affinity; typedef struct MenuOnAppearCallback MenuOnAppearCallback; typedef struct Opt_MenuOnAppearCallback Opt_MenuOnAppearCallback; typedef struct Ark_TabBarIconStyle Ark_TabBarIconStyle; @@ -509,6 +507,8 @@ typedef struct OnDidChangeCallback OnDidChangeCallback; typedef struct Opt_OnDidChangeCallback Opt_OnDidChangeCallback; typedef struct Callback_StyledStringChangeValue_Boolean Callback_StyledStringChangeValue_Boolean; typedef struct Opt_Callback_StyledStringChangeValue_Boolean Opt_Callback_StyledStringChangeValue_Boolean; +typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; +typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_RichEditorImageSpanStyle Ark_RichEditorImageSpanStyle; typedef struct Opt_RichEditorImageSpanStyle Opt_RichEditorImageSpanStyle; typedef struct Ark_RichEditorTextStyle Ark_RichEditorTextStyle; @@ -695,6 +695,8 @@ typedef struct Ark_CustomSpanDrawInfo Ark_CustomSpanDrawInfo; typedef struct Opt_CustomSpanDrawInfo Opt_CustomSpanDrawInfo; typedef struct Ark_DrawContext Ark_DrawContext; typedef struct Opt_DrawContext Opt_DrawContext; +typedef struct Ark_CustomSpanMetrics Ark_CustomSpanMetrics; +typedef struct Opt_CustomSpanMetrics Opt_CustomSpanMetrics; typedef struct Ark_CustomSpanMeasureInfo Ark_CustomSpanMeasureInfo; typedef struct Opt_CustomSpanMeasureInfo Opt_CustomSpanMeasureInfo; typedef struct Ark_SpanStyle Ark_SpanStyle; @@ -715,6 +717,8 @@ typedef struct Map_String_ComponentContent Map_String_ComponentContent; typedef struct Opt_Map_String_ComponentContent Opt_Map_String_ComponentContent; typedef struct Callback_UIExtensionProxy_Void Callback_UIExtensionProxy_Void; typedef struct Opt_Callback_UIExtensionProxy_Void Opt_Callback_UIExtensionProxy_Void; +typedef struct Ark_WaterFlowAttribute Ark_WaterFlowAttribute; +typedef struct Opt_WaterFlowAttribute Opt_WaterFlowAttribute; typedef struct WaterFlowSectionsPeer WaterFlowSectionsPeer; typedef struct WaterFlowSectionsPeer* Ark_WaterFlowSections; typedef struct Opt_WaterFlowSections Opt_WaterFlowSections; @@ -742,6 +746,10 @@ typedef struct Ark_SurfaceRotationOptions Ark_SurfaceRotationOptions; typedef struct Opt_SurfaceRotationOptions Opt_SurfaceRotationOptions; typedef struct Ark_Literal_Number_surfaceHeight_surfaceWidth Ark_Literal_Number_surfaceHeight_surfaceWidth; typedef struct Opt_Literal_Number_surfaceHeight_surfaceWidth Opt_Literal_Number_surfaceHeight_surfaceWidth; +typedef struct Ark_WindowSceneAttribute Ark_WindowSceneAttribute; +typedef struct Opt_WindowSceneAttribute Opt_WindowSceneAttribute; +typedef struct Ark_WebAttribute Ark_WebAttribute; +typedef struct Opt_WebAttribute Opt_WebAttribute; typedef struct Ark_SelectionMenuOptionsExt Ark_SelectionMenuOptionsExt; typedef struct Opt_SelectionMenuOptionsExt Opt_SelectionMenuOptionsExt; typedef struct WebKeyboardControllerPeer WebKeyboardControllerPeer; @@ -818,6 +826,9 @@ typedef struct JsGeolocationPeer* Ark_JsGeolocation; typedef struct Opt_JsGeolocation Opt_JsGeolocation; typedef struct Ark_Union_WebController_WebviewController Ark_Union_WebController_WebviewController; typedef struct Opt_Union_WebController_WebviewController Opt_Union_WebController_WebviewController; +typedef struct WebCookiePeer WebCookiePeer; +typedef struct WebCookiePeer* Ark_WebCookie; +typedef struct Opt_WebCookie Opt_WebCookie; typedef struct Ark_Literal_Object_object__String_name_Array_String_methodList Ark_Literal_Object_object__String_name_Array_String_methodList; typedef struct Opt_Literal_Object_object__String_name_Array_String_methodList Opt_Literal_Object_object__String_name_Array_String_methodList; typedef struct Ark_Literal_Union_String_Resource_url_Array_Header_headers Ark_Literal_Union_String_Resource_url_Array_Header_headers; @@ -848,6 +859,8 @@ typedef struct Ark_DividerOptions Ark_DividerOptions; typedef struct Opt_DividerOptions Opt_DividerOptions; typedef struct Callback_ResourceStr_Void Callback_ResourceStr_Void; typedef struct Opt_Callback_ResourceStr_Void Opt_Callback_ResourceStr_Void; +typedef struct Ark_TextInputAttribute Ark_TextInputAttribute; +typedef struct Opt_TextInputAttribute Opt_TextInputAttribute; typedef struct Ark_InputCounterOptions Ark_InputCounterOptions; typedef struct Opt_InputCounterOptions Opt_InputCounterOptions; typedef struct Ark_KeyboardOptions Ark_KeyboardOptions; @@ -863,12 +876,28 @@ typedef struct Ark_TextRange Ark_TextRange; typedef struct Opt_TextRange Opt_TextRange; typedef struct Ark_TextMenuItem Ark_TextMenuItem; typedef struct Opt_TextMenuItem Opt_TextMenuItem; +typedef struct Ark_LineMetrics Ark_LineMetrics; +typedef struct Opt_LineMetrics Opt_LineMetrics; +typedef struct Ark_PositionWithAffinity Ark_PositionWithAffinity; +typedef struct Opt_PositionWithAffinity Opt_PositionWithAffinity; +typedef struct MutableStyledStringPeer MutableStyledStringPeer; +typedef struct MutableStyledStringPeer* Ark_MutableStyledString; +typedef struct Opt_MutableStyledString Opt_MutableStyledString; +typedef struct Ark_PreviewText Ark_PreviewText; +typedef struct Opt_PreviewText Opt_PreviewText; +typedef struct LayoutManagerPeer LayoutManagerPeer; +typedef struct LayoutManagerPeer* Ark_LayoutManager; +typedef struct Opt_LayoutManager Opt_LayoutManager; typedef struct TextClockControllerPeer TextClockControllerPeer; typedef struct TextClockControllerPeer* Ark_TextClockController; typedef struct Opt_TextClockController Opt_TextClockController; +typedef struct Ark_TextAreaAttribute Ark_TextAreaAttribute; +typedef struct Opt_TextAreaAttribute Opt_TextAreaAttribute; typedef struct TextAreaControllerPeer TextAreaControllerPeer; typedef struct TextAreaControllerPeer* Ark_TextAreaController; typedef struct Opt_TextAreaController Opt_TextAreaController; +typedef struct Ark_TextAttribute Ark_TextAttribute; +typedef struct Opt_TextAttribute Opt_TextAttribute; typedef struct Ark_SelectionMenuOptions Ark_SelectionMenuOptions; typedef struct Opt_SelectionMenuOptions Opt_SelectionMenuOptions; typedef struct Ark_FontSettingOptions Ark_FontSettingOptions; @@ -882,6 +911,8 @@ typedef struct Ark_SubTabBarStyle Ark_SubTabBarStyle; typedef struct Opt_SubTabBarStyle Opt_SubTabBarStyle; typedef struct Ark_TabBarOptions Ark_TabBarOptions; typedef struct Opt_TabBarOptions Opt_TabBarOptions; +typedef struct Ark_TabsAttribute Ark_TabsAttribute; +typedef struct Opt_TabsAttribute Opt_TabsAttribute; typedef struct Ark_BackgroundBlurStyleOptions Ark_BackgroundBlurStyleOptions; typedef struct Opt_BackgroundBlurStyleOptions Opt_BackgroundBlurStyleOptions; typedef struct Ark_ScrollableBarModeOptions Ark_ScrollableBarModeOptions; @@ -891,24 +922,36 @@ typedef struct Opt_TabContentAnimatedTransition Opt_TabContentAnimatedTransition typedef struct TabsControllerPeer TabsControllerPeer; typedef struct TabsControllerPeer* Ark_TabsController; typedef struct Opt_TabsController Opt_TabsController; +typedef struct Ark_SymbolGlyphAttribute Ark_SymbolGlyphAttribute; +typedef struct Opt_SymbolGlyphAttribute Opt_SymbolGlyphAttribute; typedef struct Ark_SymbolEffect Ark_SymbolEffect; typedef struct Opt_SymbolEffect Opt_SymbolEffect; typedef struct Ark_DigitIndicator Ark_DigitIndicator; typedef struct Opt_DigitIndicator Opt_DigitIndicator; typedef struct Ark_DotIndicator Ark_DotIndicator; typedef struct Opt_DotIndicator Opt_DotIndicator; +typedef struct Ark_SwiperAttribute Ark_SwiperAttribute; +typedef struct Opt_SwiperAttribute Opt_SwiperAttribute; typedef struct Ark_SwiperAutoFill Ark_SwiperAutoFill; typedef struct Opt_SwiperAutoFill Opt_SwiperAutoFill; typedef struct Ark_ArrowStyle Ark_ArrowStyle; typedef struct Opt_ArrowStyle Opt_ArrowStyle; typedef struct Callback_SwiperContentTransitionProxy_Void Callback_SwiperContentTransitionProxy_Void; typedef struct Opt_Callback_SwiperContentTransitionProxy_Void Opt_Callback_SwiperContentTransitionProxy_Void; +typedef struct Ark_SliderAttribute Ark_SliderAttribute; +typedef struct Opt_SliderAttribute Opt_SliderAttribute; +typedef struct Ark_ShapeAttribute Ark_ShapeAttribute; +typedef struct Opt_ShapeAttribute Opt_ShapeAttribute; typedef struct Callback_Union_Number_Resource_Void Callback_Union_Number_Resource_Void; typedef struct Opt_Callback_Union_Number_Resource_Void Opt_Callback_Union_Number_Resource_Void; +typedef struct Ark_SelectAttribute Ark_SelectAttribute; +typedef struct Opt_SelectAttribute Opt_SelectAttribute; typedef struct Ark_LocalizedEdges Ark_LocalizedEdges; typedef struct Opt_LocalizedEdges Opt_LocalizedEdges; typedef struct Ark_Edges Ark_Edges; typedef struct Opt_Edges Opt_Edges; +typedef struct Ark_SearchAttribute Ark_SearchAttribute; +typedef struct Opt_SearchAttribute Opt_SearchAttribute; typedef struct Ark_SearchButtonOptions Ark_SearchButtonOptions; typedef struct Opt_SearchButtonOptions Opt_SearchButtonOptions; typedef struct Ark_CancelButtonSymbolOptions Ark_CancelButtonSymbolOptions; @@ -918,14 +961,20 @@ typedef struct Opt_CancelButtonOptions Opt_CancelButtonOptions; typedef struct SearchControllerPeer SearchControllerPeer; typedef struct SearchControllerPeer* Ark_SearchController; typedef struct Opt_SearchController Opt_SearchController; +typedef struct Ark_ScrollAttribute Ark_ScrollAttribute; +typedef struct Opt_ScrollAttribute Opt_ScrollAttribute; typedef struct Ark_EdgeEffectOptions Ark_EdgeEffectOptions; typedef struct Opt_EdgeEffectOptions Opt_EdgeEffectOptions; typedef struct Ark_Union_Dimension_Array_Dimension Ark_Union_Dimension_Array_Dimension; typedef struct Opt_Union_Dimension_Array_Dimension Opt_Union_Dimension_Array_Dimension; typedef struct ScrollOnWillScrollCallback ScrollOnWillScrollCallback; typedef struct Opt_ScrollOnWillScrollCallback Opt_ScrollOnWillScrollCallback; +typedef struct Ark_RectResult Ark_RectResult; +typedef struct Opt_RectResult Opt_RectResult; typedef struct Ark_ScrollToIndexOptions Ark_ScrollToIndexOptions; typedef struct Opt_ScrollToIndexOptions Opt_ScrollToIndexOptions; +typedef struct Ark_OffsetResult Ark_OffsetResult; +typedef struct Opt_OffsetResult Opt_OffsetResult; typedef struct Ark_Literal_Boolean_next_Axis_direction Ark_Literal_Boolean_next_Axis_direction; typedef struct Opt_Literal_Boolean_next_Axis_direction Opt_Literal_Boolean_next_Axis_direction; typedef struct Ark_ScrollPageOptions Ark_ScrollPageOptions; @@ -942,6 +991,8 @@ typedef struct Opt_RichEditorStyledStringController Opt_RichEditorStyledStringCo typedef struct RichEditorControllerPeer RichEditorControllerPeer; typedef struct RichEditorControllerPeer* Ark_RichEditorController; typedef struct Opt_RichEditorController Opt_RichEditorController; +typedef struct Ark_RichEditorAttribute Ark_RichEditorAttribute; +typedef struct Opt_RichEditorAttribute Opt_RichEditorAttribute; typedef struct Ark_PlaceholderStyle Ark_PlaceholderStyle; typedef struct Opt_PlaceholderStyle Opt_PlaceholderStyle; typedef struct Array_RichEditorTextSpanResult Array_RichEditorTextSpanResult; @@ -954,12 +1005,12 @@ typedef struct Ark_RichEditorImageSpanResult Ark_RichEditorImageSpanResult; typedef struct Opt_RichEditorImageSpanResult Opt_RichEditorImageSpanResult; typedef struct Ark_RichEditorTextSpanResult Ark_RichEditorTextSpanResult; typedef struct Opt_RichEditorTextSpanResult Opt_RichEditorTextSpanResult; -typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; -typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_StyledStringChangedListener Ark_StyledStringChangedListener; typedef struct Opt_StyledStringChangedListener Opt_StyledStringChangedListener; typedef struct Ark_RichEditorRange Ark_RichEditorRange; typedef struct Opt_RichEditorRange Opt_RichEditorRange; +typedef struct Ark_RichEditorSelection Ark_RichEditorSelection; +typedef struct Opt_RichEditorSelection Opt_RichEditorSelection; typedef struct Ark_RichEditorParagraphStyleOptions Ark_RichEditorParagraphStyleOptions; typedef struct Opt_RichEditorParagraphStyleOptions Opt_RichEditorParagraphStyleOptions; typedef struct Ark_RichEditorUpdateSymbolSpanStyleOptions Ark_RichEditorUpdateSymbolSpanStyleOptions; @@ -1005,6 +1056,8 @@ typedef struct Ark_NavigationInterception Ark_NavigationInterception; typedef struct Opt_NavigationInterception Opt_NavigationInterception; typedef struct Ark_NavigationOptions Ark_NavigationOptions; typedef struct Opt_NavigationOptions Opt_NavigationOptions; +typedef struct Ark_NavDestinationAttribute Ark_NavDestinationAttribute; +typedef struct Opt_NavDestinationAttribute Opt_NavDestinationAttribute; typedef struct Ark_NavigationToolbarOptions Ark_NavigationToolbarOptions; typedef struct Opt_NavigationToolbarOptions Opt_NavigationToolbarOptions; typedef struct Array_ToolbarItem Array_ToolbarItem; @@ -1019,6 +1072,8 @@ typedef struct Ark_SystemBarStyle Ark_SystemBarStyle; typedef struct Opt_SystemBarStyle Opt_SystemBarStyle; typedef struct Array_NavigationMenuItem Array_NavigationMenuItem; typedef struct Opt_Array_NavigationMenuItem Opt_Array_NavigationMenuItem; +typedef struct Ark_RouteMapConfig Ark_RouteMapConfig; +typedef struct Opt_RouteMapConfig Opt_RouteMapConfig; typedef struct Ark_Union_ResourceStr_CustomBuilder Ark_Union_ResourceStr_CustomBuilder; typedef struct Opt_Union_ResourceStr_CustomBuilder Opt_Union_ResourceStr_CustomBuilder; typedef struct Ark_MenuItemOptions Ark_MenuItemOptions; @@ -1036,8 +1091,12 @@ typedef struct Ark_ListDividerOptions Ark_ListDividerOptions; typedef struct Opt_ListDividerOptions Opt_ListDividerOptions; typedef struct Ark_Union_CustomBuilder_SwipeActionItem Ark_Union_CustomBuilder_SwipeActionItem; typedef struct Opt_Union_CustomBuilder_SwipeActionItem Opt_Union_CustomBuilder_SwipeActionItem; +typedef struct Ark_ListAttribute Ark_ListAttribute; +typedef struct Opt_ListAttribute Opt_ListAttribute; typedef struct Ark_LengthConstrain Ark_LengthConstrain; typedef struct Opt_LengthConstrain Opt_LengthConstrain; +typedef struct Ark_VisibleListContentInfo Ark_VisibleListContentInfo; +typedef struct Opt_VisibleListContentInfo Opt_VisibleListContentInfo; typedef struct Ark_CloseSwipeActionOptions Ark_CloseSwipeActionOptions; typedef struct Opt_CloseSwipeActionOptions Opt_CloseSwipeActionOptions; typedef struct Ark_DrawingColorFilter Ark_DrawingColorFilter; @@ -1055,10 +1114,18 @@ typedef struct Ark_Union_Length_GutterOption Ark_Union_Length_GutterOption; typedef struct Opt_Union_Length_GutterOption Opt_Union_Length_GutterOption; typedef struct Ark_Union_Number_GridColColumnOption Ark_Union_Number_GridColColumnOption; typedef struct Opt_Union_Number_GridColColumnOption Opt_Union_Number_GridColColumnOption; +typedef struct Ark_GridAttribute Ark_GridAttribute; +typedef struct Opt_GridAttribute Opt_GridAttribute; typedef struct Callback_Number_Tuple_Number_Number_Number_Number Callback_Number_Tuple_Number_Number_Number_Number; typedef struct Opt_Callback_Number_Tuple_Number_Number_Number_Number Opt_Callback_Number_Tuple_Number_Number_Number_Number; typedef struct Callback_Number_Tuple_Number_Number Callback_Number_Tuple_Number_Number; typedef struct Opt_Callback_Number_Tuple_Number_Number Opt_Callback_Number_Tuple_Number_Number; +typedef struct PanGestureOptionsPeer PanGestureOptionsPeer; +typedef struct PanGestureOptionsPeer* Ark_PanGestureOptions; +typedef struct Opt_PanGestureOptions Opt_PanGestureOptions; +typedef struct EventTargetInfoPeer EventTargetInfoPeer; +typedef struct EventTargetInfoPeer* Ark_EventTargetInfo; +typedef struct Opt_EventTargetInfo Opt_EventTargetInfo; typedef struct Array_FingerInfo Array_FingerInfo; typedef struct Opt_Array_FingerInfo Opt_Array_FingerInfo; typedef struct Ark_Union_ResourceColor_LinearGradient Ark_Union_ResourceColor_LinearGradient; @@ -1079,8 +1146,12 @@ typedef struct Ark_Union_Dimension_EdgeWidths Ark_Union_Dimension_EdgeWidths; typedef struct Opt_Union_Dimension_EdgeWidths Opt_Union_Dimension_EdgeWidths; typedef struct Ark_AnimateParam Ark_AnimateParam; typedef struct Opt_AnimateParam Opt_AnimateParam; +typedef struct Ark_Component3DAttribute Ark_Component3DAttribute; +typedef struct Opt_Component3DAttribute Opt_Component3DAttribute; typedef struct Ark_Union_ResourceStr_Scene Ark_Union_ResourceStr_Scene; typedef struct Opt_Union_ResourceStr_Scene Opt_Union_ResourceStr_Scene; +typedef struct Ark_Context Ark_Context; +typedef struct Opt_Context Opt_Context; typedef struct Ark_UIGestureEvent Ark_UIGestureEvent; typedef struct Opt_UIGestureEvent Opt_UIGestureEvent; typedef struct VisibleAreaChangeCallback VisibleAreaChangeCallback; @@ -1103,6 +1174,12 @@ typedef struct Ark_FadingEdgeOptions Ark_FadingEdgeOptions; typedef struct Opt_FadingEdgeOptions Opt_FadingEdgeOptions; typedef struct Ark_RectShape Ark_RectShape; typedef struct Opt_RectShape Opt_RectShape; +typedef struct Ark_CaretOffset Ark_CaretOffset; +typedef struct Opt_CaretOffset Opt_CaretOffset; +typedef struct Ark_DirectionalEdgesT Ark_DirectionalEdgesT; +typedef struct Opt_DirectionalEdgesT Opt_DirectionalEdgesT; +typedef struct Ark_MeasureResult Ark_MeasureResult; +typedef struct Opt_MeasureResult Opt_MeasureResult; typedef struct Ark_ConstraintSizeOptions Ark_ConstraintSizeOptions; typedef struct Opt_ConstraintSizeOptions Opt_ConstraintSizeOptions; typedef struct GestureRecognizerJudgeBeginCallback GestureRecognizerJudgeBeginCallback; @@ -1202,8 +1279,6 @@ typedef struct Ark_Union_EdgeWidths_Length_LocalizedEdgeWidths Ark_Union_EdgeWid typedef struct Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths; typedef struct Ark_DrawingLattice Ark_DrawingLattice; typedef struct Opt_DrawingLattice Opt_DrawingLattice; -typedef struct Ark_RectResult Ark_RectResult; -typedef struct Opt_RectResult Opt_RectResult; typedef struct Array_Rectangle Array_Rectangle; typedef struct Opt_Array_Rectangle Opt_Array_Rectangle; typedef struct DrawModifierPeer DrawModifierPeer; @@ -1211,9 +1286,13 @@ typedef struct DrawModifierPeer* Ark_DrawModifier; typedef struct Opt_DrawModifier Opt_DrawModifier; typedef struct Ark_IntentionCode Ark_IntentionCode; typedef struct Opt_IntentionCode Opt_IntentionCode; +typedef struct Ark_Summary Ark_Summary; +typedef struct Opt_Summary Opt_Summary; typedef struct UnifiedDataPeer UnifiedDataPeer; typedef struct UnifiedDataPeer* Ark_UnifiedData; typedef struct Opt_UnifiedData Opt_UnifiedData; +typedef struct Ark_TouchObject Ark_TouchObject; +typedef struct Opt_TouchObject Opt_TouchObject; typedef struct Ark_Literal_TransitionEffect_appear_disappear Ark_Literal_TransitionEffect_appear_disappear; typedef struct Opt_Literal_TransitionEffect_appear_disappear Opt_Literal_TransitionEffect_appear_disappear; typedef struct Ark_ColumnSplitDividerStyle Ark_ColumnSplitDividerStyle; @@ -1226,9 +1305,17 @@ typedef struct Opt_DrawingRenderingContext Opt_DrawingRenderingContext; typedef struct CanvasRenderingContext2DPeer CanvasRenderingContext2DPeer; typedef struct CanvasRenderingContext2DPeer* Ark_CanvasRenderingContext2D; typedef struct Opt_CanvasRenderingContext2D Opt_CanvasRenderingContext2D; +typedef struct OffscreenCanvasRenderingContext2DPeer OffscreenCanvasRenderingContext2DPeer; +typedef struct OffscreenCanvasRenderingContext2DPeer* Ark_OffscreenCanvasRenderingContext2D; +typedef struct Opt_OffscreenCanvasRenderingContext2D Opt_OffscreenCanvasRenderingContext2D; +typedef struct RenderingContextSettingsPeer RenderingContextSettingsPeer; +typedef struct RenderingContextSettingsPeer* Ark_RenderingContextSettings; +typedef struct Opt_RenderingContextSettings Opt_RenderingContextSettings; typedef struct ImageBitmapPeer ImageBitmapPeer; typedef struct ImageBitmapPeer* Ark_ImageBitmap; typedef struct Opt_ImageBitmap Opt_ImageBitmap; +typedef struct Ark_TextMetrics Ark_TextMetrics; +typedef struct Opt_TextMetrics Opt_TextMetrics; typedef struct ImageDataPeer ImageDataPeer; typedef struct ImageDataPeer* Ark_ImageData; typedef struct Opt_ImageData Opt_ImageData; @@ -1237,6 +1324,8 @@ typedef struct Path2DPeer* Ark_Path2D; typedef struct Opt_Path2D Opt_Path2D; typedef struct Ark_CalendarDialogOptions Ark_CalendarDialogOptions; typedef struct Opt_CalendarDialogOptions Opt_CalendarDialogOptions; +typedef struct Ark_CalendarPickerAttribute Ark_CalendarPickerAttribute; +typedef struct Opt_CalendarPickerAttribute Opt_CalendarPickerAttribute; typedef struct CalendarControllerPeer CalendarControllerPeer; typedef struct CalendarControllerPeer* Ark_CalendarController; typedef struct Opt_CalendarController Opt_CalendarController; @@ -1248,6 +1337,8 @@ typedef struct Ark_BadgeStyle Ark_BadgeStyle; typedef struct Opt_BadgeStyle Opt_BadgeStyle; typedef struct Ark_Union_BadgePosition_Position Ark_Union_BadgePosition_Position; typedef struct Opt_Union_BadgePosition_Position Opt_Union_BadgePosition_Position; +typedef struct Ark_AlphabetIndexerAttribute Ark_AlphabetIndexerAttribute; +typedef struct Opt_AlphabetIndexerAttribute Opt_AlphabetIndexerAttribute; typedef struct Ark_AlertDialogParamWithOptions Ark_AlertDialogParamWithOptions; typedef struct Opt_AlertDialogParamWithOptions Opt_AlertDialogParamWithOptions; typedef struct Ark_AlertDialogParamWithButtons Ark_AlertDialogParamWithButtons; @@ -1341,17 +1432,17 @@ typedef struct Callback_Array_String_Void Callback_Array_String_Void; typedef struct Opt_Callback_Array_String_Void Opt_Callback_Array_String_Void; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; typedef struct Opt_ButtonTriggerClickCallback Opt_ButtonTriggerClickCallback; -typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; -typedef struct GlobalScope_inspectorPeer* Ark_GlobalScope_inspector; -typedef struct Opt_GlobalScope_inspector Opt_GlobalScope_inspector; +typedef struct GlobalScopeinspectorPeer GlobalScopeinspectorPeer; +typedef struct GlobalScopeinspectorPeer* Ark_GlobalScopeinspector; +typedef struct Opt_GlobalScopeinspector Opt_GlobalScopeinspector; +typedef struct GlobalScope_Profiler_inspectorPeer GlobalScope_Profiler_inspectorPeer; +typedef struct GlobalScope_Profiler_inspectorPeer* Ark_GlobalScope_Profiler_inspector; +typedef struct Opt_GlobalScope_Profiler_inspector Opt_GlobalScope_Profiler_inspector; typedef struct LinearIndicatorControllerPeer LinearIndicatorControllerPeer; typedef struct LinearIndicatorControllerPeer* Ark_LinearIndicatorController; typedef struct Opt_LinearIndicatorController Opt_LinearIndicatorController; typedef struct Ark_ImageAttachmentInterface Ark_ImageAttachmentInterface; typedef struct Opt_ImageAttachmentInterface Opt_ImageAttachmentInterface; -typedef struct MutableStyledStringPeer MutableStyledStringPeer; -typedef struct MutableStyledStringPeer* Ark_MutableStyledString; -typedef struct Opt_MutableStyledString Opt_MutableStyledString; typedef struct UrlStylePeer UrlStylePeer; typedef struct UrlStylePeer* Ark_UrlStyle; typedef struct Opt_UrlStyle Opt_UrlStyle; @@ -1394,6 +1485,8 @@ typedef struct Array_StyleOptions Array_StyleOptions; typedef struct Opt_Array_StyleOptions Opt_Array_StyleOptions; typedef struct Ark_Union_String_ImageAttachment_CustomSpan Ark_Union_String_ImageAttachment_CustomSpan; typedef struct Opt_Union_String_ImageAttachment_CustomSpan Opt_Union_String_ImageAttachment_CustomSpan; +typedef struct Array_SpanStyle Array_SpanStyle; +typedef struct Opt_Array_SpanStyle Opt_Array_SpanStyle; typedef struct Ark_Literal_Number_code_Want_want Ark_Literal_Number_code_Want_want; typedef struct Opt_Literal_Number_code_Want_want Opt_Literal_Number_code_Want_want; typedef struct Callback_Literal_Number_code_Want_want_Void Callback_Literal_Number_code_Want_want_Void; @@ -1659,13 +1752,12 @@ typedef struct Ark_JavaScriptProxy Ark_JavaScriptProxy; typedef struct Opt_JavaScriptProxy Opt_JavaScriptProxy; typedef struct Ark_WebOptions Ark_WebOptions; typedef struct Opt_WebOptions Opt_WebOptions; -typedef struct WebCookiePeer WebCookiePeer; -typedef struct WebCookiePeer* Ark_WebCookie; -typedef struct Opt_WebCookie Opt_WebCookie; -typedef struct Ark_Header Ark_Header; -typedef struct Opt_Header Opt_Header; typedef struct Ark_Union_String_Number_Resource_Buffer Ark_Union_String_Number_Resource_Buffer; typedef struct Opt_Union_String_Number_Resource_Buffer Opt_Union_String_Number_Resource_Buffer; +typedef struct Ark_Union_String_Number_Buffer_Resource Ark_Union_String_Number_Buffer_Resource; +typedef struct Opt_Union_String_Number_Buffer_Resource Opt_Union_String_Number_Buffer_Resource; +typedef struct Ark_Header Ark_Header; +typedef struct Opt_Header Opt_Header; typedef struct Ark_PlaybackInfo Ark_PlaybackInfo; typedef struct Opt_PlaybackInfo Opt_PlaybackInfo; typedef struct Callback_PlaybackInfo_Void Callback_PlaybackInfo_Void; @@ -1720,9 +1812,10 @@ typedef struct Ark_TextInputOptions Ark_TextInputOptions; typedef struct Opt_TextInputOptions Opt_TextInputOptions; typedef struct Array_TextMenuItem Array_TextMenuItem; typedef struct Opt_Array_TextMenuItem Opt_Array_TextMenuItem; -typedef struct LayoutManagerPeer LayoutManagerPeer; -typedef struct LayoutManagerPeer* Ark_LayoutManager; -typedef struct Opt_LayoutManager Opt_LayoutManager; +typedef struct Ark_TextBox Ark_TextBox; +typedef struct Opt_TextBox Opt_TextBox; +typedef struct Array_TextBox Array_TextBox; +typedef struct Opt_Array_TextBox Opt_Array_TextBox; typedef struct StyledStringControllerPeer StyledStringControllerPeer; typedef struct StyledStringControllerPeer* Ark_StyledStringController; typedef struct Opt_StyledStringController Opt_StyledStringController; @@ -1860,8 +1953,6 @@ typedef struct OnContentScrollCallback OnContentScrollCallback; typedef struct Opt_OnContentScrollCallback Opt_OnContentScrollCallback; typedef struct OnTextSelectionChangeCallback OnTextSelectionChangeCallback; typedef struct Opt_OnTextSelectionChangeCallback Opt_OnTextSelectionChangeCallback; -typedef struct Ark_PreviewText Ark_PreviewText; -typedef struct Opt_PreviewText Opt_PreviewText; typedef struct EditableTextOnChangeCallback EditableTextOnChangeCallback; typedef struct Opt_EditableTextOnChangeCallback Opt_EditableTextOnChangeCallback; typedef struct SearchSubmitCallback SearchSubmitCallback; @@ -1944,12 +2035,22 @@ typedef struct Callback_RichEditorInsertValue_Boolean Callback_RichEditorInsertV typedef struct Opt_Callback_RichEditorInsertValue_Boolean Opt_Callback_RichEditorInsertValue_Boolean; typedef struct Callback_RichEditorRange_Void Callback_RichEditorRange_Void; typedef struct Opt_Callback_RichEditorRange_Void Opt_Callback_RichEditorRange_Void; -typedef struct Ark_RichEditorSelection Ark_RichEditorSelection; -typedef struct Opt_RichEditorSelection Opt_RichEditorSelection; typedef struct Callback_RichEditorSelection_Void Callback_RichEditorSelection_Void; typedef struct Opt_Callback_RichEditorSelection_Void Opt_Callback_RichEditorSelection_Void; typedef struct Ark_StyledStringChangeValue Ark_StyledStringChangeValue; typedef struct Opt_StyledStringChangeValue Opt_StyledStringChangeValue; +typedef struct Ark_RichEditorSpan Ark_RichEditorSpan; +typedef struct Opt_RichEditorSpan Opt_RichEditorSpan; +typedef struct Array_RichEditorSpan Array_RichEditorSpan; +typedef struct Opt_Array_RichEditorSpan Opt_Array_RichEditorSpan; +typedef struct Ark_RichEditorParagraphResult Ark_RichEditorParagraphResult; +typedef struct Opt_RichEditorParagraphResult Opt_RichEditorParagraphResult; +typedef struct Array_RichEditorParagraphResult Array_RichEditorParagraphResult; +typedef struct Opt_Array_RichEditorParagraphResult Opt_Array_RichEditorParagraphResult; +typedef struct Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; typedef struct Ark_Type_RichEditorController_updateSpanStyle_value Ark_Type_RichEditorController_updateSpanStyle_value; typedef struct Opt_Type_RichEditorController_updateSpanStyle_value Opt_Type_RichEditorController_updateSpanStyle_value; typedef struct Ark_Union_PixelMap_ResourceStr Ark_Union_PixelMap_ResourceStr; @@ -2025,6 +2126,8 @@ typedef struct NavigationTransitionProxyPeer* Ark_NavigationTransitionProxy; typedef struct Opt_NavigationTransitionProxy Opt_NavigationTransitionProxy; typedef struct Ark_Union_NavDestinationContext_NavBar Ark_Union_NavDestinationContext_NavBar; typedef struct Opt_Union_NavDestinationContext_NavBar Opt_Union_NavDestinationContext_NavBar; +typedef struct Array_CustomObject Array_CustomObject; +typedef struct Opt_Array_CustomObject Opt_Array_CustomObject; typedef struct Ark_RouteInfo Ark_RouteInfo; typedef struct Opt_RouteInfo Opt_RouteInfo; typedef struct Array_LayoutSafeAreaEdge Array_LayoutSafeAreaEdge; @@ -2077,8 +2180,6 @@ typedef struct Callback_Number_Number_Boolean Callback_Number_Number_Boolean; typedef struct Opt_Callback_Number_Number_Boolean Opt_Callback_Number_Number_Boolean; typedef struct Callback_Number_Boolean Callback_Number_Boolean; typedef struct Opt_Callback_Number_Boolean Opt_Callback_Number_Boolean; -typedef struct Ark_VisibleListContentInfo Ark_VisibleListContentInfo; -typedef struct Opt_VisibleListContentInfo Opt_VisibleListContentInfo; typedef struct OnScrollVisibleContentChangeCallback OnScrollVisibleContentChangeCallback; typedef struct Opt_OnScrollVisibleContentChangeCallback Opt_OnScrollVisibleContentChangeCallback; typedef struct Callback_Number_Number_Number_Void Callback_Number_Number_Number_Void; @@ -2157,17 +2258,11 @@ typedef struct Opt_GridLayoutOptions Opt_GridLayoutOptions; typedef struct PanRecognizerPeer PanRecognizerPeer; typedef struct PanRecognizerPeer* Ark_PanRecognizer; typedef struct Opt_PanRecognizer Opt_PanRecognizer; -typedef struct EventTargetInfoPeer EventTargetInfoPeer; -typedef struct EventTargetInfoPeer* Ark_EventTargetInfo; -typedef struct Opt_EventTargetInfo Opt_EventTargetInfo; typedef struct ScrollableTargetInfoPeer ScrollableTargetInfoPeer; typedef struct ScrollableTargetInfoPeer* Ark_ScrollableTargetInfo; typedef struct Opt_ScrollableTargetInfo Opt_ScrollableTargetInfo; typedef struct Ark_Literal_Number_distance_fingers_PanDirection_direction Ark_Literal_Number_distance_fingers_PanDirection_direction; typedef struct Opt_Literal_Number_distance_fingers_PanDirection_direction Opt_Literal_Number_distance_fingers_PanDirection_direction; -typedef struct PanGestureOptionsPeer PanGestureOptionsPeer; -typedef struct PanGestureOptionsPeer* Ark_PanGestureOptions; -typedef struct Opt_PanGestureOptions Opt_PanGestureOptions; typedef struct GestureEventPeer GestureEventPeer; typedef struct GestureEventPeer* Ark_GestureEvent; typedef struct Opt_GestureEvent Opt_GestureEvent; @@ -2256,11 +2351,15 @@ typedef struct ContextMenuPeer* Ark_ContextMenu; typedef struct Opt_ContextMenu Opt_ContextMenu; typedef struct Ark_SceneOptions Ark_SceneOptions; typedef struct Opt_SceneOptions Opt_SceneOptions; -typedef struct Array_CustomObject Array_CustomObject; -typedef struct Opt_Array_CustomObject Opt_Array_CustomObject; -typedef struct GlobalScope_commonPeer GlobalScope_commonPeer; -typedef struct GlobalScope_commonPeer* Ark_GlobalScope_common; -typedef struct Opt_GlobalScope_common Opt_GlobalScope_common; +typedef struct GlobalScopecommonPeer GlobalScopecommonPeer; +typedef struct GlobalScopecommonPeer* Ark_GlobalScopecommon; +typedef struct Opt_GlobalScopecommon Opt_GlobalScopecommon; +typedef struct GlobalScope_cursorControl_commonPeer GlobalScope_cursorControl_commonPeer; +typedef struct GlobalScope_cursorControl_commonPeer* Ark_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_cursorControl_common Opt_GlobalScope_cursorControl_common; +typedef struct GlobalScope_focusControl_commonPeer GlobalScope_focusControl_commonPeer; +typedef struct GlobalScope_focusControl_commonPeer* Ark_GlobalScope_focusControl_common; +typedef struct Opt_GlobalScope_focusControl_common Opt_GlobalScope_focusControl_common; typedef struct UICommonEventPeer UICommonEventPeer; typedef struct UICommonEventPeer* Ark_UICommonEvent; typedef struct Opt_UICommonEvent Opt_UICommonEvent; @@ -2274,8 +2373,6 @@ typedef struct Ark_Union_ContentClipMode_RectShape Ark_Union_ContentClipMode_Rec typedef struct Opt_Union_ContentClipMode_RectShape Opt_Union_ContentClipMode_RectShape; typedef struct ScrollOnScrollCallback ScrollOnScrollCallback; typedef struct Opt_ScrollOnScrollCallback Opt_ScrollOnScrollCallback; -typedef struct Ark_OffsetResult Ark_OffsetResult; -typedef struct Opt_OffsetResult Opt_OffsetResult; typedef struct Callback_Number_Number_Void Callback_Number_Number_Void; typedef struct Opt_Callback_Number_Number_Void Opt_Callback_Number_Number_Void; typedef struct TextContentControllerBasePeer TextContentControllerBasePeer; @@ -2455,8 +2552,10 @@ typedef struct Opt_DragEvent Opt_DragEvent; typedef struct PixelMapMockPeer PixelMapMockPeer; typedef struct PixelMapMockPeer* Ark_PixelMapMock; typedef struct Opt_PixelMapMock Opt_PixelMapMock; -typedef struct Ark_TouchObject Ark_TouchObject; -typedef struct Opt_TouchObject Opt_TouchObject; +typedef struct Ark_HistoricalPoint Ark_HistoricalPoint; +typedef struct Opt_HistoricalPoint Opt_HistoricalPoint; +typedef struct Array_HistoricalPoint Array_HistoricalPoint; +typedef struct Opt_Array_HistoricalPoint Opt_Array_HistoricalPoint; typedef struct AccessibilityHoverEventPeer AccessibilityHoverEventPeer; typedef struct AccessibilityHoverEventPeer* Ark_AccessibilityHoverEvent; typedef struct Opt_AccessibilityHoverEvent Opt_AccessibilityHoverEvent; @@ -2491,14 +2590,14 @@ typedef struct Ark_CheckboxOptions Ark_CheckboxOptions; typedef struct Opt_CheckboxOptions Opt_CheckboxOptions; typedef struct Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext; typedef struct Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext; +typedef struct OffscreenCanvasPeer OffscreenCanvasPeer; +typedef struct OffscreenCanvasPeer* Ark_OffscreenCanvas; +typedef struct Opt_OffscreenCanvas Opt_OffscreenCanvas; typedef struct Ark_Union_ImageBitmap_PixelMap Ark_Union_ImageBitmap_PixelMap; typedef struct Opt_Union_ImageBitmap_PixelMap Opt_Union_ImageBitmap_PixelMap; typedef struct CanvasRendererPeer CanvasRendererPeer; typedef struct CanvasRendererPeer* Ark_CanvasRenderer; typedef struct Opt_CanvasRenderer Opt_CanvasRenderer; -typedef struct RenderingContextSettingsPeer RenderingContextSettingsPeer; -typedef struct RenderingContextSettingsPeer* Ark_RenderingContextSettings; -typedef struct Opt_RenderingContextSettings Opt_RenderingContextSettings; typedef struct Ark_LengthMetricsUnit Ark_LengthMetricsUnit; typedef struct Opt_LengthMetricsUnit Opt_LengthMetricsUnit; typedef struct CanvasPathPeer CanvasPathPeer; @@ -2589,6 +2688,9 @@ typedef struct Ark_WebHeader Ark_WebHeader; typedef struct Opt_WebHeader Opt_WebHeader; typedef struct Array_WebHeader Array_WebHeader; typedef struct Opt_Array_WebHeader Opt_Array_WebHeader; +typedef struct SystemOpsPeer SystemOpsPeer; +typedef struct SystemOpsPeer* Ark_SystemOps; +typedef struct Opt_SystemOps Opt_SystemOps; typedef struct LazyForEachOpsPeer LazyForEachOpsPeer; typedef struct LazyForEachOpsPeer* Ark_LazyForEachOps; typedef struct Opt_LazyForEachOps Opt_LazyForEachOps; @@ -3171,6 +3273,16 @@ typedef struct Opt_BarStyle { Ark_Tag tag; Ark_BarStyle value; } Opt_BarStyle; +typedef enum Ark_ListItemGroupArea { + ARK_LIST_ITEM_GROUP_AREA_NONE = 0, + ARK_LIST_ITEM_GROUP_AREA_IN_LIST_ITEM_AREA = 1, + ARK_LIST_ITEM_GROUP_AREA_IN_HEADER_AREA = 2, + ARK_LIST_ITEM_GROUP_AREA_IN_FOOTER_AREA = 3, +} Ark_ListItemGroupArea; +typedef struct Opt_ListItemGroupArea { + Ark_Tag tag; + Ark_ListItemGroupArea value; +} Opt_ListItemGroupArea; typedef enum Ark_BreakpointsReference { ARK_BREAKPOINTS_REFERENCE_WINDOW_SIZE = 0, ARK_BREAKPOINTS_REFERENCE_COMPONENT_SIZE = 1, @@ -3443,6 +3555,70 @@ typedef struct Opt_RenderMode { Ark_Tag tag; Ark_RenderMode value; } Opt_RenderMode; +typedef enum Ark_HitTestType { + ARK_HIT_TEST_TYPE_EDIT_TEXT = 0, + ARK_HIT_TEST_TYPE_EMAIL = 1, + ARK_HIT_TEST_TYPE_HTTP_ANCHOR = 2, + ARK_HIT_TEST_TYPE_HTTP_ANCHOR_IMG = 3, + ARK_HIT_TEST_TYPE_IMG = 4, + ARK_HIT_TEST_TYPE_MAP = 5, + ARK_HIT_TEST_TYPE_PHONE = 6, + ARK_HIT_TEST_TYPE_UNKNOWN = 7, +} Ark_HitTestType; +typedef struct Opt_HitTestType { + Ark_Tag tag; + Ark_HitTestType value; +} Opt_HitTestType; +typedef enum Ark_MessageLevel { + ARK_MESSAGE_LEVEL_DEBUG = 0, + ARK_MESSAGE_LEVEL_ERROR = 1, + ARK_MESSAGE_LEVEL_INFO = 2, + ARK_MESSAGE_LEVEL_LOG = 3, + ARK_MESSAGE_LEVEL_WARN = 4, +} Ark_MessageLevel; +typedef struct Opt_MessageLevel { + Ark_Tag tag; + Ark_MessageLevel value; +} Opt_MessageLevel; +typedef enum Ark_ContextMenuInputFieldType { + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NONE = 0, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PLAIN_TEXT = 1, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PASSWORD = 2, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NUMBER = 3, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_TELEPHONE = 4, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_OTHER = 5, +} Ark_ContextMenuInputFieldType; +typedef struct Opt_ContextMenuInputFieldType { + Ark_Tag tag; + Ark_ContextMenuInputFieldType value; +} Opt_ContextMenuInputFieldType; +typedef enum Ark_ContextMenuSourceType { + ARK_CONTEXT_MENU_SOURCE_TYPE_NONE = 0, + ARK_CONTEXT_MENU_SOURCE_TYPE_MOUSE = 1, + ARK_CONTEXT_MENU_SOURCE_TYPE_LONG_PRESS = 2, +} Ark_ContextMenuSourceType; +typedef struct Opt_ContextMenuSourceType { + Ark_Tag tag; + Ark_ContextMenuSourceType value; +} Opt_ContextMenuSourceType; +typedef enum Ark_ContextMenuMediaType { + ARK_CONTEXT_MENU_MEDIA_TYPE_NONE = 0, + ARK_CONTEXT_MENU_MEDIA_TYPE_IMAGE = 1, +} Ark_ContextMenuMediaType; +typedef struct Opt_ContextMenuMediaType { + Ark_Tag tag; + Ark_ContextMenuMediaType value; +} Opt_ContextMenuMediaType; +typedef enum Ark_FileSelectorMode { + ARK_FILE_SELECTOR_MODE_FILE_OPEN_MODE = 0, + ARK_FILE_SELECTOR_MODE_FILE_OPEN_MULTIPLE_MODE = 1, + ARK_FILE_SELECTOR_MODE_FILE_OPEN_FOLDER_MODE = 2, + ARK_FILE_SELECTOR_MODE_FILE_SAVE_MODE = 3, +} Ark_FileSelectorMode; +typedef struct Opt_FileSelectorMode { + Ark_Tag tag; + Ark_FileSelectorMode value; +} Opt_FileSelectorMode; typedef enum Ark_SeekMode { ARK_SEEK_MODE_PREVIOUS_KEYFRAME = 0, ARK_SEEK_MODE_NEXT_KEYFRAME = 1, @@ -3885,16 +4061,6 @@ typedef struct Opt_ListItemStyle { Ark_Tag tag; Ark_ListItemStyle value; } Opt_ListItemStyle; -typedef enum Ark_ListItemGroupArea { - ARK_LIST_ITEM_GROUP_AREA_NONE = 0, - ARK_LIST_ITEM_GROUP_AREA_IN_LIST_ITEM_AREA = 1, - ARK_LIST_ITEM_GROUP_AREA_IN_HEADER_AREA = 2, - ARK_LIST_ITEM_GROUP_AREA_IN_FOOTER_AREA = 3, -} Ark_ListItemGroupArea; -typedef struct Opt_ListItemGroupArea { - Ark_Tag tag; - Ark_ListItemGroupArea value; -} Opt_ListItemGroupArea; typedef enum Ark_ChainEdgeEffect { ARK_CHAIN_EDGE_EFFECT_DEFAULT = 0, ARK_CHAIN_EDGE_EFFECT_STRETCH = 1, @@ -3945,6 +4111,32 @@ typedef struct Opt_GridItemAlignment { Ark_Tag tag; Ark_GridItemAlignment value; } Opt_GridItemAlignment; +typedef enum Ark_GestureRecognizerState { + ARK_GESTURE_RECOGNIZER_STATE_READY = 0, + ARK_GESTURE_RECOGNIZER_STATE_DETECTING = 1, + ARK_GESTURE_RECOGNIZER_STATE_PENDING = 2, + ARK_GESTURE_RECOGNIZER_STATE_BLOCKED = 3, + ARK_GESTURE_RECOGNIZER_STATE_SUCCESSFUL = 4, + ARK_GESTURE_RECOGNIZER_STATE_FAILED = 5, +} Ark_GestureRecognizerState; +typedef struct Opt_GestureRecognizerState { + Ark_Tag tag; + Ark_GestureRecognizerState value; +} Opt_GestureRecognizerState; +typedef enum Ark_GestureControl_GestureType { + ARK_GESTURE_CONTROL_GESTURE_TYPE_TAP_GESTURE = 0, + ARK_GESTURE_CONTROL_GESTURE_TYPE_LONG_PRESS_GESTURE = 1, + ARK_GESTURE_CONTROL_GESTURE_TYPE_PAN_GESTURE = 2, + ARK_GESTURE_CONTROL_GESTURE_TYPE_PINCH_GESTURE = 3, + ARK_GESTURE_CONTROL_GESTURE_TYPE_SWIPE_GESTURE = 4, + ARK_GESTURE_CONTROL_GESTURE_TYPE_ROTATION_GESTURE = 5, + ARK_GESTURE_CONTROL_GESTURE_TYPE_DRAG = 6, + ARK_GESTURE_CONTROL_GESTURE_TYPE_CLICK = 7, +} Ark_GestureControl_GestureType; +typedef struct Opt_GestureControl_GestureType { + Ark_Tag tag; + Ark_GestureControl_GestureType value; +} Opt_GestureControl_GestureType; typedef enum Ark_PanDirection { ARK_PAN_DIRECTION_NONE = 0, ARK_PAN_DIRECTION_HORIZONTAL = 1, @@ -4256,20 +4448,6 @@ typedef struct Opt_ImageRepeat { Ark_Tag tag; Ark_ImageRepeat value; } Opt_ImageRepeat; -typedef enum Ark_GestureControl_GestureType { - ARK_GESTURE_CONTROL_GESTURE_TYPE_TAP_GESTURE = 0, - ARK_GESTURE_CONTROL_GESTURE_TYPE_LONG_PRESS_GESTURE = 1, - ARK_GESTURE_CONTROL_GESTURE_TYPE_PAN_GESTURE = 2, - ARK_GESTURE_CONTROL_GESTURE_TYPE_PINCH_GESTURE = 3, - ARK_GESTURE_CONTROL_GESTURE_TYPE_SWIPE_GESTURE = 4, - ARK_GESTURE_CONTROL_GESTURE_TYPE_ROTATION_GESTURE = 5, - ARK_GESTURE_CONTROL_GESTURE_TYPE_DRAG = 6, - ARK_GESTURE_CONTROL_GESTURE_TYPE_CLICK = 7, -} Ark_GestureControl_GestureType; -typedef struct Opt_GestureControl_GestureType { - Ark_Tag tag; - Ark_GestureControl_GestureType value; -} Opt_GestureControl_GestureType; typedef enum Ark_RepeatMode { ARK_REPEAT_MODE_REPEAT = 0, ARK_REPEAT_MODE_STRETCH = 1, @@ -4499,35 +4677,6 @@ typedef struct Opt_ContextMenuEditStateFlags { Ark_Tag tag; Ark_ContextMenuEditStateFlags value; } Opt_ContextMenuEditStateFlags; -typedef enum Ark_ContextMenuInputFieldType { - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NONE = 0, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PLAIN_TEXT = 1, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PASSWORD = 2, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NUMBER = 3, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_TELEPHONE = 4, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_OTHER = 5, -} Ark_ContextMenuInputFieldType; -typedef struct Opt_ContextMenuInputFieldType { - Ark_Tag tag; - Ark_ContextMenuInputFieldType value; -} Opt_ContextMenuInputFieldType; -typedef enum Ark_ContextMenuMediaType { - ARK_CONTEXT_MENU_MEDIA_TYPE_NONE = 0, - ARK_CONTEXT_MENU_MEDIA_TYPE_IMAGE = 1, -} Ark_ContextMenuMediaType; -typedef struct Opt_ContextMenuMediaType { - Ark_Tag tag; - Ark_ContextMenuMediaType value; -} Opt_ContextMenuMediaType; -typedef enum Ark_ContextMenuSourceType { - ARK_CONTEXT_MENU_SOURCE_TYPE_NONE = 0, - ARK_CONTEXT_MENU_SOURCE_TYPE_MOUSE = 1, - ARK_CONTEXT_MENU_SOURCE_TYPE_LONG_PRESS = 2, -} Ark_ContextMenuSourceType; -typedef struct Opt_ContextMenuSourceType { - Ark_Tag tag; - Ark_ContextMenuSourceType value; -} Opt_ContextMenuSourceType; typedef enum Ark_ProtectedResourceType { ARK_PROTECTED_RESOURCE_TYPE_MIDI_SYSEX, ARK_PROTECTED_RESOURCE_TYPE_VIDEO_CAPTURE, @@ -4546,16 +4695,6 @@ typedef struct Opt_WebLayoutMode { Ark_Tag tag; Ark_WebLayoutMode value; } Opt_WebLayoutMode; -typedef enum Ark_FileSelectorMode { - ARK_FILE_SELECTOR_MODE_FILE_OPEN_MODE = 0, - ARK_FILE_SELECTOR_MODE_FILE_OPEN_MULTIPLE_MODE = 1, - ARK_FILE_SELECTOR_MODE_FILE_OPEN_FOLDER_MODE = 2, - ARK_FILE_SELECTOR_MODE_FILE_SAVE_MODE = 3, -} Ark_FileSelectorMode; -typedef struct Opt_FileSelectorMode { - Ark_Tag tag; - Ark_FileSelectorMode value; -} Opt_FileSelectorMode; typedef enum Ark_ThreatType { ARK_THREAT_TYPE_THREAT_ILLEGAL = 0, ARK_THREAT_TYPE_THREAT_FRAUD = 1, @@ -4593,20 +4732,6 @@ typedef struct Opt_CacheMode { Ark_Tag tag; Ark_CacheMode value; } Opt_CacheMode; -typedef enum Ark_HitTestType { - ARK_HIT_TEST_TYPE_EDIT_TEXT = 0, - ARK_HIT_TEST_TYPE_EMAIL = 1, - ARK_HIT_TEST_TYPE_HTTP_ANCHOR = 2, - ARK_HIT_TEST_TYPE_HTTP_ANCHOR_IMG = 3, - ARK_HIT_TEST_TYPE_IMG = 4, - ARK_HIT_TEST_TYPE_MAP = 5, - ARK_HIT_TEST_TYPE_PHONE = 6, - ARK_HIT_TEST_TYPE_UNKNOWN = 7, -} Ark_HitTestType; -typedef struct Opt_HitTestType { - Ark_Tag tag; - Ark_HitTestType value; -} Opt_HitTestType; typedef enum Ark_MixedMode { ARK_MIXED_MODE_ALL = 0, ARK_MIXED_MODE_COMPATIBLE = 1, @@ -4616,17 +4741,6 @@ typedef struct Opt_MixedMode { Ark_Tag tag; Ark_MixedMode value; } Opt_MixedMode; -typedef enum Ark_MessageLevel { - ARK_MESSAGE_LEVEL_DEBUG = 0, - ARK_MESSAGE_LEVEL_ERROR = 1, - ARK_MESSAGE_LEVEL_INFO = 2, - ARK_MESSAGE_LEVEL_LOG = 3, - ARK_MESSAGE_LEVEL_WARN = 4, -} Ark_MessageLevel; -typedef struct Opt_MessageLevel { - Ark_Tag tag; - Ark_MessageLevel value; -} Opt_MessageLevel; typedef enum Ark_InputType { ARK_INPUT_TYPE_NORMAL = 0, ARK_INPUT_TYPE_NUMBER = 1, @@ -5084,18 +5198,6 @@ typedef struct Opt_GridDirection { Ark_Tag tag; Ark_GridDirection value; } Opt_GridDirection; -typedef enum Ark_GestureRecognizerState { - ARK_GESTURE_RECOGNIZER_STATE_READY = 0, - ARK_GESTURE_RECOGNIZER_STATE_DETECTING = 1, - ARK_GESTURE_RECOGNIZER_STATE_PENDING = 2, - ARK_GESTURE_RECOGNIZER_STATE_BLOCKED = 3, - ARK_GESTURE_RECOGNIZER_STATE_SUCCESSFUL = 4, - ARK_GESTURE_RECOGNIZER_STATE_FAILED = 5, -} Ark_GestureRecognizerState; -typedef struct Opt_GestureRecognizerState { - Ark_Tag tag; - Ark_GestureRecognizerState value; -} Opt_GestureRecognizerState; typedef enum Ark_GesturePriority { ARK_GESTURE_PRIORITY_NORMAL = 0, ARK_GESTURE_PRIORITY_PRIORITY = 1, @@ -5449,6 +5551,10 @@ typedef struct Opt_Length { Ark_Tag tag; Ark_Length value; } Opt_Length; +typedef struct Opt_Boolean { + Ark_Tag tag; + Ark_Boolean value; +} Opt_Boolean; typedef struct Ark_Resource { Ark_String bundleName; Ark_String moduleName; @@ -5496,10 +5602,6 @@ typedef struct Opt_PixelMap { Ark_Tag tag; Ark_PixelMap value; } Opt_PixelMap; -typedef struct Opt_Boolean { - Ark_Tag tag; - Ark_Boolean value; -} Opt_Boolean; typedef struct Ark_Union_Number_Resource { Ark_Int32 selector; union { @@ -6420,6 +6522,13 @@ typedef struct Opt_TextMenuItemId { Ark_Tag tag; Ark_TextMenuItemId value; } Opt_TextMenuItemId; +typedef struct Ark_Affinity { + Ark_String _AffinityStub; +} Ark_Affinity; +typedef struct Opt_Affinity { + Ark_Tag tag; + Ark_Affinity value; +} Opt_Affinity; typedef struct MenuOnAppearCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number start, const Ark_Number end); @@ -6644,6 +6753,14 @@ typedef struct Opt_Callback_StyledStringChangeValue_Boolean { Ark_Tag tag; Callback_StyledStringChangeValue_Boolean value; } Opt_Callback_StyledStringChangeValue_Boolean; +typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { + Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* array; + Ark_Int32 length; +} Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; +typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { + Ark_Tag tag; + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value; +} Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_RichEditorImageSpanStyle { Opt_Tuple_Dimension_Dimension size; Opt_ImageSpanAlignment verticalAlign; @@ -7482,6 +7599,14 @@ typedef struct Opt_DrawContext { Ark_Tag tag; Ark_DrawContext value; } Opt_DrawContext; +typedef struct Ark_CustomSpanMetrics { + Ark_Number width; + Opt_Number height; +} Ark_CustomSpanMetrics; +typedef struct Opt_CustomSpanMetrics { + Ark_Tag tag; + Ark_CustomSpanMetrics value; +} Opt_CustomSpanMetrics; typedef struct Ark_CustomSpanMeasureInfo { Ark_Number fontSize; } Ark_CustomSpanMeasureInfo; @@ -7555,6 +7680,13 @@ typedef struct Opt_Callback_UIExtensionProxy_Void { Ark_Tag tag; Callback_UIExtensionProxy_Void value; } Opt_Callback_UIExtensionProxy_Void; +typedef struct Ark_WaterFlowAttribute { + void *handle; +} Ark_WaterFlowAttribute; +typedef struct Opt_WaterFlowAttribute { + Ark_Tag tag; + Ark_WaterFlowAttribute value; +} Opt_WaterFlowAttribute; typedef struct Opt_WaterFlowSections { Ark_Tag tag; Ark_WaterFlowSections value; @@ -7649,6 +7781,20 @@ typedef struct Opt_Literal_Number_surfaceHeight_surfaceWidth { Ark_Tag tag; Ark_Literal_Number_surfaceHeight_surfaceWidth value; } Opt_Literal_Number_surfaceHeight_surfaceWidth; +typedef struct Ark_WindowSceneAttribute { + void *handle; +} Ark_WindowSceneAttribute; +typedef struct Opt_WindowSceneAttribute { + Ark_Tag tag; + Ark_WindowSceneAttribute value; +} Opt_WindowSceneAttribute; +typedef struct Ark_WebAttribute { + void *handle; +} Ark_WebAttribute; +typedef struct Opt_WebAttribute { + Ark_Tag tag; + Ark_WebAttribute value; +} Opt_WebAttribute; typedef struct Ark_SelectionMenuOptionsExt { Opt_Callback_Void onAppear; Opt_Callback_Void onDisappear; @@ -7815,6 +7961,10 @@ typedef struct Opt_Union_WebController_WebviewController { Ark_Tag tag; Ark_Union_WebController_WebviewController value; } Opt_Union_WebController_WebviewController; +typedef struct Opt_WebCookie { + Ark_Tag tag; + Ark_WebCookie value; +} Opt_WebCookie; typedef struct Ark_Literal_Object_object__String_name_Array_String_methodList { Ark_CustomObject object_; Ark_String name; @@ -7976,6 +8126,13 @@ typedef struct Opt_Callback_ResourceStr_Void { Ark_Tag tag; Callback_ResourceStr_Void value; } Opt_Callback_ResourceStr_Void; +typedef struct Ark_TextInputAttribute { + void *handle; +} Ark_TextInputAttribute; +typedef struct Opt_TextInputAttribute { + Ark_Tag tag; + Ark_TextInputAttribute value; +} Opt_TextInputAttribute; typedef struct Ark_InputCounterOptions { Opt_Number thresholdPercentage; Opt_Boolean highlightBorder; @@ -8029,14 +8186,59 @@ typedef struct Opt_TextMenuItem { Ark_Tag tag; Ark_TextMenuItem value; } Opt_TextMenuItem; +typedef struct Ark_LineMetrics { + Ark_String _LineMetricsStub; +} Ark_LineMetrics; +typedef struct Opt_LineMetrics { + Ark_Tag tag; + Ark_LineMetrics value; +} Opt_LineMetrics; +typedef struct Ark_PositionWithAffinity { + Ark_Number position; + Ark_Affinity affinity; +} Ark_PositionWithAffinity; +typedef struct Opt_PositionWithAffinity { + Ark_Tag tag; + Ark_PositionWithAffinity value; +} Opt_PositionWithAffinity; +typedef struct Opt_MutableStyledString { + Ark_Tag tag; + Ark_MutableStyledString value; +} Opt_MutableStyledString; +typedef struct Ark_PreviewText { + Ark_Number offset; + Ark_String value; +} Ark_PreviewText; +typedef struct Opt_PreviewText { + Ark_Tag tag; + Ark_PreviewText value; +} Opt_PreviewText; +typedef struct Opt_LayoutManager { + Ark_Tag tag; + Ark_LayoutManager value; +} Opt_LayoutManager; typedef struct Opt_TextClockController { Ark_Tag tag; Ark_TextClockController value; } Opt_TextClockController; +typedef struct Ark_TextAreaAttribute { + void *handle; +} Ark_TextAreaAttribute; +typedef struct Opt_TextAreaAttribute { + Ark_Tag tag; + Ark_TextAreaAttribute value; +} Opt_TextAreaAttribute; typedef struct Opt_TextAreaController { Ark_Tag tag; Ark_TextAreaController value; } Opt_TextAreaController; +typedef struct Ark_TextAttribute { + void *handle; +} Ark_TextAttribute; +typedef struct Opt_TextAttribute { + Ark_Tag tag; + Ark_TextAttribute value; +} Opt_TextAttribute; typedef struct Ark_SelectionMenuOptions { Opt_MenuOnAppearCallback onAppear; Opt_Callback_Void onDisappear; @@ -8093,6 +8295,13 @@ typedef struct Opt_TabBarOptions { Ark_Tag tag; Ark_TabBarOptions value; } Opt_TabBarOptions; +typedef struct Ark_TabsAttribute { + void *handle; +} Ark_TabsAttribute; +typedef struct Opt_TabsAttribute { + Ark_Tag tag; + Ark_TabsAttribute value; +} Opt_TabsAttribute; typedef struct Ark_BackgroundBlurStyleOptions { Opt_ThemeColorMode colorMode; Opt_AdaptiveColor adaptiveColor; @@ -8125,6 +8334,13 @@ typedef struct Opt_TabsController { Ark_Tag tag; Ark_TabsController value; } Opt_TabsController; +typedef struct Ark_SymbolGlyphAttribute { + void *handle; +} Ark_SymbolGlyphAttribute; +typedef struct Opt_SymbolGlyphAttribute { + Ark_Tag tag; + Ark_SymbolGlyphAttribute value; +} Opt_SymbolGlyphAttribute; typedef struct Ark_SymbolEffect { void *handle; } Ark_SymbolEffect; @@ -8168,6 +8384,13 @@ typedef struct Opt_DotIndicator { Ark_Tag tag; Ark_DotIndicator value; } Opt_DotIndicator; +typedef struct Ark_SwiperAttribute { + void *handle; +} Ark_SwiperAttribute; +typedef struct Opt_SwiperAttribute { + Ark_Tag tag; + Ark_SwiperAttribute value; +} Opt_SwiperAttribute; typedef struct Ark_SwiperAutoFill { Ark_VP minSize; } Ark_SwiperAutoFill; @@ -8196,6 +8419,20 @@ typedef struct Opt_Callback_SwiperContentTransitionProxy_Void { Ark_Tag tag; Callback_SwiperContentTransitionProxy_Void value; } Opt_Callback_SwiperContentTransitionProxy_Void; +typedef struct Ark_SliderAttribute { + void *handle; +} Ark_SliderAttribute; +typedef struct Opt_SliderAttribute { + Ark_Tag tag; + Ark_SliderAttribute value; +} Opt_SliderAttribute; +typedef struct Ark_ShapeAttribute { + void *handle; +} Ark_ShapeAttribute; +typedef struct Opt_ShapeAttribute { + Ark_Tag tag; + Ark_ShapeAttribute value; +} Opt_ShapeAttribute; typedef struct Callback_Union_Number_Resource_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Union_Number_Resource selected); @@ -8205,6 +8442,13 @@ typedef struct Opt_Callback_Union_Number_Resource_Void { Ark_Tag tag; Callback_Union_Number_Resource_Void value; } Opt_Callback_Union_Number_Resource_Void; +typedef struct Ark_SelectAttribute { + void *handle; +} Ark_SelectAttribute; +typedef struct Opt_SelectAttribute { + Ark_Tag tag; + Ark_SelectAttribute value; +} Opt_SelectAttribute; typedef struct Ark_LocalizedEdges { Opt_LengthMetrics top; Opt_LengthMetrics start; @@ -8225,6 +8469,13 @@ typedef struct Opt_Edges { Ark_Tag tag; Ark_Edges value; } Opt_Edges; +typedef struct Ark_SearchAttribute { + void *handle; +} Ark_SearchAttribute; +typedef struct Opt_SearchAttribute { + Ark_Tag tag; + Ark_SearchAttribute value; +} Opt_SearchAttribute; typedef struct Ark_SearchButtonOptions { Opt_Length fontSize; Opt_ResourceColor fontColor; @@ -8254,6 +8505,13 @@ typedef struct Opt_SearchController { Ark_Tag tag; Ark_SearchController value; } Opt_SearchController; +typedef struct Ark_ScrollAttribute { + void *handle; +} Ark_ScrollAttribute; +typedef struct Opt_ScrollAttribute { + Ark_Tag tag; + Ark_ScrollAttribute value; +} Opt_ScrollAttribute; typedef struct Ark_EdgeEffectOptions { Ark_Boolean alwaysEnabled; } Ark_EdgeEffectOptions; @@ -8279,8 +8537,18 @@ typedef struct ScrollOnWillScrollCallback { } ScrollOnWillScrollCallback; typedef struct Opt_ScrollOnWillScrollCallback { Ark_Tag tag; - ScrollOnWillScrollCallback value; -} Opt_ScrollOnWillScrollCallback; + ScrollOnWillScrollCallback value; +} Opt_ScrollOnWillScrollCallback; +typedef struct Ark_RectResult { + Ark_Number x; + Ark_Number y; + Ark_Number width; + Ark_Number height; +} Ark_RectResult; +typedef struct Opt_RectResult { + Ark_Tag tag; + Ark_RectResult value; +} Opt_RectResult; typedef struct Ark_ScrollToIndexOptions { Opt_LengthMetrics extraOffset; } Ark_ScrollToIndexOptions; @@ -8288,6 +8556,14 @@ typedef struct Opt_ScrollToIndexOptions { Ark_Tag tag; Ark_ScrollToIndexOptions value; } Opt_ScrollToIndexOptions; +typedef struct Ark_OffsetResult { + Ark_Number xOffset; + Ark_Number yOffset; +} Ark_OffsetResult; +typedef struct Opt_OffsetResult { + Ark_Tag tag; + Ark_OffsetResult value; +} Opt_OffsetResult; typedef struct Ark_Literal_Boolean_next_Axis_direction { Ark_Boolean next; Opt_Axis direction; @@ -8339,6 +8615,13 @@ typedef struct Opt_RichEditorController { Ark_Tag tag; Ark_RichEditorController value; } Opt_RichEditorController; +typedef struct Ark_RichEditorAttribute { + void *handle; +} Ark_RichEditorAttribute; +typedef struct Opt_RichEditorAttribute { + Ark_Tag tag; + Ark_RichEditorAttribute value; +} Opt_RichEditorAttribute; typedef struct Ark_PlaceholderStyle { Opt_Font font; Opt_ResourceColor fontColor; @@ -8396,14 +8679,6 @@ typedef struct Opt_RichEditorTextSpanResult { Ark_Tag tag; Ark_RichEditorTextSpanResult value; } Opt_RichEditorTextSpanResult; -typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { - Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* array; - Ark_Int32 length; -} Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; -typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { - Ark_Tag tag; - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value; -} Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_StyledStringChangedListener { Opt_Callback_StyledStringChangeValue_Boolean onWillChange; Opt_OnDidChangeCallback onDidChange; @@ -8420,6 +8695,14 @@ typedef struct Opt_RichEditorRange { Ark_Tag tag; Ark_RichEditorRange value; } Opt_RichEditorRange; +typedef struct Ark_RichEditorSelection { + Ark_Tuple_Number_Number selection; + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans; +} Ark_RichEditorSelection; +typedef struct Opt_RichEditorSelection { + Ark_Tag tag; + Ark_RichEditorSelection value; +} Opt_RichEditorSelection; typedef struct Ark_RichEditorParagraphStyleOptions { Opt_Number start; Opt_Number end; @@ -8617,6 +8900,13 @@ typedef struct Opt_NavigationOptions { Ark_Tag tag; Ark_NavigationOptions value; } Opt_NavigationOptions; +typedef struct Ark_NavDestinationAttribute { + void *handle; +} Ark_NavDestinationAttribute; +typedef struct Opt_NavDestinationAttribute { + Ark_Tag tag; + Ark_NavDestinationAttribute value; +} Opt_NavDestinationAttribute; typedef struct Ark_NavigationToolbarOptions { Opt_ResourceColor backgroundColor; Opt_BlurStyle backgroundBlurStyle; @@ -8679,6 +8969,15 @@ typedef struct Opt_Array_NavigationMenuItem { Ark_Tag tag; Array_NavigationMenuItem value; } Opt_Array_NavigationMenuItem; +typedef struct Ark_RouteMapConfig { + Ark_String name; + Ark_String pageSourceFile; + Ark_CustomObject data; +} Ark_RouteMapConfig; +typedef struct Opt_RouteMapConfig { + Ark_Tag tag; + Ark_RouteMapConfig value; +} Opt_RouteMapConfig; typedef struct Ark_Union_ResourceStr_CustomBuilder { Ark_Int32 selector; union { @@ -8753,6 +9052,13 @@ typedef struct Opt_Union_CustomBuilder_SwipeActionItem { Ark_Tag tag; Ark_Union_CustomBuilder_SwipeActionItem value; } Opt_Union_CustomBuilder_SwipeActionItem; +typedef struct Ark_ListAttribute { + void *handle; +} Ark_ListAttribute; +typedef struct Opt_ListAttribute { + Ark_Tag tag; + Ark_ListAttribute value; +} Opt_ListAttribute; typedef struct Ark_LengthConstrain { Ark_Length minLength; Ark_Length maxLength; @@ -8761,6 +9067,15 @@ typedef struct Opt_LengthConstrain { Ark_Tag tag; Ark_LengthConstrain value; } Opt_LengthConstrain; +typedef struct Ark_VisibleListContentInfo { + Ark_Number index; + Opt_ListItemGroupArea itemGroupArea; + Opt_Number itemIndexInGroup; +} Ark_VisibleListContentInfo; +typedef struct Opt_VisibleListContentInfo { + Ark_Tag tag; + Ark_VisibleListContentInfo value; +} Opt_VisibleListContentInfo; typedef struct Ark_CloseSwipeActionOptions { Opt_Callback_Void onFinish; } Ark_CloseSwipeActionOptions; @@ -8832,6 +9147,13 @@ typedef struct Opt_Union_Number_GridColColumnOption { Ark_Tag tag; Ark_Union_Number_GridColColumnOption value; } Opt_Union_Number_GridColColumnOption; +typedef struct Ark_GridAttribute { + void *handle; +} Ark_GridAttribute; +typedef struct Opt_GridAttribute { + Ark_Tag tag; + Ark_GridAttribute value; +} Opt_GridAttribute; typedef struct Callback_Number_Tuple_Number_Number_Number_Number { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number index, const Callback_Tuple_Number_Number_Number_Number_Void continuation); @@ -8850,6 +9172,14 @@ typedef struct Opt_Callback_Number_Tuple_Number_Number { Ark_Tag tag; Callback_Number_Tuple_Number_Number value; } Opt_Callback_Number_Tuple_Number_Number; +typedef struct Opt_PanGestureOptions { + Ark_Tag tag; + Ark_PanGestureOptions value; +} Opt_PanGestureOptions; +typedef struct Opt_EventTargetInfo { + Ark_Tag tag; + Ark_EventTargetInfo value; +} Opt_EventTargetInfo; typedef struct Array_FingerInfo { Ark_FingerInfo* array; Ark_Int32 length; @@ -8974,6 +9304,13 @@ typedef struct Opt_AnimateParam { Ark_Tag tag; Ark_AnimateParam value; } Opt_AnimateParam; +typedef struct Ark_Component3DAttribute { + void *handle; +} Ark_Component3DAttribute; +typedef struct Opt_Component3DAttribute { + Ark_Tag tag; + Ark_Component3DAttribute value; +} Opt_Component3DAttribute; typedef struct Ark_Union_ResourceStr_Scene { Ark_Int32 selector; union { @@ -8985,6 +9322,13 @@ typedef struct Opt_Union_ResourceStr_Scene { Ark_Tag tag; Ark_Union_ResourceStr_Scene value; } Opt_Union_ResourceStr_Scene; +typedef struct Ark_Context { + Ark_String _ContextStub; +} Ark_Context; +typedef struct Opt_Context { + Ark_Tag tag; + Ark_Context value; +} Opt_Context; typedef struct Ark_UIGestureEvent { void *handle; } Ark_UIGestureEvent; @@ -9077,6 +9421,33 @@ typedef struct Opt_RectShape { Ark_Tag tag; Ark_RectShape value; } Opt_RectShape; +typedef struct Ark_CaretOffset { + Ark_Number index; + Ark_Number x; + Ark_Number y; +} Ark_CaretOffset; +typedef struct Opt_CaretOffset { + Ark_Tag tag; + Ark_CaretOffset value; +} Opt_CaretOffset; +typedef struct Ark_DirectionalEdgesT { + Ark_Number start; + Ark_Number end; + Ark_Number top; + Ark_Number bottom; +} Ark_DirectionalEdgesT; +typedef struct Opt_DirectionalEdgesT { + Ark_Tag tag; + Ark_DirectionalEdgesT value; +} Opt_DirectionalEdgesT; +typedef struct Ark_MeasureResult { + Ark_Number width; + Ark_Number height; +} Ark_MeasureResult; +typedef struct Opt_MeasureResult { + Ark_Tag tag; + Ark_MeasureResult value; +} Opt_MeasureResult; typedef struct Ark_ConstraintSizeOptions { Opt_Length minWidth; Opt_Length maxWidth; @@ -9632,16 +10003,6 @@ typedef struct Opt_DrawingLattice { Ark_Tag tag; Ark_DrawingLattice value; } Opt_DrawingLattice; -typedef struct Ark_RectResult { - Ark_Number x; - Ark_Number y; - Ark_Number width; - Ark_Number height; -} Ark_RectResult; -typedef struct Opt_RectResult { - Ark_Tag tag; - Ark_RectResult value; -} Opt_RectResult; typedef struct Array_Rectangle { Ark_Rectangle* array; Ark_Int32 length; @@ -9661,10 +10022,33 @@ typedef struct Opt_IntentionCode { Ark_Tag tag; Ark_IntentionCode value; } Opt_IntentionCode; +typedef struct Ark_Summary { + Ark_String _SummaryStub; +} Ark_Summary; +typedef struct Opt_Summary { + Ark_Tag tag; + Ark_Summary value; +} Opt_Summary; typedef struct Opt_UnifiedData { Ark_Tag tag; Ark_UnifiedData value; } Opt_UnifiedData; +typedef struct Ark_TouchObject { + Ark_TouchType type; + Ark_Number id; + Ark_Number displayX; + Ark_Number displayY; + Ark_Number windowX; + Ark_Number windowY; + Ark_Number screenX; + Ark_Number screenY; + Ark_Number x; + Ark_Number y; +} Ark_TouchObject; +typedef struct Opt_TouchObject { + Ark_Tag tag; + Ark_TouchObject value; +} Opt_TouchObject; typedef struct Ark_Literal_TransitionEffect_appear_disappear { Ark_TransitionEffect appear; Ark_TransitionEffect disappear; @@ -9704,10 +10088,37 @@ typedef struct Opt_CanvasRenderingContext2D { Ark_Tag tag; Ark_CanvasRenderingContext2D value; } Opt_CanvasRenderingContext2D; +typedef struct Opt_OffscreenCanvasRenderingContext2D { + Ark_Tag tag; + Ark_OffscreenCanvasRenderingContext2D value; +} Opt_OffscreenCanvasRenderingContext2D; +typedef struct Opt_RenderingContextSettings { + Ark_Tag tag; + Ark_RenderingContextSettings value; +} Opt_RenderingContextSettings; typedef struct Opt_ImageBitmap { Ark_Tag tag; Ark_ImageBitmap value; } Opt_ImageBitmap; +typedef struct Ark_TextMetrics { + Ark_Number actualBoundingBoxAscent; + Ark_Number actualBoundingBoxDescent; + Ark_Number actualBoundingBoxLeft; + Ark_Number actualBoundingBoxRight; + Ark_Number alphabeticBaseline; + Ark_Number emHeightAscent; + Ark_Number emHeightDescent; + Ark_Number fontBoundingBoxAscent; + Ark_Number fontBoundingBoxDescent; + Ark_Number hangingBaseline; + Ark_Number ideographicBaseline; + Ark_Number width; + Ark_Number height; +} Ark_TextMetrics; +typedef struct Opt_TextMetrics { + Ark_Tag tag; + Ark_TextMetrics value; +} Opt_TextMetrics; typedef struct Opt_ImageData { Ark_Tag tag; Ark_ImageData value; @@ -9738,6 +10149,13 @@ typedef struct Opt_CalendarDialogOptions { Ark_Tag tag; Ark_CalendarDialogOptions value; } Opt_CalendarDialogOptions; +typedef struct Ark_CalendarPickerAttribute { + void *handle; +} Ark_CalendarPickerAttribute; +typedef struct Opt_CalendarPickerAttribute { + Ark_Tag tag; + Ark_CalendarPickerAttribute value; +} Opt_CalendarPickerAttribute; typedef struct Opt_CalendarController { Ark_Tag tag; Ark_CalendarController value; @@ -9784,6 +10202,13 @@ typedef struct Opt_Union_BadgePosition_Position { Ark_Tag tag; Ark_Union_BadgePosition_Position value; } Opt_Union_BadgePosition_Position; +typedef struct Ark_AlphabetIndexerAttribute { + void *handle; +} Ark_AlphabetIndexerAttribute; +typedef struct Opt_AlphabetIndexerAttribute { + Ark_Tag tag; + Ark_AlphabetIndexerAttribute value; +} Opt_AlphabetIndexerAttribute; typedef struct Ark_AlertDialogParamWithOptions { Opt_ResourceStr title; Opt_ResourceStr subtitle; @@ -10284,10 +10709,14 @@ typedef struct Opt_ButtonTriggerClickCallback { Ark_Tag tag; ButtonTriggerClickCallback value; } Opt_ButtonTriggerClickCallback; -typedef struct Opt_GlobalScope_inspector { +typedef struct Opt_GlobalScopeinspector { Ark_Tag tag; - Ark_GlobalScope_inspector value; -} Opt_GlobalScope_inspector; + Ark_GlobalScopeinspector value; +} Opt_GlobalScopeinspector; +typedef struct Opt_GlobalScope_Profiler_inspector { + Ark_Tag tag; + Ark_GlobalScope_Profiler_inspector value; +} Opt_GlobalScope_Profiler_inspector; typedef struct Opt_LinearIndicatorController { Ark_Tag tag; Ark_LinearIndicatorController value; @@ -10303,10 +10732,6 @@ typedef struct Opt_ImageAttachmentInterface { Ark_Tag tag; Ark_ImageAttachmentInterface value; } Opt_ImageAttachmentInterface; -typedef struct Opt_MutableStyledString { - Ark_Tag tag; - Ark_MutableStyledString value; -} Opt_MutableStyledString; typedef struct Opt_UrlStyle { Ark_Tag tag; Ark_UrlStyle value; @@ -10408,6 +10833,14 @@ typedef struct Opt_Union_String_ImageAttachment_CustomSpan { Ark_Tag tag; Ark_Union_String_ImageAttachment_CustomSpan value; } Opt_Union_String_ImageAttachment_CustomSpan; +typedef struct Array_SpanStyle { + Ark_SpanStyle* array; + Ark_Int32 length; +} Array_SpanStyle; +typedef struct Opt_Array_SpanStyle { + Ark_Tag tag; + Array_SpanStyle value; +} Opt_Array_SpanStyle; typedef struct Ark_Literal_Number_code_Want_want { Ark_Number code; Opt_Want want; @@ -11557,18 +11990,6 @@ typedef struct Opt_WebOptions { Ark_Tag tag; Ark_WebOptions value; } Opt_WebOptions; -typedef struct Opt_WebCookie { - Ark_Tag tag; - Ark_WebCookie value; -} Opt_WebCookie; -typedef struct Ark_Header { - Ark_String headerKey; - Ark_String headerValue; -} Ark_Header; -typedef struct Opt_Header { - Ark_Tag tag; - Ark_Header value; -} Opt_Header; typedef struct Ark_Union_String_Number_Resource_Buffer { Ark_Int32 selector; union { @@ -11582,6 +12003,27 @@ typedef struct Opt_Union_String_Number_Resource_Buffer { Ark_Tag tag; Ark_Union_String_Number_Resource_Buffer value; } Opt_Union_String_Number_Resource_Buffer; +typedef struct Ark_Union_String_Number_Buffer_Resource { + Ark_Int32 selector; + union { + Ark_String value0; + Ark_Number value1; + Ark_Buffer value2; + Ark_Resource value3; + }; +} Ark_Union_String_Number_Buffer_Resource; +typedef struct Opt_Union_String_Number_Buffer_Resource { + Ark_Tag tag; + Ark_Union_String_Number_Buffer_Resource value; +} Opt_Union_String_Number_Buffer_Resource; +typedef struct Ark_Header { + Ark_String headerKey; + Ark_String headerValue; +} Ark_Header; +typedef struct Opt_Header { + Ark_Tag tag; + Ark_Header value; +} Opt_Header; typedef struct Ark_PlaybackInfo { Ark_Number time; } Ark_PlaybackInfo; @@ -11800,10 +12242,21 @@ typedef struct Opt_Array_TextMenuItem { Ark_Tag tag; Array_TextMenuItem value; } Opt_Array_TextMenuItem; -typedef struct Opt_LayoutManager { +typedef struct Ark_TextBox { + Ark_String _TextBoxStub; +} Ark_TextBox; +typedef struct Opt_TextBox { + Ark_Tag tag; + Ark_TextBox value; +} Opt_TextBox; +typedef struct Array_TextBox { + Ark_TextBox* array; + Ark_Int32 length; +} Array_TextBox; +typedef struct Opt_Array_TextBox { Ark_Tag tag; - Ark_LayoutManager value; -} Opt_LayoutManager; + Array_TextBox value; +} Opt_Array_TextBox; typedef struct Opt_StyledStringController { Ark_Tag tag; Ark_StyledStringController value; @@ -12312,14 +12765,6 @@ typedef struct Opt_OnTextSelectionChangeCallback { Ark_Tag tag; OnTextSelectionChangeCallback value; } Opt_OnTextSelectionChangeCallback; -typedef struct Ark_PreviewText { - Ark_Number offset; - Ark_String value; -} Ark_PreviewText; -typedef struct Opt_PreviewText { - Ark_Tag tag; - Ark_PreviewText value; -} Opt_PreviewText; typedef struct EditableTextOnChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_String value, const Opt_PreviewText previewText); @@ -12668,14 +13113,6 @@ typedef struct Opt_Callback_RichEditorRange_Void { Ark_Tag tag; Callback_RichEditorRange_Void value; } Opt_Callback_RichEditorRange_Void; -typedef struct Ark_RichEditorSelection { - Ark_Tuple_Number_Number selection; - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans; -} Ark_RichEditorSelection; -typedef struct Opt_RichEditorSelection { - Ark_Tag tag; - Ark_RichEditorSelection value; -} Opt_RichEditorSelection; typedef struct Callback_RichEditorSelection_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_RichEditorSelection parameter); @@ -12694,6 +13131,60 @@ typedef struct Opt_StyledStringChangeValue { Ark_Tag tag; Ark_StyledStringChangeValue value; } Opt_StyledStringChangeValue; +typedef struct Ark_RichEditorSpan { + Ark_Int32 selector; + union { + Ark_RichEditorImageSpanResult value0; + Ark_RichEditorTextSpanResult value1; + }; +} Ark_RichEditorSpan; +typedef struct Opt_RichEditorSpan { + Ark_Tag tag; + Ark_RichEditorSpan value; +} Opt_RichEditorSpan; +typedef struct Array_RichEditorSpan { + Ark_RichEditorSpan* array; + Ark_Int32 length; +} Array_RichEditorSpan; +typedef struct Opt_Array_RichEditorSpan { + Ark_Tag tag; + Array_RichEditorSpan value; +} Opt_Array_RichEditorSpan; +typedef struct Ark_RichEditorParagraphResult { + Ark_RichEditorParagraphStyle style; + Ark_Tuple_Number_Number range; +} Ark_RichEditorParagraphResult; +typedef struct Opt_RichEditorParagraphResult { + Ark_Tag tag; + Ark_RichEditorParagraphResult value; +} Opt_RichEditorParagraphResult; +typedef struct Array_RichEditorParagraphResult { + Ark_RichEditorParagraphResult* array; + Ark_Int32 length; +} Array_RichEditorParagraphResult; +typedef struct Opt_Array_RichEditorParagraphResult { + Ark_Tag tag; + Array_RichEditorParagraphResult value; +} Opt_Array_RichEditorParagraphResult; +typedef struct Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Int32 selector; + union { + Ark_RichEditorImageSpanResult value0; + Ark_RichEditorTextSpanResult value1; + }; +} Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Tag tag; + Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult value; +} Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* array; + Ark_Int32 length; +} Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Tag tag; + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult value; +} Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; typedef struct Ark_Type_RichEditorController_updateSpanStyle_value { Ark_Int32 selector; union { @@ -13010,6 +13501,14 @@ typedef struct Opt_Union_NavDestinationContext_NavBar { Ark_Tag tag; Ark_Union_NavDestinationContext_NavBar value; } Opt_Union_NavDestinationContext_NavBar; +typedef struct Array_CustomObject { + Ark_CustomObject* array; + Ark_Int32 length; +} Array_CustomObject; +typedef struct Opt_Array_CustomObject { + Ark_Tag tag; + Array_CustomObject value; +} Opt_Array_CustomObject; typedef struct Ark_RouteInfo { Ark_String name; Opt_CustomObject param; @@ -13274,15 +13773,6 @@ typedef struct Opt_Callback_Number_Boolean { Ark_Tag tag; Callback_Number_Boolean value; } Opt_Callback_Number_Boolean; -typedef struct Ark_VisibleListContentInfo { - Ark_Number index; - Opt_ListItemGroupArea itemGroupArea; - Opt_Number itemIndexInGroup; -} Ark_VisibleListContentInfo; -typedef struct Opt_VisibleListContentInfo { - Ark_Tag tag; - Ark_VisibleListContentInfo value; -} Opt_VisibleListContentInfo; typedef struct OnScrollVisibleContentChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_VisibleListContentInfo start, const Ark_VisibleListContentInfo end); @@ -13642,10 +14132,6 @@ typedef struct Opt_PanRecognizer { Ark_Tag tag; Ark_PanRecognizer value; } Opt_PanRecognizer; -typedef struct Opt_EventTargetInfo { - Ark_Tag tag; - Ark_EventTargetInfo value; -} Opt_EventTargetInfo; typedef struct Opt_ScrollableTargetInfo { Ark_Tag tag; Ark_ScrollableTargetInfo value; @@ -13659,10 +14145,6 @@ typedef struct Opt_Literal_Number_distance_fingers_PanDirection_direction { Ark_Tag tag; Ark_Literal_Number_distance_fingers_PanDirection_direction value; } Opt_Literal_Number_distance_fingers_PanDirection_direction; -typedef struct Opt_PanGestureOptions { - Ark_Tag tag; - Ark_PanGestureOptions value; -} Opt_PanGestureOptions; typedef struct Opt_GestureEvent { Ark_Tag tag; Ark_GestureEvent value; @@ -13992,18 +14474,18 @@ typedef struct Opt_SceneOptions { Ark_Tag tag; Ark_SceneOptions value; } Opt_SceneOptions; -typedef struct Array_CustomObject { - Ark_CustomObject* array; - Ark_Int32 length; -} Array_CustomObject; -typedef struct Opt_Array_CustomObject { +typedef struct Opt_GlobalScopecommon { Ark_Tag tag; - Array_CustomObject value; -} Opt_Array_CustomObject; -typedef struct Opt_GlobalScope_common { + Ark_GlobalScopecommon value; +} Opt_GlobalScopecommon; +typedef struct Opt_GlobalScope_cursorControl_common { + Ark_Tag tag; + Ark_GlobalScope_cursorControl_common value; +} Opt_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_focusControl_common { Ark_Tag tag; - Ark_GlobalScope_common value; -} Opt_GlobalScope_common; + Ark_GlobalScope_focusControl_common value; +} Opt_GlobalScope_focusControl_common; typedef struct Opt_UICommonEvent { Ark_Tag tag; Ark_UICommonEvent value; @@ -14036,14 +14518,6 @@ typedef struct Opt_ScrollOnScrollCallback { Ark_Tag tag; ScrollOnScrollCallback value; } Opt_ScrollOnScrollCallback; -typedef struct Ark_OffsetResult { - Ark_Number xOffset; - Ark_Number yOffset; -} Ark_OffsetResult; -typedef struct Opt_OffsetResult { - Ark_Tag tag; - Ark_OffsetResult value; -} Opt_OffsetResult; typedef struct Callback_Number_Number_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number first, const Ark_Number last); @@ -14827,22 +15301,24 @@ typedef struct Opt_PixelMapMock { Ark_Tag tag; Ark_PixelMapMock value; } Opt_PixelMapMock; -typedef struct Ark_TouchObject { - Ark_TouchType type; - Ark_Number id; - Ark_Number displayX; - Ark_Number displayY; - Ark_Number windowX; - Ark_Number windowY; - Ark_Number screenX; - Ark_Number screenY; - Ark_Number x; - Ark_Number y; -} Ark_TouchObject; -typedef struct Opt_TouchObject { +typedef struct Ark_HistoricalPoint { + Ark_TouchObject touchObject; + Ark_Number size; + Ark_Number force; + Ark_Number timestamp; +} Ark_HistoricalPoint; +typedef struct Opt_HistoricalPoint { + Ark_Tag tag; + Ark_HistoricalPoint value; +} Opt_HistoricalPoint; +typedef struct Array_HistoricalPoint { + Ark_HistoricalPoint* array; + Ark_Int32 length; +} Array_HistoricalPoint; +typedef struct Opt_Array_HistoricalPoint { Ark_Tag tag; - Ark_TouchObject value; -} Opt_TouchObject; + Array_HistoricalPoint value; +} Opt_Array_HistoricalPoint; typedef struct Opt_AccessibilityHoverEvent { Ark_Tag tag; Ark_AccessibilityHoverEvent value; @@ -14959,6 +15435,10 @@ typedef struct Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext { Ark_Tag tag; Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext value; } Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext; +typedef struct Opt_OffscreenCanvas { + Ark_Tag tag; + Ark_OffscreenCanvas value; +} Opt_OffscreenCanvas; typedef struct Ark_Union_ImageBitmap_PixelMap { Ark_Int32 selector; union { @@ -14974,10 +15454,6 @@ typedef struct Opt_CanvasRenderer { Ark_Tag tag; Ark_CanvasRenderer value; } Opt_CanvasRenderer; -typedef struct Opt_RenderingContextSettings { - Ark_Tag tag; - Ark_RenderingContextSettings value; -} Opt_RenderingContextSettings; typedef struct Ark_LengthMetricsUnit { Ark_String _LengthMetricsUnitStub; } Ark_LengthMetricsUnit; @@ -15313,6 +15789,10 @@ typedef struct Opt_Array_WebHeader { Ark_Tag tag; Array_WebHeader value; } Opt_Array_WebHeader; +typedef struct Opt_SystemOps { + Ark_Tag tag; + Ark_SystemOps value; +} Opt_SystemOps; typedef struct Opt_LazyForEachOps { Ark_Tag tag; Ark_LazyForEachOps value; @@ -18837,7 +19317,7 @@ typedef struct GENERATED_ArkUILinearIndicatorModifier { // Accessors typedef struct GENERATED_ArkUIAnimationExtenderAccessor { - void (*destroyPeer)(AnimationExtenderPeer* peer); + void (*destroyPeer)(Ark_AnimationExtender peer); Ark_AnimationExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*SetClipRect)(Ark_NativePointer node, @@ -18854,16 +19334,16 @@ typedef struct GENERATED_ArkUIAnimationExtenderAccessor { } GENERATED_ArkUIAnimationExtenderAccessor; typedef struct GENERATED_ArkUIUnifiedDataAccessor { - void (*destroyPeer)(UnifiedDataPeer* peer); + void (*destroyPeer)(Ark_UnifiedData peer); Ark_UnifiedData (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*hasType)(UnifiedDataPeer* peer, + Ark_Boolean (*hasType)(Ark_UnifiedData peer, const Ark_String* UnifiedData_type); - void (*getTypes)(UnifiedDataPeer* peer); + Array_String (*getTypes)(Ark_UnifiedData peer); } GENERATED_ArkUIUnifiedDataAccessor; typedef struct GENERATED_ArkUILazyForEachOpsAccessor { - void (*destroyPeer)(LazyForEachOpsPeer* peer); + void (*destroyPeer)(Ark_LazyForEachOps peer); Ark_LazyForEachOps (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*NeedMoreElements)(Ark_NativePointer node, @@ -18877,11 +19357,19 @@ typedef struct GENERATED_ArkUILazyForEachOpsAccessor { void (*Prepare)(Ark_NativePointer node); } GENERATED_ArkUILazyForEachOpsAccessor; +typedef struct GENERATED_ArkUISystemOpsAccessor { + void (*destroyPeer)(Ark_SystemOps peer); + Ark_SystemOps (*ctor)(); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*StartFrame)(); + void (*EndFrame)(Ark_NativePointer root); +} GENERATED_ArkUISystemOpsAccessor; + typedef struct GENERATED_ArkUIDrawingCanvasAccessor { - void (*destroyPeer)(DrawingCanvasPeer* peer); + void (*destroyPeer)(Ark_DrawingCanvas peer); Ark_DrawingCanvas (*ctor)(Ark_PixelMap pixelmap); Ark_NativePointer (*getFinalizer)(); - void (*drawRect)(DrawingCanvasPeer* peer, + void (*drawRect)(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -18889,31 +19377,31 @@ typedef struct GENERATED_ArkUIDrawingCanvasAccessor { } GENERATED_ArkUIDrawingCanvasAccessor; typedef struct GENERATED_ArkUILengthMetricsAccessor { - void (*destroyPeer)(LengthMetricsPeer* peer); + void (*destroyPeer)(Ark_LengthMetrics peer); Ark_LengthMetrics (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_LengthMetrics (*px)(const Ark_Number* value); Ark_LengthMetrics (*resource)(const Ark_Resource* value); - Ark_NativePointer (*getUnit)(LengthMetricsPeer* peer); - void (*setUnit)(LengthMetricsPeer* peer, + Ark_LengthUnit (*getUnit)(Ark_LengthMetrics peer); + void (*setUnit)(Ark_LengthMetrics peer, Ark_LengthUnit unit); - Ark_Int32 (*getValue)(LengthMetricsPeer* peer); - void (*setValue)(LengthMetricsPeer* peer, + Ark_Int32 (*getValue)(Ark_LengthMetrics peer); + void (*setValue)(Ark_LengthMetrics peer, const Ark_Number* value); } GENERATED_ArkUILengthMetricsAccessor; typedef struct GENERATED_ArkUIWebviewControllerAccessor { - void (*destroyPeer)(WebviewControllerPeer* peer); + void (*destroyPeer)(Ark_WebviewController peer); Ark_WebviewController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*initializeWebEngine)(); - void (*loadUrl)(WebviewControllerPeer* peer, + void (*loadUrl)(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers); } GENERATED_ArkUIWebviewControllerAccessor; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor { - void (*destroyPeer)(GlobalScope_ohos_arkui_componentSnapshotPeer* peer); + void (*destroyPeer)(Ark_GlobalScope_ohos_arkui_componentSnapshot peer); Ark_GlobalScope_ohos_arkui_componentSnapshot (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*get)(const Ark_String* id, @@ -18922,7 +19410,7 @@ typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor { } GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor { - void (*destroyPeer)(GlobalScope_ohos_arkui_performanceMonitorPeer* peer); + void (*destroyPeer)(Ark_GlobalScope_ohos_arkui_performanceMonitor peer); Ark_GlobalScope_ohos_arkui_performanceMonitor (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*begin)(const Ark_String* scene, @@ -18935,48 +19423,44 @@ typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor } GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor; typedef struct GENERATED_ArkUIFrameNodeAccessor { - void (*destroyPeer)(FrameNodePeer* peer); + void (*destroyPeer)(Ark_FrameNode peer); Ark_FrameNode (*ctor)(const Ark_UIContext* uiContext); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isModifiable)(FrameNodePeer* peer); - void (*appendChild)(FrameNodePeer* peer, + Ark_Boolean (*isModifiable)(Ark_FrameNode peer); + void (*appendChild)(Ark_FrameNode peer, Ark_FrameNode node); - void (*insertChildAfter)(FrameNodePeer* peer, + void (*insertChildAfter)(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling); - void (*removeChild)(FrameNodePeer* peer, + void (*removeChild)(Ark_FrameNode peer, Ark_FrameNode node); - void (*clearChildren)(FrameNodePeer* peer); - Ark_FrameNode (*getChild)(FrameNodePeer* peer, + void (*clearChildren)(Ark_FrameNode peer); + Ark_FrameNode (*getChild)(Ark_FrameNode peer, const Ark_Number* index); - Ark_FrameNode (*getFirstChild)(FrameNodePeer* peer); - Ark_FrameNode (*getNextSibling)(FrameNodePeer* peer); - Ark_FrameNode (*getPreviousSibling)(FrameNodePeer* peer); - Ark_FrameNode (*getParent)(FrameNodePeer* peer); - Ark_Int32 (*getChildrenCount)(FrameNodePeer* peer); - void (*dispose)(FrameNodePeer* peer); - Ark_Int32 (*getOpacity)(FrameNodePeer* peer); - Ark_NativePointer (*getPositionToWindowWithTransform)(FrameNodePeer* peer); + Ark_FrameNode (*getFirstChild)(Ark_FrameNode peer); + Ark_FrameNode (*getNextSibling)(Ark_FrameNode peer); + Ark_FrameNode (*getPreviousSibling)(Ark_FrameNode peer); + Ark_FrameNode (*getParent)(Ark_FrameNode peer); + Ark_Int32 (*getChildrenCount)(Ark_FrameNode peer); + void (*dispose)(Ark_FrameNode peer); + Ark_Int32 (*getOpacity)(Ark_FrameNode peer); + Ark_Position (*getPositionToWindowWithTransform)(Ark_FrameNode peer); } GENERATED_ArkUIFrameNodeAccessor; typedef struct GENERATED_ArkUIPixelMapAccessor { - void (*destroyPeer)(PixelMapPeer* peer); + void (*destroyPeer)(Ark_PixelMap peer); Ark_PixelMap (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*readPixelsToBufferSync)(PixelMapPeer* peer, + void (*readPixelsToBufferSync)(Ark_PixelMap peer, const Ark_Buffer* dst); - void (*writeBufferToPixels)(PixelMapPeer* peer, + void (*writeBufferToPixels)(Ark_PixelMap peer, const Ark_Buffer* src); - Ark_Int32 (*getIsEditable)(PixelMapPeer* peer); - void (*setIsEditable)(PixelMapPeer* peer, - Ark_Int32 isEditable); - Ark_Int32 (*getIsStrideAlignment)(PixelMapPeer* peer); - void (*setIsStrideAlignment)(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment); + Ark_Boolean (*getIsEditable)(Ark_PixelMap peer); + Ark_Boolean (*getIsStrideAlignment)(Ark_PixelMap peer); } GENERATED_ArkUIPixelMapAccessor; typedef struct GENERATED_ArkUINavExtenderAccessor { - void (*destroyPeer)(NavExtenderPeer* peer); + void (*destroyPeer)(Ark_NavExtender peer); Ark_NavExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setUpdateStackCallback)(Ark_NavPathStack peer, @@ -18984,7 +19468,7 @@ typedef struct GENERATED_ArkUINavExtenderAccessor { } GENERATED_ArkUINavExtenderAccessor; typedef struct GENERATED_ArkUIEventEmulatorAccessor { - void (*destroyPeer)(EventEmulatorPeer* peer); + void (*destroyPeer)(Ark_EventEmulator peer); Ark_EventEmulator (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*emitClickEvent)(Ark_NativePointer node, @@ -18994,21 +19478,21 @@ typedef struct GENERATED_ArkUIEventEmulatorAccessor { } GENERATED_ArkUIEventEmulatorAccessor; typedef struct GENERATED_ArkUIActionSheetAccessor { - void (*destroyPeer)(ActionSheetPeer* peer); + void (*destroyPeer)(Ark_ActionSheet peer); Ark_ActionSheet (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_ActionSheetOptions* value); } GENERATED_ArkUIActionSheetAccessor; typedef struct GENERATED_ArkUIAlertDialogAccessor { - void (*destroyPeer)(AlertDialogPeer* peer); + void (*destroyPeer)(Ark_AlertDialog peer); Ark_AlertDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_Type_AlertDialog_show_value* value); } GENERATED_ArkUIAlertDialogAccessor; typedef struct GENERATED_ArkUISpringPropAccessor { - void (*destroyPeer)(SpringPropPeer* peer); + void (*destroyPeer)(Ark_SpringProp peer); Ark_SpringProp (*ctor)(const Ark_Number* mass, const Ark_Number* stiffness, const Ark_Number* damping); @@ -19016,7 +19500,7 @@ typedef struct GENERATED_ArkUISpringPropAccessor { } GENERATED_ArkUISpringPropAccessor; typedef struct GENERATED_ArkUISpringMotionAccessor { - void (*destroyPeer)(SpringMotionPeer* peer); + void (*destroyPeer)(Ark_SpringMotion peer); Ark_SpringMotion (*ctor)(const Ark_Number* start, const Ark_Number* end, const Ark_Number* velocity, @@ -19025,7 +19509,7 @@ typedef struct GENERATED_ArkUISpringMotionAccessor { } GENERATED_ArkUISpringMotionAccessor; typedef struct GENERATED_ArkUIFrictionMotionAccessor { - void (*destroyPeer)(FrictionMotionPeer* peer); + void (*destroyPeer)(Ark_FrictionMotion peer); Ark_FrictionMotion (*ctor)(const Ark_Number* friction, const Ark_Number* position, const Ark_Number* velocity); @@ -19033,7 +19517,7 @@ typedef struct GENERATED_ArkUIFrictionMotionAccessor { } GENERATED_ArkUIFrictionMotionAccessor; typedef struct GENERATED_ArkUIScrollMotionAccessor { - void (*destroyPeer)(ScrollMotionPeer* peer); + void (*destroyPeer)(Ark_ScrollMotion peer); Ark_ScrollMotion (*ctor)(const Ark_Number* position, const Ark_Number* velocity, const Ark_Number* min, @@ -19043,56 +19527,56 @@ typedef struct GENERATED_ArkUIScrollMotionAccessor { } GENERATED_ArkUIScrollMotionAccessor; typedef struct GENERATED_ArkUICalendarControllerAccessor { - void (*destroyPeer)(CalendarControllerPeer* peer); + void (*destroyPeer)(Ark_CalendarController peer); Ark_CalendarController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*backToToday)(CalendarControllerPeer* peer); - void (*goTo)(CalendarControllerPeer* peer, + void (*backToToday)(Ark_CalendarController peer); + void (*goTo)(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value); } GENERATED_ArkUICalendarControllerAccessor; typedef struct GENERATED_ArkUICalendarPickerDialogAccessor { - void (*destroyPeer)(CalendarPickerDialogPeer* peer); + void (*destroyPeer)(Ark_CalendarPickerDialog peer); Ark_CalendarPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_CalendarDialogOptions* options); } GENERATED_ArkUICalendarPickerDialogAccessor; typedef struct GENERATED_ArkUICanvasGradientAccessor { - void (*destroyPeer)(CanvasGradientPeer* peer); + void (*destroyPeer)(Ark_CanvasGradient peer); Ark_CanvasGradient (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*addColorStop)(CanvasGradientPeer* peer, + void (*addColorStop)(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color); } GENERATED_ArkUICanvasGradientAccessor; typedef struct GENERATED_ArkUICanvasPathAccessor { - void (*destroyPeer)(CanvasPathPeer* peer); + void (*destroyPeer)(Ark_CanvasPath peer); Ark_CanvasPath (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*arc)(CanvasPathPeer* peer, + void (*arc)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, const Ark_Number* startAngle, const Ark_Number* endAngle, const Opt_Boolean* counterclockwise); - void (*arcTo)(CanvasPathPeer* peer, + void (*arcTo)(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, const Ark_Number* y2, const Ark_Number* radius); - void (*bezierCurveTo)(CanvasPathPeer* peer, + void (*bezierCurveTo)(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, const Ark_Number* cp2y, const Ark_Number* x, const Ark_Number* y); - void (*closePath)(CanvasPathPeer* peer); - void (*ellipse)(CanvasPathPeer* peer, + void (*closePath)(Ark_CanvasPath peer); + void (*ellipse)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -19101,18 +19585,18 @@ typedef struct GENERATED_ArkUICanvasPathAccessor { const Ark_Number* startAngle, const Ark_Number* endAngle, const Opt_Boolean* counterclockwise); - void (*lineTo)(CanvasPathPeer* peer, + void (*lineTo)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y); - void (*moveTo)(CanvasPathPeer* peer, + void (*moveTo)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y); - void (*quadraticCurveTo)(CanvasPathPeer* peer, + void (*quadraticCurveTo)(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, const Ark_Number* y); - void (*rect)(CanvasPathPeer* peer, + void (*rect)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -19120,65 +19604,65 @@ typedef struct GENERATED_ArkUICanvasPathAccessor { } GENERATED_ArkUICanvasPathAccessor; typedef struct GENERATED_ArkUIPath2DAccessor { - void (*destroyPeer)(Path2DPeer* peer); + void (*destroyPeer)(Ark_Path2D peer); Ark_Path2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*addPath)(Path2DPeer* peer, + void (*addPath)(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform); } GENERATED_ArkUIPath2DAccessor; typedef struct GENERATED_ArkUICanvasPatternAccessor { - void (*destroyPeer)(CanvasPatternPeer* peer); + void (*destroyPeer)(Ark_CanvasPattern peer); Ark_CanvasPattern (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setTransform)(CanvasPatternPeer* peer, + void (*setTransform)(Ark_CanvasPattern peer, const Opt_Matrix2D* transform); } GENERATED_ArkUICanvasPatternAccessor; typedef struct GENERATED_ArkUIImageBitmapAccessor { - void (*destroyPeer)(ImageBitmapPeer* peer); + void (*destroyPeer)(Ark_ImageBitmap peer); Ark_ImageBitmap (*ctor)(const Ark_String* src); Ark_NativePointer (*getFinalizer)(); - void (*close)(ImageBitmapPeer* peer); - Ark_Int32 (*getHeight)(ImageBitmapPeer* peer); - Ark_Int32 (*getWidth)(ImageBitmapPeer* peer); + void (*close)(Ark_ImageBitmap peer); + Ark_Int32 (*getHeight)(Ark_ImageBitmap peer); + Ark_Int32 (*getWidth)(Ark_ImageBitmap peer); } GENERATED_ArkUIImageBitmapAccessor; typedef struct GENERATED_ArkUIImageDataAccessor { - void (*destroyPeer)(ImageDataPeer* peer); + void (*destroyPeer)(Ark_ImageData peer); Ark_ImageData (*ctor)(const Ark_Number* width, const Ark_Number* height, const Opt_Buffer* data); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getHeight)(ImageDataPeer* peer); - Ark_Int32 (*getWidth)(ImageDataPeer* peer); + Ark_Int32 (*getHeight)(Ark_ImageData peer); + Ark_Int32 (*getWidth)(Ark_ImageData peer); } GENERATED_ArkUIImageDataAccessor; typedef struct GENERATED_ArkUIRenderingContextSettingsAccessor { - void (*destroyPeer)(RenderingContextSettingsPeer* peer); + void (*destroyPeer)(Ark_RenderingContextSettings peer); Ark_RenderingContextSettings (*ctor)(const Opt_Boolean* antialias); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getAntialias)(RenderingContextSettingsPeer* peer); - void (*setAntialias)(RenderingContextSettingsPeer* peer, + Ark_Boolean (*getAntialias)(Ark_RenderingContextSettings peer); + void (*setAntialias)(Ark_RenderingContextSettings peer, Ark_Boolean antialias); } GENERATED_ArkUIRenderingContextSettingsAccessor; typedef struct GENERATED_ArkUICanvasRendererAccessor { - void (*destroyPeer)(CanvasRendererPeer* peer); + void (*destroyPeer)(Ark_CanvasRenderer peer); Ark_CanvasRenderer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*drawImage0)(CanvasRendererPeer* peer, + void (*drawImage0)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy); - void (*drawImage1)(CanvasRendererPeer* peer, + void (*drawImage1)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, const Ark_Number* dw, const Ark_Number* dh); - void (*drawImage2)(CanvasRendererPeer* peer, + void (*drawImage2)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -19188,59 +19672,59 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_Number* dy, const Ark_Number* dw, const Ark_Number* dh); - void (*beginPath)(CanvasRendererPeer* peer); - void (*clip0)(CanvasRendererPeer* peer, + void (*beginPath)(Ark_CanvasRenderer peer); + void (*clip0)(Ark_CanvasRenderer peer, const Opt_String* fillRule); - void (*clip1)(CanvasRendererPeer* peer, + void (*clip1)(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule); - void (*fill0)(CanvasRendererPeer* peer, + void (*fill0)(Ark_CanvasRenderer peer, const Opt_String* fillRule); - void (*fill1)(CanvasRendererPeer* peer, + void (*fill1)(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule); - void (*stroke0)(CanvasRendererPeer* peer); - void (*stroke1)(CanvasRendererPeer* peer, + void (*stroke0)(Ark_CanvasRenderer peer); + void (*stroke1)(Ark_CanvasRenderer peer, Ark_Path2D path); - Ark_CanvasGradient (*createLinearGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createLinearGradient)(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, const Ark_Number* y1); - Ark_CanvasPattern (*createPattern)(CanvasRendererPeer* peer, + Opt_CanvasPattern (*createPattern)(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition); - Ark_CanvasGradient (*createRadialGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createRadialGradient)(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* r1); - Ark_CanvasGradient (*createConicGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createConicGradient)(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y); - Ark_ImageData (*createImageData0)(CanvasRendererPeer* peer, + Ark_ImageData (*createImageData0)(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh); - Ark_ImageData (*createImageData1)(CanvasRendererPeer* peer, + Ark_ImageData (*createImageData1)(Ark_CanvasRenderer peer, Ark_ImageData imagedata); - Ark_ImageData (*getImageData)(CanvasRendererPeer* peer, + Ark_ImageData (*getImageData)(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh); - Ark_PixelMap (*getPixelMap)(CanvasRendererPeer* peer, + Ark_PixelMap (*getPixelMap)(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh); - void (*putImageData0)(CanvasRendererPeer* peer, + void (*putImageData0)(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy); - void (*putImageData1)(CanvasRendererPeer* peer, + void (*putImageData1)(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -19248,184 +19732,212 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_Union_Number_String* dirtyY, const Ark_Union_Number_String* dirtyWidth, const Ark_Union_Number_String* dirtyHeight); - void (*getLineDash)(CanvasRendererPeer* peer); - void (*setLineDash)(CanvasRendererPeer* peer, + Array_Number (*getLineDash)(Ark_CanvasRenderer peer); + void (*setLineDash)(Ark_CanvasRenderer peer, const Array_Number* segments); - void (*clearRect)(CanvasRendererPeer* peer, + void (*clearRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*fillRect)(CanvasRendererPeer* peer, + void (*fillRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*strokeRect)(CanvasRendererPeer* peer, + void (*strokeRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*restore)(CanvasRendererPeer* peer); - void (*save)(CanvasRendererPeer* peer); - void (*fillText)(CanvasRendererPeer* peer, + void (*restore)(Ark_CanvasRenderer peer); + void (*save)(Ark_CanvasRenderer peer); + void (*fillText)(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth); - Ark_NativePointer (*measureText)(CanvasRendererPeer* peer, - const Ark_String* text); - void (*strokeText)(CanvasRendererPeer* peer, + Ark_TextMetrics (*measureText)(Ark_CanvasRenderer peer, + const Ark_String* text); + void (*strokeText)(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth); - Ark_Matrix2D (*getTransform)(CanvasRendererPeer* peer); - void (*resetTransform)(CanvasRendererPeer* peer); - void (*rotate)(CanvasRendererPeer* peer, + Ark_Matrix2D (*getTransform)(Ark_CanvasRenderer peer); + void (*resetTransform)(Ark_CanvasRenderer peer); + void (*rotate)(Ark_CanvasRenderer peer, const Ark_Number* angle); - void (*scale)(CanvasRendererPeer* peer, + void (*scale)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y); - void (*setTransform0)(CanvasRendererPeer* peer, + void (*setTransform0)(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, const Ark_Number* d, const Ark_Number* e, const Ark_Number* f); - void (*setTransform1)(CanvasRendererPeer* peer, + void (*setTransform1)(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform); - void (*transform)(CanvasRendererPeer* peer, + void (*transform)(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, const Ark_Number* d, const Ark_Number* e, const Ark_Number* f); - void (*translate)(CanvasRendererPeer* peer, + void (*translate)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y); - void (*setPixelMap)(CanvasRendererPeer* peer, + void (*setPixelMap)(Ark_CanvasRenderer peer, const Opt_PixelMap* value); - void (*transferFromImageBitmap)(CanvasRendererPeer* peer, + void (*transferFromImageBitmap)(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap); - void (*saveLayer)(CanvasRendererPeer* peer); - void (*restoreLayer)(CanvasRendererPeer* peer); - void (*reset)(CanvasRendererPeer* peer); - Ark_Int32 (*getGlobalAlpha)(CanvasRendererPeer* peer); - void (*setGlobalAlpha)(CanvasRendererPeer* peer, + void (*saveLayer)(Ark_CanvasRenderer peer); + void (*restoreLayer)(Ark_CanvasRenderer peer); + void (*reset)(Ark_CanvasRenderer peer); + Ark_Int32 (*getGlobalAlpha)(Ark_CanvasRenderer peer); + void (*setGlobalAlpha)(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha); - void (*getGlobalCompositeOperation)(CanvasRendererPeer* peer); - void (*setGlobalCompositeOperation)(CanvasRendererPeer* peer, + void (*getGlobalCompositeOperation)(Ark_CanvasRenderer peer); + void (*setGlobalCompositeOperation)(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation); - void (*setFillStyle)(CanvasRendererPeer* peer, + void (*setFillStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle); - void (*setStrokeStyle)(CanvasRendererPeer* peer, + void (*setStrokeStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle); - void (*getFilter)(CanvasRendererPeer* peer); - void (*setFilter)(CanvasRendererPeer* peer, + void (*getFilter)(Ark_CanvasRenderer peer); + void (*setFilter)(Ark_CanvasRenderer peer, const Ark_String* filter); - Ark_Boolean (*getImageSmoothingEnabled)(CanvasRendererPeer* peer); - void (*setImageSmoothingEnabled)(CanvasRendererPeer* peer, + Ark_Boolean (*getImageSmoothingEnabled)(Ark_CanvasRenderer peer); + void (*setImageSmoothingEnabled)(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled); - Ark_NativePointer (*getImageSmoothingQuality)(CanvasRendererPeer* peer); - void (*setImageSmoothingQuality)(CanvasRendererPeer* peer, + Ark_String (*getImageSmoothingQuality)(Ark_CanvasRenderer peer); + void (*setImageSmoothingQuality)(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality); - Ark_NativePointer (*getLineCap)(CanvasRendererPeer* peer); - void (*setLineCap)(CanvasRendererPeer* peer, + Ark_String (*getLineCap)(Ark_CanvasRenderer peer); + void (*setLineCap)(Ark_CanvasRenderer peer, const Ark_String* lineCap); - Ark_Int32 (*getLineDashOffset)(CanvasRendererPeer* peer); - void (*setLineDashOffset)(CanvasRendererPeer* peer, + Ark_Int32 (*getLineDashOffset)(Ark_CanvasRenderer peer); + void (*setLineDashOffset)(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset); - Ark_NativePointer (*getLineJoin)(CanvasRendererPeer* peer); - void (*setLineJoin)(CanvasRendererPeer* peer, + Ark_String (*getLineJoin)(Ark_CanvasRenderer peer); + void (*setLineJoin)(Ark_CanvasRenderer peer, const Ark_String* lineJoin); - Ark_Int32 (*getLineWidth)(CanvasRendererPeer* peer); - void (*setLineWidth)(CanvasRendererPeer* peer, + Ark_Int32 (*getLineWidth)(Ark_CanvasRenderer peer); + void (*setLineWidth)(Ark_CanvasRenderer peer, const Ark_Number* lineWidth); - Ark_Int32 (*getMiterLimit)(CanvasRendererPeer* peer); - void (*setMiterLimit)(CanvasRendererPeer* peer, + Ark_Int32 (*getMiterLimit)(Ark_CanvasRenderer peer); + void (*setMiterLimit)(Ark_CanvasRenderer peer, const Ark_Number* miterLimit); - Ark_Int32 (*getShadowBlur)(CanvasRendererPeer* peer); - void (*setShadowBlur)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowBlur)(Ark_CanvasRenderer peer); + void (*setShadowBlur)(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur); - void (*getShadowColor)(CanvasRendererPeer* peer); - void (*setShadowColor)(CanvasRendererPeer* peer, + void (*getShadowColor)(Ark_CanvasRenderer peer); + void (*setShadowColor)(Ark_CanvasRenderer peer, const Ark_String* shadowColor); - Ark_Int32 (*getShadowOffsetX)(CanvasRendererPeer* peer); - void (*setShadowOffsetX)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowOffsetX)(Ark_CanvasRenderer peer); + void (*setShadowOffsetX)(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX); - Ark_Int32 (*getShadowOffsetY)(CanvasRendererPeer* peer); - void (*setShadowOffsetY)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowOffsetY)(Ark_CanvasRenderer peer); + void (*setShadowOffsetY)(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY); - Ark_NativePointer (*getDirection)(CanvasRendererPeer* peer); - void (*setDirection)(CanvasRendererPeer* peer, + Ark_String (*getDirection)(Ark_CanvasRenderer peer); + void (*setDirection)(Ark_CanvasRenderer peer, const Ark_String* direction); - void (*getFont)(CanvasRendererPeer* peer); - void (*setFont)(CanvasRendererPeer* peer, + void (*getFont)(Ark_CanvasRenderer peer); + void (*setFont)(Ark_CanvasRenderer peer, const Ark_String* font); - Ark_NativePointer (*getTextAlign)(CanvasRendererPeer* peer); - void (*setTextAlign)(CanvasRendererPeer* peer, + Ark_String (*getTextAlign)(Ark_CanvasRenderer peer); + void (*setTextAlign)(Ark_CanvasRenderer peer, const Ark_String* textAlign); - Ark_NativePointer (*getTextBaseline)(CanvasRendererPeer* peer); - void (*setTextBaseline)(CanvasRendererPeer* peer, + Ark_String (*getTextBaseline)(Ark_CanvasRenderer peer); + void (*setTextBaseline)(Ark_CanvasRenderer peer, const Ark_String* textBaseline); } GENERATED_ArkUICanvasRendererAccessor; typedef struct GENERATED_ArkUICanvasRenderingContext2DAccessor { - void (*destroyPeer)(CanvasRenderingContext2DPeer* peer); + void (*destroyPeer)(Ark_CanvasRenderingContext2D peer); Ark_CanvasRenderingContext2D (*ctor)(const Opt_RenderingContextSettings* settings); Ark_NativePointer (*getFinalizer)(); - void (*toDataURL)(CanvasRenderingContext2DPeer* peer, + void (*toDataURL)(Ark_CanvasRenderingContext2D peer, const Opt_String* type, const Opt_Number* quality); - void (*startImageAnalyzer)(CanvasRenderingContext2DPeer* peer, + void (*startImageAnalyzer)(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*stopImageAnalyzer)(CanvasRenderingContext2DPeer* peer); - void (*onOnAttach)(CanvasRenderingContext2DPeer* peer, + void (*stopImageAnalyzer)(Ark_CanvasRenderingContext2D peer); + void (*onOnAttach)(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_); - void (*offOnAttach)(CanvasRenderingContext2DPeer* peer, + void (*offOnAttach)(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_); - void (*onOnDetach)(CanvasRenderingContext2DPeer* peer, + void (*onOnDetach)(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_); - void (*offOnDetach)(CanvasRenderingContext2DPeer* peer, + void (*offOnDetach)(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_); - Ark_Int32 (*getHeight)(CanvasRenderingContext2DPeer* peer); - Ark_Int32 (*getWidth)(CanvasRenderingContext2DPeer* peer); + Ark_Int32 (*getHeight)(Ark_CanvasRenderingContext2D peer); + Ark_Int32 (*getWidth)(Ark_CanvasRenderingContext2D peer); } GENERATED_ArkUICanvasRenderingContext2DAccessor; +typedef struct GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor { + void (*destroyPeer)(Ark_OffscreenCanvasRenderingContext2D peer); + Ark_OffscreenCanvasRenderingContext2D (*ctor)(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings); + Ark_NativePointer (*getFinalizer)(); + void (*toDataURL)(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_CustomObject* quality); + Ark_ImageBitmap (*transferToImageBitmap)(Ark_OffscreenCanvasRenderingContext2D peer); +} GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor; + +typedef struct GENERATED_ArkUIOffscreenCanvasAccessor { + void (*destroyPeer)(Ark_OffscreenCanvas peer); + Ark_OffscreenCanvas (*ctor)(const Ark_Number* width, + const Ark_Number* height); + Ark_NativePointer (*getFinalizer)(); + Ark_ImageBitmap (*transferToImageBitmap)(Ark_OffscreenCanvas peer); + Ark_OffscreenCanvasRenderingContext2D (*getContext2d)(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options); + Ark_Int32 (*getHeight)(Ark_OffscreenCanvas peer); + void (*setHeight)(Ark_OffscreenCanvas peer, + const Ark_Number* height); + Ark_Int32 (*getWidth)(Ark_OffscreenCanvas peer); + void (*setWidth)(Ark_OffscreenCanvas peer, + const Ark_Number* width); +} GENERATED_ArkUIOffscreenCanvasAccessor; + typedef struct GENERATED_ArkUIDrawingRenderingContextAccessor { - void (*destroyPeer)(DrawingRenderingContextPeer* peer); + void (*destroyPeer)(Ark_DrawingRenderingContext peer); Ark_DrawingRenderingContext (*ctor)(const Opt_LengthMetricsUnit* unit); Ark_NativePointer (*getFinalizer)(); - void (*invalidate)(DrawingRenderingContextPeer* peer); + void (*invalidate)(Ark_DrawingRenderingContext peer); } GENERATED_ArkUIDrawingRenderingContextAccessor; typedef struct GENERATED_ArkUIICurveAccessor { - void (*destroyPeer)(ICurvePeer* peer); + void (*destroyPeer)(Ark_ICurve peer); Ark_ICurve (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*interpolate)(ICurvePeer* peer, + Ark_Int32 (*interpolate)(Ark_ICurve peer, const Ark_Number* fraction); } GENERATED_ArkUIICurveAccessor; typedef struct GENERATED_ArkUIDrawModifierAccessor { - void (*destroyPeer)(DrawModifierPeer* peer); + void (*destroyPeer)(Ark_DrawModifier peer); Ark_DrawModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*drawBehind)(DrawModifierPeer* peer, + void (*drawBehind)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*drawContent)(DrawModifierPeer* peer, + void (*drawContent)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*drawFront)(DrawModifierPeer* peer, + void (*drawFront)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*invalidate)(DrawModifierPeer* peer); + void (*invalidate)(Ark_DrawModifier peer); } GENERATED_ArkUIDrawModifierAccessor; typedef struct GENERATED_ArkUITransitionEffectAccessor { - void (*destroyPeer)(TransitionEffectPeer* peer); + void (*destroyPeer)(Ark_TransitionEffect peer); Ark_TransitionEffect (*ctor)(const Ark_String* type, const Ark_TransitionEffects* effect); Ark_NativePointer (*getFinalizer)(); @@ -19436,363 +19948,376 @@ typedef struct GENERATED_ArkUITransitionEffectAccessor { Ark_TransitionEffect (*move)(Ark_TransitionEdge edge); Ark_TransitionEffect (*asymmetric)(Ark_TransitionEffect appear, Ark_TransitionEffect disappear); - Ark_TransitionEffect (*animation)(TransitionEffectPeer* peer, + Ark_TransitionEffect (*animation)(Ark_TransitionEffect peer, const Ark_AnimateParam* value); - Ark_TransitionEffect (*combine)(TransitionEffectPeer* peer, + Ark_TransitionEffect (*combine)(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect); } GENERATED_ArkUITransitionEffectAccessor; typedef struct GENERATED_ArkUIBaseEventAccessor { - void (*destroyPeer)(BaseEventPeer* peer); + void (*destroyPeer)(Ark_BaseEvent peer); Ark_BaseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getModifierKeyState)(BaseEventPeer* peer, + Ark_Boolean (*getModifierKeyState)(Ark_BaseEvent peer, const Array_String* keys); - void (*setTarget)(BaseEventPeer* peer, + void (*setTarget)(Ark_BaseEvent peer, const Ark_EventTarget* target); - Ark_Int32 (*getTimestamp)(BaseEventPeer* peer); - void (*setTimestamp)(BaseEventPeer* peer, + Ark_Int32 (*getTimestamp)(Ark_BaseEvent peer); + void (*setTimestamp)(Ark_BaseEvent peer, const Ark_Number* timestamp); - Ark_NativePointer (*getSource)(BaseEventPeer* peer); - void (*setSource)(BaseEventPeer* peer, + Ark_SourceType (*getSource)(Ark_BaseEvent peer); + void (*setSource)(Ark_BaseEvent peer, Ark_SourceType source); - Ark_Int32 (*getAxisHorizontal)(BaseEventPeer* peer); - void (*setAxisHorizontal)(BaseEventPeer* peer, + Ark_Int32 (*getAxisHorizontal)(Ark_BaseEvent peer); + void (*setAxisHorizontal)(Ark_BaseEvent peer, const Ark_Number* axisHorizontal); - Ark_Int32 (*getAxisVertical)(BaseEventPeer* peer); - void (*setAxisVertical)(BaseEventPeer* peer, + Ark_Int32 (*getAxisVertical)(Ark_BaseEvent peer); + void (*setAxisVertical)(Ark_BaseEvent peer, const Ark_Number* axisVertical); - Ark_Int32 (*getPressure)(BaseEventPeer* peer); - void (*setPressure)(BaseEventPeer* peer, + Ark_Int32 (*getPressure)(Ark_BaseEvent peer); + void (*setPressure)(Ark_BaseEvent peer, const Ark_Number* pressure); - Ark_Int32 (*getTiltX)(BaseEventPeer* peer); - void (*setTiltX)(BaseEventPeer* peer, + Ark_Int32 (*getTiltX)(Ark_BaseEvent peer); + void (*setTiltX)(Ark_BaseEvent peer, const Ark_Number* tiltX); - Ark_Int32 (*getTiltY)(BaseEventPeer* peer); - void (*setTiltY)(BaseEventPeer* peer, + Ark_Int32 (*getTiltY)(Ark_BaseEvent peer); + void (*setTiltY)(Ark_BaseEvent peer, const Ark_Number* tiltY); - Ark_NativePointer (*getSourceTool)(BaseEventPeer* peer); - void (*setSourceTool)(BaseEventPeer* peer, + Ark_SourceTool (*getSourceTool)(Ark_BaseEvent peer); + void (*setSourceTool)(Ark_BaseEvent peer, Ark_SourceTool sourceTool); - Ark_Int32 (*getDeviceId)(BaseEventPeer* peer); - void (*setDeviceId)(BaseEventPeer* peer, + Ark_Int32 (*getDeviceId)(Ark_BaseEvent peer); + void (*setDeviceId)(Ark_BaseEvent peer, const Ark_Number* deviceId); } GENERATED_ArkUIBaseEventAccessor; typedef struct GENERATED_ArkUIClickEventAccessor { - void (*destroyPeer)(ClickEventPeer* peer); + void (*destroyPeer)(Ark_ClickEvent peer); Ark_ClickEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getDisplayX)(ClickEventPeer* peer); - void (*setDisplayX)(ClickEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_ClickEvent peer); + void (*setDisplayX)(Ark_ClickEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(ClickEventPeer* peer); - void (*setDisplayY)(ClickEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_ClickEvent peer); + void (*setDisplayY)(Ark_ClickEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(ClickEventPeer* peer); - void (*setWindowX)(ClickEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_ClickEvent peer); + void (*setWindowX)(Ark_ClickEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(ClickEventPeer* peer); - void (*setWindowY)(ClickEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_ClickEvent peer); + void (*setWindowY)(Ark_ClickEvent peer, const Ark_Number* windowY); - Ark_Int32 (*getScreenX)(ClickEventPeer* peer); - void (*setScreenX)(ClickEventPeer* peer, + Ark_Int32 (*getScreenX)(Ark_ClickEvent peer); + void (*setScreenX)(Ark_ClickEvent peer, const Ark_Number* screenX); - Ark_Int32 (*getScreenY)(ClickEventPeer* peer); - void (*setScreenY)(ClickEventPeer* peer, + Ark_Int32 (*getScreenY)(Ark_ClickEvent peer); + void (*setScreenY)(Ark_ClickEvent peer, const Ark_Number* screenY); - Ark_Int32 (*getX)(ClickEventPeer* peer); - void (*setX)(ClickEventPeer* peer, + Ark_Int32 (*getX)(Ark_ClickEvent peer); + void (*setX)(Ark_ClickEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(ClickEventPeer* peer); - void (*setY)(ClickEventPeer* peer, + Ark_Int32 (*getY)(Ark_ClickEvent peer); + void (*setY)(Ark_ClickEvent peer, const Ark_Number* y); - Callback_Void (*getPreventDefault)(ClickEventPeer* peer); - void (*setPreventDefault)(ClickEventPeer* peer, + Callback_Void (*getPreventDefault)(Ark_ClickEvent peer); + void (*setPreventDefault)(Ark_ClickEvent peer, const Callback_Void* preventDefault); } GENERATED_ArkUIClickEventAccessor; typedef struct GENERATED_ArkUIHoverEventAccessor { - void (*destroyPeer)(HoverEventPeer* peer); + void (*destroyPeer)(Ark_HoverEvent peer); Ark_HoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Callback_Void (*getStopPropagation)(HoverEventPeer* peer); - void (*setStopPropagation)(HoverEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_HoverEvent peer); + void (*setStopPropagation)(Ark_HoverEvent peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIHoverEventAccessor; typedef struct GENERATED_ArkUIMouseEventAccessor { - void (*destroyPeer)(MouseEventPeer* peer); + void (*destroyPeer)(Ark_MouseEvent peer); Ark_MouseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getButton)(MouseEventPeer* peer); - void (*setButton)(MouseEventPeer* peer, + Ark_MouseButton (*getButton)(Ark_MouseEvent peer); + void (*setButton)(Ark_MouseEvent peer, Ark_MouseButton button); - Ark_NativePointer (*getAction)(MouseEventPeer* peer); - void (*setAction)(MouseEventPeer* peer, + Ark_MouseAction (*getAction)(Ark_MouseEvent peer); + void (*setAction)(Ark_MouseEvent peer, Ark_MouseAction action); - Ark_Int32 (*getDisplayX)(MouseEventPeer* peer); - void (*setDisplayX)(MouseEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_MouseEvent peer); + void (*setDisplayX)(Ark_MouseEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(MouseEventPeer* peer); - void (*setDisplayY)(MouseEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_MouseEvent peer); + void (*setDisplayY)(Ark_MouseEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(MouseEventPeer* peer); - void (*setWindowX)(MouseEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_MouseEvent peer); + void (*setWindowX)(Ark_MouseEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(MouseEventPeer* peer); - void (*setWindowY)(MouseEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_MouseEvent peer); + void (*setWindowY)(Ark_MouseEvent peer, const Ark_Number* windowY); - Ark_Int32 (*getScreenX)(MouseEventPeer* peer); - void (*setScreenX)(MouseEventPeer* peer, + Ark_Int32 (*getScreenX)(Ark_MouseEvent peer); + void (*setScreenX)(Ark_MouseEvent peer, const Ark_Number* screenX); - Ark_Int32 (*getScreenY)(MouseEventPeer* peer); - void (*setScreenY)(MouseEventPeer* peer, + Ark_Int32 (*getScreenY)(Ark_MouseEvent peer); + void (*setScreenY)(Ark_MouseEvent peer, const Ark_Number* screenY); - Ark_Int32 (*getX)(MouseEventPeer* peer); - void (*setX)(MouseEventPeer* peer, + Ark_Int32 (*getX)(Ark_MouseEvent peer); + void (*setX)(Ark_MouseEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(MouseEventPeer* peer); - void (*setY)(MouseEventPeer* peer, + Ark_Int32 (*getY)(Ark_MouseEvent peer); + void (*setY)(Ark_MouseEvent peer, const Ark_Number* y); - Callback_Void (*getStopPropagation)(MouseEventPeer* peer); - void (*setStopPropagation)(MouseEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_MouseEvent peer); + void (*setStopPropagation)(Ark_MouseEvent peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIMouseEventAccessor; typedef struct GENERATED_ArkUIAccessibilityHoverEventAccessor { - void (*destroyPeer)(AccessibilityHoverEventPeer* peer); + void (*destroyPeer)(Ark_AccessibilityHoverEvent peer); Ark_AccessibilityHoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getType)(AccessibilityHoverEventPeer* peer); - void (*setType)(AccessibilityHoverEventPeer* peer, + Ark_AccessibilityHoverType (*getType)(Ark_AccessibilityHoverEvent peer); + void (*setType)(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type); - Ark_Int32 (*getX)(AccessibilityHoverEventPeer* peer); - void (*setX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getX)(Ark_AccessibilityHoverEvent peer); + void (*setX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(AccessibilityHoverEventPeer* peer); - void (*setY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getY)(Ark_AccessibilityHoverEvent peer); + void (*setY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* y); - Ark_Int32 (*getDisplayX)(AccessibilityHoverEventPeer* peer); - void (*setDisplayX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_AccessibilityHoverEvent peer); + void (*setDisplayX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(AccessibilityHoverEventPeer* peer); - void (*setDisplayY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_AccessibilityHoverEvent peer); + void (*setDisplayY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(AccessibilityHoverEventPeer* peer); - void (*setWindowX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_AccessibilityHoverEvent peer); + void (*setWindowX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(AccessibilityHoverEventPeer* peer); - void (*setWindowY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_AccessibilityHoverEvent peer); + void (*setWindowY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY); } GENERATED_ArkUIAccessibilityHoverEventAccessor; typedef struct GENERATED_ArkUITouchEventAccessor { - void (*destroyPeer)(TouchEventPeer* peer); + void (*destroyPeer)(Ark_TouchEvent peer); Ark_TouchEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getHistoricalPoints)(TouchEventPeer* peer); - Ark_NativePointer (*getType)(TouchEventPeer* peer); - void (*setType)(TouchEventPeer* peer, + Array_HistoricalPoint (*getHistoricalPoints)(Ark_TouchEvent peer); + Ark_TouchType (*getType)(Ark_TouchEvent peer); + void (*setType)(Ark_TouchEvent peer, Ark_TouchType type); - void (*setTouches)(TouchEventPeer* peer, + Array_TouchObject (*getTouches)(Ark_TouchEvent peer); + void (*setTouches)(Ark_TouchEvent peer, const Array_TouchObject* touches); - void (*setChangedTouches)(TouchEventPeer* peer, + Array_TouchObject (*getChangedTouches)(Ark_TouchEvent peer); + void (*setChangedTouches)(Ark_TouchEvent peer, const Array_TouchObject* changedTouches); - Callback_Void (*getStopPropagation)(TouchEventPeer* peer); - void (*setStopPropagation)(TouchEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_TouchEvent peer); + void (*setStopPropagation)(Ark_TouchEvent peer, const Callback_Void* stopPropagation); - Callback_Void (*getPreventDefault)(TouchEventPeer* peer); - void (*setPreventDefault)(TouchEventPeer* peer, + Callback_Void (*getPreventDefault)(Ark_TouchEvent peer); + void (*setPreventDefault)(Ark_TouchEvent peer, const Callback_Void* preventDefault); } GENERATED_ArkUITouchEventAccessor; typedef struct GENERATED_ArkUIPixelMapMockAccessor { - void (*destroyPeer)(PixelMapMockPeer* peer); + void (*destroyPeer)(Ark_PixelMapMock peer); Ark_PixelMapMock (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*release)(PixelMapMockPeer* peer); + void (*release)(Ark_PixelMapMock peer); } GENERATED_ArkUIPixelMapMockAccessor; typedef struct GENERATED_ArkUIDragEventAccessor { - void (*destroyPeer)(DragEventPeer* peer); + void (*destroyPeer)(Ark_DragEvent peer); Ark_DragEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getDisplayX)(DragEventPeer* peer); - Ark_Int32 (*getDisplayY)(DragEventPeer* peer); - Ark_Int32 (*getWindowX)(DragEventPeer* peer); - Ark_Int32 (*getWindowY)(DragEventPeer* peer); - Ark_Int32 (*getX)(DragEventPeer* peer); - Ark_Int32 (*getY)(DragEventPeer* peer); - void (*setData)(DragEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_DragEvent peer); + Ark_Int32 (*getDisplayY)(Ark_DragEvent peer); + Ark_Int32 (*getWindowX)(Ark_DragEvent peer); + Ark_Int32 (*getWindowY)(Ark_DragEvent peer); + Ark_Int32 (*getX)(Ark_DragEvent peer); + Ark_Int32 (*getY)(Ark_DragEvent peer); + void (*setData)(Ark_DragEvent peer, Ark_UnifiedData unifiedData); - Ark_UnifiedData (*getData)(DragEventPeer* peer); - Ark_NativePointer (*getSummary)(DragEventPeer* peer); - void (*setResult)(DragEventPeer* peer, + Ark_UnifiedData (*getData)(Ark_DragEvent peer); + Ark_Summary (*getSummary)(Ark_DragEvent peer); + void (*setResult)(Ark_DragEvent peer, Ark_DragResult dragResult); - Ark_NativePointer (*getResult)(DragEventPeer* peer); - Ark_NativePointer (*getPreviewRect)(DragEventPeer* peer); - Ark_Int32 (*getVelocityX)(DragEventPeer* peer); - Ark_Int32 (*getVelocityY)(DragEventPeer* peer); - Ark_Int32 (*getVelocity)(DragEventPeer* peer); - Ark_Boolean (*getModifierKeyState)(DragEventPeer* peer, + Ark_DragResult (*getResult)(Ark_DragEvent peer); + Ark_Rectangle (*getPreviewRect)(Ark_DragEvent peer); + Ark_Int32 (*getVelocityX)(Ark_DragEvent peer); + Ark_Int32 (*getVelocityY)(Ark_DragEvent peer); + Ark_Int32 (*getVelocity)(Ark_DragEvent peer); + Ark_Boolean (*getModifierKeyState)(Ark_DragEvent peer, const Array_String* keys); - Ark_NativePointer (*getDragBehavior)(DragEventPeer* peer); - void (*setDragBehavior)(DragEventPeer* peer, + Ark_DragBehavior (*getDragBehavior)(Ark_DragEvent peer); + void (*setDragBehavior)(Ark_DragEvent peer, Ark_DragBehavior dragBehavior); - Ark_Boolean (*getUseCustomDropAnimation)(DragEventPeer* peer); - void (*setUseCustomDropAnimation)(DragEventPeer* peer, + Ark_Boolean (*getUseCustomDropAnimation)(Ark_DragEvent peer); + void (*setUseCustomDropAnimation)(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation); } GENERATED_ArkUIDragEventAccessor; typedef struct GENERATED_ArkUIKeyEventAccessor { - void (*destroyPeer)(KeyEventPeer* peer); + void (*destroyPeer)(Ark_KeyEvent peer); Ark_KeyEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getModifierKeyState)(KeyEventPeer* peer, + Ark_Boolean (*getModifierKeyState)(Ark_KeyEvent peer, const Array_String* keys); - Ark_NativePointer (*getType)(KeyEventPeer* peer); - void (*setType)(KeyEventPeer* peer, + Ark_KeyType (*getType)(Ark_KeyEvent peer); + void (*setType)(Ark_KeyEvent peer, Ark_KeyType type); - Ark_Int32 (*getKeyCode)(KeyEventPeer* peer); - void (*setKeyCode)(KeyEventPeer* peer, + Ark_Int32 (*getKeyCode)(Ark_KeyEvent peer); + void (*setKeyCode)(Ark_KeyEvent peer, const Ark_Number* keyCode); - void (*getKeyText)(KeyEventPeer* peer); - void (*setKeyText)(KeyEventPeer* peer, + void (*getKeyText)(Ark_KeyEvent peer); + void (*setKeyText)(Ark_KeyEvent peer, const Ark_String* keyText); - Ark_NativePointer (*getKeySource)(KeyEventPeer* peer); - void (*setKeySource)(KeyEventPeer* peer, + Ark_KeySource (*getKeySource)(Ark_KeyEvent peer); + void (*setKeySource)(Ark_KeyEvent peer, Ark_KeySource keySource); - Ark_Int32 (*getDeviceId)(KeyEventPeer* peer); - void (*setDeviceId)(KeyEventPeer* peer, + Ark_Int32 (*getDeviceId)(Ark_KeyEvent peer); + void (*setDeviceId)(Ark_KeyEvent peer, const Ark_Number* deviceId); - Ark_Int32 (*getMetaKey)(KeyEventPeer* peer); - void (*setMetaKey)(KeyEventPeer* peer, + Ark_Int32 (*getMetaKey)(Ark_KeyEvent peer); + void (*setMetaKey)(Ark_KeyEvent peer, const Ark_Number* metaKey); - Ark_Int32 (*getTimestamp)(KeyEventPeer* peer); - void (*setTimestamp)(KeyEventPeer* peer, + Ark_Int32 (*getTimestamp)(Ark_KeyEvent peer); + void (*setTimestamp)(Ark_KeyEvent peer, const Ark_Number* timestamp); - Callback_Void (*getStopPropagation)(KeyEventPeer* peer); - void (*setStopPropagation)(KeyEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_KeyEvent peer); + void (*setStopPropagation)(Ark_KeyEvent peer, const Callback_Void* stopPropagation); - void (*setIntentionCode)(KeyEventPeer* peer, + void (*setIntentionCode)(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode); - Ark_Int32 (*getUnicode)(KeyEventPeer* peer); - void (*setUnicode)(KeyEventPeer* peer, + Ark_Int32 (*getUnicode)(Ark_KeyEvent peer); + void (*setUnicode)(Ark_KeyEvent peer, const Ark_Number* unicode); } GENERATED_ArkUIKeyEventAccessor; typedef struct GENERATED_ArkUIProgressMaskAccessor { - void (*destroyPeer)(ProgressMaskPeer* peer); + void (*destroyPeer)(Ark_ProgressMask peer); Ark_ProgressMask (*ctor)(const Ark_Number* value, const Ark_Number* total, const Ark_ResourceColor* color); Ark_NativePointer (*getFinalizer)(); - void (*updateProgress)(ProgressMaskPeer* peer, + void (*updateProgress)(Ark_ProgressMask peer, const Ark_Number* value); - void (*updateColor)(ProgressMaskPeer* peer, + void (*updateColor)(Ark_ProgressMask peer, const Ark_ResourceColor* value); - void (*enableBreathingAnimation)(ProgressMaskPeer* peer, + void (*enableBreathingAnimation)(Ark_ProgressMask peer, Ark_Boolean value); } GENERATED_ArkUIProgressMaskAccessor; typedef struct GENERATED_ArkUIMeasurableAccessor { - void (*destroyPeer)(MeasurablePeer* peer); + void (*destroyPeer)(Ark_Measurable peer); Ark_Measurable (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*measure)(MeasurablePeer* peer, + Ark_MeasureResult (*measure)(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint); - Ark_NativePointer (*getMargin)(MeasurablePeer* peer); - Ark_NativePointer (*getPadding)(MeasurablePeer* peer); - Ark_NativePointer (*getBorderWidth)(MeasurablePeer* peer); + Ark_DirectionalEdgesT (*getMargin)(Ark_Measurable peer); + Ark_DirectionalEdgesT (*getPadding)(Ark_Measurable peer); + Ark_DirectionalEdgesT (*getBorderWidth)(Ark_Measurable peer); } GENERATED_ArkUIMeasurableAccessor; typedef struct GENERATED_ArkUIViewAccessor { - void (*destroyPeer)(ViewPeer* peer); + void (*destroyPeer)(Ark_View peer); Ark_View (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*create)(ViewPeer* peer, - const Ark_CustomObject* value); + Ark_CustomObject (*create)(Ark_View peer, + const Ark_CustomObject* value); } GENERATED_ArkUIViewAccessor; typedef struct GENERATED_ArkUITextContentControllerBaseAccessor { - void (*destroyPeer)(TextContentControllerBasePeer* peer); + void (*destroyPeer)(Ark_TextContentControllerBase peer); Ark_TextContentControllerBase (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getCaretOffset)(TextContentControllerBasePeer* peer); - Ark_NativePointer (*getTextContentRect)(TextContentControllerBasePeer* peer); - Ark_Int32 (*getTextContentLineCount)(TextContentControllerBasePeer* peer); + Ark_CaretOffset (*getCaretOffset)(Ark_TextContentControllerBase peer); + Ark_RectResult (*getTextContentRect)(Ark_TextContentControllerBase peer); + Ark_Int32 (*getTextContentLineCount)(Ark_TextContentControllerBase peer); } GENERATED_ArkUITextContentControllerBaseAccessor; typedef struct GENERATED_ArkUIDynamicNodeAccessor { - void (*destroyPeer)(DynamicNodePeer* peer); + void (*destroyPeer)(Ark_DynamicNode peer); Ark_DynamicNode (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onMove)(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler); + Ark_CustomObject (*onMove)(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler); } GENERATED_ArkUIDynamicNodeAccessor; typedef struct GENERATED_ArkUIChildrenMainSizeAccessor { - void (*destroyPeer)(ChildrenMainSizePeer* peer); + void (*destroyPeer)(Ark_ChildrenMainSize peer); Ark_ChildrenMainSize (*ctor)(const Ark_Number* childDefaultSize); Ark_NativePointer (*getFinalizer)(); - void (*splice)(ChildrenMainSizePeer* peer, + void (*splice)(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize); - void (*update)(ChildrenMainSizePeer* peer, + void (*update)(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize); - Ark_Int32 (*getChildDefaultSize)(ChildrenMainSizePeer* peer); - void (*setChildDefaultSize)(ChildrenMainSizePeer* peer, + Ark_Int32 (*getChildDefaultSize)(Ark_ChildrenMainSize peer); + void (*setChildDefaultSize)(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize); } GENERATED_ArkUIChildrenMainSizeAccessor; typedef struct GENERATED_ArkUIUICommonEventAccessor { - void (*destroyPeer)(UICommonEventPeer* peer); + void (*destroyPeer)(Ark_UICommonEvent peer); Ark_UICommonEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setOnClick)(UICommonEventPeer* peer, + void (*setOnClick)(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_); - void (*setOnTouch)(UICommonEventPeer* peer, + void (*setOnTouch)(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_); - void (*setOnAppear)(UICommonEventPeer* peer, + void (*setOnAppear)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnDisappear)(UICommonEventPeer* peer, + void (*setOnDisappear)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnKeyEvent)(UICommonEventPeer* peer, + void (*setOnKeyEvent)(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_); - void (*setOnFocus)(UICommonEventPeer* peer, + void (*setOnFocus)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnBlur)(UICommonEventPeer* peer, + void (*setOnBlur)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnHover)(UICommonEventPeer* peer, + void (*setOnHover)(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_); - void (*setOnMouse)(UICommonEventPeer* peer, + void (*setOnMouse)(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_); - void (*setOnSizeChange)(UICommonEventPeer* peer, + void (*setOnSizeChange)(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_); - void (*setOnVisibleAreaApproximateChange)(UICommonEventPeer* peer, + void (*setOnVisibleAreaApproximateChange)(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event); } GENERATED_ArkUIUICommonEventAccessor; typedef struct GENERATED_ArkUIGestureModifierAccessor { - void (*destroyPeer)(GestureModifierPeer* peer); + void (*destroyPeer)(Ark_GestureModifier peer); Ark_GestureModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*applyGesture)(GestureModifierPeer* peer, + void (*applyGesture)(Ark_GestureModifier peer, const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { - void (*destroyPeer)(GlobalScope_commonPeer* peer); - Ark_NativePointer (*getContext)(const Opt_CustomObject* component); +typedef struct GENERATED_ArkUIGlobalScope_focusControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_focusControl_common peer); + Ark_Boolean (*requestFocus)(const Ark_String* value); +} GENERATED_ArkUIGlobalScope_focusControl_commonAccessor; + +typedef struct GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_cursorControl_common peer); + void (*setCursor)(Ark_PointerStyle value); + void (*restoreDefault)(); +} GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor; + +typedef struct GENERATED_ArkUIGlobalScopecommonAccessor { + void (*destroyPeer)(Ark_GlobalScopecommon peer); + Ark_Context (*getContext)(const Opt_CustomObject* component); void (*postCardAction)(const Ark_CustomObject* component, const Ark_CustomObject* action); - Ark_NativePointer (*dollar_r)(const Ark_String* value, - const Array_CustomObject* params); - Ark_NativePointer (*dollar_rawfile)(const Ark_String* value); + Ark_Resource (*dollar_r)(const Ark_String* value, + const Array_CustomObject* params); + Ark_Resource (*dollar_rawfile)(const Ark_String* value); void (*animateTo)(const Ark_AnimateParam* value, const Callback_Void* event); void (*animateToImmediately)(const Ark_AnimateParam* value, @@ -19803,1360 +20328,1364 @@ typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { Ark_Int32 (*px2fp)(const Ark_Number* value); Ark_Int32 (*lpx2px)(const Ark_Number* value); Ark_Int32 (*px2lpx)(const Ark_Number* value); - Ark_Boolean (*requestFocus)(const Ark_String* value); - void (*setCursor)(Ark_PointerStyle value); - void (*restoreDefault)(); -} GENERATED_ArkUIGlobalScope_commonAccessor; +} GENERATED_ArkUIGlobalScopecommonAccessor; typedef struct GENERATED_ArkUIContextMenuAccessor { - void (*destroyPeer)(ContextMenuPeer* peer); + void (*destroyPeer)(Ark_ContextMenu peer); Ark_ContextMenu (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*close)(); } GENERATED_ArkUIContextMenuAccessor; typedef struct GENERATED_ArkUICustomDialogControllerAccessor { - void (*destroyPeer)(CustomDialogControllerPeer* peer); + void (*destroyPeer)(Ark_CustomDialogController peer); Ark_CustomDialogController (*ctor)(const Ark_CustomDialogControllerOptions* value); Ark_NativePointer (*getFinalizer)(); - void (*open)(CustomDialogControllerPeer* peer); - void (*close)(CustomDialogControllerPeer* peer); + void (*open)(Ark_CustomDialogController peer); + void (*close)(Ark_CustomDialogController peer); } GENERATED_ArkUICustomDialogControllerAccessor; typedef struct GENERATED_ArkUILinearGradientAccessor { - void (*destroyPeer)(LinearGradientPeer* peer); + void (*destroyPeer)(Ark_LinearGradient peer); Ark_LinearGradient (*ctor)(const Array_ColorStop* colorStops); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUILinearGradientAccessor; typedef struct GENERATED_ArkUIDatePickerDialogAccessor { - void (*destroyPeer)(DatePickerDialogPeer* peer); + void (*destroyPeer)(Ark_DatePickerDialog peer); Ark_DatePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_DatePickerDialogOptions* options); } GENERATED_ArkUIDatePickerDialogAccessor; typedef struct GENERATED_ArkUIBaseGestureEventAccessor { - void (*destroyPeer)(BaseGestureEventPeer* peer); + void (*destroyPeer)(Ark_BaseGestureEvent peer); Ark_BaseGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setFingerList)(BaseGestureEventPeer* peer, + Array_FingerInfo (*getFingerList)(Ark_BaseGestureEvent peer); + void (*setFingerList)(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList); } GENERATED_ArkUIBaseGestureEventAccessor; typedef struct GENERATED_ArkUITapGestureEventAccessor { - void (*destroyPeer)(TapGestureEventPeer* peer); + void (*destroyPeer)(Ark_TapGestureEvent peer); Ark_TapGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUITapGestureEventAccessor; typedef struct GENERATED_ArkUILongPressGestureEventAccessor { - void (*destroyPeer)(LongPressGestureEventPeer* peer); + void (*destroyPeer)(Ark_LongPressGestureEvent peer); Ark_LongPressGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getRepeat)(LongPressGestureEventPeer* peer); - void (*setRepeat)(LongPressGestureEventPeer* peer, + Ark_Boolean (*getRepeat)(Ark_LongPressGestureEvent peer); + void (*setRepeat)(Ark_LongPressGestureEvent peer, Ark_Boolean repeat); } GENERATED_ArkUILongPressGestureEventAccessor; typedef struct GENERATED_ArkUIPanGestureEventAccessor { - void (*destroyPeer)(PanGestureEventPeer* peer); + void (*destroyPeer)(Ark_PanGestureEvent peer); Ark_PanGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getOffsetX)(PanGestureEventPeer* peer); - void (*setOffsetX)(PanGestureEventPeer* peer, + Ark_Int32 (*getOffsetX)(Ark_PanGestureEvent peer); + void (*setOffsetX)(Ark_PanGestureEvent peer, const Ark_Number* offsetX); - Ark_Int32 (*getOffsetY)(PanGestureEventPeer* peer); - void (*setOffsetY)(PanGestureEventPeer* peer, + Ark_Int32 (*getOffsetY)(Ark_PanGestureEvent peer); + void (*setOffsetY)(Ark_PanGestureEvent peer, const Ark_Number* offsetY); - Ark_Int32 (*getVelocityX)(PanGestureEventPeer* peer); - void (*setVelocityX)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocityX)(Ark_PanGestureEvent peer); + void (*setVelocityX)(Ark_PanGestureEvent peer, const Ark_Number* velocityX); - Ark_Int32 (*getVelocityY)(PanGestureEventPeer* peer); - void (*setVelocityY)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocityY)(Ark_PanGestureEvent peer); + void (*setVelocityY)(Ark_PanGestureEvent peer, const Ark_Number* velocityY); - Ark_Int32 (*getVelocity)(PanGestureEventPeer* peer); - void (*setVelocity)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocity)(Ark_PanGestureEvent peer); + void (*setVelocity)(Ark_PanGestureEvent peer, const Ark_Number* velocity); } GENERATED_ArkUIPanGestureEventAccessor; typedef struct GENERATED_ArkUIPinchGestureEventAccessor { - void (*destroyPeer)(PinchGestureEventPeer* peer); + void (*destroyPeer)(Ark_PinchGestureEvent peer); Ark_PinchGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getScale)(PinchGestureEventPeer* peer); - void (*setScale)(PinchGestureEventPeer* peer, + Ark_Int32 (*getScale)(Ark_PinchGestureEvent peer); + void (*setScale)(Ark_PinchGestureEvent peer, const Ark_Number* scale); - Ark_Int32 (*getPinchCenterX)(PinchGestureEventPeer* peer); - void (*setPinchCenterX)(PinchGestureEventPeer* peer, + Ark_Int32 (*getPinchCenterX)(Ark_PinchGestureEvent peer); + void (*setPinchCenterX)(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX); - Ark_Int32 (*getPinchCenterY)(PinchGestureEventPeer* peer); - void (*setPinchCenterY)(PinchGestureEventPeer* peer, + Ark_Int32 (*getPinchCenterY)(Ark_PinchGestureEvent peer); + void (*setPinchCenterY)(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY); } GENERATED_ArkUIPinchGestureEventAccessor; typedef struct GENERATED_ArkUIRotationGestureEventAccessor { - void (*destroyPeer)(RotationGestureEventPeer* peer); + void (*destroyPeer)(Ark_RotationGestureEvent peer); Ark_RotationGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getAngle)(RotationGestureEventPeer* peer); - void (*setAngle)(RotationGestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_RotationGestureEvent peer); + void (*setAngle)(Ark_RotationGestureEvent peer, const Ark_Number* angle); } GENERATED_ArkUIRotationGestureEventAccessor; typedef struct GENERATED_ArkUISwipeGestureEventAccessor { - void (*destroyPeer)(SwipeGestureEventPeer* peer); + void (*destroyPeer)(Ark_SwipeGestureEvent peer); Ark_SwipeGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getAngle)(SwipeGestureEventPeer* peer); - void (*setAngle)(SwipeGestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_SwipeGestureEvent peer); + void (*setAngle)(Ark_SwipeGestureEvent peer, const Ark_Number* angle); - Ark_Int32 (*getSpeed)(SwipeGestureEventPeer* peer); - void (*setSpeed)(SwipeGestureEventPeer* peer, + Ark_Int32 (*getSpeed)(Ark_SwipeGestureEvent peer); + void (*setSpeed)(Ark_SwipeGestureEvent peer, const Ark_Number* speed); } GENERATED_ArkUISwipeGestureEventAccessor; typedef struct GENERATED_ArkUIGestureEventAccessor { - void (*destroyPeer)(GestureEventPeer* peer); + void (*destroyPeer)(Ark_GestureEvent peer); Ark_GestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getRepeat)(GestureEventPeer* peer); - void (*setRepeat)(GestureEventPeer* peer, + Ark_Boolean (*getRepeat)(Ark_GestureEvent peer); + void (*setRepeat)(Ark_GestureEvent peer, Ark_Boolean repeat); - void (*setFingerList)(GestureEventPeer* peer, + Array_FingerInfo (*getFingerList)(Ark_GestureEvent peer); + void (*setFingerList)(Ark_GestureEvent peer, const Array_FingerInfo* fingerList); - Ark_Int32 (*getOffsetX)(GestureEventPeer* peer); - void (*setOffsetX)(GestureEventPeer* peer, + Ark_Int32 (*getOffsetX)(Ark_GestureEvent peer); + void (*setOffsetX)(Ark_GestureEvent peer, const Ark_Number* offsetX); - Ark_Int32 (*getOffsetY)(GestureEventPeer* peer); - void (*setOffsetY)(GestureEventPeer* peer, + Ark_Int32 (*getOffsetY)(Ark_GestureEvent peer); + void (*setOffsetY)(Ark_GestureEvent peer, const Ark_Number* offsetY); - Ark_Int32 (*getAngle)(GestureEventPeer* peer); - void (*setAngle)(GestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_GestureEvent peer); + void (*setAngle)(Ark_GestureEvent peer, const Ark_Number* angle); - Ark_Int32 (*getSpeed)(GestureEventPeer* peer); - void (*setSpeed)(GestureEventPeer* peer, + Ark_Int32 (*getSpeed)(Ark_GestureEvent peer); + void (*setSpeed)(Ark_GestureEvent peer, const Ark_Number* speed); - Ark_Int32 (*getScale)(GestureEventPeer* peer); - void (*setScale)(GestureEventPeer* peer, + Ark_Int32 (*getScale)(Ark_GestureEvent peer); + void (*setScale)(Ark_GestureEvent peer, const Ark_Number* scale); - Ark_Int32 (*getPinchCenterX)(GestureEventPeer* peer); - void (*setPinchCenterX)(GestureEventPeer* peer, + Ark_Int32 (*getPinchCenterX)(Ark_GestureEvent peer); + void (*setPinchCenterX)(Ark_GestureEvent peer, const Ark_Number* pinchCenterX); - Ark_Int32 (*getPinchCenterY)(GestureEventPeer* peer); - void (*setPinchCenterY)(GestureEventPeer* peer, + Ark_Int32 (*getPinchCenterY)(Ark_GestureEvent peer); + void (*setPinchCenterY)(Ark_GestureEvent peer, const Ark_Number* pinchCenterY); - Ark_Int32 (*getVelocityX)(GestureEventPeer* peer); - void (*setVelocityX)(GestureEventPeer* peer, + Ark_Int32 (*getVelocityX)(Ark_GestureEvent peer); + void (*setVelocityX)(Ark_GestureEvent peer, const Ark_Number* velocityX); - Ark_Int32 (*getVelocityY)(GestureEventPeer* peer); - void (*setVelocityY)(GestureEventPeer* peer, + Ark_Int32 (*getVelocityY)(Ark_GestureEvent peer); + void (*setVelocityY)(Ark_GestureEvent peer, const Ark_Number* velocityY); - Ark_Int32 (*getVelocity)(GestureEventPeer* peer); - void (*setVelocity)(GestureEventPeer* peer, + Ark_Int32 (*getVelocity)(Ark_GestureEvent peer); + void (*setVelocity)(Ark_GestureEvent peer, const Ark_Number* velocity); } GENERATED_ArkUIGestureEventAccessor; typedef struct GENERATED_ArkUIPanGestureOptionsAccessor { - void (*destroyPeer)(PanGestureOptionsPeer* peer); + void (*destroyPeer)(Ark_PanGestureOptions peer); Ark_PanGestureOptions (*ctor)(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value); Ark_NativePointer (*getFinalizer)(); - void (*setDirection)(PanGestureOptionsPeer* peer, + void (*setDirection)(Ark_PanGestureOptions peer, Ark_PanDirection value); - void (*setDistance)(PanGestureOptionsPeer* peer, + void (*setDistance)(Ark_PanGestureOptions peer, const Ark_Number* value); - void (*setFingers)(PanGestureOptionsPeer* peer, + void (*setFingers)(Ark_PanGestureOptions peer, const Ark_Number* value); - Ark_NativePointer (*getDirection)(PanGestureOptionsPeer* peer); + Ark_PanDirection (*getDirection)(Ark_PanGestureOptions peer); } GENERATED_ArkUIPanGestureOptionsAccessor; typedef struct GENERATED_ArkUIScrollableTargetInfoAccessor { - void (*destroyPeer)(ScrollableTargetInfoPeer* peer); + void (*destroyPeer)(Ark_ScrollableTargetInfo peer); Ark_ScrollableTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isBegin)(ScrollableTargetInfoPeer* peer); - Ark_Boolean (*isEnd)(ScrollableTargetInfoPeer* peer); + Ark_Boolean (*isBegin)(Ark_ScrollableTargetInfo peer); + Ark_Boolean (*isEnd)(Ark_ScrollableTargetInfo peer); } GENERATED_ArkUIScrollableTargetInfoAccessor; typedef struct GENERATED_ArkUIEventTargetInfoAccessor { - void (*destroyPeer)(EventTargetInfoPeer* peer); + void (*destroyPeer)(Ark_EventTargetInfo peer); Ark_EventTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getId)(EventTargetInfoPeer* peer); + void (*getId)(Ark_EventTargetInfo peer); } GENERATED_ArkUIEventTargetInfoAccessor; typedef struct GENERATED_ArkUIGestureRecognizerAccessor { - void (*destroyPeer)(GestureRecognizerPeer* peer); + void (*destroyPeer)(Ark_GestureRecognizer peer); Ark_GestureRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTag)(GestureRecognizerPeer* peer); - Ark_NativePointer (*getType)(GestureRecognizerPeer* peer); - Ark_Boolean (*isBuiltIn)(GestureRecognizerPeer* peer); - void (*setEnabled)(GestureRecognizerPeer* peer, + void (*getTag)(Ark_GestureRecognizer peer); + Ark_GestureControl_GestureType (*getType)(Ark_GestureRecognizer peer); + Ark_Boolean (*isBuiltIn)(Ark_GestureRecognizer peer); + void (*setEnabled)(Ark_GestureRecognizer peer, Ark_Boolean isEnabled); - Ark_Boolean (*isEnabled)(GestureRecognizerPeer* peer); - Ark_NativePointer (*getState)(GestureRecognizerPeer* peer); - Ark_EventTargetInfo (*getEventTargetInfo)(GestureRecognizerPeer* peer); - Ark_Boolean (*isValid)(GestureRecognizerPeer* peer); + Ark_Boolean (*isEnabled)(Ark_GestureRecognizer peer); + Ark_GestureRecognizerState (*getState)(Ark_GestureRecognizer peer); + Ark_EventTargetInfo (*getEventTargetInfo)(Ark_GestureRecognizer peer); + Ark_Boolean (*isValid)(Ark_GestureRecognizer peer); } GENERATED_ArkUIGestureRecognizerAccessor; typedef struct GENERATED_ArkUIPanRecognizerAccessor { - void (*destroyPeer)(PanRecognizerPeer* peer); + void (*destroyPeer)(Ark_PanRecognizer peer); Ark_PanRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_PanGestureOptions (*getPanGestureOptions)(PanRecognizerPeer* peer); + Ark_PanGestureOptions (*getPanGestureOptions)(Ark_PanRecognizer peer); } GENERATED_ArkUIPanRecognizerAccessor; typedef struct GENERATED_ArkUIImageAnalyzerControllerAccessor { - void (*destroyPeer)(ImageAnalyzerControllerPeer* peer); + void (*destroyPeer)(Ark_ImageAnalyzerController peer); Ark_ImageAnalyzerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getImageAnalyzerSupportTypes)(ImageAnalyzerControllerPeer* peer); + Array_ImageAnalyzerType (*getImageAnalyzerSupportTypes)(Ark_ImageAnalyzerController peer); } GENERATED_ArkUIImageAnalyzerControllerAccessor; typedef struct GENERATED_ArkUIListScrollerAccessor { - void (*destroyPeer)(ListScrollerPeer* peer); + void (*destroyPeer)(Ark_ListScroller peer); Ark_ListScroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getItemRectInGroup)(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup); - void (*scrollToItemInGroup)(ListScrollerPeer* peer, + Ark_RectResult (*getItemRectInGroup)(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup); + void (*scrollToItemInGroup)(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, const Opt_ScrollAlign* align); - void (*closeAllSwipeActions)(ListScrollerPeer* peer, + void (*closeAllSwipeActions)(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options); - Ark_NativePointer (*getVisibleListContentInfo)(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y); + Ark_VisibleListContentInfo (*getVisibleListContentInfo)(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y); } GENERATED_ArkUIListScrollerAccessor; typedef struct GENERATED_ArkUIMatrix2DAccessor { - void (*destroyPeer)(Matrix2DPeer* peer); + void (*destroyPeer)(Ark_Matrix2D peer); Ark_Matrix2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Matrix2D (*identity)(Matrix2DPeer* peer); - Ark_Matrix2D (*invert)(Matrix2DPeer* peer); - Ark_Matrix2D (*multiply)(Matrix2DPeer* peer, + Ark_Matrix2D (*identity)(Ark_Matrix2D peer); + Ark_Matrix2D (*invert)(Ark_Matrix2D peer); + Ark_Matrix2D (*multiply)(Ark_Matrix2D peer, const Opt_Matrix2D* other); - Ark_Matrix2D (*rotate0)(Matrix2DPeer* peer, + Ark_Matrix2D (*rotate0)(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry); - Ark_Matrix2D (*rotate1)(Matrix2DPeer* peer, + Ark_Matrix2D (*rotate1)(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry); - Ark_Matrix2D (*translate)(Matrix2DPeer* peer, + Ark_Matrix2D (*translate)(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty); - Ark_Matrix2D (*scale)(Matrix2DPeer* peer, + Ark_Matrix2D (*scale)(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy); - Ark_Int32 (*getScaleX)(Matrix2DPeer* peer); - void (*setScaleX)(Matrix2DPeer* peer, + Ark_Int32 (*getScaleX)(Ark_Matrix2D peer); + void (*setScaleX)(Ark_Matrix2D peer, const Ark_Number* scaleX); - Ark_Int32 (*getRotateY)(Matrix2DPeer* peer); - void (*setRotateY)(Matrix2DPeer* peer, + Ark_Int32 (*getRotateY)(Ark_Matrix2D peer); + void (*setRotateY)(Ark_Matrix2D peer, const Ark_Number* rotateY); - Ark_Int32 (*getRotateX)(Matrix2DPeer* peer); - void (*setRotateX)(Matrix2DPeer* peer, + Ark_Int32 (*getRotateX)(Ark_Matrix2D peer); + void (*setRotateX)(Ark_Matrix2D peer, const Ark_Number* rotateX); - Ark_Int32 (*getScaleY)(Matrix2DPeer* peer); - void (*setScaleY)(Matrix2DPeer* peer, + Ark_Int32 (*getScaleY)(Ark_Matrix2D peer); + void (*setScaleY)(Ark_Matrix2D peer, const Ark_Number* scaleY); - Ark_Int32 (*getTranslateX)(Matrix2DPeer* peer); - void (*setTranslateX)(Matrix2DPeer* peer, + Ark_Int32 (*getTranslateX)(Ark_Matrix2D peer); + void (*setTranslateX)(Ark_Matrix2D peer, const Ark_Number* translateX); - Ark_Int32 (*getTranslateY)(Matrix2DPeer* peer); - void (*setTranslateY)(Matrix2DPeer* peer, + Ark_Int32 (*getTranslateY)(Ark_Matrix2D peer); + void (*setTranslateY)(Ark_Matrix2D peer, const Ark_Number* translateY); } GENERATED_ArkUIMatrix2DAccessor; typedef struct GENERATED_ArkUINavDestinationContextAccessor { - void (*destroyPeer)(NavDestinationContextPeer* peer); + void (*destroyPeer)(Ark_NavDestinationContext peer); Ark_NavDestinationContext (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getConfigInRouteMap)(NavDestinationContextPeer* peer); - void (*setPathInfo)(NavDestinationContextPeer* peer, + Opt_RouteMapConfig (*getConfigInRouteMap)(Ark_NavDestinationContext peer); + void (*setPathInfo)(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo); - void (*setPathStack)(NavDestinationContextPeer* peer, + void (*setPathStack)(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack); - void (*getNavDestinationId)(NavDestinationContextPeer* peer); - void (*setNavDestinationId)(NavDestinationContextPeer* peer, + void (*getNavDestinationId)(Ark_NavDestinationContext peer); + void (*setNavDestinationId)(Ark_NavDestinationContext peer, const Ark_String* navDestinationId); } GENERATED_ArkUINavDestinationContextAccessor; typedef struct GENERATED_ArkUINavPathInfoAccessor { - void (*destroyPeer)(NavPathInfoPeer* peer); + void (*destroyPeer)(Ark_NavPathInfo peer); Ark_NavPathInfo (*ctor)(const Ark_String* name, const Ark_CustomObject* param, const Opt_Callback_PopInfo_Void* onPop, const Opt_Boolean* isEntry); Ark_NativePointer (*getFinalizer)(); - void (*getName)(NavPathInfoPeer* peer); - void (*setName)(NavPathInfoPeer* peer, + void (*getName)(Ark_NavPathInfo peer); + void (*setName)(Ark_NavPathInfo peer, const Ark_String* name); - void (*setParam)(NavPathInfoPeer* peer, + void (*setParam)(Ark_NavPathInfo peer, const Ark_CustomObject* param); - Callback_PopInfo_Void (*getOnPop)(NavPathInfoPeer* peer); - void (*setOnPop)(NavPathInfoPeer* peer, + Callback_PopInfo_Void (*getOnPop)(Ark_NavPathInfo peer); + void (*setOnPop)(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop); - Ark_Boolean (*getIsEntry)(NavPathInfoPeer* peer); - void (*setIsEntry)(NavPathInfoPeer* peer, + Ark_Boolean (*getIsEntry)(Ark_NavPathInfo peer); + void (*setIsEntry)(Ark_NavPathInfo peer, Ark_Boolean isEntry); } GENERATED_ArkUINavPathInfoAccessor; typedef struct GENERATED_ArkUINavPathStackAccessor { - void (*destroyPeer)(NavPathStackPeer* peer); + void (*destroyPeer)(Ark_NavPathStack peer); Ark_NavPathStack (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*pushPath0)(NavPathStackPeer* peer, + void (*pushPath0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated); - void (*pushPath1)(NavPathStackPeer* peer, + void (*pushPath1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options); - void (*pushDestination0)(NavPathStackPeer* peer, + void (*pushDestination0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushDestination1)(NavPathStackPeer* peer, + void (*pushDestination1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushPathByName0)(NavPathStackPeer* peer, + void (*pushPathByName0)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated); - void (*pushPathByName1)(NavPathStackPeer* peer, + void (*pushPathByName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated); - void (*pushDestinationByName0)(NavPathStackPeer* peer, + void (*pushDestinationByName0)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushDestinationByName1)(NavPathStackPeer* peer, + void (*pushDestinationByName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*replacePath0)(NavPathStackPeer* peer, + void (*replacePath0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated); - void (*replacePath1)(NavPathStackPeer* peer, + void (*replacePath1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options); - void (*replaceDestination)(NavPathStackPeer* peer, + void (*replaceDestination)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*replacePathByName)(NavPathStackPeer* peer, + void (*replacePathByName)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated); - Ark_Int32 (*removeByIndexes)(NavPathStackPeer* peer, + Ark_Int32 (*removeByIndexes)(Ark_NavPathStack peer, const Array_Number* indexes); - Ark_Int32 (*removeByName)(NavPathStackPeer* peer, + Ark_Int32 (*removeByName)(Ark_NavPathStack peer, const Ark_String* name); - Ark_Boolean (*removeByNavDestinationId)(NavPathStackPeer* peer, + Ark_Boolean (*removeByNavDestinationId)(Ark_NavPathStack peer, const Ark_String* navDestinationId); - Ark_NavPathInfo (*pop0)(NavPathStackPeer* peer, + Opt_NavPathInfo (*pop0)(Ark_NavPathStack peer, const Opt_Boolean* animated); - Ark_NavPathInfo (*pop1)(NavPathStackPeer* peer, + Opt_NavPathInfo (*pop1)(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated); - Ark_Int32 (*popToName0)(NavPathStackPeer* peer, + Ark_Int32 (*popToName0)(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated); - Ark_Int32 (*popToName1)(NavPathStackPeer* peer, + Ark_Int32 (*popToName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated); - void (*popToIndex0)(NavPathStackPeer* peer, + void (*popToIndex0)(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated); - void (*popToIndex1)(NavPathStackPeer* peer, + void (*popToIndex1)(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated); - Ark_Int32 (*moveToTop)(NavPathStackPeer* peer, + Ark_Int32 (*moveToTop)(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated); - void (*moveIndexToTop)(NavPathStackPeer* peer, + void (*moveIndexToTop)(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated); - void (*clear)(NavPathStackPeer* peer, + void (*clear)(Ark_NavPathStack peer, const Opt_Boolean* animated); - void (*getAllPathName)(NavPathStackPeer* peer); - void (*getParamByIndex)(NavPathStackPeer* peer, - const Ark_Number* index); - void (*getParamByName)(NavPathStackPeer* peer, - const Ark_String* name); - void (*getIndexByName)(NavPathStackPeer* peer, - const Ark_String* name); - Ark_NavPathStack (*getParent)(NavPathStackPeer* peer); - Ark_Int32 (*size)(NavPathStackPeer* peer); - void (*disableAnimation)(NavPathStackPeer* peer, + Array_String (*getAllPathName)(Ark_NavPathStack peer); + Opt_CustomObject (*getParamByIndex)(Ark_NavPathStack peer, + const Ark_Number* index); + Array_CustomObject (*getParamByName)(Ark_NavPathStack peer, + const Ark_String* name); + Array_Number (*getIndexByName)(Ark_NavPathStack peer, + const Ark_String* name); + Opt_NavPathStack (*getParent)(Ark_NavPathStack peer); + Ark_Int32 (*size)(Ark_NavPathStack peer); + void (*disableAnimation)(Ark_NavPathStack peer, Ark_Boolean value); - void (*setInterception)(NavPathStackPeer* peer, + void (*setInterception)(Ark_NavPathStack peer, const Ark_NavigationInterception* interception); } GENERATED_ArkUINavPathStackAccessor; typedef struct GENERATED_ArkUINavigationTransitionProxyAccessor { - void (*destroyPeer)(NavigationTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_NavigationTransitionProxy peer); Ark_NavigationTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(NavigationTransitionProxyPeer* peer); - void (*cancelTransition)(NavigationTransitionProxyPeer* peer); - void (*updateTransition)(NavigationTransitionProxyPeer* peer, + void (*finishTransition)(Ark_NavigationTransitionProxy peer); + void (*cancelTransition)(Ark_NavigationTransitionProxy peer); + void (*updateTransition)(Ark_NavigationTransitionProxy peer, const Ark_Number* progress); - void (*setFrom)(NavigationTransitionProxyPeer* peer, + void (*setFrom)(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from); - void (*setTo)(NavigationTransitionProxyPeer* peer, + void (*setTo)(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to); - Ark_Boolean (*getIsInteractive)(NavigationTransitionProxyPeer* peer); - void (*setIsInteractive)(NavigationTransitionProxyPeer* peer, + Ark_Boolean (*getIsInteractive)(Ark_NavigationTransitionProxy peer); + void (*setIsInteractive)(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive); } GENERATED_ArkUINavigationTransitionProxyAccessor; typedef struct GENERATED_ArkUIPatternLockControllerAccessor { - void (*destroyPeer)(PatternLockControllerPeer* peer); + void (*destroyPeer)(Ark_PatternLockController peer); Ark_PatternLockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*reset)(PatternLockControllerPeer* peer); - void (*setChallengeResult)(PatternLockControllerPeer* peer, + void (*reset)(Ark_PatternLockController peer); + void (*setChallengeResult)(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result); } GENERATED_ArkUIPatternLockControllerAccessor; typedef struct GENERATED_ArkUIRichEditorBaseControllerAccessor { - void (*destroyPeer)(RichEditorBaseControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorBaseController peer); Ark_RichEditorBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getCaretOffset)(RichEditorBaseControllerPeer* peer); - Ark_Boolean (*setCaretOffset)(RichEditorBaseControllerPeer* peer, + Ark_Int32 (*getCaretOffset)(Ark_RichEditorBaseController peer); + Ark_Boolean (*setCaretOffset)(Ark_RichEditorBaseController peer, const Ark_Number* offset); - void (*closeSelectionMenu)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*getTypingStyle)(RichEditorBaseControllerPeer* peer); - void (*setTypingStyle)(RichEditorBaseControllerPeer* peer, + void (*closeSelectionMenu)(Ark_RichEditorBaseController peer); + Ark_RichEditorTextStyle (*getTypingStyle)(Ark_RichEditorBaseController peer); + void (*setTypingStyle)(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value); - void (*setSelection)(RichEditorBaseControllerPeer* peer, + void (*setSelection)(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - Ark_Boolean (*isEditing)(RichEditorBaseControllerPeer* peer); - void (*stopEditing)(RichEditorBaseControllerPeer* peer); - Ark_LayoutManager (*getLayoutManager)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*getPreviewText)(RichEditorBaseControllerPeer* peer); + Ark_Boolean (*isEditing)(Ark_RichEditorBaseController peer); + void (*stopEditing)(Ark_RichEditorBaseController peer); + Ark_LayoutManager (*getLayoutManager)(Ark_RichEditorBaseController peer); + Ark_PreviewText (*getPreviewText)(Ark_RichEditorBaseController peer); } GENERATED_ArkUIRichEditorBaseControllerAccessor; typedef struct GENERATED_ArkUIRichEditorControllerAccessor { - void (*destroyPeer)(RichEditorControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorController peer); Ark_RichEditorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*addTextSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addTextSpan)(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options); - Ark_Int32 (*addImageSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addImageSpan)(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options); - Ark_Int32 (*addBuilderSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addBuilderSpan)(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options); - Ark_Int32 (*addSymbolSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addSymbolSpan)(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options); - void (*updateSpanStyle)(RichEditorControllerPeer* peer, + void (*updateSpanStyle)(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value); - void (*updateParagraphStyle)(RichEditorControllerPeer* peer, + void (*updateParagraphStyle)(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value); - void (*deleteSpans)(RichEditorControllerPeer* peer, + void (*deleteSpans)(Ark_RichEditorController peer, const Opt_RichEditorRange* value); - void (*getSpans)(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value); - void (*getParagraphs)(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value); - Ark_NativePointer (*getSelection)(RichEditorControllerPeer* peer); - void (*fromStyledString)(RichEditorControllerPeer* peer, - Ark_StyledString value); - Ark_StyledString (*toStyledString)(RichEditorControllerPeer* peer, + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult (*getSpans)(Ark_RichEditorController peer, + const Opt_RichEditorRange* value); + Array_RichEditorParagraphResult (*getParagraphs)(Ark_RichEditorController peer, + const Opt_RichEditorRange* value); + Ark_RichEditorSelection (*getSelection)(Ark_RichEditorController peer); + Array_RichEditorSpan (*fromStyledString)(Ark_RichEditorController peer, + Ark_StyledString value); + Ark_StyledString (*toStyledString)(Ark_RichEditorController peer, const Ark_RichEditorRange* value); } GENERATED_ArkUIRichEditorControllerAccessor; typedef struct GENERATED_ArkUIRichEditorStyledStringControllerAccessor { - void (*destroyPeer)(RichEditorStyledStringControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorStyledStringController peer); Ark_RichEditorStyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setStyledString)(RichEditorStyledStringControllerPeer* peer, + void (*setStyledString)(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString); - Ark_MutableStyledString (*getStyledString)(RichEditorStyledStringControllerPeer* peer); - Ark_NativePointer (*getSelection)(RichEditorStyledStringControllerPeer* peer); - void (*onContentChanged)(RichEditorStyledStringControllerPeer* peer, + Ark_MutableStyledString (*getStyledString)(Ark_RichEditorStyledStringController peer); + Ark_RichEditorRange (*getSelection)(Ark_RichEditorStyledStringController peer); + void (*onContentChanged)(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener); } GENERATED_ArkUIRichEditorStyledStringControllerAccessor; typedef struct GENERATED_ArkUIScrollerAccessor { - void (*destroyPeer)(ScrollerPeer* peer); + void (*destroyPeer)(Ark_Scroller peer); Ark_Scroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*scrollTo)(ScrollerPeer* peer, + void (*scrollTo)(Ark_Scroller peer, const Ark_ScrollOptions* options); - void (*scrollEdge)(ScrollerPeer* peer, + void (*scrollEdge)(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options); - void (*fling)(ScrollerPeer* peer, + void (*fling)(Ark_Scroller peer, const Ark_Number* velocity); - void (*scrollPage0)(ScrollerPeer* peer, + void (*scrollPage0)(Ark_Scroller peer, const Ark_ScrollPageOptions* value); - void (*scrollPage1)(ScrollerPeer* peer, + void (*scrollPage1)(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value); - Ark_NativePointer (*currentOffset)(ScrollerPeer* peer); - void (*scrollToIndex)(ScrollerPeer* peer, + Ark_OffsetResult (*currentOffset)(Ark_Scroller peer); + void (*scrollToIndex)(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, const Opt_ScrollToIndexOptions* options); - void (*scrollBy)(ScrollerPeer* peer, + void (*scrollBy)(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy); - Ark_Boolean (*isAtEnd)(ScrollerPeer* peer); - Ark_NativePointer (*getItemRect)(ScrollerPeer* peer, - const Ark_Number* index); - Ark_Int32 (*getItemIndex)(ScrollerPeer* peer, + Ark_Boolean (*isAtEnd)(Ark_Scroller peer); + Ark_RectResult (*getItemRect)(Ark_Scroller peer, + const Ark_Number* index); + Ark_Int32 (*getItemIndex)(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y); } GENERATED_ArkUIScrollerAccessor; typedef struct GENERATED_ArkUISearchControllerAccessor { - void (*destroyPeer)(SearchControllerPeer* peer); + void (*destroyPeer)(Ark_SearchController peer); Ark_SearchController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(SearchControllerPeer* peer, + void (*caretPosition)(Ark_SearchController peer, const Ark_Number* value); - void (*stopEditing)(SearchControllerPeer* peer); - void (*setTextSelection)(SearchControllerPeer* peer, + void (*stopEditing)(Ark_SearchController peer); + void (*setTextSelection)(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); } GENERATED_ArkUISearchControllerAccessor; typedef struct GENERATED_ArkUISwiperControllerAccessor { - void (*destroyPeer)(SwiperControllerPeer* peer); + void (*destroyPeer)(Ark_SwiperController peer); Ark_SwiperController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*showNext)(SwiperControllerPeer* peer); - void (*showPrevious)(SwiperControllerPeer* peer); - void (*changeIndex)(SwiperControllerPeer* peer, + void (*showNext)(Ark_SwiperController peer); + void (*showPrevious)(Ark_SwiperController peer); + void (*changeIndex)(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation); - void (*finishAnimation)(SwiperControllerPeer* peer, + void (*finishAnimation)(Ark_SwiperController peer, const Opt_VoidCallback* callback_); } GENERATED_ArkUISwiperControllerAccessor; typedef struct GENERATED_ArkUISwiperContentTransitionProxyAccessor { - void (*destroyPeer)(SwiperContentTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_SwiperContentTransitionProxy peer); Ark_SwiperContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(SwiperContentTransitionProxyPeer* peer); - Ark_Int32 (*getSelectedIndex)(SwiperContentTransitionProxyPeer* peer); - void (*setSelectedIndex)(SwiperContentTransitionProxyPeer* peer, + void (*finishTransition)(Ark_SwiperContentTransitionProxy peer); + Ark_Int32 (*getSelectedIndex)(Ark_SwiperContentTransitionProxy peer); + void (*setSelectedIndex)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex); - Ark_Int32 (*getIndex)(SwiperContentTransitionProxyPeer* peer); - void (*setIndex)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getIndex)(Ark_SwiperContentTransitionProxy peer); + void (*setIndex)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index); - Ark_Int32 (*getPosition)(SwiperContentTransitionProxyPeer* peer); - void (*setPosition)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getPosition)(Ark_SwiperContentTransitionProxy peer); + void (*setPosition)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position); - Ark_Int32 (*getMainAxisLength)(SwiperContentTransitionProxyPeer* peer); - void (*setMainAxisLength)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getMainAxisLength)(Ark_SwiperContentTransitionProxy peer); + void (*setMainAxisLength)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength); } GENERATED_ArkUISwiperContentTransitionProxyAccessor; typedef struct GENERATED_ArkUIIndicatorComponentControllerAccessor { - void (*destroyPeer)(IndicatorComponentControllerPeer* peer); + void (*destroyPeer)(Ark_IndicatorComponentController peer); Ark_IndicatorComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*showNext)(IndicatorComponentControllerPeer* peer); - void (*showPrevious)(IndicatorComponentControllerPeer* peer); - void (*changeIndex)(IndicatorComponentControllerPeer* peer, + void (*showNext)(Ark_IndicatorComponentController peer); + void (*showPrevious)(Ark_IndicatorComponentController peer); + void (*changeIndex)(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation); } GENERATED_ArkUIIndicatorComponentControllerAccessor; typedef struct GENERATED_ArkUIScaleSymbolEffectAccessor { - void (*destroyPeer)(ScaleSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_ScaleSymbolEffect peer); Ark_ScaleSymbolEffect (*ctor)(const Opt_EffectScope* scope, const Opt_EffectDirection* direction); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(ScaleSymbolEffectPeer* peer); - void (*setScope)(ScaleSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_ScaleSymbolEffect peer); + void (*setScope)(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope); - Ark_NativePointer (*getDirection)(ScaleSymbolEffectPeer* peer); - void (*setDirection)(ScaleSymbolEffectPeer* peer, + Ark_EffectDirection (*getDirection)(Ark_ScaleSymbolEffect peer); + void (*setDirection)(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction); } GENERATED_ArkUIScaleSymbolEffectAccessor; typedef struct GENERATED_ArkUIHierarchicalSymbolEffectAccessor { - void (*destroyPeer)(HierarchicalSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_HierarchicalSymbolEffect peer); Ark_HierarchicalSymbolEffect (*ctor)(const Opt_EffectFillStyle* fillStyle); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getFillStyle)(HierarchicalSymbolEffectPeer* peer); - void (*setFillStyle)(HierarchicalSymbolEffectPeer* peer, + Ark_EffectFillStyle (*getFillStyle)(Ark_HierarchicalSymbolEffect peer); + void (*setFillStyle)(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle); } GENERATED_ArkUIHierarchicalSymbolEffectAccessor; typedef struct GENERATED_ArkUIAppearSymbolEffectAccessor { - void (*destroyPeer)(AppearSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_AppearSymbolEffect peer); Ark_AppearSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(AppearSymbolEffectPeer* peer); - void (*setScope)(AppearSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_AppearSymbolEffect peer); + void (*setScope)(Ark_AppearSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIAppearSymbolEffectAccessor; typedef struct GENERATED_ArkUIDisappearSymbolEffectAccessor { - void (*destroyPeer)(DisappearSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_DisappearSymbolEffect peer); Ark_DisappearSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(DisappearSymbolEffectPeer* peer); - void (*setScope)(DisappearSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_DisappearSymbolEffect peer); + void (*setScope)(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIDisappearSymbolEffectAccessor; typedef struct GENERATED_ArkUIBounceSymbolEffectAccessor { - void (*destroyPeer)(BounceSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_BounceSymbolEffect peer); Ark_BounceSymbolEffect (*ctor)(const Opt_EffectScope* scope, const Opt_EffectDirection* direction); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(BounceSymbolEffectPeer* peer); - void (*setScope)(BounceSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_BounceSymbolEffect peer); + void (*setScope)(Ark_BounceSymbolEffect peer, Ark_EffectScope scope); - Ark_NativePointer (*getDirection)(BounceSymbolEffectPeer* peer); - void (*setDirection)(BounceSymbolEffectPeer* peer, + Ark_EffectDirection (*getDirection)(Ark_BounceSymbolEffect peer); + void (*setDirection)(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction); } GENERATED_ArkUIBounceSymbolEffectAccessor; typedef struct GENERATED_ArkUIReplaceSymbolEffectAccessor { - void (*destroyPeer)(ReplaceSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_ReplaceSymbolEffect peer); Ark_ReplaceSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(ReplaceSymbolEffectPeer* peer); - void (*setScope)(ReplaceSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_ReplaceSymbolEffect peer); + void (*setScope)(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIReplaceSymbolEffectAccessor; typedef struct GENERATED_ArkUITabsControllerAccessor { - void (*destroyPeer)(TabsControllerPeer* peer); + void (*destroyPeer)(Ark_TabsController peer); Ark_TabsController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*changeIndex)(TabsControllerPeer* peer, + void (*changeIndex)(Ark_TabsController peer, const Ark_Number* value); - void (*preloadItems)(TabsControllerPeer* peer, + void (*preloadItems)(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*setTabBarTranslate)(TabsControllerPeer* peer, + void (*setTabBarTranslate)(Ark_TabsController peer, const Ark_TranslateOptions* translate); - void (*setTabBarOpacity)(TabsControllerPeer* peer, + void (*setTabBarOpacity)(Ark_TabsController peer, const Ark_Number* opacity); } GENERATED_ArkUITabsControllerAccessor; typedef struct GENERATED_ArkUITabContentTransitionProxyAccessor { - void (*destroyPeer)(TabContentTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_TabContentTransitionProxy peer); Ark_TabContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(TabContentTransitionProxyPeer* peer); - Ark_Int32 (*getFrom)(TabContentTransitionProxyPeer* peer); - void (*setFrom)(TabContentTransitionProxyPeer* peer, + void (*finishTransition)(Ark_TabContentTransitionProxy peer); + Ark_Int32 (*getFrom)(Ark_TabContentTransitionProxy peer); + void (*setFrom)(Ark_TabContentTransitionProxy peer, const Ark_Number* from); - Ark_Int32 (*getTo)(TabContentTransitionProxyPeer* peer); - void (*setTo)(TabContentTransitionProxyPeer* peer, + Ark_Int32 (*getTo)(Ark_TabContentTransitionProxy peer); + void (*setTo)(Ark_TabContentTransitionProxy peer, const Ark_Number* to); } GENERATED_ArkUITabContentTransitionProxyAccessor; typedef struct GENERATED_ArkUITextControllerAccessor { - void (*destroyPeer)(TextControllerPeer* peer); + void (*destroyPeer)(Ark_TextController peer); Ark_TextController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*closeSelectionMenu)(TextControllerPeer* peer); - void (*setStyledString)(TextControllerPeer* peer, + void (*closeSelectionMenu)(Ark_TextController peer); + void (*setStyledString)(Ark_TextController peer, Ark_StyledString value); - Ark_LayoutManager (*getLayoutManager)(TextControllerPeer* peer); + Ark_LayoutManager (*getLayoutManager)(Ark_TextController peer); } GENERATED_ArkUITextControllerAccessor; typedef struct GENERATED_ArkUITextAreaControllerAccessor { - void (*destroyPeer)(TextAreaControllerPeer* peer); + void (*destroyPeer)(Ark_TextAreaController peer); Ark_TextAreaController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(TextAreaControllerPeer* peer, + void (*caretPosition)(Ark_TextAreaController peer, const Ark_Number* value); - void (*setTextSelection)(TextAreaControllerPeer* peer, + void (*setTextSelection)(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*stopEditing)(TextAreaControllerPeer* peer); + void (*stopEditing)(Ark_TextAreaController peer); } GENERATED_ArkUITextAreaControllerAccessor; typedef struct GENERATED_ArkUITextClockControllerAccessor { - void (*destroyPeer)(TextClockControllerPeer* peer); + void (*destroyPeer)(Ark_TextClockController peer); Ark_TextClockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(TextClockControllerPeer* peer); - void (*stop)(TextClockControllerPeer* peer); + void (*start)(Ark_TextClockController peer); + void (*stop)(Ark_TextClockController peer); } GENERATED_ArkUITextClockControllerAccessor; typedef struct GENERATED_ArkUITextBaseControllerAccessor { - void (*destroyPeer)(TextBaseControllerPeer* peer); + void (*destroyPeer)(Ark_TextBaseController peer); Ark_TextBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setSelection)(TextBaseControllerPeer* peer, + void (*setSelection)(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*closeSelectionMenu)(TextBaseControllerPeer* peer); - Ark_LayoutManager (*getLayoutManager)(TextBaseControllerPeer* peer); + void (*closeSelectionMenu)(Ark_TextBaseController peer); + Ark_LayoutManager (*getLayoutManager)(Ark_TextBaseController peer); } GENERATED_ArkUITextBaseControllerAccessor; typedef struct GENERATED_ArkUITextEditControllerExAccessor { - void (*destroyPeer)(TextEditControllerExPeer* peer); + void (*destroyPeer)(Ark_TextEditControllerEx peer); Ark_TextEditControllerEx (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isEditing)(TextEditControllerExPeer* peer); - void (*stopEditing)(TextEditControllerExPeer* peer); - Ark_Boolean (*setCaretOffset)(TextEditControllerExPeer* peer, + Ark_Boolean (*isEditing)(Ark_TextEditControllerEx peer); + void (*stopEditing)(Ark_TextEditControllerEx peer); + Ark_Boolean (*setCaretOffset)(Ark_TextEditControllerEx peer, const Ark_Number* offset); - Ark_Int32 (*getCaretOffset)(TextEditControllerExPeer* peer); - Ark_NativePointer (*getPreviewText)(TextEditControllerExPeer* peer); + Ark_Int32 (*getCaretOffset)(Ark_TextEditControllerEx peer); + Ark_PreviewText (*getPreviewText)(Ark_TextEditControllerEx peer); } GENERATED_ArkUITextEditControllerExAccessor; typedef struct GENERATED_ArkUIStyledStringControllerAccessor { - void (*destroyPeer)(StyledStringControllerPeer* peer); + void (*destroyPeer)(Ark_StyledStringController peer); Ark_StyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setStyledString)(StyledStringControllerPeer* peer, + void (*setStyledString)(Ark_StyledStringController peer, Ark_StyledString styledString); - Ark_MutableStyledString (*getStyledString)(StyledStringControllerPeer* peer); + Ark_MutableStyledString (*getStyledString)(Ark_StyledStringController peer); } GENERATED_ArkUIStyledStringControllerAccessor; typedef struct GENERATED_ArkUILayoutManagerAccessor { - void (*destroyPeer)(LayoutManagerPeer* peer); + void (*destroyPeer)(Ark_LayoutManager peer); Ark_LayoutManager (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLineCount)(LayoutManagerPeer* peer); - Ark_NativePointer (*getGlyphPositionAtCoordinate)(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y); - Ark_NativePointer (*getLineMetrics)(LayoutManagerPeer* peer, - const Ark_Number* lineNumber); - void (*getRectsForRange)(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle); + Ark_Int32 (*getLineCount)(Ark_LayoutManager peer); + Ark_PositionWithAffinity (*getGlyphPositionAtCoordinate)(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y); + Ark_LineMetrics (*getLineMetrics)(Ark_LayoutManager peer, + const Ark_Number* lineNumber); + Array_TextBox (*getRectsForRange)(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle); } GENERATED_ArkUILayoutManagerAccessor; typedef struct GENERATED_ArkUITextMenuItemIdAccessor { - void (*destroyPeer)(TextMenuItemIdPeer* peer); + void (*destroyPeer)(Ark_TextMenuItemId peer); Ark_TextMenuItemId (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_TextMenuItemId (*of)(const Ark_ResourceStr* id); - Ark_Boolean (*equals)(TextMenuItemIdPeer* peer, + Ark_Boolean (*equals)(Ark_TextMenuItemId peer, Ark_TextMenuItemId id); } GENERATED_ArkUITextMenuItemIdAccessor; typedef struct GENERATED_ArkUIEditMenuOptionsAccessor { - void (*destroyPeer)(EditMenuOptionsPeer* peer); + void (*destroyPeer)(Ark_EditMenuOptions peer); Ark_EditMenuOptions (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onCreateMenu)(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems); - Ark_Boolean (*onMenuItemClick)(EditMenuOptionsPeer* peer, + Array_TextMenuItem (*onCreateMenu)(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems); + Ark_Boolean (*onMenuItemClick)(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range); } GENERATED_ArkUIEditMenuOptionsAccessor; typedef struct GENERATED_ArkUISubmitEventAccessor { - void (*destroyPeer)(SubmitEventPeer* peer); + void (*destroyPeer)(Ark_SubmitEvent peer); Ark_SubmitEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*keepEditableState)(SubmitEventPeer* peer); - void (*getText)(SubmitEventPeer* peer); - void (*setText)(SubmitEventPeer* peer, + void (*keepEditableState)(Ark_SubmitEvent peer); + void (*getText)(Ark_SubmitEvent peer); + void (*setText)(Ark_SubmitEvent peer, const Ark_String* text); } GENERATED_ArkUISubmitEventAccessor; typedef struct GENERATED_ArkUITextInputControllerAccessor { - void (*destroyPeer)(TextInputControllerPeer* peer); + void (*destroyPeer)(Ark_TextInputController peer); Ark_TextInputController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(TextInputControllerPeer* peer, + void (*caretPosition)(Ark_TextInputController peer, const Ark_Number* value); - void (*setTextSelection)(TextInputControllerPeer* peer, + void (*setTextSelection)(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*stopEditing)(TextInputControllerPeer* peer); + void (*stopEditing)(Ark_TextInputController peer); } GENERATED_ArkUITextInputControllerAccessor; typedef struct GENERATED_ArkUITextPickerDialogAccessor { - void (*destroyPeer)(TextPickerDialogPeer* peer); + void (*destroyPeer)(Ark_TextPickerDialog peer); Ark_TextPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TextPickerDialogOptions* options); } GENERATED_ArkUITextPickerDialogAccessor; typedef struct GENERATED_ArkUITextTimerControllerAccessor { - void (*destroyPeer)(TextTimerControllerPeer* peer); + void (*destroyPeer)(Ark_TextTimerController peer); Ark_TextTimerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(TextTimerControllerPeer* peer); - void (*pause)(TextTimerControllerPeer* peer); - void (*reset)(TextTimerControllerPeer* peer); + void (*start)(Ark_TextTimerController peer); + void (*pause)(Ark_TextTimerController peer); + void (*reset)(Ark_TextTimerController peer); } GENERATED_ArkUITextTimerControllerAccessor; typedef struct GENERATED_ArkUITimePickerDialogAccessor { - void (*destroyPeer)(TimePickerDialogPeer* peer); + void (*destroyPeer)(Ark_TimePickerDialog peer); Ark_TimePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TimePickerDialogOptions* options); } GENERATED_ArkUITimePickerDialogAccessor; typedef struct GENERATED_ArkUIColorFilterAccessor { - void (*destroyPeer)(ColorFilterPeer* peer); + void (*destroyPeer)(Ark_ColorFilter peer); Ark_ColorFilter (*ctor)(const Array_Number* value); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIColorFilterAccessor; typedef struct GENERATED_ArkUIVideoControllerAccessor { - void (*destroyPeer)(VideoControllerPeer* peer); + void (*destroyPeer)(Ark_VideoController peer); Ark_VideoController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(VideoControllerPeer* peer); - void (*pause)(VideoControllerPeer* peer); - void (*stop)(VideoControllerPeer* peer); - void (*setCurrentTime0)(VideoControllerPeer* peer, + void (*start)(Ark_VideoController peer); + void (*pause)(Ark_VideoController peer); + void (*stop)(Ark_VideoController peer); + void (*setCurrentTime0)(Ark_VideoController peer, const Ark_Number* value); - void (*requestFullscreen)(VideoControllerPeer* peer, + void (*requestFullscreen)(Ark_VideoController peer, Ark_Boolean value); - void (*exitFullscreen)(VideoControllerPeer* peer); - void (*setCurrentTime1)(VideoControllerPeer* peer, + void (*exitFullscreen)(Ark_VideoController peer); + void (*setCurrentTime1)(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode); - void (*reset)(VideoControllerPeer* peer); + void (*reset)(Ark_VideoController peer); } GENERATED_ArkUIVideoControllerAccessor; typedef struct GENERATED_ArkUIWebKeyboardControllerAccessor { - void (*destroyPeer)(WebKeyboardControllerPeer* peer); + void (*destroyPeer)(Ark_WebKeyboardController peer); Ark_WebKeyboardController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*insertText)(WebKeyboardControllerPeer* peer, + void (*insertText)(Ark_WebKeyboardController peer, const Ark_String* text); - void (*deleteForward)(WebKeyboardControllerPeer* peer, + void (*deleteForward)(Ark_WebKeyboardController peer, const Ark_Number* length); - void (*deleteBackward)(WebKeyboardControllerPeer* peer, + void (*deleteBackward)(Ark_WebKeyboardController peer, const Ark_Number* length); - void (*sendFunctionKey)(WebKeyboardControllerPeer* peer, + void (*sendFunctionKey)(Ark_WebKeyboardController peer, const Ark_Number* key); - void (*close)(WebKeyboardControllerPeer* peer); + void (*close)(Ark_WebKeyboardController peer); } GENERATED_ArkUIWebKeyboardControllerAccessor; typedef struct GENERATED_ArkUIFullScreenExitHandlerAccessor { - void (*destroyPeer)(FullScreenExitHandlerPeer* peer); + void (*destroyPeer)(Ark_FullScreenExitHandler peer); Ark_FullScreenExitHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*exitFullScreen)(FullScreenExitHandlerPeer* peer); + void (*exitFullScreen)(Ark_FullScreenExitHandler peer); } GENERATED_ArkUIFullScreenExitHandlerAccessor; typedef struct GENERATED_ArkUIFileSelectorParamAccessor { - void (*destroyPeer)(FileSelectorParamPeer* peer); + void (*destroyPeer)(Ark_FileSelectorParam peer); Ark_FileSelectorParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTitle)(FileSelectorParamPeer* peer); - Ark_NativePointer (*getMode)(FileSelectorParamPeer* peer); - void (*getAcceptType)(FileSelectorParamPeer* peer); - Ark_Boolean (*isCapture)(FileSelectorParamPeer* peer); + void (*getTitle)(Ark_FileSelectorParam peer); + Ark_FileSelectorMode (*getMode)(Ark_FileSelectorParam peer); + Array_String (*getAcceptType)(Ark_FileSelectorParam peer); + Ark_Boolean (*isCapture)(Ark_FileSelectorParam peer); } GENERATED_ArkUIFileSelectorParamAccessor; typedef struct GENERATED_ArkUIJsResultAccessor { - void (*destroyPeer)(JsResultPeer* peer); + void (*destroyPeer)(Ark_JsResult peer); Ark_JsResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleCancel)(JsResultPeer* peer); - void (*handleConfirm)(JsResultPeer* peer); - void (*handlePromptConfirm)(JsResultPeer* peer, + void (*handleCancel)(Ark_JsResult peer); + void (*handleConfirm)(Ark_JsResult peer); + void (*handlePromptConfirm)(Ark_JsResult peer, const Ark_String* result); } GENERATED_ArkUIJsResultAccessor; typedef struct GENERATED_ArkUIFileSelectorResultAccessor { - void (*destroyPeer)(FileSelectorResultPeer* peer); + void (*destroyPeer)(Ark_FileSelectorResult peer); Ark_FileSelectorResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleFileList)(FileSelectorResultPeer* peer, + void (*handleFileList)(Ark_FileSelectorResult peer, const Array_String* fileList); } GENERATED_ArkUIFileSelectorResultAccessor; typedef struct GENERATED_ArkUIHttpAuthHandlerAccessor { - void (*destroyPeer)(HttpAuthHandlerPeer* peer); + void (*destroyPeer)(Ark_HttpAuthHandler peer); Ark_HttpAuthHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*confirm)(HttpAuthHandlerPeer* peer, + Ark_Boolean (*confirm)(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password); - void (*cancel)(HttpAuthHandlerPeer* peer); - Ark_Boolean (*isHttpAuthInfoSaved)(HttpAuthHandlerPeer* peer); + void (*cancel)(Ark_HttpAuthHandler peer); + Ark_Boolean (*isHttpAuthInfoSaved)(Ark_HttpAuthHandler peer); } GENERATED_ArkUIHttpAuthHandlerAccessor; typedef struct GENERATED_ArkUISslErrorHandlerAccessor { - void (*destroyPeer)(SslErrorHandlerPeer* peer); + void (*destroyPeer)(Ark_SslErrorHandler peer); Ark_SslErrorHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleConfirm)(SslErrorHandlerPeer* peer); - void (*handleCancel)(SslErrorHandlerPeer* peer); + void (*handleConfirm)(Ark_SslErrorHandler peer); + void (*handleCancel)(Ark_SslErrorHandler peer); } GENERATED_ArkUISslErrorHandlerAccessor; typedef struct GENERATED_ArkUIClientAuthenticationHandlerAccessor { - void (*destroyPeer)(ClientAuthenticationHandlerPeer* peer); + void (*destroyPeer)(Ark_ClientAuthenticationHandler peer); Ark_ClientAuthenticationHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*confirm0)(ClientAuthenticationHandlerPeer* peer, + void (*confirm0)(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile); - void (*confirm1)(ClientAuthenticationHandlerPeer* peer, + void (*confirm1)(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri); - void (*cancel)(ClientAuthenticationHandlerPeer* peer); - void (*ignore)(ClientAuthenticationHandlerPeer* peer); + void (*cancel)(Ark_ClientAuthenticationHandler peer); + void (*ignore)(Ark_ClientAuthenticationHandler peer); } GENERATED_ArkUIClientAuthenticationHandlerAccessor; typedef struct GENERATED_ArkUIPermissionRequestAccessor { - void (*destroyPeer)(PermissionRequestPeer* peer); + void (*destroyPeer)(Ark_PermissionRequest peer); Ark_PermissionRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*deny)(PermissionRequestPeer* peer); - void (*getOrigin)(PermissionRequestPeer* peer); - void (*getAccessibleResource)(PermissionRequestPeer* peer); - void (*grant)(PermissionRequestPeer* peer, + void (*deny)(Ark_PermissionRequest peer); + void (*getOrigin)(Ark_PermissionRequest peer); + Array_String (*getAccessibleResource)(Ark_PermissionRequest peer); + void (*grant)(Ark_PermissionRequest peer, const Array_String* resources); } GENERATED_ArkUIPermissionRequestAccessor; typedef struct GENERATED_ArkUIScreenCaptureHandlerAccessor { - void (*destroyPeer)(ScreenCaptureHandlerPeer* peer); + void (*destroyPeer)(Ark_ScreenCaptureHandler peer); Ark_ScreenCaptureHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getOrigin)(ScreenCaptureHandlerPeer* peer); - void (*grant)(ScreenCaptureHandlerPeer* peer, + void (*getOrigin)(Ark_ScreenCaptureHandler peer); + void (*grant)(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config); - void (*deny)(ScreenCaptureHandlerPeer* peer); + void (*deny)(Ark_ScreenCaptureHandler peer); } GENERATED_ArkUIScreenCaptureHandlerAccessor; typedef struct GENERATED_ArkUIDataResubmissionHandlerAccessor { - void (*destroyPeer)(DataResubmissionHandlerPeer* peer); + void (*destroyPeer)(Ark_DataResubmissionHandler peer); Ark_DataResubmissionHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*resend)(DataResubmissionHandlerPeer* peer); - void (*cancel)(DataResubmissionHandlerPeer* peer); + void (*resend)(Ark_DataResubmissionHandler peer); + void (*cancel)(Ark_DataResubmissionHandler peer); } GENERATED_ArkUIDataResubmissionHandlerAccessor; typedef struct GENERATED_ArkUIControllerHandlerAccessor { - void (*destroyPeer)(ControllerHandlerPeer* peer); + void (*destroyPeer)(Ark_ControllerHandler peer); Ark_ControllerHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setWebController)(ControllerHandlerPeer* peer, + void (*setWebController)(Ark_ControllerHandler peer, Ark_WebviewController controller); } GENERATED_ArkUIControllerHandlerAccessor; typedef struct GENERATED_ArkUIWebContextMenuParamAccessor { - void (*destroyPeer)(WebContextMenuParamPeer* peer); + void (*destroyPeer)(Ark_WebContextMenuParam peer); Ark_WebContextMenuParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*x)(WebContextMenuParamPeer* peer); - Ark_Int32 (*y)(WebContextMenuParamPeer* peer); - void (*getLinkUrl)(WebContextMenuParamPeer* peer); - void (*getUnfilteredLinkUrl)(WebContextMenuParamPeer* peer); - void (*getSourceUrl)(WebContextMenuParamPeer* peer); - Ark_Boolean (*existsImageContents)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getMediaType)(WebContextMenuParamPeer* peer); - void (*getSelectionText)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getSourceType)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getInputFieldType)(WebContextMenuParamPeer* peer); - Ark_Boolean (*isEditable)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getEditStateFlags)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getPreviewWidth)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getPreviewHeight)(WebContextMenuParamPeer* peer); + Ark_Int32 (*x)(Ark_WebContextMenuParam peer); + Ark_Int32 (*y)(Ark_WebContextMenuParam peer); + void (*getLinkUrl)(Ark_WebContextMenuParam peer); + void (*getUnfilteredLinkUrl)(Ark_WebContextMenuParam peer); + void (*getSourceUrl)(Ark_WebContextMenuParam peer); + Ark_Boolean (*existsImageContents)(Ark_WebContextMenuParam peer); + Ark_ContextMenuMediaType (*getMediaType)(Ark_WebContextMenuParam peer); + void (*getSelectionText)(Ark_WebContextMenuParam peer); + Ark_ContextMenuSourceType (*getSourceType)(Ark_WebContextMenuParam peer); + Ark_ContextMenuInputFieldType (*getInputFieldType)(Ark_WebContextMenuParam peer); + Ark_Boolean (*isEditable)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getEditStateFlags)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getPreviewWidth)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getPreviewHeight)(Ark_WebContextMenuParam peer); } GENERATED_ArkUIWebContextMenuParamAccessor; typedef struct GENERATED_ArkUIWebContextMenuResultAccessor { - void (*destroyPeer)(WebContextMenuResultPeer* peer); + void (*destroyPeer)(Ark_WebContextMenuResult peer); Ark_WebContextMenuResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*closeContextMenu)(WebContextMenuResultPeer* peer); - void (*copyImage)(WebContextMenuResultPeer* peer); - void (*copy)(WebContextMenuResultPeer* peer); - void (*paste)(WebContextMenuResultPeer* peer); - void (*cut)(WebContextMenuResultPeer* peer); - void (*selectAll)(WebContextMenuResultPeer* peer); + void (*closeContextMenu)(Ark_WebContextMenuResult peer); + void (*copyImage)(Ark_WebContextMenuResult peer); + void (*copy)(Ark_WebContextMenuResult peer); + void (*paste)(Ark_WebContextMenuResult peer); + void (*cut)(Ark_WebContextMenuResult peer); + void (*selectAll)(Ark_WebContextMenuResult peer); } GENERATED_ArkUIWebContextMenuResultAccessor; typedef struct GENERATED_ArkUIConsoleMessageAccessor { - void (*destroyPeer)(ConsoleMessagePeer* peer); + void (*destroyPeer)(Ark_ConsoleMessage peer); Ark_ConsoleMessage (*ctor)(const Ark_String* message, const Ark_String* sourceId, const Ark_Number* lineNumber, Ark_MessageLevel messageLevel); Ark_NativePointer (*getFinalizer)(); - void (*getMessage)(ConsoleMessagePeer* peer); - void (*getSourceId)(ConsoleMessagePeer* peer); - Ark_Int32 (*getLineNumber)(ConsoleMessagePeer* peer); - Ark_NativePointer (*getMessageLevel)(ConsoleMessagePeer* peer); + void (*getMessage)(Ark_ConsoleMessage peer); + void (*getSourceId)(Ark_ConsoleMessage peer); + Ark_Int32 (*getLineNumber)(Ark_ConsoleMessage peer); + Ark_MessageLevel (*getMessageLevel)(Ark_ConsoleMessage peer); } GENERATED_ArkUIConsoleMessageAccessor; typedef struct GENERATED_ArkUIWebResourceRequestAccessor { - void (*destroyPeer)(WebResourceRequestPeer* peer); + void (*destroyPeer)(Ark_WebResourceRequest peer); Ark_WebResourceRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getRequestHeader)(WebResourceRequestPeer* peer); - void (*getRequestUrl)(WebResourceRequestPeer* peer); - Ark_Boolean (*isRequestGesture)(WebResourceRequestPeer* peer); - Ark_Boolean (*isMainFrame)(WebResourceRequestPeer* peer); - Ark_Boolean (*isRedirect)(WebResourceRequestPeer* peer); - void (*getRequestMethod)(WebResourceRequestPeer* peer); + Array_Header (*getRequestHeader)(Ark_WebResourceRequest peer); + void (*getRequestUrl)(Ark_WebResourceRequest peer); + Ark_Boolean (*isRequestGesture)(Ark_WebResourceRequest peer); + Ark_Boolean (*isMainFrame)(Ark_WebResourceRequest peer); + Ark_Boolean (*isRedirect)(Ark_WebResourceRequest peer); + void (*getRequestMethod)(Ark_WebResourceRequest peer); } GENERATED_ArkUIWebResourceRequestAccessor; typedef struct GENERATED_ArkUIWebResourceResponseAccessor { - void (*destroyPeer)(WebResourceResponsePeer* peer); + void (*destroyPeer)(Ark_WebResourceResponse peer); Ark_WebResourceResponse (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getResponseData)(WebResourceResponsePeer* peer); - Ark_NativePointer (*getResponseDataEx)(WebResourceResponsePeer* peer); - void (*getResponseEncoding)(WebResourceResponsePeer* peer); - void (*getResponseMimeType)(WebResourceResponsePeer* peer); - void (*getReasonMessage)(WebResourceResponsePeer* peer); - void (*getResponseHeader)(WebResourceResponsePeer* peer); - Ark_Int32 (*getResponseCode)(WebResourceResponsePeer* peer); - void (*setResponseData)(WebResourceResponsePeer* peer, + void (*getResponseData)(Ark_WebResourceResponse peer); + Opt_Union_String_Number_Buffer_Resource (*getResponseDataEx)(Ark_WebResourceResponse peer); + void (*getResponseEncoding)(Ark_WebResourceResponse peer); + void (*getResponseMimeType)(Ark_WebResourceResponse peer); + void (*getReasonMessage)(Ark_WebResourceResponse peer); + Array_Header (*getResponseHeader)(Ark_WebResourceResponse peer); + Ark_Int32 (*getResponseCode)(Ark_WebResourceResponse peer); + void (*setResponseData)(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data); - void (*setResponseEncoding)(WebResourceResponsePeer* peer, + void (*setResponseEncoding)(Ark_WebResourceResponse peer, const Ark_String* encoding); - void (*setResponseMimeType)(WebResourceResponsePeer* peer, + void (*setResponseMimeType)(Ark_WebResourceResponse peer, const Ark_String* mimeType); - void (*setReasonMessage)(WebResourceResponsePeer* peer, + void (*setReasonMessage)(Ark_WebResourceResponse peer, const Ark_String* reason); - void (*setResponseHeader)(WebResourceResponsePeer* peer, + void (*setResponseHeader)(Ark_WebResourceResponse peer, const Array_Header* header); - void (*setResponseCode)(WebResourceResponsePeer* peer, + void (*setResponseCode)(Ark_WebResourceResponse peer, const Ark_Number* code); - void (*setResponseIsReady)(WebResourceResponsePeer* peer, + void (*setResponseIsReady)(Ark_WebResourceResponse peer, Ark_Boolean IsReady); - Ark_Boolean (*getResponseIsReady)(WebResourceResponsePeer* peer); + Ark_Boolean (*getResponseIsReady)(Ark_WebResourceResponse peer); } GENERATED_ArkUIWebResourceResponseAccessor; typedef struct GENERATED_ArkUIWebResourceErrorAccessor { - void (*destroyPeer)(WebResourceErrorPeer* peer); + void (*destroyPeer)(Ark_WebResourceError peer); Ark_WebResourceError (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getErrorInfo)(WebResourceErrorPeer* peer); - Ark_Int32 (*getErrorCode)(WebResourceErrorPeer* peer); + void (*getErrorInfo)(Ark_WebResourceError peer); + Ark_Int32 (*getErrorCode)(Ark_WebResourceError peer); } GENERATED_ArkUIWebResourceErrorAccessor; typedef struct GENERATED_ArkUIJsGeolocationAccessor { - void (*destroyPeer)(JsGeolocationPeer* peer); + void (*destroyPeer)(Ark_JsGeolocation peer); Ark_JsGeolocation (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*invoke)(JsGeolocationPeer* peer, + void (*invoke)(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain); } GENERATED_ArkUIJsGeolocationAccessor; typedef struct GENERATED_ArkUIWebCookieAccessor { - void (*destroyPeer)(WebCookiePeer* peer); + void (*destroyPeer)(Ark_WebCookie peer); Ark_WebCookie (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setCookie)(WebCookiePeer* peer); - void (*saveCookie)(WebCookiePeer* peer); + void (*setCookie)(Ark_WebCookie peer); + void (*saveCookie)(Ark_WebCookie peer); } GENERATED_ArkUIWebCookieAccessor; typedef struct GENERATED_ArkUIEventResultAccessor { - void (*destroyPeer)(EventResultPeer* peer); + void (*destroyPeer)(Ark_EventResult peer); Ark_EventResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setGestureEventResult)(EventResultPeer* peer, + void (*setGestureEventResult)(Ark_EventResult peer, Ark_Boolean result); } GENERATED_ArkUIEventResultAccessor; typedef struct GENERATED_ArkUIWebControllerAccessor { - void (*destroyPeer)(WebControllerPeer* peer); + void (*destroyPeer)(Ark_WebController peer); Ark_WebController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onInactive)(WebControllerPeer* peer); - void (*onActive)(WebControllerPeer* peer); - void (*zoom)(WebControllerPeer* peer, + void (*onInactive)(Ark_WebController peer); + void (*onActive)(Ark_WebController peer); + void (*zoom)(Ark_WebController peer, const Ark_Number* factor); - void (*clearHistory)(WebControllerPeer* peer); - void (*runJavaScript)(WebControllerPeer* peer, + void (*clearHistory)(Ark_WebController peer); + void (*runJavaScript)(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options); - void (*loadData)(WebControllerPeer* peer, + void (*loadData)(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options); - void (*loadUrl)(WebControllerPeer* peer, + void (*loadUrl)(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options); - void (*refresh)(WebControllerPeer* peer); - void (*stop)(WebControllerPeer* peer); - void (*registerJavaScriptProxy)(WebControllerPeer* peer, + void (*refresh)(Ark_WebController peer); + void (*stop)(Ark_WebController peer); + void (*registerJavaScriptProxy)(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options); - void (*deleteJavaScriptRegister)(WebControllerPeer* peer, + void (*deleteJavaScriptRegister)(Ark_WebController peer, const Ark_String* name); - Ark_NativePointer (*getHitTest)(WebControllerPeer* peer); - void (*requestFocus)(WebControllerPeer* peer); - Ark_Boolean (*accessBackward)(WebControllerPeer* peer); - Ark_Boolean (*accessForward)(WebControllerPeer* peer); - Ark_Boolean (*accessStep)(WebControllerPeer* peer, + Ark_HitTestType (*getHitTest)(Ark_WebController peer); + void (*requestFocus)(Ark_WebController peer); + Ark_Boolean (*accessBackward)(Ark_WebController peer); + Ark_Boolean (*accessForward)(Ark_WebController peer); + Ark_Boolean (*accessStep)(Ark_WebController peer, const Ark_Number* step); - void (*backward)(WebControllerPeer* peer); - void (*forward)(WebControllerPeer* peer); - Ark_WebCookie (*getCookieManager)(WebControllerPeer* peer); + void (*backward)(Ark_WebController peer); + void (*forward)(Ark_WebController peer); + Ark_WebCookie (*getCookieManager)(Ark_WebController peer); } GENERATED_ArkUIWebControllerAccessor; typedef struct GENERATED_ArkUIXComponentControllerAccessor { - void (*destroyPeer)(XComponentControllerPeer* peer); + void (*destroyPeer)(Ark_XComponentController peer); Ark_XComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getXComponentSurfaceId)(XComponentControllerPeer* peer); - Ark_NativePointer (*getXComponentContext)(XComponentControllerPeer* peer); - void (*setXComponentSurfaceSize)(XComponentControllerPeer* peer, + void (*getXComponentSurfaceId)(Ark_XComponentController peer); + Ark_CustomObject (*getXComponentContext)(Ark_XComponentController peer); + void (*setXComponentSurfaceSize)(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value); - void (*setXComponentSurfaceRect)(XComponentControllerPeer* peer, + void (*setXComponentSurfaceRect)(Ark_XComponentController peer, const Ark_SurfaceRect* rect); - Ark_NativePointer (*getXComponentSurfaceRect)(XComponentControllerPeer* peer); - void (*setXComponentSurfaceRotation)(XComponentControllerPeer* peer, + Ark_SurfaceRect (*getXComponentSurfaceRect)(Ark_XComponentController peer); + void (*setXComponentSurfaceRotation)(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions); - Ark_NativePointer (*getXComponentSurfaceRotation)(XComponentControllerPeer* peer); - void (*onSurfaceCreated)(XComponentControllerPeer* peer, + Ark_SurfaceRotationOptions (*getXComponentSurfaceRotation)(Ark_XComponentController peer); + void (*onSurfaceCreated)(Ark_XComponentController peer, const Ark_String* surfaceId); - void (*onSurfaceChanged)(XComponentControllerPeer* peer, + void (*onSurfaceChanged)(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect); - void (*onSurfaceDestroyed)(XComponentControllerPeer* peer, + void (*onSurfaceDestroyed)(Ark_XComponentController peer, const Ark_String* surfaceId); - void (*startImageAnalyzer)(XComponentControllerPeer* peer, + void (*startImageAnalyzer)(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*stopImageAnalyzer)(XComponentControllerPeer* peer); + void (*stopImageAnalyzer)(Ark_XComponentController peer); } GENERATED_ArkUIXComponentControllerAccessor; typedef struct GENERATED_ArkUIWaterFlowSectionsAccessor { - void (*destroyPeer)(WaterFlowSectionsPeer* peer); + void (*destroyPeer)(Ark_WaterFlowSections peer); Ark_WaterFlowSections (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*splice)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*splice)(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections); - Ark_Boolean (*push)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*push)(Ark_WaterFlowSections peer, const Ark_SectionOptions* section); - Ark_Boolean (*update)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*update)(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section); - void (*values)(WaterFlowSectionsPeer* peer); - Ark_Int32 (*length)(WaterFlowSectionsPeer* peer); + Array_SectionOptions (*values)(Ark_WaterFlowSections peer); + Ark_Int32 (*length)(Ark_WaterFlowSections peer); } GENERATED_ArkUIWaterFlowSectionsAccessor; typedef struct GENERATED_ArkUIUIExtensionProxyAccessor { - void (*destroyPeer)(UIExtensionProxyPeer* peer); + void (*destroyPeer)(Ark_UIExtensionProxy peer); Ark_UIExtensionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*send)(UIExtensionProxyPeer* peer, + void (*send)(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data); - Ark_NativePointer (*sendSync)(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data); - void (*onAsyncReceiverRegister)(UIExtensionProxyPeer* peer, + Map_String_CustomObject (*sendSync)(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data); + void (*onAsyncReceiverRegister)(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_); - void (*onSyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*onSyncReceiverRegister)(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_); - void (*offAsyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*offAsyncReceiverRegister)(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_); - void (*offSyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*offSyncReceiverRegister)(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_); } GENERATED_ArkUIUIExtensionProxyAccessor; typedef struct GENERATED_ArkUIStyledStringAccessor { - void (*destroyPeer)(StyledStringPeer* peer); + void (*destroyPeer)(Ark_StyledString peer); Ark_StyledString (*ctor)(const Ark_Union_String_ImageAttachment_CustomSpan* value, const Opt_Array_StyleOptions* styles); Ark_NativePointer (*getFinalizer)(); - void (*getString)(StyledStringPeer* peer); - void (*getStyles)(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey); - Ark_Boolean (*equals)(StyledStringPeer* peer, + void (*getString)(Ark_StyledString peer); + Array_SpanStyle (*getStyles)(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey); + Ark_Boolean (*equals)(Ark_StyledString peer, Ark_StyledString other); - Ark_StyledString (*subStyledString)(StyledStringPeer* peer, + Ark_StyledString (*subStyledString)(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length); void (*fromHtml)(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); void (*toHtml)(Ark_StyledString styledString); - void (*marshalling)(Ark_StyledString styledString); + Ark_Buffer (*marshalling)(Ark_StyledString styledString); void (*unmarshalling)(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); - Ark_Int32 (*getLength)(StyledStringPeer* peer); + Ark_Int32 (*getLength)(Ark_StyledString peer); } GENERATED_ArkUIStyledStringAccessor; typedef struct GENERATED_ArkUITextStyle_styled_stringAccessor { - void (*destroyPeer)(TextStyle_styled_stringPeer* peer); + void (*destroyPeer)(Ark_TextStyle_styled_string peer); Ark_TextStyle_styled_string (*ctor)(const Opt_TextStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - void (*getFontFamily)(TextStyle_styled_stringPeer* peer); - Ark_Int32 (*getFontSize)(TextStyle_styled_stringPeer* peer); - Ark_Int32 (*getFontWeight)(TextStyle_styled_stringPeer* peer); - Ark_NativePointer (*getFontStyle)(TextStyle_styled_stringPeer* peer); + void (*getFontFamily)(Ark_TextStyle_styled_string peer); + Ark_Int32 (*getFontSize)(Ark_TextStyle_styled_string peer); + Ark_Int32 (*getFontWeight)(Ark_TextStyle_styled_string peer); + Ark_FontStyle (*getFontStyle)(Ark_TextStyle_styled_string peer); } GENERATED_ArkUITextStyle_styled_stringAccessor; typedef struct GENERATED_ArkUIDecorationStyleAccessor { - void (*destroyPeer)(DecorationStylePeer* peer); + void (*destroyPeer)(Ark_DecorationStyle peer); Ark_DecorationStyle (*ctor)(const Ark_DecorationStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getType)(DecorationStylePeer* peer); - Ark_NativePointer (*getStyle)(DecorationStylePeer* peer); + Ark_TextDecorationType (*getType)(Ark_DecorationStyle peer); + Ark_TextDecorationStyle (*getStyle)(Ark_DecorationStyle peer); } GENERATED_ArkUIDecorationStyleAccessor; typedef struct GENERATED_ArkUIBaselineOffsetStyleAccessor { - void (*destroyPeer)(BaselineOffsetStylePeer* peer); + void (*destroyPeer)(Ark_BaselineOffsetStyle peer); Ark_BaselineOffsetStyle (*ctor)(Ark_LengthMetrics value); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getBaselineOffset)(BaselineOffsetStylePeer* peer); + Ark_Int32 (*getBaselineOffset)(Ark_BaselineOffsetStyle peer); } GENERATED_ArkUIBaselineOffsetStyleAccessor; typedef struct GENERATED_ArkUILetterSpacingStyleAccessor { - void (*destroyPeer)(LetterSpacingStylePeer* peer); + void (*destroyPeer)(Ark_LetterSpacingStyle peer); Ark_LetterSpacingStyle (*ctor)(Ark_LengthMetrics value); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLetterSpacing)(LetterSpacingStylePeer* peer); + Ark_Int32 (*getLetterSpacing)(Ark_LetterSpacingStyle peer); } GENERATED_ArkUILetterSpacingStyleAccessor; typedef struct GENERATED_ArkUITextShadowStyleAccessor { - void (*destroyPeer)(TextShadowStylePeer* peer); + void (*destroyPeer)(Ark_TextShadowStyle peer); Ark_TextShadowStyle (*ctor)(const Ark_Union_ShadowOptions_Array_ShadowOptions* value); Ark_NativePointer (*getFinalizer)(); + Array_ShadowOptions (*getTextShadow)(Ark_TextShadowStyle peer); } GENERATED_ArkUITextShadowStyleAccessor; typedef struct GENERATED_ArkUIBackgroundColorStyleAccessor { - void (*destroyPeer)(BackgroundColorStylePeer* peer); + void (*destroyPeer)(Ark_BackgroundColorStyle peer); Ark_BackgroundColorStyle (*ctor)(const Ark_TextBackgroundStyle* textBackgroundStyle); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIBackgroundColorStyleAccessor; typedef struct GENERATED_ArkUIGestureStyleAccessor { - void (*destroyPeer)(GestureStylePeer* peer); + void (*destroyPeer)(Ark_GestureStyle peer); Ark_GestureStyle (*ctor)(const Opt_GestureStyleInterface* value); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIGestureStyleAccessor; typedef struct GENERATED_ArkUIParagraphStyleAccessor { - void (*destroyPeer)(ParagraphStylePeer* peer); + void (*destroyPeer)(Ark_ParagraphStyle peer); Ark_ParagraphStyle (*ctor)(const Opt_ParagraphStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getTextAlign)(ParagraphStylePeer* peer); - Ark_Int32 (*getTextIndent)(ParagraphStylePeer* peer); - Ark_Int32 (*getMaxLines)(ParagraphStylePeer* peer); - Ark_NativePointer (*getOverflow)(ParagraphStylePeer* peer); - Ark_NativePointer (*getWordBreak)(ParagraphStylePeer* peer); + Ark_TextAlign (*getTextAlign)(Ark_ParagraphStyle peer); + Ark_Int32 (*getTextIndent)(Ark_ParagraphStyle peer); + Ark_Int32 (*getMaxLines)(Ark_ParagraphStyle peer); + Ark_TextOverflow (*getOverflow)(Ark_ParagraphStyle peer); + Ark_WordBreak (*getWordBreak)(Ark_ParagraphStyle peer); } GENERATED_ArkUIParagraphStyleAccessor; typedef struct GENERATED_ArkUILineHeightStyleAccessor { - void (*destroyPeer)(LineHeightStylePeer* peer); + void (*destroyPeer)(Ark_LineHeightStyle peer); Ark_LineHeightStyle (*ctor)(Ark_LengthMetrics lineHeight); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLineHeight)(LineHeightStylePeer* peer); + Ark_Int32 (*getLineHeight)(Ark_LineHeightStyle peer); } GENERATED_ArkUILineHeightStyleAccessor; typedef struct GENERATED_ArkUIUrlStyleAccessor { - void (*destroyPeer)(UrlStylePeer* peer); + void (*destroyPeer)(Ark_UrlStyle peer); Ark_UrlStyle (*ctor)(const Ark_String* url); Ark_NativePointer (*getFinalizer)(); - void (*getUrl)(UrlStylePeer* peer); + void (*getUrl)(Ark_UrlStyle peer); } GENERATED_ArkUIUrlStyleAccessor; typedef struct GENERATED_ArkUIMutableStyledStringAccessor { - void (*destroyPeer)(MutableStyledStringPeer* peer); + void (*destroyPeer)(Ark_MutableStyledString peer); Ark_MutableStyledString (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*replaceString)(MutableStyledStringPeer* peer, + void (*replaceString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other); - void (*insertString)(MutableStyledStringPeer* peer, + void (*insertString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other); - void (*removeString)(MutableStyledStringPeer* peer, + void (*removeString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length); - void (*replaceStyle)(MutableStyledStringPeer* peer, + void (*replaceStyle)(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle); - void (*setStyle)(MutableStyledStringPeer* peer, + void (*setStyle)(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle); - void (*removeStyle)(MutableStyledStringPeer* peer, + void (*removeStyle)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey); - void (*removeStyles)(MutableStyledStringPeer* peer, + void (*removeStyles)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length); - void (*clearStyles)(MutableStyledStringPeer* peer); - void (*replaceStyledString)(MutableStyledStringPeer* peer, + void (*clearStyles)(Ark_MutableStyledString peer); + void (*replaceStyledString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other); - void (*insertStyledString)(MutableStyledStringPeer* peer, + void (*insertStyledString)(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other); - void (*appendStyledString)(MutableStyledStringPeer* peer, + void (*appendStyledString)(Ark_MutableStyledString peer, Ark_StyledString other); } GENERATED_ArkUIMutableStyledStringAccessor; typedef struct GENERATED_ArkUIImageAttachmentAccessor { - void (*destroyPeer)(ImageAttachmentPeer* peer); + void (*destroyPeer)(Ark_ImageAttachment peer); Ark_ImageAttachment (*ctor)(const Ark_ImageAttachmentInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getVerticalAlign)(ImageAttachmentPeer* peer); - Ark_NativePointer (*getObjectFit)(ImageAttachmentPeer* peer); + Ark_ImageSpanAlignment (*getVerticalAlign)(Ark_ImageAttachment peer); + Ark_ImageFit (*getObjectFit)(Ark_ImageAttachment peer); } GENERATED_ArkUIImageAttachmentAccessor; typedef struct GENERATED_ArkUICustomSpanAccessor { - void (*destroyPeer)(CustomSpanPeer* peer); + void (*destroyPeer)(Ark_CustomSpan peer); Ark_CustomSpan (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*onMeasure)(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo); - void (*onDraw)(CustomSpanPeer* peer, + Ark_CustomSpanMetrics (*onMeasure)(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo); + void (*onDraw)(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo); - void (*invalidate)(CustomSpanPeer* peer); + void (*invalidate)(Ark_CustomSpan peer); } GENERATED_ArkUICustomSpanAccessor; typedef struct GENERATED_ArkUILinearIndicatorControllerAccessor { - void (*destroyPeer)(LinearIndicatorControllerPeer* peer); + void (*destroyPeer)(Ark_LinearIndicatorController peer); Ark_LinearIndicatorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setProgress)(LinearIndicatorControllerPeer* peer, + void (*setProgress)(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress); - void (*start)(LinearIndicatorControllerPeer* peer, + void (*start)(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options); - void (*pause)(LinearIndicatorControllerPeer* peer); - void (*stop)(LinearIndicatorControllerPeer* peer); + void (*pause)(Ark_LinearIndicatorController peer); + void (*stop)(Ark_LinearIndicatorController peer); } GENERATED_ArkUILinearIndicatorControllerAccessor; -typedef struct GENERATED_ArkUIGlobalScope_inspectorAccessor { - void (*destroyPeer)(GlobalScope_inspectorPeer* peer); - Ark_NativePointer (*getInspectorNodes)(); - Ark_NativePointer (*getInspectorNodeById)(const Ark_Number* id); +typedef struct GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor { + void (*destroyPeer)(Ark_GlobalScope_Profiler_inspector peer); void (*registerVsyncCallback)(const Callback_String_Void* callback_); void (*unregisterVsyncCallback)(); +} GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor; + +typedef struct GENERATED_ArkUIGlobalScopeinspectorAccessor { + void (*destroyPeer)(Ark_GlobalScopeinspector peer); + Ark_CustomObject (*getInspectorNodes)(); + Ark_CustomObject (*getInspectorNodeById)(const Ark_Number* id); void (*setAppBgColor)(const Ark_String* value); -} GENERATED_ArkUIGlobalScope_inspectorAccessor; +} GENERATED_ArkUIGlobalScopeinspectorAccessor; typedef struct GENERATED_ArkUIAbilityComponentEventsReceiver { void (*onConnect)(Ark_Int32 nodeId); @@ -22186,6 +22715,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIAnimationExtenderAccessor* (*getAnimationExtenderAccessor)(); const GENERATED_ArkUIUnifiedDataAccessor* (*getUnifiedDataAccessor)(); const GENERATED_ArkUILazyForEachOpsAccessor* (*getLazyForEachOpsAccessor)(); + const GENERATED_ArkUISystemOpsAccessor* (*getSystemOpsAccessor)(); const GENERATED_ArkUIDrawingCanvasAccessor* (*getDrawingCanvasAccessor)(); const GENERATED_ArkUILengthMetricsAccessor* (*getLengthMetricsAccessor)(); const GENERATED_ArkUIWebviewControllerAccessor* (*getWebviewControllerAccessor)(); @@ -22212,6 +22742,8 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIRenderingContextSettingsAccessor* (*getRenderingContextSettingsAccessor)(); const GENERATED_ArkUICanvasRendererAccessor* (*getCanvasRendererAccessor)(); const GENERATED_ArkUICanvasRenderingContext2DAccessor* (*getCanvasRenderingContext2DAccessor)(); + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* (*getOffscreenCanvasRenderingContext2DAccessor)(); + const GENERATED_ArkUIOffscreenCanvasAccessor* (*getOffscreenCanvasAccessor)(); const GENERATED_ArkUIDrawingRenderingContextAccessor* (*getDrawingRenderingContextAccessor)(); const GENERATED_ArkUIICurveAccessor* (*getICurveAccessor)(); const GENERATED_ArkUIDrawModifierAccessor* (*getDrawModifierAccessor)(); @@ -22233,7 +22765,9 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIUICommonEventAccessor* (*getUICommonEventAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); - const GENERATED_ArkUIGlobalScope_commonAccessor* (*getGlobalScope_commonAccessor)(); + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* (*getGlobalScope_focusControl_commonAccessor)(); + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* (*getGlobalScope_cursorControl_commonAccessor)(); + const GENERATED_ArkUIGlobalScopecommonAccessor* (*getGlobalScopecommonAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); const GENERATED_ArkUILinearGradientAccessor* (*getLinearGradientAccessor)(); @@ -22331,7 +22865,8 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIImageAttachmentAccessor* (*getImageAttachmentAccessor)(); const GENERATED_ArkUICustomSpanAccessor* (*getCustomSpanAccessor)(); const GENERATED_ArkUILinearIndicatorControllerAccessor* (*getLinearIndicatorControllerAccessor)(); - const GENERATED_ArkUIGlobalScope_inspectorAccessor* (*getGlobalScope_inspectorAccessor)(); + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* (*getGlobalScope_Profiler_inspectorAccessor)(); + const GENERATED_ArkUIGlobalScopeinspectorAccessor* (*getGlobalScopeinspectorAccessor)(); } GENERATED_ArkUIAccessors; typedef struct GENERATED_ArkUIGraphicsAPI { diff --git a/arkoala/framework/native/src/generated/bridge_custom.cc b/arkoala/framework/native/src/generated/bridge_custom.cc index 75972006f..a4db546e7 100644 --- a/arkoala/framework/native/src/generated/bridge_custom.cc +++ b/arkoala/framework/native/src/generated/bridge_custom.cc @@ -459,7 +459,7 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co return nullptr; } return (KVMObjectHandle)result; -#elif KOALA_USE_PANDA_VM +#elif KOALA_ETS_NAPI EtsEnv* env = reinterpret_cast(vm); std:: string className(viewClass.c_str()); // TODO: hack, fix it! @@ -499,6 +499,9 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co return nullptr; } return (KVMObjectHandle)result; +#elif KOALA_ANI + fprintf(stderr, "LoadUserView() is not implemented yet\n"); + return nullptr; #else fprintf(stderr, "LoadUserView() is not implemented yet\n"); return nullptr; diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index f259db682..11da6444c 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -17094,15 +17094,17 @@ Ark_NativePointer impl_UnifiedData_getFinalizer() { } KOALA_INTEROP_0(UnifiedData_getFinalizer, Ark_NativePointer) Ark_Boolean impl_UnifiedData_hasType(Ark_NativePointer thisPtr, const KStringPtr& UnifiedData_type) { - UnifiedDataPeer* self = reinterpret_cast(thisPtr); + Ark_UnifiedData self = reinterpret_cast(thisPtr); return GetAccessors()->getUnifiedDataAccessor()->hasType(self, (const Ark_String*) (&UnifiedData_type)); } KOALA_INTEROP_2(UnifiedData_hasType, Ark_Boolean, Ark_NativePointer, KStringPtr) -void impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { - UnifiedDataPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getUnifiedDataAccessor()->getTypes(self); +Ark_NativePointer impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { + Ark_UnifiedData self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getUnifiedDataAccessor()->getTypes(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(UnifiedData_getTypes, Ark_NativePointer) +KOALA_INTEROP_1(UnifiedData_getTypes, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_LazyForEachOps_ctor() { return GetAccessors()->getLazyForEachOpsAccessor()->ctor(); } @@ -17129,6 +17131,22 @@ void impl_LazyForEachOps_Prepare(Ark_NativePointer node) { GetAccessors()->getLazyForEachOpsAccessor()->Prepare(node); } KOALA_INTEROP_V1(LazyForEachOps_Prepare, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_ctor() { + return GetAccessors()->getSystemOpsAccessor()->ctor(); +} +KOALA_INTEROP_0(SystemOps_ctor, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_getFinalizer() { + return GetAccessors()->getSystemOpsAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(SystemOps_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_StartFrame() { + return GetAccessors()->getSystemOpsAccessor()->StartFrame(); +} +KOALA_INTEROP_0(SystemOps_StartFrame, Ark_NativePointer) +void impl_SystemOps_EndFrame(Ark_NativePointer root) { + GetAccessors()->getSystemOpsAccessor()->EndFrame(root); +} +KOALA_INTEROP_V1(SystemOps_EndFrame, Ark_NativePointer) Ark_NativePointer impl_DrawingCanvas_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_PixelMap pixelmap_value = static_cast(thisDeserializer.readPixelMap());; @@ -17140,7 +17158,7 @@ Ark_NativePointer impl_DrawingCanvas_getFinalizer() { } KOALA_INTEROP_0(DrawingCanvas_getFinalizer, Ark_NativePointer) void impl_DrawingCanvas_drawRect(Ark_NativePointer thisPtr, KInteropNumber left, KInteropNumber top, KInteropNumber right, KInteropNumber bottom) { - DrawingCanvasPeer* self = reinterpret_cast(thisPtr); + Ark_DrawingCanvas self = reinterpret_cast(thisPtr); GetAccessors()->getDrawingCanvasAccessor()->drawRect(self, (const Ark_Number*) (&left), (const Ark_Number*) (&top), (const Ark_Number*) (&right), (const Ark_Number*) (&bottom)); } KOALA_INTEROP_V5(DrawingCanvas_drawRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) @@ -17162,23 +17180,23 @@ Ark_NativePointer impl_LengthMetrics_resource(uint8_t* thisArray, int32_t thisLe return GetAccessors()->getLengthMetricsAccessor()->resource((const Ark_Resource*)&value_value); } KOALA_INTEROP_2(LengthMetrics_resource, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_LengthMetrics_getUnit(Ark_NativePointer thisPtr) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLengthMetricsAccessor()->getUnit(self); +void impl_LengthMetrics_getUnit(Ark_NativePointer thisPtr) { + Ark_LengthMetrics self = reinterpret_cast(thisPtr); + GetAccessors()->getLengthMetricsAccessor()->getUnit(self); } -KOALA_INTEROP_1(LengthMetrics_getUnit, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(LengthMetrics_getUnit, Ark_NativePointer) void impl_LengthMetrics_setUnit(Ark_NativePointer thisPtr, Ark_Int32 unit) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); GetAccessors()->getLengthMetricsAccessor()->setUnit(self, static_cast(unit)); } KOALA_INTEROP_V2(LengthMetrics_setUnit, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_LengthMetrics_getValue(Ark_NativePointer thisPtr) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); return GetAccessors()->getLengthMetricsAccessor()->getValue(self); } KOALA_INTEROP_1(LengthMetrics_getValue, Ark_Int32, Ark_NativePointer) void impl_LengthMetrics_setValue(Ark_NativePointer thisPtr, KInteropNumber value) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); GetAccessors()->getLengthMetricsAccessor()->setValue(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(LengthMetrics_setValue, Ark_NativePointer, KInteropNumber) @@ -17195,7 +17213,7 @@ void impl_WebviewController_initializeWebEngine() { } KOALA_INTEROP_V0(WebviewController_initializeWebEngine) void impl_WebviewController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebviewControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebviewController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 url_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Resource url_value_buf = {}; @@ -17292,19 +17310,19 @@ Ark_NativePointer impl_FrameNode_getFinalizer() { } KOALA_INTEROP_0(FrameNode_getFinalizer, Ark_NativePointer) Ark_Boolean impl_FrameNode_isModifiable(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->isModifiable(self); } KOALA_INTEROP_1(FrameNode_isModifiable, Ark_Boolean, Ark_NativePointer) void impl_FrameNode_appendChild(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; GetAccessors()->getFrameNodeAccessor()->appendChild(self, node_value); } KOALA_INTEROP_V3(FrameNode_appendChild, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_insertChildAfter(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode child_value = static_cast(thisDeserializer.readFrameNode());; Ark_FrameNode sibling_value = static_cast(thisDeserializer.readFrameNode());; @@ -17312,62 +17330,64 @@ void impl_FrameNode_insertChildAfter(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(FrameNode_insertChildAfter, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_removeChild(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; GetAccessors()->getFrameNodeAccessor()->removeChild(self, node_value); } KOALA_INTEROP_V3(FrameNode_removeChild, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_clearChildren(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); GetAccessors()->getFrameNodeAccessor()->clearChildren(self); } KOALA_INTEROP_V1(FrameNode_clearChildren, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getChild(Ark_NativePointer thisPtr, KInteropNumber index) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getChild(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_2(FrameNode_getChild, Ark_NativePointer, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_FrameNode_getFirstChild(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getFirstChild(self); } KOALA_INTEROP_1(FrameNode_getFirstChild, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getNextSibling(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getNextSibling(self); } KOALA_INTEROP_1(FrameNode_getNextSibling, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getPreviousSibling(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getPreviousSibling(self); } KOALA_INTEROP_1(FrameNode_getPreviousSibling, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getParent(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getParent(self); } KOALA_INTEROP_1(FrameNode_getParent, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_FrameNode_getChildrenCount(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getChildrenCount(self); } KOALA_INTEROP_1(FrameNode_getChildrenCount, Ark_Int32, Ark_NativePointer) void impl_FrameNode_dispose(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); GetAccessors()->getFrameNodeAccessor()->dispose(self); } KOALA_INTEROP_V1(FrameNode_dispose, Ark_NativePointer) Ark_Int32 impl_FrameNode_getOpacity(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getOpacity(self); } KOALA_INTEROP_1(FrameNode_getOpacity, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_FrameNode_getPositionToWindowWithTransform(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getFrameNodeAccessor()->getPositionToWindowWithTransform(self); +KInteropReturnBuffer impl_FrameNode_getPositionToWindowWithTransform(Ark_NativePointer thisPtr) { + Ark_FrameNode self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePosition(GetAccessors()->getFrameNodeAccessor()->getPositionToWindowWithTransform(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(FrameNode_getPositionToWindowWithTransform, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(FrameNode_getPositionToWindowWithTransform, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_PixelMap_ctor() { return GetAccessors()->getPixelMapAccessor()->ctor(); } @@ -17377,39 +17397,29 @@ Ark_NativePointer impl_PixelMap_getFinalizer() { } KOALA_INTEROP_0(PixelMap_getFinalizer, Ark_NativePointer) void impl_PixelMap_readPixelsToBufferSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PixelMapPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMap self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Buffer dst_value = static_cast(thisDeserializer.readBuffer());; GetAccessors()->getPixelMapAccessor()->readPixelsToBufferSync(self, (const Ark_Buffer*)&dst_value); } KOALA_INTEROP_V3(PixelMap_readPixelsToBufferSync, Ark_NativePointer, uint8_t*, int32_t) void impl_PixelMap_writeBufferToPixels(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PixelMapPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMap self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Buffer src_value = static_cast(thisDeserializer.readBuffer());; GetAccessors()->getPixelMapAccessor()->writeBufferToPixels(self, (const Ark_Buffer*)&src_value); } KOALA_INTEROP_V3(PixelMap_writeBufferToPixels, Ark_NativePointer, uint8_t*, int32_t) -Ark_Int32 impl_PixelMap_getIsEditable(Ark_NativePointer thisPtr) { - PixelMapPeer* self = reinterpret_cast(thisPtr); +Ark_Boolean impl_PixelMap_getIsEditable(Ark_NativePointer thisPtr) { + Ark_PixelMap self = reinterpret_cast(thisPtr); return GetAccessors()->getPixelMapAccessor()->getIsEditable(self); } -KOALA_INTEROP_1(PixelMap_getIsEditable, Ark_Int32, Ark_NativePointer) -void impl_PixelMap_setIsEditable(Ark_NativePointer thisPtr, Ark_Int32 isEditable) { - PixelMapPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPixelMapAccessor()->setIsEditable(self, isEditable); -} -KOALA_INTEROP_V2(PixelMap_setIsEditable, Ark_NativePointer, Ark_Int32) -Ark_Int32 impl_PixelMap_getIsStrideAlignment(Ark_NativePointer thisPtr) { - PixelMapPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_1(PixelMap_getIsEditable, Ark_Boolean, Ark_NativePointer) +Ark_Boolean impl_PixelMap_getIsStrideAlignment(Ark_NativePointer thisPtr) { + Ark_PixelMap self = reinterpret_cast(thisPtr); return GetAccessors()->getPixelMapAccessor()->getIsStrideAlignment(self); } -KOALA_INTEROP_1(PixelMap_getIsStrideAlignment, Ark_Int32, Ark_NativePointer) -void impl_PixelMap_setIsStrideAlignment(Ark_NativePointer thisPtr, Ark_Int32 isStrideAlignment) { - PixelMapPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPixelMapAccessor()->setIsStrideAlignment(self, isStrideAlignment); -} -KOALA_INTEROP_V2(PixelMap_setIsStrideAlignment, Ark_NativePointer, Ark_Int32) +KOALA_INTEROP_1(PixelMap_getIsStrideAlignment, Ark_Boolean, Ark_NativePointer) Ark_NativePointer impl_NavExtender_ctor() { return GetAccessors()->getNavExtenderAccessor()->ctor(); } @@ -17534,12 +17544,12 @@ Ark_NativePointer impl_CalendarController_getFinalizer() { } KOALA_INTEROP_0(CalendarController_getFinalizer, Ark_NativePointer) void impl_CalendarController_backToToday(Ark_NativePointer thisPtr) { - CalendarControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CalendarController self = reinterpret_cast(thisPtr); GetAccessors()->getCalendarControllerAccessor()->backToToday(self); } KOALA_INTEROP_V1(CalendarController_backToToday, Ark_NativePointer) void impl_CalendarController_goTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CalendarControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CalendarController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Number_day_month_year value_value_buf = {}; value_value_buf.year = static_cast(thisDeserializer.readNumber()); @@ -17579,7 +17589,7 @@ Ark_NativePointer impl_CanvasGradient_getFinalizer() { } KOALA_INTEROP_0(CanvasGradient_getFinalizer, Ark_NativePointer) void impl_CanvasGradient_addColorStop(Ark_NativePointer thisPtr, KInteropNumber offset, const KStringPtr& color) { - CanvasGradientPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasGradient self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasGradientAccessor()->addColorStop(self, (const Ark_Number*) (&offset), (const Ark_String*) (&color)); } KOALA_INTEROP_V3(CanvasGradient_addColorStop, Ark_NativePointer, KInteropNumber, KStringPtr) @@ -17592,7 +17602,7 @@ Ark_NativePointer impl_CanvasPath_getFinalizer() { } KOALA_INTEROP_0(CanvasPath_getFinalizer, Ark_NativePointer) void impl_CanvasPath_arc(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber radius, KInteropNumber startAngle, KInteropNumber endAngle, uint8_t* thisArray, int32_t thisLength) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto counterclockwise_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean counterclockwise_value_buf = {}; @@ -17606,22 +17616,22 @@ void impl_CanvasPath_arc(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNu } KOALA_INTEROP_V8(CanvasPath_arc, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_CanvasPath_arcTo(Ark_NativePointer thisPtr, KInteropNumber x1, KInteropNumber y1, KInteropNumber x2, KInteropNumber y2, KInteropNumber radius) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->arcTo(self, (const Ark_Number*) (&x1), (const Ark_Number*) (&y1), (const Ark_Number*) (&x2), (const Ark_Number*) (&y2), (const Ark_Number*) (&radius)); } KOALA_INTEROP_V6(CanvasPath_arcTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_bezierCurveTo(Ark_NativePointer thisPtr, KInteropNumber cp1x, KInteropNumber cp1y, KInteropNumber cp2x, KInteropNumber cp2y, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->bezierCurveTo(self, (const Ark_Number*) (&cp1x), (const Ark_Number*) (&cp1y), (const Ark_Number*) (&cp2x), (const Ark_Number*) (&cp2y), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V7(CanvasPath_bezierCurveTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_closePath(Ark_NativePointer thisPtr) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->closePath(self); } KOALA_INTEROP_V1(CanvasPath_closePath, Ark_NativePointer) void impl_CanvasPath_ellipse(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber radiusX, KInteropNumber radiusY, KInteropNumber rotation, KInteropNumber startAngle, KInteropNumber endAngle, uint8_t* thisArray, int32_t thisLength) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto counterclockwise_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean counterclockwise_value_buf = {}; @@ -17635,22 +17645,22 @@ void impl_CanvasPath_ellipse(Ark_NativePointer thisPtr, KInteropNumber x, KInter } KOALA_INTEROP_V10(CanvasPath_ellipse, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_CanvasPath_lineTo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->lineTo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasPath_lineTo, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasPath_moveTo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->moveTo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasPath_moveTo, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasPath_quadraticCurveTo(Ark_NativePointer thisPtr, KInteropNumber cpx, KInteropNumber cpy, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->quadraticCurveTo(self, (const Ark_Number*) (&cpx), (const Ark_Number*) (&cpy), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V5(CanvasPath_quadraticCurveTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_rect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->rect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasPath_rect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) @@ -17663,7 +17673,7 @@ Ark_NativePointer impl_Path2D_getFinalizer() { } KOALA_INTEROP_0(Path2D_getFinalizer, Ark_NativePointer) void impl_Path2D_addPath(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Path2DPeer* self = reinterpret_cast(thisPtr); + Ark_Path2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17686,7 +17696,7 @@ Ark_NativePointer impl_CanvasPattern_getFinalizer() { } KOALA_INTEROP_0(CanvasPattern_getFinalizer, Ark_NativePointer) void impl_CanvasPattern_setTransform(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasPatternPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPattern self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D transform_value_buf = {}; @@ -17708,17 +17718,17 @@ Ark_NativePointer impl_ImageBitmap_getFinalizer() { } KOALA_INTEROP_0(ImageBitmap_getFinalizer, Ark_NativePointer) void impl_ImageBitmap_close(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); GetAccessors()->getImageBitmapAccessor()->close(self); } KOALA_INTEROP_V1(ImageBitmap_close, Ark_NativePointer) Ark_Int32 impl_ImageBitmap_getHeight(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); return GetAccessors()->getImageBitmapAccessor()->getHeight(self); } KOALA_INTEROP_1(ImageBitmap_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ImageBitmap_getWidth(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); return GetAccessors()->getImageBitmapAccessor()->getWidth(self); } KOALA_INTEROP_1(ImageBitmap_getWidth, Ark_Int32, Ark_NativePointer) @@ -17740,12 +17750,12 @@ Ark_NativePointer impl_ImageData_getFinalizer() { } KOALA_INTEROP_0(ImageData_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ImageData_getHeight(Ark_NativePointer thisPtr) { - ImageDataPeer* self = reinterpret_cast(thisPtr); + Ark_ImageData self = reinterpret_cast(thisPtr); return GetAccessors()->getImageDataAccessor()->getHeight(self); } KOALA_INTEROP_1(ImageData_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ImageData_getWidth(Ark_NativePointer thisPtr) { - ImageDataPeer* self = reinterpret_cast(thisPtr); + Ark_ImageData self = reinterpret_cast(thisPtr); return GetAccessors()->getImageDataAccessor()->getWidth(self); } KOALA_INTEROP_1(ImageData_getWidth, Ark_Int32, Ark_NativePointer) @@ -17767,12 +17777,12 @@ Ark_NativePointer impl_RenderingContextSettings_getFinalizer() { } KOALA_INTEROP_0(RenderingContextSettings_getFinalizer, Ark_NativePointer) Ark_Boolean impl_RenderingContextSettings_getAntialias(Ark_NativePointer thisPtr) { - RenderingContextSettingsPeer* self = reinterpret_cast(thisPtr); + Ark_RenderingContextSettings self = reinterpret_cast(thisPtr); return GetAccessors()->getRenderingContextSettingsAccessor()->getAntialias(self); } KOALA_INTEROP_1(RenderingContextSettings_getAntialias, Ark_Boolean, Ark_NativePointer) void impl_RenderingContextSettings_setAntialias(Ark_NativePointer thisPtr, Ark_Boolean antialias) { - RenderingContextSettingsPeer* self = reinterpret_cast(thisPtr); + Ark_RenderingContextSettings self = reinterpret_cast(thisPtr); GetAccessors()->getRenderingContextSettingsAccessor()->setAntialias(self, antialias); } KOALA_INTEROP_V2(RenderingContextSettings_setAntialias, Ark_NativePointer, Ark_Boolean) @@ -17785,7 +17795,7 @@ Ark_NativePointer impl_CanvasRenderer_getFinalizer() { } KOALA_INTEROP_0(CanvasRenderer_getFinalizer, Ark_NativePointer) void impl_CanvasRenderer_drawImage0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber dx, KInteropNumber dy) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17806,7 +17816,7 @@ void impl_CanvasRenderer_drawImage0(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V5(CanvasRenderer_drawImage0, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_drawImage1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber dx, KInteropNumber dy, KInteropNumber dw, KInteropNumber dh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17827,7 +17837,7 @@ void impl_CanvasRenderer_drawImage1(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V7(CanvasRenderer_drawImage1, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_drawImage2(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh, KInteropNumber dx, KInteropNumber dy, KInteropNumber dw, KInteropNumber dh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17848,12 +17858,12 @@ void impl_CanvasRenderer_drawImage2(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V11(CanvasRenderer_drawImage2, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_beginPath(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->beginPath(self); } KOALA_INTEROP_V1(CanvasRenderer_beginPath, Ark_NativePointer) void impl_CanvasRenderer_clip0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String fillRule_value_buf = {}; @@ -17867,7 +17877,7 @@ void impl_CanvasRenderer_clip0(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_clip0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17882,7 +17892,7 @@ void impl_CanvasRenderer_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_clip1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_fill0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String fillRule_value_buf = {}; @@ -17896,7 +17906,7 @@ void impl_CanvasRenderer_fill0(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_fill0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_fill1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17911,24 +17921,24 @@ void impl_CanvasRenderer_fill1(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_fill1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_stroke0(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->stroke0(self); } KOALA_INTEROP_V1(CanvasRenderer_stroke0, Ark_NativePointer) void impl_CanvasRenderer_stroke1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; GetAccessors()->getCanvasRendererAccessor()->stroke1(self, path_value); } KOALA_INTEROP_V3(CanvasRenderer_stroke1, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_createLinearGradient(Ark_NativePointer thisPtr, KInteropNumber x0, KInteropNumber y0, KInteropNumber x1, KInteropNumber y1) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createLinearGradient(self, (const Ark_Number*) (&x0), (const Ark_Number*) (&y0), (const Ark_Number*) (&x1), (const Ark_Number*) (&y1)); } KOALA_INTEROP_5(CanvasRenderer_createLinearGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); +void impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageBitmap image_value = static_cast(thisDeserializer.readImageBitmap());; const auto repetition_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17939,43 +17949,43 @@ Ark_NativePointer impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, u repetition_value_buf.value = static_cast(thisDeserializer.readString()); } Opt_String repetition_value = repetition_value_buf;; - return GetAccessors()->getCanvasRendererAccessor()->createPattern(self, image_value, (const Opt_String*)&repetition_value); + GetAccessors()->getCanvasRendererAccessor()->createPattern(self, image_value, (const Opt_String*)&repetition_value); } -KOALA_INTEROP_3(CanvasRenderer_createPattern, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(CanvasRenderer_createPattern, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_createRadialGradient(Ark_NativePointer thisPtr, KInteropNumber x0, KInteropNumber y0, KInteropNumber r0, KInteropNumber x1, KInteropNumber y1, KInteropNumber r1) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createRadialGradient(self, (const Ark_Number*) (&x0), (const Ark_Number*) (&y0), (const Ark_Number*) (&r0), (const Ark_Number*) (&x1), (const Ark_Number*) (&y1), (const Ark_Number*) (&r1)); } KOALA_INTEROP_7(CanvasRenderer_createRadialGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createConicGradient(Ark_NativePointer thisPtr, KInteropNumber startAngle, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createConicGradient(self, (const Ark_Number*) (&startAngle), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_4(CanvasRenderer_createConicGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createImageData0(Ark_NativePointer thisPtr, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createImageData0(self, (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_3(CanvasRenderer_createImageData0, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createImageData1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; return GetAccessors()->getCanvasRendererAccessor()->createImageData1(self, imagedata_value); } KOALA_INTEROP_3(CanvasRenderer_createImageData1, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_getImageData(Ark_NativePointer thisPtr, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getImageData(self, (const Ark_Number*) (&sx), (const Ark_Number*) (&sy), (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_5(CanvasRenderer_getImageData, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_getPixelMap(Ark_NativePointer thisPtr, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getPixelMap(self, (const Ark_Number*) (&sx), (const Ark_Number*) (&sy), (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_5(CanvasRenderer_getPixelMap, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); @@ -18012,7 +18022,7 @@ void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(CanvasRenderer_putImageData0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); @@ -18108,13 +18118,15 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA GetAccessors()->getCanvasRendererAccessor()->putImageData1(self, imagedata_value, (const Ark_Union_Number_String*)&dx_value, (const Ark_Union_Number_String*)&dy_value, (const Ark_Union_Number_String*)&dirtyX_value, (const Ark_Union_Number_String*)&dirtyY_value, (const Ark_Union_Number_String*)&dirtyWidth_value, (const Ark_Union_Number_String*)&dirtyHeight_value); } KOALA_INTEROP_V3(CanvasRenderer_putImageData1, Ark_NativePointer, uint8_t*, int32_t) -void impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); +Ark_NativePointer impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(CanvasRenderer_getLineDash, Ark_NativePointer) +KOALA_INTEROP_1(CanvasRenderer_getLineDash, Ark_NativePointer, Ark_NativePointer) void impl_CanvasRenderer_setLineDash(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 segments_value_buf_length = thisDeserializer.readInt32(); Array_Number segments_value_buf = {}; @@ -18128,32 +18140,32 @@ void impl_CanvasRenderer_setLineDash(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(CanvasRenderer_setLineDash, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_clearRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->clearRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_clearRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_fillRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->fillRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_fillRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_strokeRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->strokeRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_strokeRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_restore(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->restore(self); } KOALA_INTEROP_V1(CanvasRenderer_restore, Ark_NativePointer) void impl_CanvasRenderer_save(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->save(self); } KOALA_INTEROP_V1(CanvasRenderer_save, Ark_NativePointer) void impl_CanvasRenderer_fillText(Ark_NativePointer thisPtr, const KStringPtr& text, KInteropNumber x, KInteropNumber y, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto maxWidth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number maxWidth_value_buf = {}; @@ -18166,13 +18178,15 @@ void impl_CanvasRenderer_fillText(Ark_NativePointer thisPtr, const KStringPtr& t GetAccessors()->getCanvasRendererAccessor()->fillText(self, (const Ark_String*) (&text), (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Opt_Number*)&maxWidth_value); } KOALA_INTEROP_V6(CanvasRenderer_fillText, Ark_NativePointer, KStringPtr, KInteropNumber, KInteropNumber, uint8_t*, int32_t) -Ark_NativePointer impl_CanvasRenderer_measureText(Ark_NativePointer thisPtr, const KStringPtr& text) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->measureText(self, (const Ark_String*) (&text)); +KInteropReturnBuffer impl_CanvasRenderer_measureText(Ark_NativePointer thisPtr, const KStringPtr& text) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeTextMetrics(GetAccessors()->getCanvasRendererAccessor()->measureText(self, (const Ark_String*) (&text))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(CanvasRenderer_measureText, Ark_NativePointer, Ark_NativePointer, KStringPtr) +KOALA_INTEROP_2(CanvasRenderer_measureText, KInteropReturnBuffer, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_strokeText(Ark_NativePointer thisPtr, const KStringPtr& text, KInteropNumber x, KInteropNumber y, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto maxWidth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number maxWidth_value_buf = {}; @@ -18186,32 +18200,32 @@ void impl_CanvasRenderer_strokeText(Ark_NativePointer thisPtr, const KStringPtr& } KOALA_INTEROP_V6(CanvasRenderer_strokeText, Ark_NativePointer, KStringPtr, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_getTransform(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getTransform(self); } KOALA_INTEROP_1(CanvasRenderer_getTransform, Ark_NativePointer, Ark_NativePointer) void impl_CanvasRenderer_resetTransform(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->resetTransform(self); } KOALA_INTEROP_V1(CanvasRenderer_resetTransform, Ark_NativePointer) void impl_CanvasRenderer_rotate(Ark_NativePointer thisPtr, KInteropNumber angle) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->rotate(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(CanvasRenderer_rotate, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_scale(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->scale(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasRenderer_scale, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setTransform0(Ark_NativePointer thisPtr, KInteropNumber a, KInteropNumber b, KInteropNumber c, KInteropNumber d, KInteropNumber e, KInteropNumber f) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTransform0(self, (const Ark_Number*) (&a), (const Ark_Number*) (&b), (const Ark_Number*) (&c), (const Ark_Number*) (&d), (const Ark_Number*) (&e), (const Ark_Number*) (&f)); } KOALA_INTEROP_V7(CanvasRenderer_setTransform0, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setTransform1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D transform_value_buf = {}; @@ -18225,17 +18239,17 @@ void impl_CanvasRenderer_setTransform1(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(CanvasRenderer_setTransform1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_transform(Ark_NativePointer thisPtr, KInteropNumber a, KInteropNumber b, KInteropNumber c, KInteropNumber d, KInteropNumber e, KInteropNumber f) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->transform(self, (const Ark_Number*) (&a), (const Ark_Number*) (&b), (const Ark_Number*) (&c), (const Ark_Number*) (&d), (const Ark_Number*) (&e), (const Ark_Number*) (&f)); } KOALA_INTEROP_V7(CanvasRenderer_transform, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_translate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->translate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasRenderer_translate, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setPixelMap(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_PixelMap value_value_buf = {}; @@ -18249,49 +18263,49 @@ void impl_CanvasRenderer_setPixelMap(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(CanvasRenderer_setPixelMap, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_transferFromImageBitmap(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageBitmap bitmap_value = static_cast(thisDeserializer.readImageBitmap());; GetAccessors()->getCanvasRendererAccessor()->transferFromImageBitmap(self, bitmap_value); } KOALA_INTEROP_V3(CanvasRenderer_transferFromImageBitmap, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_saveLayer(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->saveLayer(self); } KOALA_INTEROP_V1(CanvasRenderer_saveLayer, Ark_NativePointer) void impl_CanvasRenderer_restoreLayer(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->restoreLayer(self); } KOALA_INTEROP_V1(CanvasRenderer_restoreLayer, Ark_NativePointer) void impl_CanvasRenderer_reset(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->reset(self); } KOALA_INTEROP_V1(CanvasRenderer_reset, Ark_NativePointer) Ark_Int32 impl_CanvasRenderer_getGlobalAlpha(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getGlobalAlpha(self); } KOALA_INTEROP_1(CanvasRenderer_getGlobalAlpha, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setGlobalAlpha(Ark_NativePointer thisPtr, KInteropNumber globalAlpha) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setGlobalAlpha(self, (const Ark_Number*) (&globalAlpha)); } KOALA_INTEROP_V2(CanvasRenderer_setGlobalAlpha, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_getGlobalCompositeOperation(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getGlobalCompositeOperation(self); } KOALA_INTEROP_V1(CanvasRenderer_getGlobalCompositeOperation, Ark_NativePointer) void impl_CanvasRenderer_setGlobalCompositeOperation(Ark_NativePointer thisPtr, const KStringPtr& globalCompositeOperation) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setGlobalCompositeOperation(self, (const Ark_String*) (&globalCompositeOperation)); } KOALA_INTEROP_V2(CanvasRenderer_setGlobalCompositeOperation, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_setFillStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 fillStyle_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_CanvasGradient_CanvasPattern fillStyle_value_buf = {}; @@ -18320,7 +18334,7 @@ void impl_CanvasRenderer_setFillStyle(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(CanvasRenderer_setFillStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_setStrokeStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 strokeStyle_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_CanvasGradient_CanvasPattern strokeStyle_value_buf = {}; @@ -18349,162 +18363,162 @@ void impl_CanvasRenderer_setStrokeStyle(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(CanvasRenderer_setStrokeStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_getFilter(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getFilter(self); } KOALA_INTEROP_V1(CanvasRenderer_getFilter, Ark_NativePointer) void impl_CanvasRenderer_setFilter(Ark_NativePointer thisPtr, const KStringPtr& filter) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setFilter(self, (const Ark_String*) (&filter)); } KOALA_INTEROP_V2(CanvasRenderer_setFilter, Ark_NativePointer, KStringPtr) Ark_Boolean impl_CanvasRenderer_getImageSmoothingEnabled(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingEnabled(self); } KOALA_INTEROP_1(CanvasRenderer_getImageSmoothingEnabled, Ark_Boolean, Ark_NativePointer) void impl_CanvasRenderer_setImageSmoothingEnabled(Ark_NativePointer thisPtr, Ark_Boolean imageSmoothingEnabled) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setImageSmoothingEnabled(self, imageSmoothingEnabled); } KOALA_INTEROP_V2(CanvasRenderer_setImageSmoothingEnabled, Ark_NativePointer, Ark_Boolean) -Ark_NativePointer impl_CanvasRenderer_getImageSmoothingQuality(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingQuality(self); +void impl_CanvasRenderer_getImageSmoothingQuality(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingQuality(self); } -KOALA_INTEROP_1(CanvasRenderer_getImageSmoothingQuality, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getImageSmoothingQuality, Ark_NativePointer) void impl_CanvasRenderer_setImageSmoothingQuality(Ark_NativePointer thisPtr, const KStringPtr& imageSmoothingQuality) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setImageSmoothingQuality(self, (const Ark_String*) (&imageSmoothingQuality)); } KOALA_INTEROP_V2(CanvasRenderer_setImageSmoothingQuality, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getLineCap(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getLineCap(self); +void impl_CanvasRenderer_getLineCap(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getLineCap(self); } -KOALA_INTEROP_1(CanvasRenderer_getLineCap, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getLineCap, Ark_NativePointer) void impl_CanvasRenderer_setLineCap(Ark_NativePointer thisPtr, const KStringPtr& lineCap) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineCap(self, (const Ark_String*) (&lineCap)); } KOALA_INTEROP_V2(CanvasRenderer_setLineCap, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getLineDashOffset(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getLineDashOffset(self); } KOALA_INTEROP_1(CanvasRenderer_getLineDashOffset, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setLineDashOffset(Ark_NativePointer thisPtr, KInteropNumber lineDashOffset) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineDashOffset(self, (const Ark_Number*) (&lineDashOffset)); } KOALA_INTEROP_V2(CanvasRenderer_setLineDashOffset, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_getLineJoin(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getLineJoin(self); +void impl_CanvasRenderer_getLineJoin(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getLineJoin(self); } -KOALA_INTEROP_1(CanvasRenderer_getLineJoin, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getLineJoin, Ark_NativePointer) void impl_CanvasRenderer_setLineJoin(Ark_NativePointer thisPtr, const KStringPtr& lineJoin) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineJoin(self, (const Ark_String*) (&lineJoin)); } KOALA_INTEROP_V2(CanvasRenderer_setLineJoin, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getLineWidth(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getLineWidth(self); } KOALA_INTEROP_1(CanvasRenderer_getLineWidth, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setLineWidth(Ark_NativePointer thisPtr, KInteropNumber lineWidth) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineWidth(self, (const Ark_Number*) (&lineWidth)); } KOALA_INTEROP_V2(CanvasRenderer_setLineWidth, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getMiterLimit(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getMiterLimit(self); } KOALA_INTEROP_1(CanvasRenderer_getMiterLimit, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setMiterLimit(Ark_NativePointer thisPtr, KInteropNumber miterLimit) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setMiterLimit(self, (const Ark_Number*) (&miterLimit)); } KOALA_INTEROP_V2(CanvasRenderer_setMiterLimit, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getShadowBlur(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowBlur(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowBlur, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowBlur(Ark_NativePointer thisPtr, KInteropNumber shadowBlur) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowBlur(self, (const Ark_Number*) (&shadowBlur)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowBlur, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_getShadowColor(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getShadowColor(self); } KOALA_INTEROP_V1(CanvasRenderer_getShadowColor, Ark_NativePointer) void impl_CanvasRenderer_setShadowColor(Ark_NativePointer thisPtr, const KStringPtr& shadowColor) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowColor(self, (const Ark_String*) (&shadowColor)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowColor, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getShadowOffsetX(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowOffsetX(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowOffsetX, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowOffsetX(Ark_NativePointer thisPtr, KInteropNumber shadowOffsetX) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowOffsetX(self, (const Ark_Number*) (&shadowOffsetX)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getShadowOffsetY(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowOffsetY(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowOffsetY, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowOffsetY(Ark_NativePointer thisPtr, KInteropNumber shadowOffsetY) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowOffsetY(self, (const Ark_Number*) (&shadowOffsetY)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowOffsetY, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_getDirection(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getDirection(self); +void impl_CanvasRenderer_getDirection(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getDirection(self); } -KOALA_INTEROP_1(CanvasRenderer_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getDirection, Ark_NativePointer) void impl_CanvasRenderer_setDirection(Ark_NativePointer thisPtr, const KStringPtr& direction) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setDirection(self, (const Ark_String*) (&direction)); } KOALA_INTEROP_V2(CanvasRenderer_setDirection, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_getFont(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getFont(self); } KOALA_INTEROP_V1(CanvasRenderer_getFont, Ark_NativePointer) void impl_CanvasRenderer_setFont(Ark_NativePointer thisPtr, const KStringPtr& font) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setFont(self, (const Ark_String*) (&font)); } KOALA_INTEROP_V2(CanvasRenderer_setFont, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getTextAlign(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getTextAlign(self); +void impl_CanvasRenderer_getTextAlign(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getTextAlign(self); } -KOALA_INTEROP_1(CanvasRenderer_getTextAlign, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getTextAlign, Ark_NativePointer) void impl_CanvasRenderer_setTextAlign(Ark_NativePointer thisPtr, const KStringPtr& textAlign) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTextAlign(self, (const Ark_String*) (&textAlign)); } KOALA_INTEROP_V2(CanvasRenderer_setTextAlign, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getTextBaseline(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getTextBaseline(self); +void impl_CanvasRenderer_getTextBaseline(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getTextBaseline(self); } -KOALA_INTEROP_1(CanvasRenderer_getTextBaseline, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getTextBaseline, Ark_NativePointer) void impl_CanvasRenderer_setTextBaseline(Ark_NativePointer thisPtr, const KStringPtr& textBaseline) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTextBaseline(self, (const Ark_String*) (&textBaseline)); } KOALA_INTEROP_V2(CanvasRenderer_setTextBaseline, Ark_NativePointer, KStringPtr) @@ -18526,7 +18540,7 @@ Ark_NativePointer impl_CanvasRenderingContext2D_getFinalizer() { } KOALA_INTEROP_0(CanvasRenderingContext2D_getFinalizer, Ark_NativePointer) void impl_CanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto type_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String type_value_buf = {}; @@ -18548,7 +18562,7 @@ void impl_CanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* } KOALA_INTEROP_V3(CanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_startImageAnalyzer(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageAnalyzerConfig config_value = thisDeserializer.readImageAnalyzerConfig();; Callback_Opt_Array_String_Void outputArgumentForReturningPromise_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_Array_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_Array_String_Void))))};; @@ -18556,19 +18570,19 @@ void impl_CanvasRenderingContext2D_startImageAnalyzer(Ark_NativePointer thisPtr, } KOALA_INTEROP_V3(CanvasRenderingContext2D_startImageAnalyzer, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_stopImageAnalyzer(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRenderingContext2DAccessor()->stopImageAnalyzer(self); } KOALA_INTEROP_V1(CanvasRenderingContext2D_stopImageAnalyzer, Ark_NativePointer) void impl_CanvasRenderingContext2D_onOnAttach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getCanvasRenderingContext2DAccessor()->onOnAttach(self, (const Callback_Void*)&callback__value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_onOnAttach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_offOnAttach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -18582,14 +18596,14 @@ void impl_CanvasRenderingContext2D_offOnAttach(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(CanvasRenderingContext2D_offOnAttach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_onOnDetach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getCanvasRenderingContext2DAccessor()->onOnDetach(self, (const Callback_Void*)&callback__value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_onOnDetach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_offOnDetach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -18603,15 +18617,106 @@ void impl_CanvasRenderingContext2D_offOnDetach(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(CanvasRenderingContext2D_offOnDetach, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_CanvasRenderingContext2D_getHeight(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRenderingContext2DAccessor()->getHeight(self); } KOALA_INTEROP_1(CanvasRenderingContext2D_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_CanvasRenderingContext2D_getWidth(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRenderingContext2DAccessor()->getWidth(self); } KOALA_INTEROP_1(CanvasRenderingContext2D_getWidth, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_ctor(KInteropNumber width, KInteropNumber height, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto settings_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_RenderingContextSettings settings_value_buf = {}; + settings_value_buf.tag = settings_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (settings_value_buf_runtimeType)) + { + settings_value_buf.value = static_cast(thisDeserializer.readRenderingContextSettings()); + } + Opt_RenderingContextSettings settings_value = settings_value_buf;; + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->ctor((const Ark_Number*) (&width), (const Ark_Number*) (&height), (const Opt_RenderingContextSettings*)&settings_value); +} +KOALA_INTEROP_4(OffscreenCanvasRenderingContext2D_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_getFinalizer() { + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(OffscreenCanvasRenderingContext2D_getFinalizer, Ark_NativePointer) +void impl_OffscreenCanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_OffscreenCanvasRenderingContext2D self = reinterpret_cast(thisPtr); + Deserializer thisDeserializer(thisArray, thisLength); + const auto type_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_String type_value_buf = {}; + type_value_buf.tag = type_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (type_value_buf_runtimeType)) + { + type_value_buf.value = static_cast(thisDeserializer.readString()); + } + Opt_String type_value = type_value_buf;; + const auto quality_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_CustomObject quality_value_buf = {}; + quality_value_buf.tag = quality_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (quality_value_buf_runtimeType)) + { + quality_value_buf.value = static_cast(thisDeserializer.readCustomObject("Any")); + } + Opt_CustomObject quality_value = quality_value_buf;; + GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_CustomObject*)&quality_value); +} +KOALA_INTEROP_V3(OffscreenCanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_transferToImageBitmap(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvasRenderingContext2D self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->transferToImageBitmap(self); +} +KOALA_INTEROP_1(OffscreenCanvasRenderingContext2D_transferToImageBitmap, Ark_NativePointer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_ctor(KInteropNumber width, KInteropNumber height) { + return GetAccessors()->getOffscreenCanvasAccessor()->ctor((const Ark_Number*) (&width), (const Ark_Number*) (&height)); +} +KOALA_INTEROP_2(OffscreenCanvas_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber) +Ark_NativePointer impl_OffscreenCanvas_getFinalizer() { + return GetAccessors()->getOffscreenCanvasAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(OffscreenCanvas_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_transferToImageBitmap(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->transferToImageBitmap(self); +} +KOALA_INTEROP_1(OffscreenCanvas_transferToImageBitmap, Ark_NativePointer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_getContext2d(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + Deserializer thisDeserializer(thisArray, thisLength); + const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_RenderingContextSettings options_value_buf = {}; + options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (options_value_buf_runtimeType)) + { + options_value_buf.value = static_cast(thisDeserializer.readRenderingContextSettings()); + } + Opt_RenderingContextSettings options_value = options_value_buf;; + return GetAccessors()->getOffscreenCanvasAccessor()->getContext2d(self, (const Opt_RenderingContextSettings*)&options_value); +} +KOALA_INTEROP_3(OffscreenCanvas_getContext2d, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_Int32 impl_OffscreenCanvas_getHeight(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->getHeight(self); +} +KOALA_INTEROP_1(OffscreenCanvas_getHeight, Ark_Int32, Ark_NativePointer) +void impl_OffscreenCanvas_setHeight(Ark_NativePointer thisPtr, KInteropNumber height) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + GetAccessors()->getOffscreenCanvasAccessor()->setHeight(self, (const Ark_Number*) (&height)); +} +KOALA_INTEROP_V2(OffscreenCanvas_setHeight, Ark_NativePointer, KInteropNumber) +Ark_Int32 impl_OffscreenCanvas_getWidth(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->getWidth(self); +} +KOALA_INTEROP_1(OffscreenCanvas_getWidth, Ark_Int32, Ark_NativePointer) +void impl_OffscreenCanvas_setWidth(Ark_NativePointer thisPtr, KInteropNumber width) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + GetAccessors()->getOffscreenCanvasAccessor()->setWidth(self, (const Ark_Number*) (&width)); +} +KOALA_INTEROP_V2(OffscreenCanvas_setWidth, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_DrawingRenderingContext_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto unit_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -18630,7 +18735,7 @@ Ark_NativePointer impl_DrawingRenderingContext_getFinalizer() { } KOALA_INTEROP_0(DrawingRenderingContext_getFinalizer, Ark_NativePointer) void impl_DrawingRenderingContext_invalidate(Ark_NativePointer thisPtr) { - DrawingRenderingContextPeer* self = reinterpret_cast(thisPtr); + Ark_DrawingRenderingContext self = reinterpret_cast(thisPtr); GetAccessors()->getDrawingRenderingContextAccessor()->invalidate(self); } KOALA_INTEROP_V1(DrawingRenderingContext_invalidate, Ark_NativePointer) @@ -18643,7 +18748,7 @@ Ark_NativePointer impl_ICurve_getFinalizer() { } KOALA_INTEROP_0(ICurve_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ICurve_interpolate(Ark_NativePointer thisPtr, KInteropNumber fraction) { - ICurvePeer* self = reinterpret_cast(thisPtr); + Ark_ICurve self = reinterpret_cast(thisPtr); return GetAccessors()->getICurveAccessor()->interpolate(self, (const Ark_Number*) (&fraction)); } KOALA_INTEROP_2(ICurve_interpolate, Ark_Int32, Ark_NativePointer, KInteropNumber) @@ -18656,28 +18761,28 @@ Ark_NativePointer impl_DrawModifier_getFinalizer() { } KOALA_INTEROP_0(DrawModifier_getFinalizer, Ark_NativePointer) void impl_DrawModifier_drawBehind(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawBehind(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawBehind, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_drawContent(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawContent(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawContent, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_drawFront(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawFront(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawFront, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_invalidate(Ark_NativePointer thisPtr) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); GetAccessors()->getDrawModifierAccessor()->invalidate(self); } KOALA_INTEROP_V1(DrawModifier_invalidate, Ark_NativePointer) @@ -18737,14 +18842,14 @@ Ark_NativePointer impl_TransitionEffect_asymmetric(uint8_t* thisArray, int32_t t } KOALA_INTEROP_2(TransitionEffect_asymmetric, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TransitionEffect_animation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TransitionEffectPeer* self = reinterpret_cast(thisPtr); + Ark_TransitionEffect self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; return GetAccessors()->getTransitionEffectAccessor()->animation(self, (const Ark_AnimateParam*)&value_value); } KOALA_INTEROP_3(TransitionEffect_animation, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TransitionEffect_combine(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TransitionEffectPeer* self = reinterpret_cast(thisPtr); + Ark_TransitionEffect self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TransitionEffect transitionEffect_value = static_cast(thisDeserializer.readTransitionEffect());; return GetAccessors()->getTransitionEffectAccessor()->combine(self, transitionEffect_value); @@ -18759,7 +18864,7 @@ Ark_NativePointer impl_BaseEvent_getFinalizer() { } KOALA_INTEROP_0(BaseEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_BaseEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -18773,99 +18878,99 @@ Ark_Boolean impl_BaseEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_3(BaseEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) void impl_BaseEvent_setTarget(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EventTarget target_value = thisDeserializer.readEventTarget();; GetAccessors()->getBaseEventAccessor()->setTarget(self, (const Ark_EventTarget*)&target_value); } KOALA_INTEROP_V3(BaseEvent_setTarget, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_BaseEvent_getTimestamp(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTimestamp(self); } KOALA_INTEROP_1(BaseEvent_getTimestamp, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTimestamp(Ark_NativePointer thisPtr, KInteropNumber timestamp) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTimestamp(self, (const Ark_Number*) (×tamp)); } KOALA_INTEROP_V2(BaseEvent_setTimestamp, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_BaseEvent_getSource(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBaseEventAccessor()->getSource(self); +void impl_BaseEvent_getSource(Ark_NativePointer thisPtr) { + Ark_BaseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getBaseEventAccessor()->getSource(self); } -KOALA_INTEROP_1(BaseEvent_getSource, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BaseEvent_getSource, Ark_NativePointer) void impl_BaseEvent_setSource(Ark_NativePointer thisPtr, Ark_Int32 source) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setSource(self, static_cast(source)); } KOALA_INTEROP_V2(BaseEvent_setSource, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_BaseEvent_getAxisHorizontal(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getAxisHorizontal(self); } KOALA_INTEROP_1(BaseEvent_getAxisHorizontal, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setAxisHorizontal(Ark_NativePointer thisPtr, KInteropNumber axisHorizontal) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setAxisHorizontal(self, (const Ark_Number*) (&axisHorizontal)); } KOALA_INTEROP_V2(BaseEvent_setAxisHorizontal, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getAxisVertical(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getAxisVertical(self); } KOALA_INTEROP_1(BaseEvent_getAxisVertical, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setAxisVertical(Ark_NativePointer thisPtr, KInteropNumber axisVertical) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setAxisVertical(self, (const Ark_Number*) (&axisVertical)); } KOALA_INTEROP_V2(BaseEvent_setAxisVertical, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getPressure(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getPressure(self); } KOALA_INTEROP_1(BaseEvent_getPressure, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setPressure(Ark_NativePointer thisPtr, KInteropNumber pressure) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setPressure(self, (const Ark_Number*) (&pressure)); } KOALA_INTEROP_V2(BaseEvent_setPressure, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getTiltX(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTiltX(self); } KOALA_INTEROP_1(BaseEvent_getTiltX, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTiltX(Ark_NativePointer thisPtr, KInteropNumber tiltX) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTiltX(self, (const Ark_Number*) (&tiltX)); } KOALA_INTEROP_V2(BaseEvent_setTiltX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getTiltY(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTiltY(self); } KOALA_INTEROP_1(BaseEvent_getTiltY, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTiltY(Ark_NativePointer thisPtr, KInteropNumber tiltY) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTiltY(self, (const Ark_Number*) (&tiltY)); } KOALA_INTEROP_V2(BaseEvent_setTiltY, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_BaseEvent_getSourceTool(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBaseEventAccessor()->getSourceTool(self); +void impl_BaseEvent_getSourceTool(Ark_NativePointer thisPtr) { + Ark_BaseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getBaseEventAccessor()->getSourceTool(self); } -KOALA_INTEROP_1(BaseEvent_getSourceTool, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BaseEvent_getSourceTool, Ark_NativePointer) void impl_BaseEvent_setSourceTool(Ark_NativePointer thisPtr, Ark_Int32 sourceTool) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setSourceTool(self, static_cast(sourceTool)); } KOALA_INTEROP_V2(BaseEvent_setSourceTool, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_BaseEvent_getDeviceId(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getDeviceId(self); } KOALA_INTEROP_1(BaseEvent_getDeviceId, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setDeviceId(Ark_NativePointer thisPtr, KInteropNumber deviceId) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setDeviceId(self, (const Ark_Number*) (&deviceId)); } KOALA_INTEROP_V2(BaseEvent_setDeviceId, Ark_NativePointer, KInteropNumber) @@ -18878,94 +18983,94 @@ Ark_NativePointer impl_ClickEvent_getFinalizer() { } KOALA_INTEROP_0(ClickEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ClickEvent_getDisplayX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(ClickEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(ClickEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getDisplayY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(ClickEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(ClickEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getWindowX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(ClickEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(ClickEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getWindowY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(ClickEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(ClickEvent_setWindowY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getScreenX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getScreenX(self); } KOALA_INTEROP_1(ClickEvent_getScreenX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setScreenX(Ark_NativePointer thisPtr, KInteropNumber screenX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setScreenX(self, (const Ark_Number*) (&screenX)); } KOALA_INTEROP_V2(ClickEvent_setScreenX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getScreenY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getScreenY(self); } KOALA_INTEROP_1(ClickEvent_getScreenY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setScreenY(Ark_NativePointer thisPtr, KInteropNumber screenY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setScreenY(self, (const Ark_Number*) (&screenY)); } KOALA_INTEROP_V2(ClickEvent_setScreenY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getX(self); } KOALA_INTEROP_1(ClickEvent_getX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(ClickEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getY(self); } KOALA_INTEROP_1(ClickEvent_getY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(ClickEvent_setY, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_ClickEvent_getPreventDefault(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getClickEventAccessor()->getPreventDefault(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(ClickEvent_getPreventDefault, Ark_NativePointer, Ark_NativePointer) void impl_ClickEvent_setPreventDefault(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void preventDefault_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getClickEventAccessor()->setPreventDefault(self, (const Callback_Void*)&preventDefault_value); @@ -18980,14 +19085,14 @@ Ark_NativePointer impl_HoverEvent_getFinalizer() { } KOALA_INTEROP_0(HoverEvent_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_HoverEvent_getStopPropagation(Ark_NativePointer thisPtr) { - HoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_HoverEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getHoverEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(HoverEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_HoverEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - HoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_HoverEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getHoverEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); @@ -19001,115 +19106,115 @@ Ark_NativePointer impl_MouseEvent_getFinalizer() { return GetAccessors()->getMouseEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(MouseEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_MouseEvent_getButton(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMouseEventAccessor()->getButton(self); +void impl_MouseEvent_getButton(Ark_NativePointer thisPtr) { + Ark_MouseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getMouseEventAccessor()->getButton(self); } -KOALA_INTEROP_1(MouseEvent_getButton, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(MouseEvent_getButton, Ark_NativePointer) void impl_MouseEvent_setButton(Ark_NativePointer thisPtr, Ark_Int32 button) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setButton(self, static_cast(button)); } KOALA_INTEROP_V2(MouseEvent_setButton, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_MouseEvent_getAction(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMouseEventAccessor()->getAction(self); +void impl_MouseEvent_getAction(Ark_NativePointer thisPtr) { + Ark_MouseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getMouseEventAccessor()->getAction(self); } -KOALA_INTEROP_1(MouseEvent_getAction, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(MouseEvent_getAction, Ark_NativePointer) void impl_MouseEvent_setAction(Ark_NativePointer thisPtr, Ark_Int32 action) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setAction(self, static_cast(action)); } KOALA_INTEROP_V2(MouseEvent_setAction, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_MouseEvent_getDisplayX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(MouseEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(MouseEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getDisplayY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(MouseEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(MouseEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getWindowX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(MouseEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(MouseEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getWindowY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(MouseEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(MouseEvent_setWindowY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getScreenX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getScreenX(self); } KOALA_INTEROP_1(MouseEvent_getScreenX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setScreenX(Ark_NativePointer thisPtr, KInteropNumber screenX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setScreenX(self, (const Ark_Number*) (&screenX)); } KOALA_INTEROP_V2(MouseEvent_setScreenX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getScreenY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getScreenY(self); } KOALA_INTEROP_1(MouseEvent_getScreenY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setScreenY(Ark_NativePointer thisPtr, KInteropNumber screenY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setScreenY(self, (const Ark_Number*) (&screenY)); } KOALA_INTEROP_V2(MouseEvent_setScreenY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getX(self); } KOALA_INTEROP_1(MouseEvent_getX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(MouseEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getY(self); } KOALA_INTEROP_1(MouseEvent_getY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(MouseEvent_setY, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_MouseEvent_getStopPropagation(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getMouseEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(MouseEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_MouseEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getMouseEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); @@ -19123,73 +19228,73 @@ Ark_NativePointer impl_AccessibilityHoverEvent_getFinalizer() { return GetAccessors()->getAccessibilityHoverEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(AccessibilityHoverEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_AccessibilityHoverEvent_getType(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getAccessibilityHoverEventAccessor()->getType(self); +void impl_AccessibilityHoverEvent_getType(Ark_NativePointer thisPtr) { + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getAccessibilityHoverEventAccessor()->getType(self); } -KOALA_INTEROP_1(AccessibilityHoverEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(AccessibilityHoverEvent_getType, Ark_NativePointer) void impl_AccessibilityHoverEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setType, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_AccessibilityHoverEvent_getX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getDisplayX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getDisplayY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getWindowX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getWindowY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setWindowY, Ark_NativePointer, KInteropNumber) @@ -19201,23 +19306,32 @@ Ark_NativePointer impl_TouchEvent_getFinalizer() { return GetAccessors()->getTouchEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(TouchEvent_getFinalizer, Ark_NativePointer) -void impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); +Ark_NativePointer impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(TouchEvent_getHistoricalPoints, Ark_NativePointer) -Ark_NativePointer impl_TouchEvent_getType(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTouchEventAccessor()->getType(self); +KOALA_INTEROP_1(TouchEvent_getHistoricalPoints, Ark_NativePointer, Ark_NativePointer) +void impl_TouchEvent_getType(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getTouchEventAccessor()->getType(self); } -KOALA_INTEROP_1(TouchEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(TouchEvent_getType, Ark_NativePointer) void impl_TouchEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); GetAccessors()->getTouchEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(TouchEvent_setType, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_TouchEvent_getTouches(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getTouches(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TouchEvent_getTouches, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 touches_value_buf_length = thisDeserializer.readInt32(); Array_TouchObject touches_value_buf = {}; @@ -19230,8 +19344,15 @@ void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, i GetAccessors()->getTouchEventAccessor()->setTouches(self, (const Array_TouchObject*)&touches_value); } KOALA_INTEROP_V3(TouchEvent_setTouches, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_TouchEvent_getChangedTouches(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getChangedTouches(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TouchEvent_getChangedTouches, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 changedTouches_value_buf_length = thisDeserializer.readInt32(); Array_TouchObject changedTouches_value_buf = {}; @@ -19245,28 +19366,28 @@ void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(TouchEvent_setChangedTouches, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TouchEvent_getStopPropagation(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(TouchEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getTouchEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); } KOALA_INTEROP_V3(TouchEvent_setStopPropagation, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TouchEvent_getPreventDefault(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getPreventDefault(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(TouchEvent_getPreventDefault, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setPreventDefault(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void preventDefault_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getTouchEventAccessor()->setPreventDefault(self, (const Callback_Void*)&preventDefault_value); @@ -19281,7 +19402,7 @@ Ark_NativePointer impl_PixelMapMock_getFinalizer() { } KOALA_INTEROP_0(PixelMapMock_getFinalizer, Ark_NativePointer) void impl_PixelMapMock_release(Ark_NativePointer thisPtr) { - PixelMapMockPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMapMock self = reinterpret_cast(thisPtr); GetAccessors()->getPixelMapMockAccessor()->release(self); } KOALA_INTEROP_V1(PixelMapMock_release, Ark_NativePointer) @@ -19294,84 +19415,88 @@ Ark_NativePointer impl_DragEvent_getFinalizer() { } KOALA_INTEROP_0(DragEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_DragEvent_getDisplayX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(DragEvent_getDisplayX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getDisplayY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(DragEvent_getDisplayY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getWindowX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(DragEvent_getWindowX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getWindowY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(DragEvent_getWindowY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getX(self); } KOALA_INTEROP_1(DragEvent_getX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getY(self); } KOALA_INTEROP_1(DragEvent_getY, Ark_Int32, Ark_NativePointer) void impl_DragEvent_setData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_UnifiedData unifiedData_value = static_cast(thisDeserializer.readUnifiedData());; GetAccessors()->getDragEventAccessor()->setData(self, unifiedData_value); } KOALA_INTEROP_V3(DragEvent_setData, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_DragEvent_getData(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getData(self); } KOALA_INTEROP_1(DragEvent_getData, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DragEvent_getSummary(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getSummary(self); +KInteropReturnBuffer impl_DragEvent_getSummary(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSummary(GetAccessors()->getDragEventAccessor()->getSummary(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(DragEvent_getSummary, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(DragEvent_getSummary, KInteropReturnBuffer, Ark_NativePointer) void impl_DragEvent_setResult(Ark_NativePointer thisPtr, Ark_Int32 dragResult) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setResult(self, static_cast(dragResult)); } KOALA_INTEROP_V2(DragEvent_setResult, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_DragEvent_getResult(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getResult(self); -} -KOALA_INTEROP_1(DragEvent_getResult, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DragEvent_getPreviewRect(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getPreviewRect(self); -} -KOALA_INTEROP_1(DragEvent_getPreviewRect, Ark_NativePointer, Ark_NativePointer) +void impl_DragEvent_getResult(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getDragEventAccessor()->getResult(self); +} +KOALA_INTEROP_V1(DragEvent_getResult, Ark_NativePointer) +KInteropReturnBuffer impl_DragEvent_getPreviewRect(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectangle(GetAccessors()->getDragEventAccessor()->getPreviewRect(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(DragEvent_getPreviewRect, KInteropReturnBuffer, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocityX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(DragEvent_getVelocityX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocityY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(DragEvent_getVelocityY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocity(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(DragEvent_getVelocity, Ark_Int32, Ark_NativePointer) Ark_Boolean impl_DragEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -19384,23 +19509,23 @@ Ark_Boolean impl_DragEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_ return GetAccessors()->getDragEventAccessor()->getModifierKeyState(self, (const Array_String*)&keys_value); } KOALA_INTEROP_3(DragEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_DragEvent_getDragBehavior(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getDragBehavior(self); +void impl_DragEvent_getDragBehavior(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getDragEventAccessor()->getDragBehavior(self); } -KOALA_INTEROP_1(DragEvent_getDragBehavior, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DragEvent_getDragBehavior, Ark_NativePointer) void impl_DragEvent_setDragBehavior(Ark_NativePointer thisPtr, Ark_Int32 dragBehavior) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setDragBehavior(self, static_cast(dragBehavior)); } KOALA_INTEROP_V2(DragEvent_setDragBehavior, Ark_NativePointer, Ark_Int32) Ark_Boolean impl_DragEvent_getUseCustomDropAnimation(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getUseCustomDropAnimation(self); } KOALA_INTEROP_1(DragEvent_getUseCustomDropAnimation, Ark_Boolean, Ark_NativePointer) void impl_DragEvent_setUseCustomDropAnimation(Ark_NativePointer thisPtr, Ark_Boolean useCustomDropAnimation) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setUseCustomDropAnimation(self, useCustomDropAnimation); } KOALA_INTEROP_V2(DragEvent_setUseCustomDropAnimation, Ark_NativePointer, Ark_Boolean) @@ -19413,7 +19538,7 @@ Ark_NativePointer impl_KeyEvent_getFinalizer() { } KOALA_INTEROP_0(KeyEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_KeyEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -19426,104 +19551,104 @@ Ark_Boolean impl_KeyEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t return GetAccessors()->getKeyEventAccessor()->getModifierKeyState(self, (const Array_String*)&keys_value); } KOALA_INTEROP_3(KeyEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_KeyEvent_getType(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getKeyEventAccessor()->getType(self); +void impl_KeyEvent_getType(Ark_NativePointer thisPtr) { + Ark_KeyEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getKeyEventAccessor()->getType(self); } -KOALA_INTEROP_1(KeyEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(KeyEvent_getType, Ark_NativePointer) void impl_KeyEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(KeyEvent_setType, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_KeyEvent_getKeyCode(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getKeyCode(self); } KOALA_INTEROP_1(KeyEvent_getKeyCode, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setKeyCode(Ark_NativePointer thisPtr, KInteropNumber keyCode) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeyCode(self, (const Ark_Number*) (&keyCode)); } KOALA_INTEROP_V2(KeyEvent_setKeyCode, Ark_NativePointer, KInteropNumber) void impl_KeyEvent_getKeyText(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->getKeyText(self); } KOALA_INTEROP_V1(KeyEvent_getKeyText, Ark_NativePointer) void impl_KeyEvent_setKeyText(Ark_NativePointer thisPtr, const KStringPtr& keyText) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeyText(self, (const Ark_String*) (&keyText)); } KOALA_INTEROP_V2(KeyEvent_setKeyText, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_KeyEvent_getKeySource(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getKeyEventAccessor()->getKeySource(self); +void impl_KeyEvent_getKeySource(Ark_NativePointer thisPtr) { + Ark_KeyEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getKeyEventAccessor()->getKeySource(self); } -KOALA_INTEROP_1(KeyEvent_getKeySource, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(KeyEvent_getKeySource, Ark_NativePointer) void impl_KeyEvent_setKeySource(Ark_NativePointer thisPtr, Ark_Int32 keySource) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeySource(self, static_cast(keySource)); } KOALA_INTEROP_V2(KeyEvent_setKeySource, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_KeyEvent_getDeviceId(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getDeviceId(self); } KOALA_INTEROP_1(KeyEvent_getDeviceId, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setDeviceId(Ark_NativePointer thisPtr, KInteropNumber deviceId) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setDeviceId(self, (const Ark_Number*) (&deviceId)); } KOALA_INTEROP_V2(KeyEvent_setDeviceId, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_KeyEvent_getMetaKey(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getMetaKey(self); } KOALA_INTEROP_1(KeyEvent_getMetaKey, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setMetaKey(Ark_NativePointer thisPtr, KInteropNumber metaKey) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setMetaKey(self, (const Ark_Number*) (&metaKey)); } KOALA_INTEROP_V2(KeyEvent_setMetaKey, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_KeyEvent_getTimestamp(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getTimestamp(self); } KOALA_INTEROP_1(KeyEvent_getTimestamp, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setTimestamp(Ark_NativePointer thisPtr, KInteropNumber timestamp) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setTimestamp(self, (const Ark_Number*) (×tamp)); } KOALA_INTEROP_V2(KeyEvent_setTimestamp, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_KeyEvent_getStopPropagation(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getKeyEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(KeyEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_KeyEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getKeyEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); } KOALA_INTEROP_V3(KeyEvent_setStopPropagation, Ark_NativePointer, uint8_t*, int32_t) void impl_KeyEvent_setIntentionCode(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_IntentionCode intentionCode_value = thisDeserializer.readIntentionCode();; GetAccessors()->getKeyEventAccessor()->setIntentionCode(self, (const Ark_IntentionCode*)&intentionCode_value); } KOALA_INTEROP_V3(KeyEvent_setIntentionCode, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_KeyEvent_getUnicode(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getUnicode(self); } KOALA_INTEROP_1(KeyEvent_getUnicode, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setUnicode(Ark_NativePointer thisPtr, KInteropNumber unicode) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setUnicode(self, (const Ark_Number*) (&unicode)); } KOALA_INTEROP_V2(KeyEvent_setUnicode, Ark_NativePointer, KInteropNumber) @@ -19560,12 +19685,12 @@ Ark_NativePointer impl_ProgressMask_getFinalizer() { } KOALA_INTEROP_0(ProgressMask_getFinalizer, Ark_NativePointer) void impl_ProgressMask_updateProgress(Ark_NativePointer thisPtr, KInteropNumber value) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); GetAccessors()->getProgressMaskAccessor()->updateProgress(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(ProgressMask_updateProgress, Ark_NativePointer, KInteropNumber) void impl_ProgressMask_updateColor(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_ResourceColor value_value_buf = {}; @@ -19594,7 +19719,7 @@ void impl_ProgressMask_updateColor(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(ProgressMask_updateColor, Ark_NativePointer, uint8_t*, int32_t) void impl_ProgressMask_enableBreathingAnimation(Ark_NativePointer thisPtr, Ark_Boolean value) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); GetAccessors()->getProgressMaskAccessor()->enableBreathingAnimation(self, value); } KOALA_INTEROP_V2(ProgressMask_enableBreathingAnimation, Ark_NativePointer, Ark_Boolean) @@ -19606,28 +19731,36 @@ Ark_NativePointer impl_Measurable_getFinalizer() { return GetAccessors()->getMeasurableAccessor()->getFinalizer(); } KOALA_INTEROP_0(Measurable_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_measure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MeasurablePeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_Measurable_measure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_Measurable self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ConstraintSizeOptions constraint_value = thisDeserializer.readConstraintSizeOptions();; - return GetAccessors()->getMeasurableAccessor()->measure(self, (const Ark_ConstraintSizeOptions*)&constraint_value); -} -KOALA_INTEROP_3(Measurable_measure, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_Measurable_getMargin(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getMargin(self); -} -KOALA_INTEROP_1(Measurable_getMargin, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_getPadding(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getPadding(self); -} -KOALA_INTEROP_1(Measurable_getPadding, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_getBorderWidth(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getBorderWidth(self); -} -KOALA_INTEROP_1(Measurable_getBorderWidth, Ark_NativePointer, Ark_NativePointer) + Serializer _retSerializer {}; + _retSerializer.writeMeasureResult(GetAccessors()->getMeasurableAccessor()->measure(self, (const Ark_ConstraintSizeOptions*)&constraint_value)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_3(Measurable_measure, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) +KInteropReturnBuffer impl_Measurable_getMargin(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getMargin(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getMargin, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_Measurable_getPadding(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getPadding(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getPadding, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_Measurable_getBorderWidth(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getBorderWidth(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getBorderWidth, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_View_ctor() { return GetAccessors()->getViewAccessor()->ctor(); } @@ -19637,7 +19770,7 @@ Ark_NativePointer impl_View_getFinalizer() { } KOALA_INTEROP_0(View_getFinalizer, Ark_NativePointer) void impl_View_create(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ViewPeer* self = reinterpret_cast(thisPtr); + Ark_View self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject value_value = static_cast(thisDeserializer.readCustomObject("Any"));; GetAccessors()->getViewAccessor()->create(self, (const Ark_CustomObject*)&value_value); @@ -19651,18 +19784,22 @@ Ark_NativePointer impl_TextContentControllerBase_getFinalizer() { return GetAccessors()->getTextContentControllerBaseAccessor()->getFinalizer(); } KOALA_INTEROP_0(TextContentControllerBase_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_TextContentControllerBase_getCaretOffset(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextContentControllerBaseAccessor()->getCaretOffset(self); -} -KOALA_INTEROP_1(TextContentControllerBase_getCaretOffset, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_TextContentControllerBase_getTextContentRect(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentRect(self); -} -KOALA_INTEROP_1(TextContentControllerBase_getTextContentRect, Ark_NativePointer, Ark_NativePointer) +KInteropReturnBuffer impl_TextContentControllerBase_getCaretOffset(Ark_NativePointer thisPtr) { + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeCaretOffset(GetAccessors()->getTextContentControllerBaseAccessor()->getCaretOffset(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(TextContentControllerBase_getCaretOffset, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_TextContentControllerBase_getTextContentRect(Ark_NativePointer thisPtr) { + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentRect(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(TextContentControllerBase_getTextContentRect, KInteropReturnBuffer, Ark_NativePointer) Ark_Int32 impl_TextContentControllerBase_getTextContentLineCount(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); return GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentLineCount(self); } KOALA_INTEROP_1(TextContentControllerBase_getTextContentLineCount, Ark_Int32, Ark_NativePointer) @@ -19675,7 +19812,7 @@ Ark_NativePointer impl_DynamicNode_getFinalizer() { } KOALA_INTEROP_0(DynamicNode_getFinalizer, Ark_NativePointer) void impl_DynamicNode_onMove(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DynamicNodePeer* self = reinterpret_cast(thisPtr); + Ark_DynamicNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto handler_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_OnMoveHandler handler_value_buf = {}; @@ -19697,7 +19834,7 @@ Ark_NativePointer impl_ChildrenMainSize_getFinalizer() { } KOALA_INTEROP_0(ChildrenMainSize_getFinalizer, Ark_NativePointer) void impl_ChildrenMainSize_splice(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto deleteCount_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number deleteCount_value_buf = {}; @@ -19726,17 +19863,17 @@ void impl_ChildrenMainSize_splice(Ark_NativePointer thisPtr, KInteropNumber star } KOALA_INTEROP_V4(ChildrenMainSize_splice, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_ChildrenMainSize_update(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber childSize) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); GetAccessors()->getChildrenMainSizeAccessor()->update(self, (const Ark_Number*) (&index), (const Ark_Number*) (&childSize)); } KOALA_INTEROP_V3(ChildrenMainSize_update, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_Int32 impl_ChildrenMainSize_getChildDefaultSize(Ark_NativePointer thisPtr) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); return GetAccessors()->getChildrenMainSizeAccessor()->getChildDefaultSize(self); } KOALA_INTEROP_1(ChildrenMainSize_getChildDefaultSize, Ark_Int32, Ark_NativePointer) void impl_ChildrenMainSize_setChildDefaultSize(Ark_NativePointer thisPtr, KInteropNumber childDefaultSize) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); GetAccessors()->getChildrenMainSizeAccessor()->setChildDefaultSize(self, (const Ark_Number*) (&childDefaultSize)); } KOALA_INTEROP_V2(ChildrenMainSize_setChildDefaultSize, Ark_NativePointer, KInteropNumber) @@ -19749,7 +19886,7 @@ Ark_NativePointer impl_UICommonEvent_getFinalizer() { } KOALA_INTEROP_0(UICommonEvent_getFinalizer, Ark_NativePointer) void impl_UICommonEvent_setOnClick(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_ClickEvent_Void callback__value_buf = {}; @@ -19763,7 +19900,7 @@ void impl_UICommonEvent_setOnClick(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnClick, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnTouch(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_TouchEvent_Void callback__value_buf = {}; @@ -19777,7 +19914,7 @@ void impl_UICommonEvent_setOnTouch(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnTouch, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnAppear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19791,7 +19928,7 @@ void impl_UICommonEvent_setOnAppear(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(UICommonEvent_setOnAppear, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnDisappear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19805,7 +19942,7 @@ void impl_UICommonEvent_setOnDisappear(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(UICommonEvent_setOnDisappear, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnKeyEvent(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_KeyEvent_Void callback__value_buf = {}; @@ -19819,7 +19956,7 @@ void impl_UICommonEvent_setOnKeyEvent(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(UICommonEvent_setOnKeyEvent, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnFocus(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19833,7 +19970,7 @@ void impl_UICommonEvent_setOnFocus(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnFocus, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnBlur(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19847,7 +19984,7 @@ void impl_UICommonEvent_setOnBlur(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(UICommonEvent_setOnBlur, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnHover(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_HoverCallback callback__value_buf = {}; @@ -19861,7 +19998,7 @@ void impl_UICommonEvent_setOnHover(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnHover, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnMouse(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_MouseEvent_Void callback__value_buf = {}; @@ -19875,7 +20012,7 @@ void impl_UICommonEvent_setOnMouse(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnMouse, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnSizeChange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SizeChangeCallback callback__value_buf = {}; @@ -19889,7 +20026,7 @@ void impl_UICommonEvent_setOnSizeChange(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(UICommonEvent_setOnSizeChange, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnVisibleAreaApproximateChange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_VisibleAreaEventOptions options_value = thisDeserializer.readVisibleAreaEventOptions();; const auto event_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -19912,13 +20049,25 @@ Ark_NativePointer impl_GestureModifier_getFinalizer() { } KOALA_INTEROP_0(GestureModifier_getFinalizer, Ark_NativePointer) void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - GestureModifierPeer* self = reinterpret_cast(thisPtr); + Ark_GestureModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_UIGestureEvent event_value = thisDeserializer.readUIGestureEvent();; GetAccessors()->getGestureModifierAccessor()->applyGesture(self, (const Ark_UIGestureEvent*)&event_value); } KOALA_INTEROP_V3(GestureModifier_applyGesture, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t thisLength) { +Ark_Boolean impl_GlobalScope_focusControl_common_requestFocus(const KStringPtr& value) { + return GetAccessors()->getGlobalScope_focusControl_commonAccessor()->requestFocus((const Ark_String*) (&value)); +} +KOALA_INTEROP_1(GlobalScope_focusControl_common_requestFocus, Ark_Boolean, KStringPtr) +void impl_GlobalScope_cursorControl_common_setCursor(Ark_Int32 value) { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->setCursor(static_cast(value)); +} +KOALA_INTEROP_V1(GlobalScope_cursorControl_common_setCursor, Ark_Int32) +void impl_GlobalScope_cursorControl_common_restoreDefault() { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->restoreDefault(); +} +KOALA_INTEROP_V0(GlobalScope_cursorControl_common_restoreDefault) +KInteropReturnBuffer impl_GlobalScopecommon_getContext(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto component_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_CustomObject component_value_buf = {}; @@ -19928,17 +20077,19 @@ Ark_NativePointer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t component_value_buf.value = static_cast(thisDeserializer.readCustomObject("Object")); } Opt_CustomObject component_value = component_value_buf;; - return GetAccessors()->getGlobalScope_commonAccessor()->getContext((const Opt_CustomObject*)&component_value); + Serializer _retSerializer {}; + _retSerializer.writeContext(GetAccessors()->getGlobalScopecommonAccessor()->getContext((const Opt_CustomObject*)&component_value)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(GlobalScope_common_getContext, Ark_NativePointer, uint8_t*, int32_t) -void impl_GlobalScope_common_postCardAction(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_2(GlobalScopecommon_getContext, KInteropReturnBuffer, uint8_t*, int32_t) +void impl_GlobalScopecommon_postCardAction(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject component_value = static_cast(thisDeserializer.readCustomObject("Object"));; Ark_CustomObject action_value = static_cast(thisDeserializer.readCustomObject("Object"));; - GetAccessors()->getGlobalScope_commonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); + GetAccessors()->getGlobalScopecommonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); } -KOALA_INTEROP_V2(GlobalScope_common_postCardAction, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V2(GlobalScopecommon_postCardAction, uint8_t*, int32_t) +KInteropReturnBuffer impl_GlobalScopecommon_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 params_value_buf_length = thisDeserializer.readInt32(); Array_CustomObject params_value_buf = {}; @@ -19948,63 +20099,55 @@ Ark_NativePointer impl_GlobalScope_common_dollar_r(const KStringPtr& value, uint params_value_buf.array[params_value_buf_i] = static_cast(thisDeserializer.readCustomObject("Any")); } Array_CustomObject params_value = params_value_buf;; - return GetAccessors()->getGlobalScope_commonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value); + Serializer _retSerializer {}; + _retSerializer.writeResource(GetAccessors()->getGlobalScopecommonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(GlobalScope_common_dollar_r, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_dollar_rawfile(const KStringPtr& value) { - return GetAccessors()->getGlobalScope_commonAccessor()->dollar_rawfile((const Ark_String*) (&value)); +KOALA_INTEROP_3(GlobalScopecommon_dollar_r, KInteropReturnBuffer, KStringPtr, uint8_t*, int32_t) +KInteropReturnBuffer impl_GlobalScopecommon_dollar_rawfile(const KStringPtr& value) { + Serializer _retSerializer {}; + _retSerializer.writeResource(GetAccessors()->getGlobalScopecommonAccessor()->dollar_rawfile((const Ark_String*) (&value))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(GlobalScope_common_dollar_rawfile, Ark_NativePointer, KStringPtr) -void impl_GlobalScope_common_animateTo(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_1(GlobalScopecommon_dollar_rawfile, KInteropReturnBuffer, KStringPtr) +void impl_GlobalScopecommon_animateTo(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); + GetAccessors()->getGlobalScopecommonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); } -KOALA_INTEROP_V2(GlobalScope_common_animateTo, uint8_t*, int32_t) -void impl_GlobalScope_common_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V2(GlobalScopecommon_animateTo, uint8_t*, int32_t) +void impl_GlobalScopecommon_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); -} -KOALA_INTEROP_V2(GlobalScope_common_animateToImmediately, uint8_t*, int32_t) -Ark_Int32 impl_GlobalScope_common_vp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->vp2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_vp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2vp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2vp((const Ark_Number*) (&value)); + GetAccessors()->getGlobalScopecommonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); } -KOALA_INTEROP_1(GlobalScope_common_px2vp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_fp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->fp2px((const Ark_Number*) (&value)); +KOALA_INTEROP_V2(GlobalScopecommon_animateToImmediately, uint8_t*, int32_t) +Ark_Int32 impl_GlobalScopecommon_vp2px(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->vp2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScope_common_fp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2fp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2fp((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScopecommon_vp2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScopecommon_px2vp(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->px2vp((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScope_common_px2fp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_lpx2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->lpx2px((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScopecommon_px2vp, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScopecommon_fp2px(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->fp2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScope_common_lpx2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2lpx(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2lpx((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScopecommon_fp2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScopecommon_px2fp(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->px2fp((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScope_common_px2lpx, Ark_Int32, KInteropNumber) -Ark_Boolean impl_GlobalScope_common_requestFocus(const KStringPtr& value) { - return GetAccessors()->getGlobalScope_commonAccessor()->requestFocus((const Ark_String*) (&value)); +KOALA_INTEROP_1(GlobalScopecommon_px2fp, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScopecommon_lpx2px(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->lpx2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScope_common_requestFocus, Ark_Boolean, KStringPtr) -void impl_GlobalScope_common_setCursor(Ark_Int32 value) { - GetAccessors()->getGlobalScope_commonAccessor()->setCursor(static_cast(value)); +KOALA_INTEROP_1(GlobalScopecommon_lpx2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScopecommon_px2lpx(KInteropNumber value) { + return GetAccessors()->getGlobalScopecommonAccessor()->px2lpx((const Ark_Number*) (&value)); } -KOALA_INTEROP_V1(GlobalScope_common_setCursor, Ark_Int32) -void impl_GlobalScope_common_restoreDefault() { - GetAccessors()->getGlobalScope_commonAccessor()->restoreDefault(); -} -KOALA_INTEROP_V0(GlobalScope_common_restoreDefault) +KOALA_INTEROP_1(GlobalScopecommon_px2lpx, Ark_Int32, KInteropNumber) Ark_NativePointer impl_ContextMenu_ctor() { return GetAccessors()->getContextMenuAccessor()->ctor(); } @@ -20028,12 +20171,12 @@ Ark_NativePointer impl_CustomDialogController_getFinalizer() { } KOALA_INTEROP_0(CustomDialogController_getFinalizer, Ark_NativePointer) void impl_CustomDialogController_open(Ark_NativePointer thisPtr) { - CustomDialogControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CustomDialogController self = reinterpret_cast(thisPtr); GetAccessors()->getCustomDialogControllerAccessor()->open(self); } KOALA_INTEROP_V1(CustomDialogController_open, Ark_NativePointer) void impl_CustomDialogController_close(Ark_NativePointer thisPtr) { - CustomDialogControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CustomDialogController self = reinterpret_cast(thisPtr); GetAccessors()->getCustomDialogControllerAccessor()->close(self); } KOALA_INTEROP_V1(CustomDialogController_close, Ark_NativePointer) @@ -20083,8 +20226,15 @@ Ark_NativePointer impl_BaseGestureEvent_getFinalizer() { return GetAccessors()->getBaseGestureEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(BaseGestureEvent_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_BaseGestureEvent_getFingerList(Ark_NativePointer thisPtr) { + Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getBaseGestureEventAccessor()->getFingerList(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(BaseGestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) void impl_BaseGestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fingerList_value_buf_length = thisDeserializer.readInt32(); Array_FingerInfo fingerList_value_buf = {}; @@ -20114,12 +20264,12 @@ Ark_NativePointer impl_LongPressGestureEvent_getFinalizer() { } KOALA_INTEROP_0(LongPressGestureEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_LongPressGestureEvent_getRepeat(Ark_NativePointer thisPtr) { - LongPressGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_LongPressGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getLongPressGestureEventAccessor()->getRepeat(self); } KOALA_INTEROP_1(LongPressGestureEvent_getRepeat, Ark_Boolean, Ark_NativePointer) void impl_LongPressGestureEvent_setRepeat(Ark_NativePointer thisPtr, Ark_Boolean repeat) { - LongPressGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_LongPressGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getLongPressGestureEventAccessor()->setRepeat(self, repeat); } KOALA_INTEROP_V2(LongPressGestureEvent_setRepeat, Ark_NativePointer, Ark_Boolean) @@ -20132,52 +20282,52 @@ Ark_NativePointer impl_PanGestureEvent_getFinalizer() { } KOALA_INTEROP_0(PanGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_PanGestureEvent_getOffsetX(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getOffsetX(self); } KOALA_INTEROP_1(PanGestureEvent_getOffsetX, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setOffsetX(Ark_NativePointer thisPtr, KInteropNumber offsetX) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setOffsetX(self, (const Ark_Number*) (&offsetX)); } KOALA_INTEROP_V2(PanGestureEvent_setOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getOffsetY(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getOffsetY(self); } KOALA_INTEROP_1(PanGestureEvent_getOffsetY, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setOffsetY(Ark_NativePointer thisPtr, KInteropNumber offsetY) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setOffsetY(self, (const Ark_Number*) (&offsetY)); } KOALA_INTEROP_V2(PanGestureEvent_setOffsetY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocityX(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocityX, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocityX(Ark_NativePointer thisPtr, KInteropNumber velocityX) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocityX(self, (const Ark_Number*) (&velocityX)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocityX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocityY(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocityY, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocityY(Ark_NativePointer thisPtr, KInteropNumber velocityY) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocityY(self, (const Ark_Number*) (&velocityY)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocityY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocity(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocity, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocity(Ark_NativePointer thisPtr, KInteropNumber velocity) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocity(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocity, Ark_NativePointer, KInteropNumber) @@ -20190,32 +20340,32 @@ Ark_NativePointer impl_PinchGestureEvent_getFinalizer() { } KOALA_INTEROP_0(PinchGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_PinchGestureEvent_getScale(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getScale(self); } KOALA_INTEROP_1(PinchGestureEvent_getScale, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setScale(Ark_NativePointer thisPtr, KInteropNumber scale) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setScale(self, (const Ark_Number*) (&scale)); } KOALA_INTEROP_V2(PinchGestureEvent_setScale, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PinchGestureEvent_getPinchCenterX(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getPinchCenterX(self); } KOALA_INTEROP_1(PinchGestureEvent_getPinchCenterX, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setPinchCenterX(Ark_NativePointer thisPtr, KInteropNumber pinchCenterX) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setPinchCenterX(self, (const Ark_Number*) (&pinchCenterX)); } KOALA_INTEROP_V2(PinchGestureEvent_setPinchCenterX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PinchGestureEvent_getPinchCenterY(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getPinchCenterY(self); } KOALA_INTEROP_1(PinchGestureEvent_getPinchCenterY, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setPinchCenterY(Ark_NativePointer thisPtr, KInteropNumber pinchCenterY) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setPinchCenterY(self, (const Ark_Number*) (&pinchCenterY)); } KOALA_INTEROP_V2(PinchGestureEvent_setPinchCenterY, Ark_NativePointer, KInteropNumber) @@ -20228,12 +20378,12 @@ Ark_NativePointer impl_RotationGestureEvent_getFinalizer() { } KOALA_INTEROP_0(RotationGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RotationGestureEvent_getAngle(Ark_NativePointer thisPtr) { - RotationGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_RotationGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getRotationGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(RotationGestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_RotationGestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - RotationGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_RotationGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getRotationGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(RotationGestureEvent_setAngle, Ark_NativePointer, KInteropNumber) @@ -20246,22 +20396,22 @@ Ark_NativePointer impl_SwipeGestureEvent_getFinalizer() { } KOALA_INTEROP_0(SwipeGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_SwipeGestureEvent_getAngle(Ark_NativePointer thisPtr) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getSwipeGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(SwipeGestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_SwipeGestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSwipeGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(SwipeGestureEvent_setAngle, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwipeGestureEvent_getSpeed(Ark_NativePointer thisPtr) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getSwipeGestureEventAccessor()->getSpeed(self); } KOALA_INTEROP_1(SwipeGestureEvent_getSpeed, Ark_Int32, Ark_NativePointer) void impl_SwipeGestureEvent_setSpeed(Ark_NativePointer thisPtr, KInteropNumber speed) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSwipeGestureEventAccessor()->setSpeed(self, (const Ark_Number*) (&speed)); } KOALA_INTEROP_V2(SwipeGestureEvent_setSpeed, Ark_NativePointer, KInteropNumber) @@ -20274,17 +20424,24 @@ Ark_NativePointer impl_GestureEvent_getFinalizer() { } KOALA_INTEROP_0(GestureEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_GestureEvent_getRepeat(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getRepeat(self); } KOALA_INTEROP_1(GestureEvent_getRepeat, Ark_Boolean, Ark_NativePointer) void impl_GestureEvent_setRepeat(Ark_NativePointer thisPtr, Ark_Boolean repeat) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setRepeat(self, repeat); } KOALA_INTEROP_V2(GestureEvent_setRepeat, Ark_NativePointer, Ark_Boolean) +Ark_NativePointer impl_GestureEvent_getFingerList(Ark_NativePointer thisPtr) { + Ark_GestureEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getGestureEventAccessor()->getFingerList(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(GestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) void impl_GestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fingerList_value_buf_length = thisDeserializer.readInt32(); Array_FingerInfo fingerList_value_buf = {}; @@ -20298,102 +20455,102 @@ void impl_GestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(GestureEvent_setFingerList, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_GestureEvent_getOffsetX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getOffsetX(self); } KOALA_INTEROP_1(GestureEvent_getOffsetX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setOffsetX(Ark_NativePointer thisPtr, KInteropNumber offsetX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setOffsetX(self, (const Ark_Number*) (&offsetX)); } KOALA_INTEROP_V2(GestureEvent_setOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getOffsetY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getOffsetY(self); } KOALA_INTEROP_1(GestureEvent_getOffsetY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setOffsetY(Ark_NativePointer thisPtr, KInteropNumber offsetY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setOffsetY(self, (const Ark_Number*) (&offsetY)); } KOALA_INTEROP_V2(GestureEvent_setOffsetY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getAngle(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(GestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(GestureEvent_setAngle, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getSpeed(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getSpeed(self); } KOALA_INTEROP_1(GestureEvent_getSpeed, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setSpeed(Ark_NativePointer thisPtr, KInteropNumber speed) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setSpeed(self, (const Ark_Number*) (&speed)); } KOALA_INTEROP_V2(GestureEvent_setSpeed, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getScale(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getScale(self); } KOALA_INTEROP_1(GestureEvent_getScale, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setScale(Ark_NativePointer thisPtr, KInteropNumber scale) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setScale(self, (const Ark_Number*) (&scale)); } KOALA_INTEROP_V2(GestureEvent_setScale, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getPinchCenterX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getPinchCenterX(self); } KOALA_INTEROP_1(GestureEvent_getPinchCenterX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setPinchCenterX(Ark_NativePointer thisPtr, KInteropNumber pinchCenterX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setPinchCenterX(self, (const Ark_Number*) (&pinchCenterX)); } KOALA_INTEROP_V2(GestureEvent_setPinchCenterX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getPinchCenterY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getPinchCenterY(self); } KOALA_INTEROP_1(GestureEvent_getPinchCenterY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setPinchCenterY(Ark_NativePointer thisPtr, KInteropNumber pinchCenterY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setPinchCenterY(self, (const Ark_Number*) (&pinchCenterY)); } KOALA_INTEROP_V2(GestureEvent_setPinchCenterY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocityX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(GestureEvent_getVelocityX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocityX(Ark_NativePointer thisPtr, KInteropNumber velocityX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocityX(self, (const Ark_Number*) (&velocityX)); } KOALA_INTEROP_V2(GestureEvent_setVelocityX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocityY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(GestureEvent_getVelocityY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocityY(Ark_NativePointer thisPtr, KInteropNumber velocityY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocityY(self, (const Ark_Number*) (&velocityY)); } KOALA_INTEROP_V2(GestureEvent_setVelocityY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocity(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(GestureEvent_getVelocity, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocity(Ark_NativePointer thisPtr, KInteropNumber velocity) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocity(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(GestureEvent_setVelocity, Ark_NativePointer, KInteropNumber) @@ -20440,25 +20597,25 @@ Ark_NativePointer impl_PanGestureOptions_getFinalizer() { } KOALA_INTEROP_0(PanGestureOptions_getFinalizer, Ark_NativePointer) void impl_PanGestureOptions_setDirection(Ark_NativePointer thisPtr, Ark_Int32 value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setDirection(self, static_cast(value)); } KOALA_INTEROP_V2(PanGestureOptions_setDirection, Ark_NativePointer, Ark_Int32) void impl_PanGestureOptions_setDistance(Ark_NativePointer thisPtr, KInteropNumber value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setDistance(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(PanGestureOptions_setDistance, Ark_NativePointer, KInteropNumber) void impl_PanGestureOptions_setFingers(Ark_NativePointer thisPtr, KInteropNumber value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setFingers(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(PanGestureOptions_setFingers, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_PanGestureOptions_getDirection(Ark_NativePointer thisPtr) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getPanGestureOptionsAccessor()->getDirection(self); +void impl_PanGestureOptions_getDirection(Ark_NativePointer thisPtr) { + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); + GetAccessors()->getPanGestureOptionsAccessor()->getDirection(self); } -KOALA_INTEROP_1(PanGestureOptions_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(PanGestureOptions_getDirection, Ark_NativePointer) Ark_NativePointer impl_ScrollableTargetInfo_ctor() { return GetAccessors()->getScrollableTargetInfoAccessor()->ctor(); } @@ -20468,12 +20625,12 @@ Ark_NativePointer impl_ScrollableTargetInfo_getFinalizer() { } KOALA_INTEROP_0(ScrollableTargetInfo_getFinalizer, Ark_NativePointer) Ark_Boolean impl_ScrollableTargetInfo_isBegin(Ark_NativePointer thisPtr) { - ScrollableTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_ScrollableTargetInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollableTargetInfoAccessor()->isBegin(self); } KOALA_INTEROP_1(ScrollableTargetInfo_isBegin, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_ScrollableTargetInfo_isEnd(Ark_NativePointer thisPtr) { - ScrollableTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_ScrollableTargetInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollableTargetInfoAccessor()->isEnd(self); } KOALA_INTEROP_1(ScrollableTargetInfo_isEnd, Ark_Boolean, Ark_NativePointer) @@ -20486,7 +20643,7 @@ Ark_NativePointer impl_EventTargetInfo_getFinalizer() { } KOALA_INTEROP_0(EventTargetInfo_getFinalizer, Ark_NativePointer) void impl_EventTargetInfo_getId(Ark_NativePointer thisPtr) { - EventTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_EventTargetInfo self = reinterpret_cast(thisPtr); GetAccessors()->getEventTargetInfoAccessor()->getId(self); } KOALA_INTEROP_V1(EventTargetInfo_getId, Ark_NativePointer) @@ -20499,42 +20656,42 @@ Ark_NativePointer impl_GestureRecognizer_getFinalizer() { } KOALA_INTEROP_0(GestureRecognizer_getFinalizer, Ark_NativePointer) void impl_GestureRecognizer_getTag(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); GetAccessors()->getGestureRecognizerAccessor()->getTag(self); } KOALA_INTEROP_V1(GestureRecognizer_getTag, Ark_NativePointer) -Ark_NativePointer impl_GestureRecognizer_getType(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getGestureRecognizerAccessor()->getType(self); +void impl_GestureRecognizer_getType(Ark_NativePointer thisPtr) { + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); + GetAccessors()->getGestureRecognizerAccessor()->getType(self); } -KOALA_INTEROP_1(GestureRecognizer_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(GestureRecognizer_getType, Ark_NativePointer) Ark_Boolean impl_GestureRecognizer_isBuiltIn(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isBuiltIn(self); } KOALA_INTEROP_1(GestureRecognizer_isBuiltIn, Ark_Boolean, Ark_NativePointer) void impl_GestureRecognizer_setEnabled(Ark_NativePointer thisPtr, Ark_Boolean isEnabled) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); GetAccessors()->getGestureRecognizerAccessor()->setEnabled(self, isEnabled); } KOALA_INTEROP_V2(GestureRecognizer_setEnabled, Ark_NativePointer, Ark_Boolean) Ark_Boolean impl_GestureRecognizer_isEnabled(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isEnabled(self); } KOALA_INTEROP_1(GestureRecognizer_isEnabled, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_GestureRecognizer_getState(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getGestureRecognizerAccessor()->getState(self); +void impl_GestureRecognizer_getState(Ark_NativePointer thisPtr) { + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); + GetAccessors()->getGestureRecognizerAccessor()->getState(self); } -KOALA_INTEROP_1(GestureRecognizer_getState, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(GestureRecognizer_getState, Ark_NativePointer) Ark_NativePointer impl_GestureRecognizer_getEventTargetInfo(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->getEventTargetInfo(self); } KOALA_INTEROP_1(GestureRecognizer_getEventTargetInfo, Ark_NativePointer, Ark_NativePointer) Ark_Boolean impl_GestureRecognizer_isValid(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isValid(self); } KOALA_INTEROP_1(GestureRecognizer_isValid, Ark_Boolean, Ark_NativePointer) @@ -20547,7 +20704,7 @@ Ark_NativePointer impl_PanRecognizer_getFinalizer() { } KOALA_INTEROP_0(PanRecognizer_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_PanRecognizer_getPanGestureOptions(Ark_NativePointer thisPtr) { - PanRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_PanRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getPanRecognizerAccessor()->getPanGestureOptions(self); } KOALA_INTEROP_1(PanRecognizer_getPanGestureOptions, Ark_NativePointer, Ark_NativePointer) @@ -20559,11 +20716,13 @@ Ark_NativePointer impl_ImageAnalyzerController_getFinalizer() { return GetAccessors()->getImageAnalyzerControllerAccessor()->getFinalizer(); } KOALA_INTEROP_0(ImageAnalyzerController_getFinalizer, Ark_NativePointer) -void impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { - ImageAnalyzerControllerPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); +Ark_NativePointer impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { + Ark_ImageAnalyzerController self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(ImageAnalyzerController_getImageAnalyzerSupportTypes, Ark_NativePointer) +KOALA_INTEROP_1(ImageAnalyzerController_getImageAnalyzerSupportTypes, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_ListScroller_ctor() { return GetAccessors()->getListScrollerAccessor()->ctor(); } @@ -20572,13 +20731,15 @@ Ark_NativePointer impl_ListScroller_getFinalizer() { return GetAccessors()->getListScrollerAccessor()->getFinalizer(); } KOALA_INTEROP_0(ListScroller_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ListScroller_getItemRectInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getListScrollerAccessor()->getItemRectInGroup(self, (const Ark_Number*) (&index), (const Ark_Number*) (&indexInGroup)); +KInteropReturnBuffer impl_ListScroller_getItemRectInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup) { + Ark_ListScroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getListScrollerAccessor()->getItemRectInGroup(self, (const Ark_Number*) (&index), (const Ark_Number*) (&indexInGroup))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(ListScroller_getItemRectInGroup, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KOALA_INTEROP_3(ListScroller_getItemRectInGroup, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_ListScroller_scrollToItemInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup, uint8_t* thisArray, int32_t thisLength) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_ListScroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto smooth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean smooth_value_buf = {}; @@ -20600,7 +20761,7 @@ void impl_ListScroller_scrollToItemInGroup(Ark_NativePointer thisPtr, KInteropNu } KOALA_INTEROP_V5(ListScroller_scrollToItemInGroup, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_ListScroller_closeAllSwipeActions(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_ListScroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_CloseSwipeActionOptions options_value_buf = {}; @@ -20613,11 +20774,13 @@ void impl_ListScroller_closeAllSwipeActions(Ark_NativePointer thisPtr, uint8_t* GetAccessors()->getListScrollerAccessor()->closeAllSwipeActions(self, (const Opt_CloseSwipeActionOptions*)&options_value); } KOALA_INTEROP_V3(ListScroller_closeAllSwipeActions, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_ListScroller_getVisibleListContentInfo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getListScrollerAccessor()->getVisibleListContentInfo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); +KInteropReturnBuffer impl_ListScroller_getVisibleListContentInfo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { + Ark_ListScroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeVisibleListContentInfo(GetAccessors()->getListScrollerAccessor()->getVisibleListContentInfo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(ListScroller_getVisibleListContentInfo, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KOALA_INTEROP_3(ListScroller_getVisibleListContentInfo, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_NativePointer impl_Matrix2D_ctor() { return GetAccessors()->getMatrix2DAccessor()->ctor(); } @@ -20627,17 +20790,17 @@ Ark_NativePointer impl_Matrix2D_getFinalizer() { } KOALA_INTEROP_0(Matrix2D_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_identity(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->identity(self); } KOALA_INTEROP_1(Matrix2D_identity, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_invert(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->invert(self); } KOALA_INTEROP_1(Matrix2D_invert, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_multiply(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto other_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D other_value_buf = {}; @@ -20651,7 +20814,7 @@ Ark_NativePointer impl_Matrix2D_multiply(Ark_NativePointer thisPtr, uint8_t* thi } KOALA_INTEROP_3(Matrix2D_multiply, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_rotate0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto rx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number rx_value_buf = {}; @@ -20673,7 +20836,7 @@ Ark_NativePointer impl_Matrix2D_rotate0(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_3(Matrix2D_rotate0, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_rotate1(Ark_NativePointer thisPtr, KInteropNumber degree, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto rx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number rx_value_buf = {}; @@ -20695,7 +20858,7 @@ Ark_NativePointer impl_Matrix2D_rotate1(Ark_NativePointer thisPtr, KInteropNumbe } KOALA_INTEROP_4(Matrix2D_rotate1, Ark_NativePointer, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_translate(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto tx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number tx_value_buf = {}; @@ -20717,7 +20880,7 @@ Ark_NativePointer impl_Matrix2D_translate(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_3(Matrix2D_translate, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_scale(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto sx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number sx_value_buf = {}; @@ -20739,62 +20902,62 @@ Ark_NativePointer impl_Matrix2D_scale(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_3(Matrix2D_scale, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_Matrix2D_getScaleX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getScaleX(self); } KOALA_INTEROP_1(Matrix2D_getScaleX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setScaleX(Ark_NativePointer thisPtr, KInteropNumber scaleX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setScaleX(self, (const Ark_Number*) (&scaleX)); } KOALA_INTEROP_V2(Matrix2D_setScaleX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getRotateY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getRotateY(self); } KOALA_INTEROP_1(Matrix2D_getRotateY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setRotateY(Ark_NativePointer thisPtr, KInteropNumber rotateY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setRotateY(self, (const Ark_Number*) (&rotateY)); } KOALA_INTEROP_V2(Matrix2D_setRotateY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getRotateX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getRotateX(self); } KOALA_INTEROP_1(Matrix2D_getRotateX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setRotateX(Ark_NativePointer thisPtr, KInteropNumber rotateX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setRotateX(self, (const Ark_Number*) (&rotateX)); } KOALA_INTEROP_V2(Matrix2D_setRotateX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getScaleY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getScaleY(self); } KOALA_INTEROP_1(Matrix2D_getScaleY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setScaleY(Ark_NativePointer thisPtr, KInteropNumber scaleY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setScaleY(self, (const Ark_Number*) (&scaleY)); } KOALA_INTEROP_V2(Matrix2D_setScaleY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getTranslateX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getTranslateX(self); } KOALA_INTEROP_1(Matrix2D_getTranslateX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setTranslateX(Ark_NativePointer thisPtr, KInteropNumber translateX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setTranslateX(self, (const Ark_Number*) (&translateX)); } KOALA_INTEROP_V2(Matrix2D_setTranslateX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getTranslateY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getTranslateY(self); } KOALA_INTEROP_1(Matrix2D_getTranslateY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setTranslateY(Ark_NativePointer thisPtr, KInteropNumber translateY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setTranslateY(self, (const Ark_Number*) (&translateY)); } KOALA_INTEROP_V2(Matrix2D_setTranslateY, Ark_NativePointer, KInteropNumber) @@ -20806,32 +20969,32 @@ Ark_NativePointer impl_NavDestinationContext_getFinalizer() { return GetAccessors()->getNavDestinationContextAccessor()->getFinalizer(); } KOALA_INTEROP_0(NavDestinationContext_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_NavDestinationContext_getConfigInRouteMap(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavDestinationContextAccessor()->getConfigInRouteMap(self); +void impl_NavDestinationContext_getConfigInRouteMap(Ark_NativePointer thisPtr) { + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); + GetAccessors()->getNavDestinationContextAccessor()->getConfigInRouteMap(self); } -KOALA_INTEROP_1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer) void impl_NavDestinationContext_setPathInfo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo pathInfo_value = static_cast(thisDeserializer.readNavPathInfo());; GetAccessors()->getNavDestinationContextAccessor()->setPathInfo(self, pathInfo_value); } KOALA_INTEROP_V3(NavDestinationContext_setPathInfo, Ark_NativePointer, uint8_t*, int32_t) void impl_NavDestinationContext_setPathStack(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathStack pathStack_value = static_cast(thisDeserializer.readNavPathStack());; GetAccessors()->getNavDestinationContextAccessor()->setPathStack(self, pathStack_value); } KOALA_INTEROP_V3(NavDestinationContext_setPathStack, Ark_NativePointer, uint8_t*, int32_t) void impl_NavDestinationContext_getNavDestinationId(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); GetAccessors()->getNavDestinationContextAccessor()->getNavDestinationId(self); } KOALA_INTEROP_V1(NavDestinationContext_getNavDestinationId, Ark_NativePointer) void impl_NavDestinationContext_setNavDestinationId(Ark_NativePointer thisPtr, const KStringPtr& navDestinationId) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); GetAccessors()->getNavDestinationContextAccessor()->setNavDestinationId(self, (const Ark_String*) (&navDestinationId)); } KOALA_INTEROP_V2(NavDestinationContext_setNavDestinationId, Ark_NativePointer, KStringPtr) @@ -20862,43 +21025,43 @@ Ark_NativePointer impl_NavPathInfo_getFinalizer() { } KOALA_INTEROP_0(NavPathInfo_getFinalizer, Ark_NativePointer) void impl_NavPathInfo_getName(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->getName(self); } KOALA_INTEROP_V1(NavPathInfo_getName, Ark_NativePointer) void impl_NavPathInfo_setName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->setName(self, (const Ark_String*) (&name)); } KOALA_INTEROP_V2(NavPathInfo_setName, Ark_NativePointer, KStringPtr) void impl_NavPathInfo_setParam(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Any"));; GetAccessors()->getNavPathInfoAccessor()->setParam(self, (const Ark_CustomObject*)¶m_value); } KOALA_INTEROP_V3(NavPathInfo_setParam, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_NavPathInfo_getOnPop(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getNavPathInfoAccessor()->getOnPop(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(NavPathInfo_getOnPop, Ark_NativePointer, Ark_NativePointer) void impl_NavPathInfo_setOnPop(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; GetAccessors()->getNavPathInfoAccessor()->setOnPop(self, (const Callback_PopInfo_Void*)&onPop_value); } KOALA_INTEROP_V3(NavPathInfo_setOnPop, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_NavPathInfo_getIsEntry(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathInfoAccessor()->getIsEntry(self); } KOALA_INTEROP_1(NavPathInfo_getIsEntry, Ark_Boolean, Ark_NativePointer) void impl_NavPathInfo_setIsEntry(Ark_NativePointer thisPtr, Ark_Boolean isEntry) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->setIsEntry(self, isEntry); } KOALA_INTEROP_V2(NavPathInfo_setIsEntry, Ark_NativePointer, Ark_Boolean) @@ -20911,7 +21074,7 @@ Ark_NativePointer impl_NavPathStack_getFinalizer() { } KOALA_INTEROP_0(NavPathStack_getFinalizer, Ark_NativePointer) void impl_NavPathStack_pushPath0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20926,7 +21089,7 @@ void impl_NavPathStack_pushPath0(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(NavPathStack_pushPath0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushPath1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20941,7 +21104,7 @@ void impl_NavPathStack_pushPath1(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(NavPathStack_pushPath1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushDestination0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20957,7 +21120,7 @@ void impl_NavPathStack_pushDestination0(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(NavPathStack_pushDestination0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushDestination1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20973,7 +21136,7 @@ void impl_NavPathStack_pushDestination1(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(NavPathStack_pushDestination1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushPathByName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Any"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20988,7 +21151,7 @@ void impl_NavPathStack_pushPathByName0(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_V4(NavPathStack_pushPathByName0, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushPathByName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; @@ -21004,7 +21167,7 @@ void impl_NavPathStack_pushPathByName1(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_V4(NavPathStack_pushPathByName1, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushDestinationByName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21020,7 +21183,7 @@ void impl_NavPathStack_pushDestinationByName0(Ark_NativePointer thisPtr, const K } KOALA_INTEROP_V4(NavPathStack_pushDestinationByName0, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushDestinationByName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; @@ -21037,7 +21200,7 @@ void impl_NavPathStack_pushDestinationByName1(Ark_NativePointer thisPtr, const K } KOALA_INTEROP_V4(NavPathStack_pushDestinationByName1, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21052,7 +21215,7 @@ void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(NavPathStack_replacePath0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replacePath1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21067,7 +21230,7 @@ void impl_NavPathStack_replacePath1(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(NavPathStack_replacePath1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replaceDestination(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21083,7 +21246,7 @@ void impl_NavPathStack_replaceDestination(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_V3(NavPathStack_replaceDestination, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replacePathByName(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21098,7 +21261,7 @@ void impl_NavPathStack_replacePathByName(Ark_NativePointer thisPtr, const KStrin } KOALA_INTEROP_V4(NavPathStack_replacePathByName, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_removeByIndexes(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 indexes_value_buf_length = thisDeserializer.readInt32(); Array_Number indexes_value_buf = {}; @@ -21112,17 +21275,17 @@ Ark_Int32 impl_NavPathStack_removeByIndexes(Ark_NativePointer thisPtr, uint8_t* } KOALA_INTEROP_3(NavPathStack_removeByIndexes, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_removeByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->removeByName(self, (const Ark_String*) (&name)); } KOALA_INTEROP_2(NavPathStack_removeByName, Ark_Int32, Ark_NativePointer, KStringPtr) Ark_Boolean impl_NavPathStack_removeByNavDestinationId(Ark_NativePointer thisPtr, const KStringPtr& navDestinationId) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->removeByNavDestinationId(self, (const Ark_String*) (&navDestinationId)); } KOALA_INTEROP_2(NavPathStack_removeByNavDestinationId, Ark_Boolean, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); +void impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21132,11 +21295,11 @@ Ark_NativePointer impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thi animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - return GetAccessors()->getNavPathStackAccessor()->pop0(self, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->pop0(self, (const Opt_Boolean*)&animated_value); } -KOALA_INTEROP_3(NavPathStack_pop0, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_V3(NavPathStack_pop0, Ark_NativePointer, uint8_t*, int32_t) +void impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21147,11 +21310,11 @@ Ark_NativePointer impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thi animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - return GetAccessors()->getNavPathStackAccessor()->pop1(self, (const Ark_CustomObject*)&result_value, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->pop1(self, (const Ark_CustomObject*)&result_value, (const Opt_Boolean*)&animated_value); } -KOALA_INTEROP_3(NavPathStack_pop1, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(NavPathStack_pop1, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_popToName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21165,7 +21328,7 @@ Ark_Int32 impl_NavPathStack_popToName0(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_4(NavPathStack_popToName0, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_popToName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21180,7 +21343,7 @@ Ark_Int32 impl_NavPathStack_popToName1(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_4(NavPathStack_popToName1, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_popToIndex0(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21194,7 +21357,7 @@ void impl_NavPathStack_popToIndex0(Ark_NativePointer thisPtr, KInteropNumber ind } KOALA_INTEROP_V4(NavPathStack_popToIndex0, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_NavPathStack_popToIndex1(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21209,7 +21372,7 @@ void impl_NavPathStack_popToIndex1(Ark_NativePointer thisPtr, KInteropNumber ind } KOALA_INTEROP_V4(NavPathStack_popToIndex1, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_moveToTop(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21223,7 +21386,7 @@ Ark_Int32 impl_NavPathStack_moveToTop(Ark_NativePointer thisPtr, const KStringPt } KOALA_INTEROP_4(NavPathStack_moveToTop, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_moveIndexToTop(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21237,7 +21400,7 @@ void impl_NavPathStack_moveIndexToTop(Ark_NativePointer thisPtr, KInteropNumber } KOALA_INTEROP_V4(NavPathStack_moveIndexToTop, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_NavPathStack_clear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21250,43 +21413,49 @@ void impl_NavPathStack_clear(Ark_NativePointer thisPtr, uint8_t* thisArray, int3 GetAccessors()->getNavPathStackAccessor()->clear(self, (const Opt_Boolean*)&animated_value); } KOALA_INTEROP_V3(NavPathStack_clear, Ark_NativePointer, uint8_t*, int32_t) -void impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); +Ark_NativePointer impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(NavPathStack_getAllPathName, Ark_NativePointer) +KOALA_INTEROP_1(NavPathStack_getAllPathName, Ark_NativePointer, Ark_NativePointer) void impl_NavPathStack_getParamByIndex(Ark_NativePointer thisPtr, KInteropNumber index) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathStackAccessor()->getParamByIndex(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_V2(NavPathStack_getParamByIndex, Ark_NativePointer, KInteropNumber) -void impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); +Ark_NativePointer impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V2(NavPathStack_getParamByName, Ark_NativePointer, KStringPtr) -void impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); +KOALA_INTEROP_2(NavPathStack_getParamByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) +Ark_NativePointer impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V2(NavPathStack_getIndexByName, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_NavPathStack_getParent(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavPathStackAccessor()->getParent(self); +KOALA_INTEROP_2(NavPathStack_getIndexByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) +void impl_NavPathStack_getParent(Ark_NativePointer thisPtr) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + GetAccessors()->getNavPathStackAccessor()->getParent(self); } -KOALA_INTEROP_1(NavPathStack_getParent, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(NavPathStack_getParent, Ark_NativePointer) Ark_Int32 impl_NavPathStack_size(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->size(self); } KOALA_INTEROP_1(NavPathStack_size, Ark_Int32, Ark_NativePointer) void impl_NavPathStack_disableAnimation(Ark_NativePointer thisPtr, Ark_Boolean value) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathStackAccessor()->disableAnimation(self, value); } KOALA_INTEROP_V2(NavPathStack_disableAnimation, Ark_NativePointer, Ark_Boolean) void impl_NavPathStack_setInterception(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavigationInterception interception_value = thisDeserializer.readNavigationInterception();; GetAccessors()->getNavPathStackAccessor()->setInterception(self, (const Ark_NavigationInterception*)&interception_value); @@ -21301,41 +21470,41 @@ Ark_NativePointer impl_NavigationTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(NavigationTransitionProxy_getFinalizer, Ark_NativePointer) void impl_NavigationTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(NavigationTransitionProxy_finishTransition, Ark_NativePointer) void impl_NavigationTransitionProxy_cancelTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->cancelTransition(self); } KOALA_INTEROP_V1(NavigationTransitionProxy_cancelTransition, Ark_NativePointer) void impl_NavigationTransitionProxy_updateTransition(Ark_NativePointer thisPtr, KInteropNumber progress) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->updateTransition(self, (const Ark_Number*) (&progress)); } KOALA_INTEROP_V2(NavigationTransitionProxy_updateTransition, Ark_NativePointer, KInteropNumber) void impl_NavigationTransitionProxy_setFrom(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavContentInfo from_value = thisDeserializer.readNavContentInfo();; GetAccessors()->getNavigationTransitionProxyAccessor()->setFrom(self, (const Ark_NavContentInfo*)&from_value); } KOALA_INTEROP_V3(NavigationTransitionProxy_setFrom, Ark_NativePointer, uint8_t*, int32_t) void impl_NavigationTransitionProxy_setTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavContentInfo to_value = thisDeserializer.readNavContentInfo();; GetAccessors()->getNavigationTransitionProxyAccessor()->setTo(self, (const Ark_NavContentInfo*)&to_value); } KOALA_INTEROP_V3(NavigationTransitionProxy_setTo, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_NavigationTransitionProxy_getIsInteractive(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getNavigationTransitionProxyAccessor()->getIsInteractive(self); } KOALA_INTEROP_1(NavigationTransitionProxy_getIsInteractive, Ark_Boolean, Ark_NativePointer) void impl_NavigationTransitionProxy_setIsInteractive(Ark_NativePointer thisPtr, Ark_Boolean isInteractive) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->setIsInteractive(self, isInteractive); } KOALA_INTEROP_V2(NavigationTransitionProxy_setIsInteractive, Ark_NativePointer, Ark_Boolean) @@ -21348,12 +21517,12 @@ Ark_NativePointer impl_PatternLockController_getFinalizer() { } KOALA_INTEROP_0(PatternLockController_getFinalizer, Ark_NativePointer) void impl_PatternLockController_reset(Ark_NativePointer thisPtr) { - PatternLockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_PatternLockController self = reinterpret_cast(thisPtr); GetAccessors()->getPatternLockControllerAccessor()->reset(self); } KOALA_INTEROP_V1(PatternLockController_reset, Ark_NativePointer) void impl_PatternLockController_setChallengeResult(Ark_NativePointer thisPtr, Ark_Int32 result) { - PatternLockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_PatternLockController self = reinterpret_cast(thisPtr); GetAccessors()->getPatternLockControllerAccessor()->setChallengeResult(self, static_cast(result)); } KOALA_INTEROP_V2(PatternLockController_setChallengeResult, Ark_NativePointer, Ark_Int32) @@ -21366,34 +21535,36 @@ Ark_NativePointer impl_RichEditorBaseController_getFinalizer() { } KOALA_INTEROP_0(RichEditorBaseController_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RichEditorBaseController_getCaretOffset(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->getCaretOffset(self); } KOALA_INTEROP_1(RichEditorBaseController_getCaretOffset, Ark_Int32, Ark_NativePointer) Ark_Boolean impl_RichEditorBaseController_setCaretOffset(Ark_NativePointer thisPtr, KInteropNumber offset) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->setCaretOffset(self, (const Ark_Number*) (&offset)); } KOALA_INTEROP_2(RichEditorBaseController_setCaretOffset, Ark_Boolean, Ark_NativePointer, KInteropNumber) void impl_RichEditorBaseController_closeSelectionMenu(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getRichEditorBaseControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(RichEditorBaseController_closeSelectionMenu, Ark_NativePointer) -Ark_NativePointer impl_RichEditorBaseController_getTypingStyle(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorBaseControllerAccessor()->getTypingStyle(self); +KInteropReturnBuffer impl_RichEditorBaseController_getTypingStyle(Ark_NativePointer thisPtr) { + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorTextStyle(GetAccessors()->getRichEditorBaseControllerAccessor()->getTypingStyle(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorBaseController_getTypingStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorBaseController_getTypingStyle, KInteropReturnBuffer, Ark_NativePointer) void impl_RichEditorBaseController_setTypingStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorTextStyle value_value = thisDeserializer.readRichEditorTextStyle();; GetAccessors()->getRichEditorBaseControllerAccessor()->setTypingStyle(self, (const Ark_RichEditorTextStyle*)&value_value); } KOALA_INTEROP_V3(RichEditorBaseController_setTypingStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -21407,25 +21578,27 @@ void impl_RichEditorBaseController_setSelection(Ark_NativePointer thisPtr, KInte } KOALA_INTEROP_V5(RichEditorBaseController_setSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_RichEditorBaseController_isEditing(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->isEditing(self); } KOALA_INTEROP_1(RichEditorBaseController_isEditing, Ark_Boolean, Ark_NativePointer) void impl_RichEditorBaseController_stopEditing(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getRichEditorBaseControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(RichEditorBaseController_stopEditing, Ark_NativePointer) Ark_NativePointer impl_RichEditorBaseController_getLayoutManager(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(RichEditorBaseController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_RichEditorBaseController_getPreviewText(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorBaseControllerAccessor()->getPreviewText(self); +KInteropReturnBuffer impl_RichEditorBaseController_getPreviewText(Ark_NativePointer thisPtr) { + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePreviewText(GetAccessors()->getRichEditorBaseControllerAccessor()->getPreviewText(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorBaseController_getPreviewText, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorBaseController_getPreviewText, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_RichEditorController_ctor() { return GetAccessors()->getRichEditorControllerAccessor()->ctor(); } @@ -21435,7 +21608,7 @@ Ark_NativePointer impl_RichEditorController_getFinalizer() { } KOALA_INTEROP_0(RichEditorController_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RichEditorController_addTextSpan(Ark_NativePointer thisPtr, const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorTextSpanOptions options_value_buf = {}; @@ -21449,7 +21622,7 @@ Ark_Int32 impl_RichEditorController_addTextSpan(Ark_NativePointer thisPtr, const } KOALA_INTEROP_4(RichEditorController_addTextSpan, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addImageSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_PixelMap_ResourceStr value_value_buf = {}; @@ -21492,7 +21665,7 @@ Ark_Int32 impl_RichEditorController_addImageSpan(Ark_NativePointer thisPtr, uint } KOALA_INTEROP_3(RichEditorController_addImageSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addBuilderSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); CustomNodeBuilder value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))};; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21507,7 +21680,7 @@ Ark_Int32 impl_RichEditorController_addBuilderSpan(Ark_NativePointer thisPtr, ui } KOALA_INTEROP_3(RichEditorController_addBuilderSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addSymbolSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Resource value_value = thisDeserializer.readResource();; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21522,7 +21695,7 @@ Ark_Int32 impl_RichEditorController_addSymbolSpan(Ark_NativePointer thisPtr, uin } KOALA_INTEROP_3(RichEditorController_addSymbolSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_updateSpanStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_Type_RichEditorController_updateSpanStyle_value value_value_buf = {}; @@ -21547,14 +21720,14 @@ void impl_RichEditorController_updateSpanStyle(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(RichEditorController_updateSpanStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_updateParagraphStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorParagraphStyleOptions value_value = thisDeserializer.readRichEditorParagraphStyleOptions();; GetAccessors()->getRichEditorControllerAccessor()->updateParagraphStyle(self, (const Ark_RichEditorParagraphStyleOptions*)&value_value); } KOALA_INTEROP_V3(RichEditorController_updateParagraphStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_deleteSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21567,8 +21740,8 @@ void impl_RichEditorController_deleteSpans(Ark_NativePointer thisPtr, uint8_t* t GetAccessors()->getRichEditorControllerAccessor()->deleteSpans(self, (const Opt_RichEditorRange*)&value_value); } KOALA_INTEROP_V3(RichEditorController_deleteSpans, Ark_NativePointer, uint8_t*, int32_t) -void impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21578,11 +21751,13 @@ void impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_getSpans, Ark_NativePointer, uint8_t*, int32_t) -void impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_3(RichEditorController_getSpans, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21592,23 +21767,29 @@ void impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_getParagraphs, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_RichEditorController_getSelection(Ark_NativePointer thisPtr) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorControllerAccessor()->getSelection(self); +KOALA_INTEROP_3(RichEditorController_getParagraphs, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KInteropReturnBuffer impl_RichEditorController_getSelection(Ark_NativePointer thisPtr) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorSelection(GetAccessors()->getRichEditorControllerAccessor()->getSelection(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorController_getSelection, Ark_NativePointer, Ark_NativePointer) -void impl_RichEditorController_fromStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_1(RichEditorController_getSelection, KInteropReturnBuffer, Ark_NativePointer) +Ark_NativePointer impl_RichEditorController_fromStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_fromStyledString, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(RichEditorController_fromStyledString, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RichEditorController_toStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorRange value_value = thisDeserializer.readRichEditorRange();; return GetAccessors()->getRichEditorControllerAccessor()->toStyledString(self, (const Ark_RichEditorRange*)&value_value); @@ -21623,24 +21804,26 @@ Ark_NativePointer impl_RichEditorStyledStringController_getFinalizer() { } KOALA_INTEROP_0(RichEditorStyledStringController_getFinalizer, Ark_NativePointer) void impl_RichEditorStyledStringController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getRichEditorStyledStringControllerAccessor()->setStyledString(self, styledString_value); } KOALA_INTEROP_V3(RichEditorStyledStringController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RichEditorStyledStringController_getStyledString(Ark_NativePointer thisPtr) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorStyledStringControllerAccessor()->getStyledString(self); } KOALA_INTEROP_1(RichEditorStyledStringController_getStyledString, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_RichEditorStyledStringController_getSelection(Ark_NativePointer thisPtr) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorStyledStringControllerAccessor()->getSelection(self); +KInteropReturnBuffer impl_RichEditorStyledStringController_getSelection(Ark_NativePointer thisPtr) { + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorRange(GetAccessors()->getRichEditorStyledStringControllerAccessor()->getSelection(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorStyledStringController_getSelection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorStyledStringController_getSelection, KInteropReturnBuffer, Ark_NativePointer) void impl_RichEditorStyledStringController_onContentChanged(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledStringChangedListener listener_value = thisDeserializer.readStyledStringChangedListener();; GetAccessors()->getRichEditorStyledStringControllerAccessor()->onContentChanged(self, (const Ark_StyledStringChangedListener*)&listener_value); @@ -21655,14 +21838,14 @@ Ark_NativePointer impl_Scroller_getFinalizer() { } KOALA_INTEROP_0(Scroller_getFinalizer, Ark_NativePointer) void impl_Scroller_scrollTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScrollOptions options_value = thisDeserializer.readScrollOptions();; GetAccessors()->getScrollerAccessor()->scrollTo(self, (const Ark_ScrollOptions*)&options_value); } KOALA_INTEROP_V3(Scroller_scrollTo, Ark_NativePointer, uint8_t*, int32_t) void impl_Scroller_scrollEdge(Ark_NativePointer thisPtr, Ark_Int32 value, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_ScrollEdgeOptions options_value_buf = {}; @@ -21676,19 +21859,19 @@ void impl_Scroller_scrollEdge(Ark_NativePointer thisPtr, Ark_Int32 value, uint8_ } KOALA_INTEROP_V4(Scroller_scrollEdge, Ark_NativePointer, Ark_Int32, uint8_t*, int32_t) void impl_Scroller_fling(Ark_NativePointer thisPtr, KInteropNumber velocity) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); GetAccessors()->getScrollerAccessor()->fling(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(Scroller_fling, Ark_NativePointer, KInteropNumber) void impl_Scroller_scrollPage0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScrollPageOptions value_value = thisDeserializer.readScrollPageOptions();; GetAccessors()->getScrollerAccessor()->scrollPage0(self, (const Ark_ScrollPageOptions*)&value_value); } KOALA_INTEROP_V3(Scroller_scrollPage0, Ark_NativePointer, uint8_t*, int32_t) void impl_Scroller_scrollPage1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Boolean_next_Axis_direction value_value_buf = {}; value_value_buf.next = thisDeserializer.readBoolean(); @@ -21704,13 +21887,15 @@ void impl_Scroller_scrollPage1(Ark_NativePointer thisPtr, uint8_t* thisArray, in GetAccessors()->getScrollerAccessor()->scrollPage1(self, (const Ark_Literal_Boolean_next_Axis_direction*)&value_value); } KOALA_INTEROP_V3(Scroller_scrollPage1, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_Scroller_currentOffset(Ark_NativePointer thisPtr) { - ScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScrollerAccessor()->currentOffset(self); +KInteropReturnBuffer impl_Scroller_currentOffset(Ark_NativePointer thisPtr) { + Ark_Scroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeOffsetResult(GetAccessors()->getScrollerAccessor()->currentOffset(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(Scroller_currentOffset, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(Scroller_currentOffset, KInteropReturnBuffer, Ark_NativePointer) void impl_Scroller_scrollToIndex(Ark_NativePointer thisPtr, KInteropNumber value, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto smooth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean smooth_value_buf = {}; @@ -21740,22 +21925,24 @@ void impl_Scroller_scrollToIndex(Ark_NativePointer thisPtr, KInteropNumber value } KOALA_INTEROP_V4(Scroller_scrollToIndex, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_Scroller_scrollBy(Ark_NativePointer thisPtr, const KLength& dx, const KLength& dy) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); GetAccessors()->getScrollerAccessor()->scrollBy(self, (const Ark_Length*)&dx, (const Ark_Length*)&dy); } KOALA_INTEROP_V3(Scroller_scrollBy, Ark_NativePointer, KLength, KLength) Ark_Boolean impl_Scroller_isAtEnd(Ark_NativePointer thisPtr) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollerAccessor()->isAtEnd(self); } KOALA_INTEROP_1(Scroller_isAtEnd, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_Scroller_getItemRect(Ark_NativePointer thisPtr, KInteropNumber index) { - ScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScrollerAccessor()->getItemRect(self, (const Ark_Number*) (&index)); +KInteropReturnBuffer impl_Scroller_getItemRect(Ark_NativePointer thisPtr, KInteropNumber index) { + Ark_Scroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getScrollerAccessor()->getItemRect(self, (const Ark_Number*) (&index))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(Scroller_getItemRect, Ark_NativePointer, Ark_NativePointer, KInteropNumber) +KOALA_INTEROP_2(Scroller_getItemRect, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Scroller_getItemIndex(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollerAccessor()->getItemIndex(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_3(Scroller_getItemIndex, Ark_Int32, Ark_NativePointer, KInteropNumber, KInteropNumber) @@ -21768,17 +21955,17 @@ Ark_NativePointer impl_SearchController_getFinalizer() { } KOALA_INTEROP_0(SearchController_getFinalizer, Ark_NativePointer) void impl_SearchController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); GetAccessors()->getSearchControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(SearchController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_SearchController_stopEditing(Ark_NativePointer thisPtr) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); GetAccessors()->getSearchControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(SearchController_stopEditing, Ark_NativePointer) void impl_SearchController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -21800,17 +21987,17 @@ Ark_NativePointer impl_SwiperController_getFinalizer() { } KOALA_INTEROP_0(SwiperController_getFinalizer, Ark_NativePointer) void impl_SwiperController_showNext(Ark_NativePointer thisPtr) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperControllerAccessor()->showNext(self); } KOALA_INTEROP_V1(SwiperController_showNext, Ark_NativePointer) void impl_SwiperController_showPrevious(Ark_NativePointer thisPtr) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperControllerAccessor()->showPrevious(self); } KOALA_INTEROP_V1(SwiperController_showPrevious, Ark_NativePointer) void impl_SwiperController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto useAnimation_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean useAnimation_value_buf = {}; @@ -21824,7 +22011,7 @@ void impl_SwiperController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber } KOALA_INTEROP_V4(SwiperController_changeIndex, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_SwiperController_finishAnimation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_VoidCallback callback__value_buf = {}; @@ -21846,47 +22033,47 @@ Ark_NativePointer impl_SwiperContentTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(SwiperContentTransitionProxy_getFinalizer, Ark_NativePointer) void impl_SwiperContentTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(SwiperContentTransitionProxy_finishTransition, Ark_NativePointer) Ark_Int32 impl_SwiperContentTransitionProxy_getSelectedIndex(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getSelectedIndex(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getSelectedIndex, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setSelectedIndex(Ark_NativePointer thisPtr, KInteropNumber selectedIndex) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setSelectedIndex(self, (const Ark_Number*) (&selectedIndex)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setSelectedIndex, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getIndex(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getIndex(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getIndex, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setIndex(Ark_NativePointer thisPtr, KInteropNumber index) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setIndex(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setIndex, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getPosition(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getPosition(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getPosition, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setPosition(Ark_NativePointer thisPtr, KInteropNumber position) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setPosition(self, (const Ark_Number*) (&position)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setPosition, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getMainAxisLength(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getMainAxisLength(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getMainAxisLength, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setMainAxisLength(Ark_NativePointer thisPtr, KInteropNumber mainAxisLength) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setMainAxisLength(self, (const Ark_Number*) (&mainAxisLength)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setMainAxisLength, Ark_NativePointer, KInteropNumber) @@ -21899,17 +22086,17 @@ Ark_NativePointer impl_IndicatorComponentController_getFinalizer() { } KOALA_INTEROP_0(IndicatorComponentController_getFinalizer, Ark_NativePointer) void impl_IndicatorComponentController_showNext(Ark_NativePointer thisPtr) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getIndicatorComponentControllerAccessor()->showNext(self); } KOALA_INTEROP_V1(IndicatorComponentController_showNext, Ark_NativePointer) void impl_IndicatorComponentController_showPrevious(Ark_NativePointer thisPtr) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getIndicatorComponentControllerAccessor()->showPrevious(self); } KOALA_INTEROP_V1(IndicatorComponentController_showPrevious, Ark_NativePointer) void impl_IndicatorComponentController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto useAnimation_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean useAnimation_value_buf = {}; @@ -21947,23 +22134,23 @@ Ark_NativePointer impl_ScaleSymbolEffect_getFinalizer() { return GetAccessors()->getScaleSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(ScaleSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ScaleSymbolEffect_getScope(Ark_NativePointer thisPtr) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScaleSymbolEffectAccessor()->getScope(self); +void impl_ScaleSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getScaleSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(ScaleSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ScaleSymbolEffect_getScope, Ark_NativePointer) void impl_ScaleSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getScaleSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(ScaleSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_ScaleSymbolEffect_getDirection(Ark_NativePointer thisPtr) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScaleSymbolEffectAccessor()->getDirection(self); +void impl_ScaleSymbolEffect_getDirection(Ark_NativePointer thisPtr) { + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getScaleSymbolEffectAccessor()->getDirection(self); } -KOALA_INTEROP_1(ScaleSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ScaleSymbolEffect_getDirection, Ark_NativePointer) void impl_ScaleSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getScaleSymbolEffectAccessor()->setDirection(self, static_cast(direction)); } KOALA_INTEROP_V2(ScaleSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) @@ -21984,13 +22171,13 @@ Ark_NativePointer impl_HierarchicalSymbolEffect_getFinalizer() { return GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(HierarchicalSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_HierarchicalSymbolEffect_getFillStyle(Ark_NativePointer thisPtr) { - HierarchicalSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFillStyle(self); +void impl_HierarchicalSymbolEffect_getFillStyle(Ark_NativePointer thisPtr) { + Ark_HierarchicalSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFillStyle(self); } -KOALA_INTEROP_1(HierarchicalSymbolEffect_getFillStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(HierarchicalSymbolEffect_getFillStyle, Ark_NativePointer) void impl_HierarchicalSymbolEffect_setFillStyle(Ark_NativePointer thisPtr, Ark_Int32 fillStyle) { - HierarchicalSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_HierarchicalSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getHierarchicalSymbolEffectAccessor()->setFillStyle(self, static_cast(fillStyle)); } KOALA_INTEROP_V2(HierarchicalSymbolEffect_setFillStyle, Ark_NativePointer, Ark_Int32) @@ -22011,13 +22198,13 @@ Ark_NativePointer impl_AppearSymbolEffect_getFinalizer() { return GetAccessors()->getAppearSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(AppearSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_AppearSymbolEffect_getScope(Ark_NativePointer thisPtr) { - AppearSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getAppearSymbolEffectAccessor()->getScope(self); +void impl_AppearSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_AppearSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getAppearSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(AppearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(AppearSymbolEffect_getScope, Ark_NativePointer) void impl_AppearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - AppearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_AppearSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getAppearSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(AppearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22038,13 +22225,13 @@ Ark_NativePointer impl_DisappearSymbolEffect_getFinalizer() { return GetAccessors()->getDisappearSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(DisappearSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_DisappearSymbolEffect_getScope(Ark_NativePointer thisPtr) { - DisappearSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDisappearSymbolEffectAccessor()->getScope(self); +void impl_DisappearSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_DisappearSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getDisappearSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(DisappearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DisappearSymbolEffect_getScope, Ark_NativePointer) void impl_DisappearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - DisappearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_DisappearSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getDisappearSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(DisappearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22073,23 +22260,23 @@ Ark_NativePointer impl_BounceSymbolEffect_getFinalizer() { return GetAccessors()->getBounceSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(BounceSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_BounceSymbolEffect_getScope(Ark_NativePointer thisPtr) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBounceSymbolEffectAccessor()->getScope(self); +void impl_BounceSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getBounceSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(BounceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BounceSymbolEffect_getScope, Ark_NativePointer) void impl_BounceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getBounceSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(BounceSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_BounceSymbolEffect_getDirection(Ark_NativePointer thisPtr) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBounceSymbolEffectAccessor()->getDirection(self); +void impl_BounceSymbolEffect_getDirection(Ark_NativePointer thisPtr) { + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getBounceSymbolEffectAccessor()->getDirection(self); } -KOALA_INTEROP_1(BounceSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BounceSymbolEffect_getDirection, Ark_NativePointer) void impl_BounceSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getBounceSymbolEffectAccessor()->setDirection(self, static_cast(direction)); } KOALA_INTEROP_V2(BounceSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) @@ -22110,13 +22297,13 @@ Ark_NativePointer impl_ReplaceSymbolEffect_getFinalizer() { return GetAccessors()->getReplaceSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(ReplaceSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ReplaceSymbolEffect_getScope(Ark_NativePointer thisPtr) { - ReplaceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getReplaceSymbolEffectAccessor()->getScope(self); +void impl_ReplaceSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_ReplaceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getReplaceSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(ReplaceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ReplaceSymbolEffect_getScope, Ark_NativePointer) void impl_ReplaceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - ReplaceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ReplaceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getReplaceSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(ReplaceSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22129,12 +22316,12 @@ Ark_NativePointer impl_TabsController_getFinalizer() { } KOALA_INTEROP_0(TabsController_getFinalizer, Ark_NativePointer) void impl_TabsController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber value) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); GetAccessors()->getTabsControllerAccessor()->changeIndex(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TabsController_changeIndex, Ark_NativePointer, KInteropNumber) void impl_TabsController_preloadItems(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto indices_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Array_Number indices_value_buf = {}; @@ -22156,14 +22343,14 @@ void impl_TabsController_preloadItems(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(TabsController_preloadItems, Ark_NativePointer, uint8_t*, int32_t) void impl_TabsController_setTabBarTranslate(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TranslateOptions translate_value = thisDeserializer.readTranslateOptions();; GetAccessors()->getTabsControllerAccessor()->setTabBarTranslate(self, (const Ark_TranslateOptions*)&translate_value); } KOALA_INTEROP_V3(TabsController_setTabBarTranslate, Ark_NativePointer, uint8_t*, int32_t) void impl_TabsController_setTabBarOpacity(Ark_NativePointer thisPtr, KInteropNumber opacity) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); GetAccessors()->getTabsControllerAccessor()->setTabBarOpacity(self, (const Ark_Number*) (&opacity)); } KOALA_INTEROP_V2(TabsController_setTabBarOpacity, Ark_NativePointer, KInteropNumber) @@ -22176,27 +22363,27 @@ Ark_NativePointer impl_TabContentTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(TabContentTransitionProxy_getFinalizer, Ark_NativePointer) void impl_TabContentTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(TabContentTransitionProxy_finishTransition, Ark_NativePointer) Ark_Int32 impl_TabContentTransitionProxy_getFrom(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getTabContentTransitionProxyAccessor()->getFrom(self); } KOALA_INTEROP_1(TabContentTransitionProxy_getFrom, Ark_Int32, Ark_NativePointer) void impl_TabContentTransitionProxy_setFrom(Ark_NativePointer thisPtr, KInteropNumber from) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->setFrom(self, (const Ark_Number*) (&from)); } KOALA_INTEROP_V2(TabContentTransitionProxy_setFrom, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_TabContentTransitionProxy_getTo(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getTabContentTransitionProxyAccessor()->getTo(self); } KOALA_INTEROP_1(TabContentTransitionProxy_getTo, Ark_Int32, Ark_NativePointer) void impl_TabContentTransitionProxy_setTo(Ark_NativePointer thisPtr, KInteropNumber to) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->setTo(self, (const Ark_Number*) (&to)); } KOALA_INTEROP_V2(TabContentTransitionProxy_setTo, Ark_NativePointer, KInteropNumber) @@ -22209,19 +22396,19 @@ Ark_NativePointer impl_TextController_getFinalizer() { } KOALA_INTEROP_0(TextController_getFinalizer, Ark_NativePointer) void impl_TextController_closeSelectionMenu(Ark_NativePointer thisPtr) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); GetAccessors()->getTextControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(TextController_closeSelectionMenu, Ark_NativePointer) void impl_TextController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getTextControllerAccessor()->setStyledString(self, value_value); } KOALA_INTEROP_V3(TextController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TextController_getLayoutManager(Ark_NativePointer thisPtr) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); return GetAccessors()->getTextControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(TextController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) @@ -22234,12 +22421,12 @@ Ark_NativePointer impl_TextAreaController_getFinalizer() { } KOALA_INTEROP_0(TextAreaController_getFinalizer, Ark_NativePointer) void impl_TextAreaController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); GetAccessors()->getTextAreaControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TextAreaController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_TextAreaController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22253,7 +22440,7 @@ void impl_TextAreaController_setTextSelection(Ark_NativePointer thisPtr, KIntero } KOALA_INTEROP_V5(TextAreaController_setTextSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextAreaController_stopEditing(Ark_NativePointer thisPtr) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); GetAccessors()->getTextAreaControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextAreaController_stopEditing, Ark_NativePointer) @@ -22266,12 +22453,12 @@ Ark_NativePointer impl_TextClockController_getFinalizer() { } KOALA_INTEROP_0(TextClockController_getFinalizer, Ark_NativePointer) void impl_TextClockController_start(Ark_NativePointer thisPtr) { - TextClockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextClockController self = reinterpret_cast(thisPtr); GetAccessors()->getTextClockControllerAccessor()->start(self); } KOALA_INTEROP_V1(TextClockController_start, Ark_NativePointer) void impl_TextClockController_stop(Ark_NativePointer thisPtr) { - TextClockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextClockController self = reinterpret_cast(thisPtr); GetAccessors()->getTextClockControllerAccessor()->stop(self); } KOALA_INTEROP_V1(TextClockController_stop, Ark_NativePointer) @@ -22284,7 +22471,7 @@ Ark_NativePointer impl_TextBaseController_getFinalizer() { } KOALA_INTEROP_0(TextBaseController_getFinalizer, Ark_NativePointer) void impl_TextBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22298,12 +22485,12 @@ void impl_TextBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNum } KOALA_INTEROP_V5(TextBaseController_setSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextBaseController_closeSelectionMenu(Ark_NativePointer thisPtr) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getTextBaseControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(TextBaseController_closeSelectionMenu, Ark_NativePointer) Ark_NativePointer impl_TextBaseController_getLayoutManager(Ark_NativePointer thisPtr) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getTextBaseControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(TextBaseController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) @@ -22316,30 +22503,32 @@ Ark_NativePointer impl_TextEditControllerEx_getFinalizer() { } KOALA_INTEROP_0(TextEditControllerEx_getFinalizer, Ark_NativePointer) Ark_Boolean impl_TextEditControllerEx_isEditing(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->isEditing(self); } KOALA_INTEROP_1(TextEditControllerEx_isEditing, Ark_Boolean, Ark_NativePointer) void impl_TextEditControllerEx_stopEditing(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); GetAccessors()->getTextEditControllerExAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextEditControllerEx_stopEditing, Ark_NativePointer) Ark_Boolean impl_TextEditControllerEx_setCaretOffset(Ark_NativePointer thisPtr, KInteropNumber offset) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->setCaretOffset(self, (const Ark_Number*) (&offset)); } KOALA_INTEROP_2(TextEditControllerEx_setCaretOffset, Ark_Boolean, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_TextEditControllerEx_getCaretOffset(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->getCaretOffset(self); } KOALA_INTEROP_1(TextEditControllerEx_getCaretOffset, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_TextEditControllerEx_getPreviewText(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextEditControllerExAccessor()->getPreviewText(self); +KInteropReturnBuffer impl_TextEditControllerEx_getPreviewText(Ark_NativePointer thisPtr) { + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePreviewText(GetAccessors()->getTextEditControllerExAccessor()->getPreviewText(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TextEditControllerEx_getPreviewText, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TextEditControllerEx_getPreviewText, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_StyledStringController_ctor() { return GetAccessors()->getStyledStringControllerAccessor()->ctor(); } @@ -22349,14 +22538,14 @@ Ark_NativePointer impl_StyledStringController_getFinalizer() { } KOALA_INTEROP_0(StyledStringController_getFinalizer, Ark_NativePointer) void impl_StyledStringController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - StyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_StyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getStyledStringControllerAccessor()->setStyledString(self, styledString_value); } KOALA_INTEROP_V3(StyledStringController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_StyledStringController_getStyledString(Ark_NativePointer thisPtr) { - StyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_StyledStringController self = reinterpret_cast(thisPtr); return GetAccessors()->getStyledStringControllerAccessor()->getStyledString(self); } KOALA_INTEROP_1(StyledStringController_getStyledString, Ark_NativePointer, Ark_NativePointer) @@ -22369,27 +22558,33 @@ Ark_NativePointer impl_LayoutManager_getFinalizer() { } KOALA_INTEROP_0(LayoutManager_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LayoutManager_getLineCount(Ark_NativePointer thisPtr) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); + Ark_LayoutManager self = reinterpret_cast(thisPtr); return GetAccessors()->getLayoutManagerAccessor()->getLineCount(self); } KOALA_INTEROP_1(LayoutManager_getLineCount, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_LayoutManager_getGlyphPositionAtCoordinate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLayoutManagerAccessor()->getGlyphPositionAtCoordinate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); -} -KOALA_INTEROP_3(LayoutManager_getGlyphPositionAtCoordinate, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) -Ark_NativePointer impl_LayoutManager_getLineMetrics(Ark_NativePointer thisPtr, KInteropNumber lineNumber) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLayoutManagerAccessor()->getLineMetrics(self, (const Ark_Number*) (&lineNumber)); -} -KOALA_INTEROP_2(LayoutManager_getLineMetrics, Ark_NativePointer, Ark_NativePointer, KInteropNumber) -void impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_LayoutManager_getGlyphPositionAtCoordinate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePositionWithAffinity(GetAccessors()->getLayoutManagerAccessor()->getGlyphPositionAtCoordinate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y))); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_3(LayoutManager_getGlyphPositionAtCoordinate, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KInteropReturnBuffer impl_LayoutManager_getLineMetrics(Ark_NativePointer thisPtr, KInteropNumber lineNumber) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeLineMetrics(GetAccessors()->getLayoutManagerAccessor()->getLineMetrics(self, (const Ark_Number*) (&lineNumber))); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_2(LayoutManager_getLineMetrics, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) +Ark_NativePointer impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextRange range_value = thisDeserializer.readTextRange();; - GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); + [[maybe_unused]] const auto &value = GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V5(LayoutManager_getRectsForRange, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) +KOALA_INTEROP_5(LayoutManager_getRectsForRange, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) Ark_NativePointer impl_TextMenuItemId_ctor() { return GetAccessors()->getTextMenuItemIdAccessor()->ctor(); } @@ -22419,7 +22614,7 @@ Ark_NativePointer impl_TextMenuItemId_of(uint8_t* thisArray, int32_t thisLength) } KOALA_INTEROP_2(TextMenuItemId_of, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_TextMenuItemId_equals(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TextMenuItemIdPeer* self = reinterpret_cast(thisPtr); + Ark_TextMenuItemId self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextMenuItemId id_value = static_cast(thisDeserializer.readTextMenuItemId());; return GetAccessors()->getTextMenuItemIdAccessor()->equals(self, id_value); @@ -22433,8 +22628,8 @@ Ark_NativePointer impl_EditMenuOptions_getFinalizer() { return GetAccessors()->getEditMenuOptionsAccessor()->getFinalizer(); } KOALA_INTEROP_0(EditMenuOptions_getFinalizer, Ark_NativePointer) -void impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - EditMenuOptionsPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 menuItems_value_buf_length = thisDeserializer.readInt32(); Array_TextMenuItem menuItems_value_buf = {}; @@ -22444,11 +22639,13 @@ void impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisA menuItems_value_buf.array[menuItems_value_buf_i] = thisDeserializer.readTextMenuItem(); } Array_TextMenuItem menuItems_value = menuItems_value_buf;; - GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); + [[maybe_unused]] const auto &value = GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(EditMenuOptions_onCreateMenu, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(EditMenuOptions_onCreateMenu, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_EditMenuOptions_onMenuItemClick(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - EditMenuOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextMenuItem menuItem_value = thisDeserializer.readTextMenuItem();; Ark_TextRange range_value = thisDeserializer.readTextRange();; @@ -22464,17 +22661,17 @@ Ark_NativePointer impl_SubmitEvent_getFinalizer() { } KOALA_INTEROP_0(SubmitEvent_getFinalizer, Ark_NativePointer) void impl_SubmitEvent_keepEditableState(Ark_NativePointer thisPtr) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->keepEditableState(self); } KOALA_INTEROP_V1(SubmitEvent_keepEditableState, Ark_NativePointer) void impl_SubmitEvent_getText(Ark_NativePointer thisPtr) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->getText(self); } KOALA_INTEROP_V1(SubmitEvent_getText, Ark_NativePointer) void impl_SubmitEvent_setText(Ark_NativePointer thisPtr, const KStringPtr& text) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->setText(self, (const Ark_String*) (&text)); } KOALA_INTEROP_V2(SubmitEvent_setText, Ark_NativePointer, KStringPtr) @@ -22487,12 +22684,12 @@ Ark_NativePointer impl_TextInputController_getFinalizer() { } KOALA_INTEROP_0(TextInputController_getFinalizer, Ark_NativePointer) void impl_TextInputController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); GetAccessors()->getTextInputControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TextInputController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_TextInputController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22506,7 +22703,7 @@ void impl_TextInputController_setTextSelection(Ark_NativePointer thisPtr, KInter } KOALA_INTEROP_V5(TextInputController_setTextSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextInputController_stopEditing(Ark_NativePointer thisPtr) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); GetAccessors()->getTextInputControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextInputController_stopEditing, Ark_NativePointer) @@ -22540,17 +22737,17 @@ Ark_NativePointer impl_TextTimerController_getFinalizer() { } KOALA_INTEROP_0(TextTimerController_getFinalizer, Ark_NativePointer) void impl_TextTimerController_start(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->start(self); } KOALA_INTEROP_V1(TextTimerController_start, Ark_NativePointer) void impl_TextTimerController_pause(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->pause(self); } KOALA_INTEROP_V1(TextTimerController_pause, Ark_NativePointer) void impl_TextTimerController_reset(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->reset(self); } KOALA_INTEROP_V1(TextTimerController_reset, Ark_NativePointer) @@ -22601,42 +22798,42 @@ Ark_NativePointer impl_VideoController_getFinalizer() { } KOALA_INTEROP_0(VideoController_getFinalizer, Ark_NativePointer) void impl_VideoController_start(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->start(self); } KOALA_INTEROP_V1(VideoController_start, Ark_NativePointer) void impl_VideoController_pause(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->pause(self); } KOALA_INTEROP_V1(VideoController_pause, Ark_NativePointer) void impl_VideoController_stop(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->stop(self); } KOALA_INTEROP_V1(VideoController_stop, Ark_NativePointer) void impl_VideoController_setCurrentTime0(Ark_NativePointer thisPtr, KInteropNumber value) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->setCurrentTime0(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(VideoController_setCurrentTime0, Ark_NativePointer, KInteropNumber) void impl_VideoController_requestFullscreen(Ark_NativePointer thisPtr, Ark_Boolean value) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->requestFullscreen(self, value); } KOALA_INTEROP_V2(VideoController_requestFullscreen, Ark_NativePointer, Ark_Boolean) void impl_VideoController_exitFullscreen(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->exitFullscreen(self); } KOALA_INTEROP_V1(VideoController_exitFullscreen, Ark_NativePointer) void impl_VideoController_setCurrentTime1(Ark_NativePointer thisPtr, KInteropNumber value, Ark_Int32 seekMode) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->setCurrentTime1(self, (const Ark_Number*) (&value), static_cast(seekMode)); } KOALA_INTEROP_V3(VideoController_setCurrentTime1, Ark_NativePointer, KInteropNumber, Ark_Int32) void impl_VideoController_reset(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->reset(self); } KOALA_INTEROP_V1(VideoController_reset, Ark_NativePointer) @@ -22649,27 +22846,27 @@ Ark_NativePointer impl_WebKeyboardController_getFinalizer() { } KOALA_INTEROP_0(WebKeyboardController_getFinalizer, Ark_NativePointer) void impl_WebKeyboardController_insertText(Ark_NativePointer thisPtr, const KStringPtr& text) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->insertText(self, (const Ark_String*) (&text)); } KOALA_INTEROP_V2(WebKeyboardController_insertText, Ark_NativePointer, KStringPtr) void impl_WebKeyboardController_deleteForward(Ark_NativePointer thisPtr, KInteropNumber length) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->deleteForward(self, (const Ark_Number*) (&length)); } KOALA_INTEROP_V2(WebKeyboardController_deleteForward, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_deleteBackward(Ark_NativePointer thisPtr, KInteropNumber length) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->deleteBackward(self, (const Ark_Number*) (&length)); } KOALA_INTEROP_V2(WebKeyboardController_deleteBackward, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_sendFunctionKey(Ark_NativePointer thisPtr, KInteropNumber key) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->sendFunctionKey(self, (const Ark_Number*) (&key)); } KOALA_INTEROP_V2(WebKeyboardController_sendFunctionKey, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_close(Ark_NativePointer thisPtr) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->close(self); } KOALA_INTEROP_V1(WebKeyboardController_close, Ark_NativePointer) @@ -22682,7 +22879,7 @@ Ark_NativePointer impl_FullScreenExitHandler_getFinalizer() { } KOALA_INTEROP_0(FullScreenExitHandler_getFinalizer, Ark_NativePointer) void impl_FullScreenExitHandler_exitFullScreen(Ark_NativePointer thisPtr) { - FullScreenExitHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_FullScreenExitHandler self = reinterpret_cast(thisPtr); GetAccessors()->getFullScreenExitHandlerAccessor()->exitFullScreen(self); } KOALA_INTEROP_V1(FullScreenExitHandler_exitFullScreen, Ark_NativePointer) @@ -22695,22 +22892,24 @@ Ark_NativePointer impl_FileSelectorParam_getFinalizer() { } KOALA_INTEROP_0(FileSelectorParam_getFinalizer, Ark_NativePointer) void impl_FileSelectorParam_getTitle(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); GetAccessors()->getFileSelectorParamAccessor()->getTitle(self); } KOALA_INTEROP_V1(FileSelectorParam_getTitle, Ark_NativePointer) -Ark_NativePointer impl_FileSelectorParam_getMode(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getFileSelectorParamAccessor()->getMode(self); -} -KOALA_INTEROP_1(FileSelectorParam_getMode, Ark_NativePointer, Ark_NativePointer) -void impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); +void impl_FileSelectorParam_getMode(Ark_NativePointer thisPtr) { + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); + GetAccessors()->getFileSelectorParamAccessor()->getMode(self); +} +KOALA_INTEROP_V1(FileSelectorParam_getMode, Ark_NativePointer) +Ark_NativePointer impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(FileSelectorParam_getAcceptType, Ark_NativePointer) +KOALA_INTEROP_1(FileSelectorParam_getAcceptType, Ark_NativePointer, Ark_NativePointer) Ark_Boolean impl_FileSelectorParam_isCapture(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); return GetAccessors()->getFileSelectorParamAccessor()->isCapture(self); } KOALA_INTEROP_1(FileSelectorParam_isCapture, Ark_Boolean, Ark_NativePointer) @@ -22723,17 +22922,17 @@ Ark_NativePointer impl_JsResult_getFinalizer() { } KOALA_INTEROP_0(JsResult_getFinalizer, Ark_NativePointer) void impl_JsResult_handleCancel(Ark_NativePointer thisPtr) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handleCancel(self); } KOALA_INTEROP_V1(JsResult_handleCancel, Ark_NativePointer) void impl_JsResult_handleConfirm(Ark_NativePointer thisPtr) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handleConfirm(self); } KOALA_INTEROP_V1(JsResult_handleConfirm, Ark_NativePointer) void impl_JsResult_handlePromptConfirm(Ark_NativePointer thisPtr, const KStringPtr& result) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handlePromptConfirm(self, (const Ark_String*) (&result)); } KOALA_INTEROP_V2(JsResult_handlePromptConfirm, Ark_NativePointer, KStringPtr) @@ -22746,7 +22945,7 @@ Ark_NativePointer impl_FileSelectorResult_getFinalizer() { } KOALA_INTEROP_0(FileSelectorResult_getFinalizer, Ark_NativePointer) void impl_FileSelectorResult_handleFileList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FileSelectorResultPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorResult self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fileList_value_buf_length = thisDeserializer.readInt32(); Array_String fileList_value_buf = {}; @@ -22768,17 +22967,17 @@ Ark_NativePointer impl_HttpAuthHandler_getFinalizer() { } KOALA_INTEROP_0(HttpAuthHandler_getFinalizer, Ark_NativePointer) Ark_Boolean impl_HttpAuthHandler_confirm(Ark_NativePointer thisPtr, const KStringPtr& userName, const KStringPtr& password) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); return GetAccessors()->getHttpAuthHandlerAccessor()->confirm(self, (const Ark_String*) (&userName), (const Ark_String*) (&password)); } KOALA_INTEROP_3(HttpAuthHandler_confirm, Ark_Boolean, Ark_NativePointer, KStringPtr, KStringPtr) void impl_HttpAuthHandler_cancel(Ark_NativePointer thisPtr) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); GetAccessors()->getHttpAuthHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(HttpAuthHandler_cancel, Ark_NativePointer) Ark_Boolean impl_HttpAuthHandler_isHttpAuthInfoSaved(Ark_NativePointer thisPtr) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); return GetAccessors()->getHttpAuthHandlerAccessor()->isHttpAuthInfoSaved(self); } KOALA_INTEROP_1(HttpAuthHandler_isHttpAuthInfoSaved, Ark_Boolean, Ark_NativePointer) @@ -22791,12 +22990,12 @@ Ark_NativePointer impl_SslErrorHandler_getFinalizer() { } KOALA_INTEROP_0(SslErrorHandler_getFinalizer, Ark_NativePointer) void impl_SslErrorHandler_handleConfirm(Ark_NativePointer thisPtr) { - SslErrorHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_SslErrorHandler self = reinterpret_cast(thisPtr); GetAccessors()->getSslErrorHandlerAccessor()->handleConfirm(self); } KOALA_INTEROP_V1(SslErrorHandler_handleConfirm, Ark_NativePointer) void impl_SslErrorHandler_handleCancel(Ark_NativePointer thisPtr) { - SslErrorHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_SslErrorHandler self = reinterpret_cast(thisPtr); GetAccessors()->getSslErrorHandlerAccessor()->handleCancel(self); } KOALA_INTEROP_V1(SslErrorHandler_handleCancel, Ark_NativePointer) @@ -22809,22 +23008,22 @@ Ark_NativePointer impl_ClientAuthenticationHandler_getFinalizer() { } KOALA_INTEROP_0(ClientAuthenticationHandler_getFinalizer, Ark_NativePointer) void impl_ClientAuthenticationHandler_confirm0(Ark_NativePointer thisPtr, const KStringPtr& priKeyFile, const KStringPtr& certChainFile) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->confirm0(self, (const Ark_String*) (&priKeyFile), (const Ark_String*) (&certChainFile)); } KOALA_INTEROP_V3(ClientAuthenticationHandler_confirm0, Ark_NativePointer, KStringPtr, KStringPtr) void impl_ClientAuthenticationHandler_confirm1(Ark_NativePointer thisPtr, const KStringPtr& authUri) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->confirm1(self, (const Ark_String*) (&authUri)); } KOALA_INTEROP_V2(ClientAuthenticationHandler_confirm1, Ark_NativePointer, KStringPtr) void impl_ClientAuthenticationHandler_cancel(Ark_NativePointer thisPtr) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(ClientAuthenticationHandler_cancel, Ark_NativePointer) void impl_ClientAuthenticationHandler_ignore(Ark_NativePointer thisPtr) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->ignore(self); } KOALA_INTEROP_V1(ClientAuthenticationHandler_ignore, Ark_NativePointer) @@ -22837,22 +23036,24 @@ Ark_NativePointer impl_PermissionRequest_getFinalizer() { } KOALA_INTEROP_0(PermissionRequest_getFinalizer, Ark_NativePointer) void impl_PermissionRequest_deny(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); GetAccessors()->getPermissionRequestAccessor()->deny(self); } KOALA_INTEROP_V1(PermissionRequest_deny, Ark_NativePointer) void impl_PermissionRequest_getOrigin(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); GetAccessors()->getPermissionRequestAccessor()->getOrigin(self); } KOALA_INTEROP_V1(PermissionRequest_getOrigin, Ark_NativePointer) -void impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); +Ark_NativePointer impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { + Ark_PermissionRequest self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(PermissionRequest_getAccessibleResource, Ark_NativePointer) +KOALA_INTEROP_1(PermissionRequest_getAccessibleResource, Ark_NativePointer, Ark_NativePointer) void impl_PermissionRequest_grant(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 resources_value_buf_length = thisDeserializer.readInt32(); Array_String resources_value_buf = {}; @@ -22874,19 +23075,19 @@ Ark_NativePointer impl_ScreenCaptureHandler_getFinalizer() { } KOALA_INTEROP_0(ScreenCaptureHandler_getFinalizer, Ark_NativePointer) void impl_ScreenCaptureHandler_getOrigin(Ark_NativePointer thisPtr) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); GetAccessors()->getScreenCaptureHandlerAccessor()->getOrigin(self); } KOALA_INTEROP_V1(ScreenCaptureHandler_getOrigin, Ark_NativePointer) void impl_ScreenCaptureHandler_grant(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScreenCaptureConfig config_value = thisDeserializer.readScreenCaptureConfig();; GetAccessors()->getScreenCaptureHandlerAccessor()->grant(self, (const Ark_ScreenCaptureConfig*)&config_value); } KOALA_INTEROP_V3(ScreenCaptureHandler_grant, Ark_NativePointer, uint8_t*, int32_t) void impl_ScreenCaptureHandler_deny(Ark_NativePointer thisPtr) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); GetAccessors()->getScreenCaptureHandlerAccessor()->deny(self); } KOALA_INTEROP_V1(ScreenCaptureHandler_deny, Ark_NativePointer) @@ -22899,12 +23100,12 @@ Ark_NativePointer impl_DataResubmissionHandler_getFinalizer() { } KOALA_INTEROP_0(DataResubmissionHandler_getFinalizer, Ark_NativePointer) void impl_DataResubmissionHandler_resend(Ark_NativePointer thisPtr) { - DataResubmissionHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_DataResubmissionHandler self = reinterpret_cast(thisPtr); GetAccessors()->getDataResubmissionHandlerAccessor()->resend(self); } KOALA_INTEROP_V1(DataResubmissionHandler_resend, Ark_NativePointer) void impl_DataResubmissionHandler_cancel(Ark_NativePointer thisPtr) { - DataResubmissionHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_DataResubmissionHandler self = reinterpret_cast(thisPtr); GetAccessors()->getDataResubmissionHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(DataResubmissionHandler_cancel, Ark_NativePointer) @@ -22917,7 +23118,7 @@ Ark_NativePointer impl_ControllerHandler_getFinalizer() { } KOALA_INTEROP_0(ControllerHandler_getFinalizer, Ark_NativePointer) void impl_ControllerHandler_setWebController(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ControllerHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ControllerHandler self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_WebviewController controller_value = static_cast(thisDeserializer.readWebviewController());; GetAccessors()->getControllerHandlerAccessor()->setWebController(self, controller_value); @@ -22932,72 +23133,72 @@ Ark_NativePointer impl_WebContextMenuParam_getFinalizer() { } KOALA_INTEROP_0(WebContextMenuParam_getFinalizer, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_x(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->x(self); } KOALA_INTEROP_1(WebContextMenuParam_x, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_y(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->y(self); } KOALA_INTEROP_1(WebContextMenuParam_y, Ark_Int32, Ark_NativePointer) void impl_WebContextMenuParam_getLinkUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getLinkUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getLinkUrl, Ark_NativePointer) void impl_WebContextMenuParam_getUnfilteredLinkUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getUnfilteredLinkUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getUnfilteredLinkUrl, Ark_NativePointer) void impl_WebContextMenuParam_getSourceUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getSourceUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getSourceUrl, Ark_NativePointer) Ark_Boolean impl_WebContextMenuParam_existsImageContents(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->existsImageContents(self); } KOALA_INTEROP_1(WebContextMenuParam_existsImageContents, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getMediaType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getMediaType(self); +void impl_WebContextMenuParam_getMediaType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getMediaType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getMediaType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebContextMenuParam_getMediaType, Ark_NativePointer) void impl_WebContextMenuParam_getSelectionText(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getSelectionText(self); } KOALA_INTEROP_V1(WebContextMenuParam_getSelectionText, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getSourceType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getSourceType(self); +void impl_WebContextMenuParam_getSourceType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getSourceType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getSourceType, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getInputFieldType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getInputFieldType(self); +KOALA_INTEROP_V1(WebContextMenuParam_getSourceType, Ark_NativePointer) +void impl_WebContextMenuParam_getInputFieldType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getInputFieldType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getInputFieldType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebContextMenuParam_getInputFieldType, Ark_NativePointer) Ark_Boolean impl_WebContextMenuParam_isEditable(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->isEditable(self); } KOALA_INTEROP_1(WebContextMenuParam_isEditable, Ark_Boolean, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getEditStateFlags(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getEditStateFlags(self); } KOALA_INTEROP_1(WebContextMenuParam_getEditStateFlags, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getPreviewWidth(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getPreviewWidth(self); } KOALA_INTEROP_1(WebContextMenuParam_getPreviewWidth, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getPreviewHeight(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getPreviewHeight(self); } KOALA_INTEROP_1(WebContextMenuParam_getPreviewHeight, Ark_Int32, Ark_NativePointer) @@ -23010,32 +23211,32 @@ Ark_NativePointer impl_WebContextMenuResult_getFinalizer() { } KOALA_INTEROP_0(WebContextMenuResult_getFinalizer, Ark_NativePointer) void impl_WebContextMenuResult_closeContextMenu(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->closeContextMenu(self); } KOALA_INTEROP_V1(WebContextMenuResult_closeContextMenu, Ark_NativePointer) void impl_WebContextMenuResult_copyImage(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->copyImage(self); } KOALA_INTEROP_V1(WebContextMenuResult_copyImage, Ark_NativePointer) void impl_WebContextMenuResult_copy(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->copy(self); } KOALA_INTEROP_V1(WebContextMenuResult_copy, Ark_NativePointer) void impl_WebContextMenuResult_paste(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->paste(self); } KOALA_INTEROP_V1(WebContextMenuResult_paste, Ark_NativePointer) void impl_WebContextMenuResult_cut(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->cut(self); } KOALA_INTEROP_V1(WebContextMenuResult_cut, Ark_NativePointer) void impl_WebContextMenuResult_selectAll(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->selectAll(self); } KOALA_INTEROP_V1(WebContextMenuResult_selectAll, Ark_NativePointer) @@ -23048,25 +23249,25 @@ Ark_NativePointer impl_ConsoleMessage_getFinalizer() { } KOALA_INTEROP_0(ConsoleMessage_getFinalizer, Ark_NativePointer) void impl_ConsoleMessage_getMessage(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); GetAccessors()->getConsoleMessageAccessor()->getMessage(self); } KOALA_INTEROP_V1(ConsoleMessage_getMessage, Ark_NativePointer) void impl_ConsoleMessage_getSourceId(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); GetAccessors()->getConsoleMessageAccessor()->getSourceId(self); } KOALA_INTEROP_V1(ConsoleMessage_getSourceId, Ark_NativePointer) Ark_Int32 impl_ConsoleMessage_getLineNumber(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); return GetAccessors()->getConsoleMessageAccessor()->getLineNumber(self); } KOALA_INTEROP_1(ConsoleMessage_getLineNumber, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_ConsoleMessage_getMessageLevel(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getConsoleMessageAccessor()->getMessageLevel(self); +void impl_ConsoleMessage_getMessageLevel(Ark_NativePointer thisPtr) { + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); + GetAccessors()->getConsoleMessageAccessor()->getMessageLevel(self); } -KOALA_INTEROP_1(ConsoleMessage_getMessageLevel, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ConsoleMessage_getMessageLevel, Ark_NativePointer) Ark_NativePointer impl_WebResourceRequest_ctor() { return GetAccessors()->getWebResourceRequestAccessor()->ctor(); } @@ -23075,33 +23276,35 @@ Ark_NativePointer impl_WebResourceRequest_getFinalizer() { return GetAccessors()->getWebResourceRequestAccessor()->getFinalizer(); } KOALA_INTEROP_0(WebResourceRequest_getFinalizer, Ark_NativePointer) -void impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); +Ark_NativePointer impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WebResourceRequest_getRequestHeader, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceRequest_getRequestHeader, Ark_NativePointer, Ark_NativePointer) void impl_WebResourceRequest_getRequestUrl(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceRequestAccessor()->getRequestUrl(self); } KOALA_INTEROP_V1(WebResourceRequest_getRequestUrl, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isRequestGesture(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isRequestGesture(self); } KOALA_INTEROP_1(WebResourceRequest_isRequestGesture, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isMainFrame(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isMainFrame(self); } KOALA_INTEROP_1(WebResourceRequest_isMainFrame, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isRedirect(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isRedirect(self); } KOALA_INTEROP_1(WebResourceRequest_isRedirect, Ark_Boolean, Ark_NativePointer) void impl_WebResourceRequest_getRequestMethod(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceRequestAccessor()->getRequestMethod(self); } KOALA_INTEROP_V1(WebResourceRequest_getRequestMethod, Ark_NativePointer) @@ -23114,42 +23317,44 @@ Ark_NativePointer impl_WebResourceResponse_getFinalizer() { } KOALA_INTEROP_0(WebResourceResponse_getFinalizer, Ark_NativePointer) void impl_WebResourceResponse_getResponseData(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseData(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseData, Ark_NativePointer) -Ark_NativePointer impl_WebResourceResponse_getResponseDataEx(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebResourceResponseAccessor()->getResponseDataEx(self); +void impl_WebResourceResponse_getResponseDataEx(Ark_NativePointer thisPtr) { + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); + GetAccessors()->getWebResourceResponseAccessor()->getResponseDataEx(self); } -KOALA_INTEROP_1(WebResourceResponse_getResponseDataEx, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebResourceResponse_getResponseDataEx, Ark_NativePointer) void impl_WebResourceResponse_getResponseEncoding(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseEncoding(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseEncoding, Ark_NativePointer) void impl_WebResourceResponse_getResponseMimeType(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseMimeType(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseMimeType, Ark_NativePointer) void impl_WebResourceResponse_getReasonMessage(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getReasonMessage(self); } KOALA_INTEROP_V1(WebResourceResponse_getReasonMessage, Ark_NativePointer) -void impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); +Ark_NativePointer impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WebResourceResponse_getResponseHeader, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceResponse_getResponseHeader, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_WebResourceResponse_getResponseCode(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceResponseAccessor()->getResponseCode(self); } KOALA_INTEROP_1(WebResourceResponse_getResponseCode, Ark_Int32, Ark_NativePointer) void impl_WebResourceResponse_setResponseData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 data_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_Resource_Buffer data_value_buf = {}; @@ -23178,22 +23383,22 @@ void impl_WebResourceResponse_setResponseData(Ark_NativePointer thisPtr, uint8_t } KOALA_INTEROP_V3(WebResourceResponse_setResponseData, Ark_NativePointer, uint8_t*, int32_t) void impl_WebResourceResponse_setResponseEncoding(Ark_NativePointer thisPtr, const KStringPtr& encoding) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseEncoding(self, (const Ark_String*) (&encoding)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseEncoding, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setResponseMimeType(Ark_NativePointer thisPtr, const KStringPtr& mimeType) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseMimeType(self, (const Ark_String*) (&mimeType)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseMimeType, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setReasonMessage(Ark_NativePointer thisPtr, const KStringPtr& reason) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setReasonMessage(self, (const Ark_String*) (&reason)); } KOALA_INTEROP_V2(WebResourceResponse_setReasonMessage, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setResponseHeader(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 header_value_buf_length = thisDeserializer.readInt32(); Array_Header header_value_buf = {}; @@ -23207,17 +23412,17 @@ void impl_WebResourceResponse_setResponseHeader(Ark_NativePointer thisPtr, uint8 } KOALA_INTEROP_V3(WebResourceResponse_setResponseHeader, Ark_NativePointer, uint8_t*, int32_t) void impl_WebResourceResponse_setResponseCode(Ark_NativePointer thisPtr, KInteropNumber code) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseCode(self, (const Ark_Number*) (&code)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseCode, Ark_NativePointer, KInteropNumber) void impl_WebResourceResponse_setResponseIsReady(Ark_NativePointer thisPtr, Ark_Boolean IsReady) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseIsReady(self, IsReady); } KOALA_INTEROP_V2(WebResourceResponse_setResponseIsReady, Ark_NativePointer, Ark_Boolean) Ark_Boolean impl_WebResourceResponse_getResponseIsReady(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceResponseAccessor()->getResponseIsReady(self); } KOALA_INTEROP_1(WebResourceResponse_getResponseIsReady, Ark_Boolean, Ark_NativePointer) @@ -23230,12 +23435,12 @@ Ark_NativePointer impl_WebResourceError_getFinalizer() { } KOALA_INTEROP_0(WebResourceError_getFinalizer, Ark_NativePointer) void impl_WebResourceError_getErrorInfo(Ark_NativePointer thisPtr) { - WebResourceErrorPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceError self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceErrorAccessor()->getErrorInfo(self); } KOALA_INTEROP_V1(WebResourceError_getErrorInfo, Ark_NativePointer) Ark_Int32 impl_WebResourceError_getErrorCode(Ark_NativePointer thisPtr) { - WebResourceErrorPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceError self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceErrorAccessor()->getErrorCode(self); } KOALA_INTEROP_1(WebResourceError_getErrorCode, Ark_Int32, Ark_NativePointer) @@ -23248,7 +23453,7 @@ Ark_NativePointer impl_JsGeolocation_getFinalizer() { } KOALA_INTEROP_0(JsGeolocation_getFinalizer, Ark_NativePointer) void impl_JsGeolocation_invoke(Ark_NativePointer thisPtr, const KStringPtr& origin, Ark_Boolean allow, Ark_Boolean retain) { - JsGeolocationPeer* self = reinterpret_cast(thisPtr); + Ark_JsGeolocation self = reinterpret_cast(thisPtr); GetAccessors()->getJsGeolocationAccessor()->invoke(self, (const Ark_String*) (&origin), allow, retain); } KOALA_INTEROP_V4(JsGeolocation_invoke, Ark_NativePointer, KStringPtr, Ark_Boolean, Ark_Boolean) @@ -23261,12 +23466,12 @@ Ark_NativePointer impl_WebCookie_getFinalizer() { } KOALA_INTEROP_0(WebCookie_getFinalizer, Ark_NativePointer) void impl_WebCookie_setCookie(Ark_NativePointer thisPtr) { - WebCookiePeer* self = reinterpret_cast(thisPtr); + Ark_WebCookie self = reinterpret_cast(thisPtr); GetAccessors()->getWebCookieAccessor()->setCookie(self); } KOALA_INTEROP_V1(WebCookie_setCookie, Ark_NativePointer) void impl_WebCookie_saveCookie(Ark_NativePointer thisPtr) { - WebCookiePeer* self = reinterpret_cast(thisPtr); + Ark_WebCookie self = reinterpret_cast(thisPtr); GetAccessors()->getWebCookieAccessor()->saveCookie(self); } KOALA_INTEROP_V1(WebCookie_saveCookie, Ark_NativePointer) @@ -23279,7 +23484,7 @@ Ark_NativePointer impl_EventResult_getFinalizer() { } KOALA_INTEROP_0(EventResult_getFinalizer, Ark_NativePointer) void impl_EventResult_setGestureEventResult(Ark_NativePointer thisPtr, Ark_Boolean result) { - EventResultPeer* self = reinterpret_cast(thisPtr); + Ark_EventResult self = reinterpret_cast(thisPtr); GetAccessors()->getEventResultAccessor()->setGestureEventResult(self, result); } KOALA_INTEROP_V2(EventResult_setGestureEventResult, Ark_NativePointer, Ark_Boolean) @@ -23292,27 +23497,27 @@ Ark_NativePointer impl_WebController_getFinalizer() { } KOALA_INTEROP_0(WebController_getFinalizer, Ark_NativePointer) void impl_WebController_onInactive(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->onInactive(self); } KOALA_INTEROP_V1(WebController_onInactive, Ark_NativePointer) void impl_WebController_onActive(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->onActive(self); } KOALA_INTEROP_V1(WebController_onActive, Ark_NativePointer) void impl_WebController_zoom(Ark_NativePointer thisPtr, KInteropNumber factor) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->zoom(self, (const Ark_Number*) (&factor)); } KOALA_INTEROP_V2(WebController_zoom, Ark_NativePointer, KInteropNumber) void impl_WebController_clearHistory(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->clearHistory(self); } KOALA_INTEROP_V1(WebController_clearHistory, Ark_NativePointer) void impl_WebController_runJavaScript(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_String_script_Callback_String_Void_callback_ options_value_buf = {}; options_value_buf.script = static_cast(thisDeserializer.readString()); @@ -23329,7 +23534,7 @@ void impl_WebController_runJavaScript(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(WebController_runJavaScript, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_loadData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType options_value_buf = {}; options_value_buf.data = static_cast(thisDeserializer.readString()); @@ -23356,7 +23561,7 @@ void impl_WebController_loadData(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(WebController_loadData, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Union_String_Resource_url_Array_Header_headers options_value_buf = {}; const Ark_Int8 options_value_buf_url_buf_selector = thisDeserializer.readInt8(); @@ -23394,17 +23599,17 @@ void impl_WebController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, i } KOALA_INTEROP_V3(WebController_loadUrl, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_refresh(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->refresh(self); } KOALA_INTEROP_V1(WebController_refresh, Ark_NativePointer) void impl_WebController_stop(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->stop(self); } KOALA_INTEROP_V1(WebController_stop, Ark_NativePointer) void impl_WebController_registerJavaScriptProxy(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Object_object__String_name_Array_String_methodList options_value_buf = {}; options_value_buf.object_ = static_cast(thisDeserializer.readCustomObject("Object")); @@ -23422,47 +23627,47 @@ void impl_WebController_registerJavaScriptProxy(Ark_NativePointer thisPtr, uint8 } KOALA_INTEROP_V3(WebController_registerJavaScriptProxy, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_deleteJavaScriptRegister(Ark_NativePointer thisPtr, const KStringPtr& name) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->deleteJavaScriptRegister(self, (const Ark_String*) (&name)); } KOALA_INTEROP_V2(WebController_deleteJavaScriptRegister, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_WebController_getHitTest(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebControllerAccessor()->getHitTest(self); +void impl_WebController_getHitTest(Ark_NativePointer thisPtr) { + Ark_WebController self = reinterpret_cast(thisPtr); + GetAccessors()->getWebControllerAccessor()->getHitTest(self); } -KOALA_INTEROP_1(WebController_getHitTest, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebController_getHitTest, Ark_NativePointer) void impl_WebController_requestFocus(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->requestFocus(self); } KOALA_INTEROP_V1(WebController_requestFocus, Ark_NativePointer) Ark_Boolean impl_WebController_accessBackward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessBackward(self); } KOALA_INTEROP_1(WebController_accessBackward, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebController_accessForward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessForward(self); } KOALA_INTEROP_1(WebController_accessForward, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebController_accessStep(Ark_NativePointer thisPtr, KInteropNumber step) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessStep(self, (const Ark_Number*) (&step)); } KOALA_INTEROP_2(WebController_accessStep, Ark_Boolean, Ark_NativePointer, KInteropNumber) void impl_WebController_backward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->backward(self); } KOALA_INTEROP_V1(WebController_backward, Ark_NativePointer) void impl_WebController_forward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->forward(self); } KOALA_INTEROP_V1(WebController_forward, Ark_NativePointer) Ark_NativePointer impl_WebController_getCookieManager(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->getCookieManager(self); } KOALA_INTEROP_1(WebController_getCookieManager, Ark_NativePointer, Ark_NativePointer) @@ -23475,17 +23680,17 @@ Ark_NativePointer impl_XComponentController_getFinalizer() { } KOALA_INTEROP_0(XComponentController_getFinalizer, Ark_NativePointer) void impl_XComponentController_getXComponentSurfaceId(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceId(self); } KOALA_INTEROP_V1(XComponentController_getXComponentSurfaceId, Ark_NativePointer) -Ark_NativePointer impl_XComponentController_getXComponentContext(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentContext(self); +void impl_XComponentController_getXComponentContext(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + GetAccessors()->getXComponentControllerAccessor()->getXComponentContext(self); } -KOALA_INTEROP_1(XComponentController_getXComponentContext, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(XComponentController_getXComponentContext, Ark_NativePointer) void impl_XComponentController_setXComponentSurfaceSize(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Number_surfaceHeight_surfaceWidth value_value_buf = {}; value_value_buf.surfaceWidth = static_cast(thisDeserializer.readNumber()); @@ -23495,48 +23700,52 @@ void impl_XComponentController_setXComponentSurfaceSize(Ark_NativePointer thisPt } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceSize, Ark_NativePointer, uint8_t*, int32_t) void impl_XComponentController_setXComponentSurfaceRect(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRect rect_value = thisDeserializer.readSurfaceRect();; GetAccessors()->getXComponentControllerAccessor()->setXComponentSurfaceRect(self, (const Ark_SurfaceRect*)&rect_value); } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceRect, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_XComponentController_getXComponentSurfaceRect(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRect(self); +KInteropReturnBuffer impl_XComponentController_getXComponentSurfaceRect(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSurfaceRect(GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRect(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRect, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRect, KInteropReturnBuffer, Ark_NativePointer) void impl_XComponentController_setXComponentSurfaceRotation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRotationOptions rotationOptions_value = thisDeserializer.readSurfaceRotationOptions();; GetAccessors()->getXComponentControllerAccessor()->setXComponentSurfaceRotation(self, (const Ark_SurfaceRotationOptions*)&rotationOptions_value); } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceRotation, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_XComponentController_getXComponentSurfaceRotation(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRotation(self); +KInteropReturnBuffer impl_XComponentController_getXComponentSurfaceRotation(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSurfaceRotationOptions(GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRotation(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRotation, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRotation, KInteropReturnBuffer, Ark_NativePointer) void impl_XComponentController_onSurfaceCreated(Ark_NativePointer thisPtr, const KStringPtr& surfaceId) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->onSurfaceCreated(self, (const Ark_String*) (&surfaceId)); } KOALA_INTEROP_V2(XComponentController_onSurfaceCreated, Ark_NativePointer, KStringPtr) void impl_XComponentController_onSurfaceChanged(Ark_NativePointer thisPtr, const KStringPtr& surfaceId, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRect rect_value = thisDeserializer.readSurfaceRect();; GetAccessors()->getXComponentControllerAccessor()->onSurfaceChanged(self, (const Ark_String*) (&surfaceId), (const Ark_SurfaceRect*)&rect_value); } KOALA_INTEROP_V4(XComponentController_onSurfaceChanged, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_XComponentController_onSurfaceDestroyed(Ark_NativePointer thisPtr, const KStringPtr& surfaceId) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->onSurfaceDestroyed(self, (const Ark_String*) (&surfaceId)); } KOALA_INTEROP_V2(XComponentController_onSurfaceDestroyed, Ark_NativePointer, KStringPtr) void impl_XComponentController_startImageAnalyzer(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageAnalyzerConfig config_value = thisDeserializer.readImageAnalyzerConfig();; Callback_Opt_Array_String_Void outputArgumentForReturningPromise_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_Array_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_Array_String_Void))))};; @@ -23544,7 +23753,7 @@ void impl_XComponentController_startImageAnalyzer(Ark_NativePointer thisPtr, uin } KOALA_INTEROP_V3(XComponentController_startImageAnalyzer, Ark_NativePointer, uint8_t*, int32_t) void impl_XComponentController_stopImageAnalyzer(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->stopImageAnalyzer(self); } KOALA_INTEROP_V1(XComponentController_stopImageAnalyzer, Ark_NativePointer) @@ -23557,7 +23766,7 @@ Ark_NativePointer impl_WaterFlowSections_getFinalizer() { } KOALA_INTEROP_0(WaterFlowSections_getFinalizer, Ark_NativePointer) Ark_Boolean impl_WaterFlowSections_splice(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto deleteCount_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number deleteCount_value_buf = {}; @@ -23586,26 +23795,28 @@ Ark_Boolean impl_WaterFlowSections_splice(Ark_NativePointer thisPtr, KInteropNum } KOALA_INTEROP_4(WaterFlowSections_splice, Ark_Boolean, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_WaterFlowSections_push(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SectionOptions section_value = thisDeserializer.readSectionOptions();; return GetAccessors()->getWaterFlowSectionsAccessor()->push(self, (const Ark_SectionOptions*)§ion_value); } KOALA_INTEROP_3(WaterFlowSections_push, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_WaterFlowSections_update(Ark_NativePointer thisPtr, KInteropNumber sectionIndex, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SectionOptions section_value = thisDeserializer.readSectionOptions();; return GetAccessors()->getWaterFlowSectionsAccessor()->update(self, (const Ark_Number*) (§ionIndex), (const Ark_SectionOptions*)§ion_value); } KOALA_INTEROP_4(WaterFlowSections_update, Ark_Boolean, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) -void impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWaterFlowSectionsAccessor()->values(self); +Ark_NativePointer impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWaterFlowSectionsAccessor()->values(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WaterFlowSections_values, Ark_NativePointer) +KOALA_INTEROP_1(WaterFlowSections_values, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_WaterFlowSections_length(Ark_NativePointer thisPtr) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); return GetAccessors()->getWaterFlowSectionsAccessor()->length(self); } KOALA_INTEROP_1(WaterFlowSections_length, Ark_Int32, Ark_NativePointer) @@ -23618,7 +23829,7 @@ Ark_NativePointer impl_UIExtensionProxy_getFinalizer() { } KOALA_INTEROP_0(UIExtensionProxy_getFinalizer, Ark_NativePointer) void impl_UIExtensionProxy_send(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 data_value_buf_size = thisDeserializer.readInt32(); Map_String_CustomObject data_value_buf = {}; @@ -23633,8 +23844,8 @@ void impl_UIExtensionProxy_send(Ark_NativePointer thisPtr, uint8_t* thisArray, i GetAccessors()->getUIExtensionProxyAccessor()->send(self, (const Map_String_CustomObject*)&data_value); } KOALA_INTEROP_V3(UIExtensionProxy_send, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); +void impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 data_value_buf_size = thisDeserializer.readInt32(); Map_String_CustomObject data_value_buf = {}; @@ -23646,25 +23857,25 @@ Ark_NativePointer impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint data_value_buf.values[data_value_buf_i] = data_value_buf_value; } Map_String_CustomObject data_value = data_value_buf;; - return GetAccessors()->getUIExtensionProxyAccessor()->sendSync(self, (const Map_String_CustomObject*)&data_value); + GetAccessors()->getUIExtensionProxyAccessor()->sendSync(self, (const Map_String_CustomObject*)&data_value); } -KOALA_INTEROP_3(UIExtensionProxy_sendSync, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(UIExtensionProxy_sendSync, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_onAsyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_UIExtensionProxy_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_UIExtensionProxy_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_UIExtensionProxy_Void))))};; GetAccessors()->getUIExtensionProxyAccessor()->onAsyncReceiverRegister(self, (const Callback_UIExtensionProxy_Void*)&callback__value); } KOALA_INTEROP_V3(UIExtensionProxy_onAsyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_onSyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_UIExtensionProxy_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_UIExtensionProxy_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_UIExtensionProxy_Void))))};; GetAccessors()->getUIExtensionProxyAccessor()->onSyncReceiverRegister(self, (const Callback_UIExtensionProxy_Void*)&callback__value); } KOALA_INTEROP_V3(UIExtensionProxy_onSyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_offAsyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_UIExtensionProxy_Void callback__value_buf = {}; @@ -23678,7 +23889,7 @@ void impl_UIExtensionProxy_offAsyncReceiverRegister(Ark_NativePointer thisPtr, u } KOALA_INTEROP_V3(UIExtensionProxy_offAsyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_offSyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_UIExtensionProxy_Void callback__value_buf = {}; @@ -23735,12 +23946,12 @@ Ark_NativePointer impl_StyledString_getFinalizer() { } KOALA_INTEROP_0(StyledString_getFinalizer, Ark_NativePointer) void impl_StyledString_getString(Ark_NativePointer thisPtr) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); GetAccessors()->getStyledStringAccessor()->getString(self); } KOALA_INTEROP_V1(StyledString_getString, Ark_NativePointer) -void impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto styledKey_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_StyledStringKey styledKey_value_buf = {}; @@ -23750,18 +23961,20 @@ void impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start styledKey_value_buf.value = static_cast(thisDeserializer.readInt32()); } Opt_StyledStringKey styledKey_value = styledKey_value_buf;; - GetAccessors()->getStyledStringAccessor()->getStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); + [[maybe_unused]] const auto &value = GetAccessors()->getStyledStringAccessor()->getStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V5(StyledString_getStyles, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +KOALA_INTEROP_5(StyledString_getStyles, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_StyledString_equals(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; return GetAccessors()->getStyledStringAccessor()->equals(self, other_value); } KOALA_INTEROP_3(StyledString_equals, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_StyledString_subStyledString(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto length_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number length_value_buf = {}; @@ -23800,7 +24013,7 @@ void impl_StyledString_unmarshalling(uint8_t* thisArray, int32_t thisLength) { } KOALA_INTEROP_V2(StyledString_unmarshalling, uint8_t*, int32_t) Ark_Int32 impl_StyledString_getLength(Ark_NativePointer thisPtr) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); return GetAccessors()->getStyledStringAccessor()->getLength(self); } KOALA_INTEROP_1(StyledString_getLength, Ark_Int32, Ark_NativePointer) @@ -23822,25 +24035,25 @@ Ark_NativePointer impl_TextStyle_styled_string_getFinalizer() { } KOALA_INTEROP_0(TextStyle_styled_string_getFinalizer, Ark_NativePointer) void impl_TextStyle_styled_string_getFontFamily(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); GetAccessors()->getTextStyle_styled_stringAccessor()->getFontFamily(self); } KOALA_INTEROP_V1(TextStyle_styled_string_getFontFamily, Ark_NativePointer) Ark_Int32 impl_TextStyle_styled_string_getFontSize(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontSize(self); } KOALA_INTEROP_1(TextStyle_styled_string_getFontSize, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_TextStyle_styled_string_getFontWeight(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontWeight(self); } KOALA_INTEROP_1(TextStyle_styled_string_getFontWeight, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_TextStyle_styled_string_getFontStyle(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontStyle(self); +void impl_TextStyle_styled_string_getFontStyle(Ark_NativePointer thisPtr) { + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); + GetAccessors()->getTextStyle_styled_stringAccessor()->getFontStyle(self); } -KOALA_INTEROP_1(TextStyle_styled_string_getFontStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(TextStyle_styled_string_getFontStyle, Ark_NativePointer) Ark_NativePointer impl_DecorationStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_DecorationStyleInterface value_value = thisDeserializer.readDecorationStyleInterface();; @@ -23851,16 +24064,16 @@ Ark_NativePointer impl_DecorationStyle_getFinalizer() { return GetAccessors()->getDecorationStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(DecorationStyle_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_DecorationStyle_getType(Ark_NativePointer thisPtr) { - DecorationStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDecorationStyleAccessor()->getType(self); +void impl_DecorationStyle_getType(Ark_NativePointer thisPtr) { + Ark_DecorationStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getDecorationStyleAccessor()->getType(self); } -KOALA_INTEROP_1(DecorationStyle_getType, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DecorationStyle_getStyle(Ark_NativePointer thisPtr) { - DecorationStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDecorationStyleAccessor()->getStyle(self); +KOALA_INTEROP_V1(DecorationStyle_getType, Ark_NativePointer) +void impl_DecorationStyle_getStyle(Ark_NativePointer thisPtr) { + Ark_DecorationStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getDecorationStyleAccessor()->getStyle(self); } -KOALA_INTEROP_1(DecorationStyle_getStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DecorationStyle_getStyle, Ark_NativePointer) Ark_NativePointer impl_BaselineOffsetStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; @@ -23872,7 +24085,7 @@ Ark_NativePointer impl_BaselineOffsetStyle_getFinalizer() { } KOALA_INTEROP_0(BaselineOffsetStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_BaselineOffsetStyle_getBaselineOffset(Ark_NativePointer thisPtr) { - BaselineOffsetStylePeer* self = reinterpret_cast(thisPtr); + Ark_BaselineOffsetStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getBaselineOffsetStyleAccessor()->getBaselineOffset(self); } KOALA_INTEROP_1(BaselineOffsetStyle_getBaselineOffset, Ark_Int32, Ark_NativePointer) @@ -23887,7 +24100,7 @@ Ark_NativePointer impl_LetterSpacingStyle_getFinalizer() { } KOALA_INTEROP_0(LetterSpacingStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LetterSpacingStyle_getLetterSpacing(Ark_NativePointer thisPtr) { - LetterSpacingStylePeer* self = reinterpret_cast(thisPtr); + Ark_LetterSpacingStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getLetterSpacingStyleAccessor()->getLetterSpacing(self); } KOALA_INTEROP_1(LetterSpacingStyle_getLetterSpacing, Ark_Int32, Ark_NativePointer) @@ -23922,6 +24135,13 @@ Ark_NativePointer impl_TextShadowStyle_getFinalizer() { return GetAccessors()->getTextShadowStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(TextShadowStyle_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_TextShadowStyle_getTextShadow(Ark_NativePointer thisPtr) { + Ark_TextShadowStyle self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTextShadowStyleAccessor()->getTextShadow(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TextShadowStyle_getTextShadow, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_BackgroundColorStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_TextBackgroundStyle textBackgroundStyle_value = thisDeserializer.readTextBackgroundStyle();; @@ -23966,31 +24186,31 @@ Ark_NativePointer impl_ParagraphStyle_getFinalizer() { return GetAccessors()->getParagraphStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(ParagraphStyle_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getTextAlign(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getTextAlign(self); +void impl_ParagraphStyle_getTextAlign(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getTextAlign(self); } -KOALA_INTEROP_1(ParagraphStyle_getTextAlign, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ParagraphStyle_getTextAlign, Ark_NativePointer) Ark_Int32 impl_ParagraphStyle_getTextIndent(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getParagraphStyleAccessor()->getTextIndent(self); } KOALA_INTEROP_1(ParagraphStyle_getTextIndent, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ParagraphStyle_getMaxLines(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getParagraphStyleAccessor()->getMaxLines(self); } KOALA_INTEROP_1(ParagraphStyle_getMaxLines, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getOverflow(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getOverflow(self); +void impl_ParagraphStyle_getOverflow(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getOverflow(self); } -KOALA_INTEROP_1(ParagraphStyle_getOverflow, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getWordBreak(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getWordBreak(self); +KOALA_INTEROP_V1(ParagraphStyle_getOverflow, Ark_NativePointer) +void impl_ParagraphStyle_getWordBreak(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getWordBreak(self); } -KOALA_INTEROP_1(ParagraphStyle_getWordBreak, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ParagraphStyle_getWordBreak, Ark_NativePointer) Ark_NativePointer impl_LineHeightStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics lineHeight_value = static_cast(thisDeserializer.readLengthMetrics());; @@ -24002,7 +24222,7 @@ Ark_NativePointer impl_LineHeightStyle_getFinalizer() { } KOALA_INTEROP_0(LineHeightStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LineHeightStyle_getLineHeight(Ark_NativePointer thisPtr) { - LineHeightStylePeer* self = reinterpret_cast(thisPtr); + Ark_LineHeightStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getLineHeightStyleAccessor()->getLineHeight(self); } KOALA_INTEROP_1(LineHeightStyle_getLineHeight, Ark_Int32, Ark_NativePointer) @@ -24015,7 +24235,7 @@ Ark_NativePointer impl_UrlStyle_getFinalizer() { } KOALA_INTEROP_0(UrlStyle_getFinalizer, Ark_NativePointer) void impl_UrlStyle_getUrl(Ark_NativePointer thisPtr) { - UrlStylePeer* self = reinterpret_cast(thisPtr); + Ark_UrlStyle self = reinterpret_cast(thisPtr); GetAccessors()->getUrlStyleAccessor()->getUrl(self); } KOALA_INTEROP_V1(UrlStyle_getUrl, Ark_NativePointer) @@ -24028,65 +24248,65 @@ Ark_NativePointer impl_MutableStyledString_getFinalizer() { } KOALA_INTEROP_0(MutableStyledString_getFinalizer, Ark_NativePointer) void impl_MutableStyledString_replaceString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, const KStringPtr& other) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->replaceString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Ark_String*) (&other)); } KOALA_INTEROP_V4(MutableStyledString_replaceString, Ark_NativePointer, KInteropNumber, KInteropNumber, KStringPtr) void impl_MutableStyledString_insertString(Ark_NativePointer thisPtr, KInteropNumber start, const KStringPtr& other) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->insertString(self, (const Ark_Number*) (&start), (const Ark_String*) (&other)); } KOALA_INTEROP_V3(MutableStyledString_insertString, Ark_NativePointer, KInteropNumber, KStringPtr) void impl_MutableStyledString_removeString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length)); } KOALA_INTEROP_V3(MutableStyledString_removeString, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_MutableStyledString_replaceStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SpanStyle spanStyle_value = thisDeserializer.readSpanStyle();; GetAccessors()->getMutableStyledStringAccessor()->replaceStyle(self, (const Ark_SpanStyle*)&spanStyle_value); } KOALA_INTEROP_V3(MutableStyledString_replaceStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_MutableStyledString_setStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SpanStyle spanStyle_value = thisDeserializer.readSpanStyle();; GetAccessors()->getMutableStyledStringAccessor()->setStyle(self, (const Ark_SpanStyle*)&spanStyle_value); } KOALA_INTEROP_V3(MutableStyledString_setStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_MutableStyledString_removeStyle(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, Ark_Int32 styledKey) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeStyle(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), static_cast(styledKey)); } KOALA_INTEROP_V4(MutableStyledString_removeStyle, Ark_NativePointer, KInteropNumber, KInteropNumber, Ark_Int32) void impl_MutableStyledString_removeStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length)); } KOALA_INTEROP_V3(MutableStyledString_removeStyles, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_MutableStyledString_clearStyles(Ark_NativePointer thisPtr) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->clearStyles(self); } KOALA_INTEROP_V1(MutableStyledString_clearStyles, Ark_NativePointer) void impl_MutableStyledString_replaceStyledString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->replaceStyledString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), other_value); } KOALA_INTEROP_V5(MutableStyledString_replaceStyledString, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_MutableStyledString_insertStyledString(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->insertStyledString(self, (const Ark_Number*) (&start), other_value); } KOALA_INTEROP_V4(MutableStyledString_insertStyledString, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_MutableStyledString_appendStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->appendStyledString(self, other_value); @@ -24102,16 +24322,16 @@ Ark_NativePointer impl_ImageAttachment_getFinalizer() { return GetAccessors()->getImageAttachmentAccessor()->getFinalizer(); } KOALA_INTEROP_0(ImageAttachment_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ImageAttachment_getVerticalAlign(Ark_NativePointer thisPtr) { - ImageAttachmentPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getImageAttachmentAccessor()->getVerticalAlign(self); +void impl_ImageAttachment_getVerticalAlign(Ark_NativePointer thisPtr) { + Ark_ImageAttachment self = reinterpret_cast(thisPtr); + GetAccessors()->getImageAttachmentAccessor()->getVerticalAlign(self); } -KOALA_INTEROP_1(ImageAttachment_getVerticalAlign, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_ImageAttachment_getObjectFit(Ark_NativePointer thisPtr) { - ImageAttachmentPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getImageAttachmentAccessor()->getObjectFit(self); +KOALA_INTEROP_V1(ImageAttachment_getVerticalAlign, Ark_NativePointer) +void impl_ImageAttachment_getObjectFit(Ark_NativePointer thisPtr) { + Ark_ImageAttachment self = reinterpret_cast(thisPtr); + GetAccessors()->getImageAttachmentAccessor()->getObjectFit(self); } -KOALA_INTEROP_1(ImageAttachment_getObjectFit, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ImageAttachment_getObjectFit, Ark_NativePointer) Ark_NativePointer impl_CustomSpan_ctor() { return GetAccessors()->getCustomSpanAccessor()->ctor(); } @@ -24120,15 +24340,17 @@ Ark_NativePointer impl_CustomSpan_getFinalizer() { return GetAccessors()->getCustomSpanAccessor()->getFinalizer(); } KOALA_INTEROP_0(CustomSpan_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_CustomSpan_onMeasure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_CustomSpan_onMeasure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_CustomSpan self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomSpanMeasureInfo measureInfo_value = thisDeserializer.readCustomSpanMeasureInfo();; - return GetAccessors()->getCustomSpanAccessor()->onMeasure(self, (const Ark_CustomSpanMeasureInfo*)&measureInfo_value); + Serializer _retSerializer {}; + _retSerializer.writeCustomSpanMetrics(GetAccessors()->getCustomSpanAccessor()->onMeasure(self, (const Ark_CustomSpanMeasureInfo*)&measureInfo_value)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(CustomSpan_onMeasure, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(CustomSpan_onMeasure, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) void impl_CustomSpan_onDraw(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); + Ark_CustomSpan self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext context_value = thisDeserializer.readDrawContext();; Ark_CustomSpanDrawInfo drawInfo_value = thisDeserializer.readCustomSpanDrawInfo();; @@ -24136,7 +24358,7 @@ void impl_CustomSpan_onDraw(Ark_NativePointer thisPtr, uint8_t* thisArray, int32 } KOALA_INTEROP_V3(CustomSpan_onDraw, Ark_NativePointer, uint8_t*, int32_t) void impl_CustomSpan_invalidate(Ark_NativePointer thisPtr) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); + Ark_CustomSpan self = reinterpret_cast(thisPtr); GetAccessors()->getCustomSpanAccessor()->invalidate(self); } KOALA_INTEROP_V1(CustomSpan_invalidate, Ark_NativePointer) @@ -24149,12 +24371,12 @@ Ark_NativePointer impl_LinearIndicatorController_getFinalizer() { } KOALA_INTEROP_0(LinearIndicatorController_getFinalizer, Ark_NativePointer) void impl_LinearIndicatorController_setProgress(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber progress) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->setProgress(self, (const Ark_Number*) (&index), (const Ark_Number*) (&progress)); } KOALA_INTEROP_V3(LinearIndicatorController_setProgress, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_LinearIndicatorController_start(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_LinearIndicatorStartOptions options_value_buf = {}; @@ -24168,34 +24390,34 @@ void impl_LinearIndicatorController_start(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_V3(LinearIndicatorController_start, Ark_NativePointer, uint8_t*, int32_t) void impl_LinearIndicatorController_pause(Ark_NativePointer thisPtr) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->pause(self); } KOALA_INTEROP_V1(LinearIndicatorController_pause, Ark_NativePointer) void impl_LinearIndicatorController_stop(Ark_NativePointer thisPtr) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->stop(self); } KOALA_INTEROP_V1(LinearIndicatorController_stop, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_getInspectorNodes() { - return GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodes(); -} -KOALA_INTEROP_0(GlobalScope_inspector_getInspectorNodes, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_getInspectorNodeById(KInteropNumber id) { - return GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); -} -KOALA_INTEROP_1(GlobalScope_inspector_getInspectorNodeById, Ark_NativePointer, KInteropNumber) -void impl_GlobalScope_inspector_registerVsyncCallback(uint8_t* thisArray, int32_t thisLength) { +void impl_GlobalScope_Profiler_inspector_registerVsyncCallback(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Callback_String_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_String_Void))))};; - GetAccessors()->getGlobalScope_inspectorAccessor()->registerVsyncCallback((const Callback_String_Void*)&callback__value); + GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->registerVsyncCallback((const Callback_String_Void*)&callback__value); +} +KOALA_INTEROP_V2(GlobalScope_Profiler_inspector_registerVsyncCallback, uint8_t*, int32_t) +void impl_GlobalScope_Profiler_inspector_unregisterVsyncCallback() { + GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->unregisterVsyncCallback(); +} +KOALA_INTEROP_V0(GlobalScope_Profiler_inspector_unregisterVsyncCallback) +void impl_GlobalScopeinspector_getInspectorNodes() { + GetAccessors()->getGlobalScopeinspectorAccessor()->getInspectorNodes(); } -KOALA_INTEROP_V2(GlobalScope_inspector_registerVsyncCallback, uint8_t*, int32_t) -void impl_GlobalScope_inspector_unregisterVsyncCallback() { - GetAccessors()->getGlobalScope_inspectorAccessor()->unregisterVsyncCallback(); +KOALA_INTEROP_V0(GlobalScopeinspector_getInspectorNodes) +void impl_GlobalScopeinspector_getInspectorNodeById(KInteropNumber id) { + GetAccessors()->getGlobalScopeinspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); } -KOALA_INTEROP_V0(GlobalScope_inspector_unregisterVsyncCallback) -void impl_GlobalScope_inspector_setAppBgColor(const KStringPtr& value) { - GetAccessors()->getGlobalScope_inspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); +KOALA_INTEROP_V1(GlobalScopeinspector_getInspectorNodeById, KInteropNumber) +void impl_GlobalScopeinspector_setAppBgColor(const KStringPtr& value) { + GetAccessors()->getGlobalScopeinspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); } -KOALA_INTEROP_V1(GlobalScope_inspector_setAppBgColor, KStringPtr) \ No newline at end of file +KOALA_INTEROP_V1(GlobalScopeinspector_setAppBgColor, KStringPtr) \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/callback_managed_caller.cc b/arkoala/framework/native/src/generated/callback_managed_caller.cc index 125de7860..89d714e31 100644 --- a/arkoala/framework/native/src/generated/callback_managed_caller.cc +++ b/arkoala/framework/native/src/generated/callback_managed_caller.cc @@ -2966,12 +2966,12 @@ void callManagedCallback_ResourceStr_Void(Ark_Int32 resourceId, Ark_ResourceStr argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeResource(value_1); @@ -2986,12 +2986,12 @@ void callManagedCallback_ResourceStr_VoidSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeResource(value_1); @@ -3670,14 +3670,14 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_Void(Ark_Int32 resourc argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeCallbackResource(value_0.resource); argsSerializer.writePointer(reinterpret_cast(value_0.call)); argsSerializer.writePointer(reinterpret_cast(value_0.callSync)); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); @@ -3692,14 +3692,14 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_VoidSync(Ark_VMContext argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeCallbackResource(value_0.resource); argsSerializer.writePointer(reinterpret_cast(value_0.call)); argsSerializer.writePointer(reinterpret_cast(value_0.callSync)); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); @@ -3716,12 +3716,12 @@ void callManagedCallback_Union_Number_Array_Number_Void(Ark_Int32 resourceId, Ar argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeInt32(selected_1.length); @@ -3740,12 +3740,12 @@ void callManagedCallback_Union_Number_Array_Number_VoidSync(Ark_VMContext vmCont argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeInt32(selected_1.length); @@ -3766,12 +3766,12 @@ void callManagedCallback_Union_Number_Resource_Void(Ark_Int32 resourceId, Ark_Un argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); @@ -3786,12 +3786,12 @@ void callManagedCallback_Union_Number_Resource_VoidSync(Ark_VMContext vmContext, argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); @@ -3808,12 +3808,12 @@ void callManagedCallback_Union_String_Array_String_Void(Ark_Int32 resourceId, Ar argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -3832,12 +3832,12 @@ void callManagedCallback_Union_String_Array_String_VoidSync(Ark_VMContext vmCont argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -4168,24 +4168,24 @@ void callManagedInterceptionShowCallback(Ark_Int32 resourceId, Ark_Union_NavDest argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; from_type = from.selector; - if (((from_type == 0))) { + if (from_type == 0) { argsSerializer.writeInt8(0); const auto from_0 = from.value0; argsSerializer.writeNavDestinationContext(from_0); } - else if (((from_type == 1))) { + else if (from_type == 1) { argsSerializer.writeInt8(1); const auto from_1 = from.value1; argsSerializer.writeString(from_1); } Ark_Int32 to_type = INTEROP_RUNTIME_UNDEFINED; to_type = to.selector; - if (((to_type == 0))) { + if (to_type == 0) { argsSerializer.writeInt8(0); const auto to_0 = to.value0; argsSerializer.writeNavDestinationContext(to_0); } - else if (((to_type == 1))) { + else if (to_type == 1) { argsSerializer.writeInt8(1); const auto to_1 = to.value1; argsSerializer.writeString(to_1); @@ -4202,24 +4202,24 @@ void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; from_type = from.selector; - if (((from_type == 0))) { + if (from_type == 0) { argsSerializer.writeInt8(0); const auto from_0 = from.value0; argsSerializer.writeNavDestinationContext(from_0); } - else if (((from_type == 1))) { + else if (from_type == 1) { argsSerializer.writeInt8(1); const auto from_1 = from.value1; argsSerializer.writeString(from_1); } Ark_Int32 to_type = INTEROP_RUNTIME_UNDEFINED; to_type = to.selector; - if (((to_type == 0))) { + if (to_type == 0) { argsSerializer.writeInt8(0); const auto to_0 = to.value0; argsSerializer.writeNavDestinationContext(to_0); } - else if (((to_type == 1))) { + else if (to_type == 1) { argsSerializer.writeInt8(1); const auto to_1 = to.value1; argsSerializer.writeString(to_1); @@ -5554,12 +5554,12 @@ void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -5570,12 +5570,12 @@ void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { argsSerializer.writeInt8(0); const auto index_0 = index.value0; argsSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { argsSerializer.writeInt8(1); const auto index_1 = index.value1; argsSerializer.writeInt32(index_1.length); @@ -5594,12 +5594,12 @@ void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmC argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -5610,12 +5610,12 @@ void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmC } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { argsSerializer.writeInt8(0); const auto index_0 = index.value0; argsSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { argsSerializer.writeInt8(1); const auto index_1 = index.value1; argsSerializer.writeInt32(index_1.length); @@ -5680,12 +5680,12 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callback(Ark_Int32 resource const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { argsSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; argsSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { argsSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; argsSerializer.writeWebResourceRequest(event_value_data_1); @@ -5710,12 +5710,12 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callbackSync(Ark_VMContext const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { argsSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; argsSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { argsSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; argsSerializer.writeWebResourceRequest(event_value_data_1); diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index ba44464d1..9a8a48d8e 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -954,7 +954,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Root", id, flags);; } @@ -970,7 +970,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ComponentRoot", id, flags);; } @@ -986,7 +986,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("AbilityComponent", id, flags);; } @@ -1036,7 +1036,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("AlphabetIndexer", id, flags);; } @@ -1349,7 +1349,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Animator", id, flags);; } @@ -1519,7 +1519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Badge", id, flags);; } @@ -1557,7 +1557,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Blank", id, flags);; } @@ -1597,7 +1597,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Button", id, flags);; } @@ -1768,7 +1768,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Calendar", id, flags);; } @@ -1928,7 +1928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CalendarPicker", id, flags);; } @@ -1991,7 +1991,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Canvas", id, flags);; } @@ -2054,7 +2054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Checkbox", id, flags);; } @@ -2164,7 +2164,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CheckboxGroup", id, flags);; } @@ -2264,7 +2264,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Circle", id, flags);; } @@ -2292,7 +2292,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Column", id, flags);; } @@ -2362,7 +2362,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ColumnSplit", id, flags);; } @@ -2410,7 +2410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CommonMethod", id, flags);; } @@ -4406,7 +4406,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CommonShapeMethod", id, flags);; } @@ -4532,7 +4532,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Common", id, flags);; } @@ -4558,7 +4558,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ScrollableCommonMethod", id, flags);; } @@ -4750,7 +4750,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Component3D", id, flags);; } @@ -4853,7 +4853,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ContainerSpan", id, flags);; } @@ -4891,7 +4891,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Counter", id, flags);; } @@ -4959,7 +4959,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("DataPanel", id, flags);; } @@ -5049,7 +5049,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("DatePicker", id, flags);; } @@ -5149,7 +5149,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Divider", id, flags);; } @@ -5217,7 +5217,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("EffectComponent", id, flags);; } @@ -5243,7 +5243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Ellipse", id, flags);; } @@ -5271,7 +5271,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("EmbeddedComponent", id, flags);; } @@ -5324,7 +5324,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Flex", id, flags);; } @@ -5364,7 +5364,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FlowItem", id, flags);; } @@ -5390,7 +5390,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FolderStack", id, flags);; } @@ -5470,7 +5470,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FormComponent", id, flags);; } @@ -5600,7 +5600,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FormLink", id, flags);; } @@ -5628,7 +5628,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Gauge", id, flags);; } @@ -5758,7 +5758,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Grid", id, flags);; } @@ -6137,7 +6137,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridItem", id, flags);; } @@ -6257,7 +6257,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridCol", id, flags);; } @@ -6317,7 +6317,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridContainer", id, flags);; } @@ -6345,7 +6345,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridRow", id, flags);; } @@ -6395,7 +6395,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Hyperlink", id, flags);; } @@ -6438,7 +6438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Image", id, flags);; } @@ -6741,7 +6741,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ImageAnimator", id, flags);; } @@ -6899,7 +6899,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ImageSpan", id, flags);; } @@ -6989,7 +6989,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Line", id, flags);; } @@ -7039,7 +7039,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("List", id, flags);; } @@ -7438,7 +7438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ListItem", id, flags);; } @@ -7548,7 +7548,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ListItemGroup", id, flags);; } @@ -7598,7 +7598,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LoadingProgress", id, flags);; } @@ -7656,7 +7656,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LocationButton", id, flags);; } @@ -7704,7 +7704,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Marquee", id, flags);; } @@ -7824,7 +7824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MediaCachedImage", id, flags);; } @@ -7852,7 +7852,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Menu", id, flags);; } @@ -7950,7 +7950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MenuItem", id, flags);; } @@ -8060,7 +8060,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MenuItemGroup", id, flags);; } @@ -8088,7 +8088,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NavDestination", id, flags);; } @@ -8331,7 +8331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NavRouter", id, flags);; } @@ -8389,7 +8389,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Navigator", id, flags);; } @@ -8467,7 +8467,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NodeContainer", id, flags);; } @@ -8495,7 +8495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Panel", id, flags);; } @@ -8655,7 +8655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PasteButton", id, flags);; } @@ -8703,7 +8703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Path", id, flags);; } @@ -8743,7 +8743,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PatternLock", id, flags);; } @@ -8893,7 +8893,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PluginComponent", id, flags);; } @@ -8943,7 +8943,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Polygon", id, flags);; } @@ -8983,7 +8983,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Polyline", id, flags);; } @@ -9023,7 +9023,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Progress", id, flags);; } @@ -9103,7 +9103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("QRCode", id, flags);; } @@ -9163,7 +9163,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Radio", id, flags);; } @@ -9243,7 +9243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Rating", id, flags);; } @@ -9333,7 +9333,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Rect", id, flags);; } @@ -9393,7 +9393,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Refresh", id, flags);; } @@ -9493,7 +9493,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RelativeContainer", id, flags);; } @@ -9551,7 +9551,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RichEditor", id, flags);; } @@ -9896,7 +9896,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RichText", id, flags);; } @@ -9946,7 +9946,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RootScene", id, flags);; } @@ -9974,7 +9974,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Row", id, flags);; } @@ -10044,7 +10044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RowSplit", id, flags);; } @@ -10082,7 +10082,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SaveButton", id, flags);; } @@ -10130,7 +10130,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Screen", id, flags);; } @@ -10158,7 +10158,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Scroll", id, flags);; } @@ -10381,7 +10381,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ScrollBar", id, flags);; } @@ -10421,7 +10421,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Search", id, flags);; } @@ -10880,7 +10880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SecurityComponentMethod", id, flags);; } @@ -11126,7 +11126,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Select", id, flags);; } @@ -11389,7 +11389,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Shape", id, flags);; } @@ -11563,7 +11563,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Slider", id, flags);; } @@ -11816,7 +11816,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("BaseSpan", id, flags);; } @@ -11852,7 +11852,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Span", id, flags);; } @@ -11992,7 +11992,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Stack", id, flags);; } @@ -12042,7 +12042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Stepper", id, flags);; } @@ -12132,7 +12132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("StepperItem", id, flags);; } @@ -12190,7 +12190,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Swiper", id, flags);; } @@ -12512,7 +12512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("IndicatorComponent", id, flags);; } @@ -12602,7 +12602,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SymbolGlyph", id, flags);; } @@ -12708,7 +12708,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SymbolSpan", id, flags);; } @@ -12788,7 +12788,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Tabs", id, flags);; } @@ -13094,7 +13094,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TabContent", id, flags);; } @@ -13162,7 +13162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Text", id, flags);; } @@ -13643,7 +13643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextArea", id, flags);; } @@ -14222,7 +14222,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextClock", id, flags);; } @@ -14362,7 +14362,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextInput", id, flags);; } @@ -15061,7 +15061,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextPicker", id, flags);; } @@ -15221,7 +15221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextTimer", id, flags);; } @@ -15341,7 +15341,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TimePicker", id, flags);; } @@ -15461,7 +15461,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Toggle", id, flags);; } @@ -15551,7 +15551,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Video", id, flags);; } @@ -15751,7 +15751,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Web", id, flags);; } @@ -17003,7 +17003,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("WindowScene", id, flags);; } @@ -17046,7 +17046,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("XComponent", id, flags);; } @@ -17136,7 +17136,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SideBarContainer", id, flags);; } @@ -17316,7 +17316,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RemoteWindow", id, flags);; } @@ -17344,7 +17344,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("WaterFlow", id, flags);; } @@ -17527,7 +17527,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("UIExtensionComponent", id, flags);; } @@ -17620,7 +17620,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LinearIndicator", id, flags);; } @@ -20137,7 +20137,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &modifiersImpl; } namespace AnimationExtenderAccessor { - void DestroyPeerImpl(AnimationExtenderPeer* peer) + void DestroyPeerImpl(Ark_AnimationExtender peer) { if (!needGroupedLog(1)) return; @@ -20148,12 +20148,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AnimationExtender CtorImpl() { if (!needGroupedLog(1)) - return (AnimationExtenderPeer*) 100; + return (Ark_AnimationExtender) 100; string out("new AnimationExtender("); out.append(") \n"); - out.append("[return (AnimationExtenderPeer*) 100] \n"); + out.append("[return (Ark_AnimationExtender) 100] \n"); appendGroupedLog(1, out); - return (AnimationExtenderPeer*) 100; + return (Ark_AnimationExtender) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20229,7 +20229,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { - void DestroyPeerImpl(UnifiedDataPeer* peer) + void DestroyPeerImpl(Ark_UnifiedData peer) { if (!needGroupedLog(1)) return; @@ -20240,12 +20240,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UnifiedData CtorImpl() { if (!needGroupedLog(1)) - return (UnifiedDataPeer*) 100; + return (Ark_UnifiedData) 100; string out("new UnifiedData("); out.append(") \n"); - out.append("[return (UnifiedDataPeer*) 100] \n"); + out.append("[return (Ark_UnifiedData) 100] \n"); appendGroupedLog(1, out); - return (UnifiedDataPeer*) 100; + return (Ark_UnifiedData) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20257,7 +20257,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean HasTypeImpl(UnifiedDataPeer* peer, + Ark_Boolean HasTypeImpl(Ark_UnifiedData peer, const Ark_String* UnifiedData_type) { if (!needGroupedLog(1)) @@ -20269,19 +20269,70 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetTypesImpl(UnifiedDataPeer* peer) + Array_String GetTypesImpl(Ark_UnifiedData peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTypes("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // UnifiedDataAccessor namespace LazyForEachOpsAccessor { } // LazyForEachOpsAccessor + namespace SystemOpsAccessor { + void DestroyPeerImpl(Ark_SystemOps peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_SystemOps CtorImpl() + { + if (!needGroupedLog(1)) + return (Ark_SystemOps) 100; + string out("new SystemOps("); + out.append(") \n"); + out.append("[return (Ark_SystemOps) 100] \n"); + appendGroupedLog(1, out); + return (Ark_SystemOps) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + Ark_NativePointer StartFrameImpl() + { + if (!needGroupedLog(1)) + return nullptr; + string out("StartFrame("); + out.append(") \n"); + out.append("[return nullptr] \n"); + appendGroupedLog(1, out); + return nullptr; + } + void EndFrameImpl(Ark_NativePointer root) + { + if (!needGroupedLog(1)) + return; + string out("EndFrame("); + WriteToString(&out, root); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // SystemOpsAccessor namespace DrawingCanvasAccessor { - void DestroyPeerImpl(DrawingCanvasPeer* peer) + void DestroyPeerImpl(Ark_DrawingCanvas peer) { if (!needGroupedLog(1)) return; @@ -20292,13 +20343,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawingCanvas CtorImpl(Ark_PixelMap pixelmap) { if (!needGroupedLog(1)) - return (DrawingCanvasPeer*) 100; + return (Ark_DrawingCanvas) 100; string out("new DrawingCanvas("); WriteToString(&out, pixelmap); out.append(") \n"); - out.append("[return (DrawingCanvasPeer*) 100] \n"); + out.append("[return (Ark_DrawingCanvas) 100] \n"); appendGroupedLog(1, out); - return (DrawingCanvasPeer*) 100; + return (Ark_DrawingCanvas) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20310,7 +20361,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawRectImpl(DrawingCanvasPeer* peer, + void DrawRectImpl(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -20331,7 +20382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingCanvasAccessor namespace LengthMetricsAccessor { - void DestroyPeerImpl(LengthMetricsPeer* peer) + void DestroyPeerImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return; @@ -20342,12 +20393,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LengthMetrics CtorImpl() { if (!needGroupedLog(1)) - return (LengthMetricsPeer*) 100; + return (Ark_LengthMetrics) 100; string out("new LengthMetrics("); out.append(") \n"); - out.append("[return (LengthMetricsPeer*) 100] \n"); + out.append("[return (Ark_LengthMetrics) 100] \n"); appendGroupedLog(1, out); - return (LengthMetricsPeer*) 100; + return (Ark_LengthMetrics) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20381,7 +20432,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_LengthMetrics) 300; } - Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) + Ark_LengthUnit GetUnitImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return {}; @@ -20391,7 +20442,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetUnitImpl(LengthMetricsPeer* peer, + void SetUnitImpl(Ark_LengthMetrics peer, Ark_LengthUnit unit) { if (!needGroupedLog(1)) @@ -20401,7 +20452,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetValueImpl(LengthMetricsPeer* peer) + Ark_Int32 GetValueImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return 0; @@ -20411,7 +20462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetValueImpl(LengthMetricsPeer* peer, + void SetValueImpl(Ark_LengthMetrics peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -20423,7 +20474,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LengthMetricsAccessor namespace WebviewControllerAccessor { - void DestroyPeerImpl(WebviewControllerPeer* peer) + void DestroyPeerImpl(Ark_WebviewController peer) { if (!needGroupedLog(1)) return; @@ -20434,12 +20485,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebviewController CtorImpl() { if (!needGroupedLog(1)) - return (WebviewControllerPeer*) 100; + return (Ark_WebviewController) 100; string out("new WebviewController("); out.append(") \n"); - out.append("[return (WebviewControllerPeer*) 100] \n"); + out.append("[return (Ark_WebviewController) 100] \n"); appendGroupedLog(1, out); - return (WebviewControllerPeer*) 100; + return (Ark_WebviewController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20459,7 +20510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadUrlImpl(WebviewControllerPeer* peer, + void LoadUrlImpl(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers) { @@ -20474,7 +20525,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebviewControllerAccessor namespace GlobalScope_ohos_arkui_componentSnapshotAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_componentSnapshotPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_componentSnapshot peer) { if (!needGroupedLog(1)) return; @@ -20485,12 +20536,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GlobalScope_ohos_arkui_componentSnapshot CtorImpl() { if (!needGroupedLog(1)) - return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100; string out("new GlobalScope_ohos_arkui_componentSnapshot("); out.append(") \n"); - out.append("[return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100] \n"); + out.append("[return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100] \n"); appendGroupedLog(1, out); - return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20519,7 +20570,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_componentSnapshotAccessor namespace GlobalScope_ohos_arkui_performanceMonitorAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_performanceMonitorPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_performanceMonitor peer) { if (!needGroupedLog(1)) return; @@ -20530,12 +20581,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GlobalScope_ohos_arkui_performanceMonitor CtorImpl() { if (!needGroupedLog(1)) - return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100; string out("new GlobalScope_ohos_arkui_performanceMonitor("); out.append(") \n"); - out.append("[return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100] \n"); + out.append("[return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100] \n"); appendGroupedLog(1, out); - return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20588,7 +20639,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_performanceMonitorAccessor namespace FrameNodeAccessor { - void DestroyPeerImpl(FrameNodePeer* peer) + void DestroyPeerImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20599,13 +20650,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FrameNode CtorImpl(const Ark_UIContext* uiContext) { if (!needGroupedLog(1)) - return (FrameNodePeer*) 100; + return (Ark_FrameNode) 100; string out("new FrameNode("); WriteToString(&out, uiContext); out.append(") \n"); - out.append("[return (FrameNodePeer*) 100] \n"); + out.append("[return (Ark_FrameNode) 100] \n"); appendGroupedLog(1, out); - return (FrameNodePeer*) 100; + return (Ark_FrameNode) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20617,7 +20668,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsModifiableImpl(FrameNodePeer* peer) + Ark_Boolean IsModifiableImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20627,7 +20678,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void AppendChildImpl(FrameNodePeer* peer, + void AppendChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { if (!needGroupedLog(1)) @@ -20637,7 +20688,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertChildAfterImpl(FrameNodePeer* peer, + void InsertChildAfterImpl(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling) { @@ -20650,7 +20701,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveChildImpl(FrameNodePeer* peer, + void RemoveChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { if (!needGroupedLog(1)) @@ -20660,7 +20711,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearChildrenImpl(FrameNodePeer* peer) + void ClearChildrenImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20668,59 +20719,59 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + Ark_FrameNode GetChildImpl(Ark_FrameNode peer, const Ark_Number* index) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getChild("); WriteToString(&out, index); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getFirstChild("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getNextSibling("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getPreviousSibling("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getParent("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_Int32 GetChildrenCountImpl(FrameNodePeer* peer) + Ark_Int32 GetChildrenCountImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20730,7 +20781,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void DisposeImpl(FrameNodePeer* peer) + void DisposeImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20738,7 +20789,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOpacityImpl(FrameNodePeer* peer) + Ark_Int32 GetOpacityImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20748,7 +20799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) + Ark_Position GetPositionToWindowWithTransformImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return {}; @@ -20760,7 +20811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrameNodeAccessor namespace PixelMapAccessor { - void DestroyPeerImpl(PixelMapPeer* peer) + void DestroyPeerImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return; @@ -20771,12 +20822,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PixelMap CtorImpl() { if (!needGroupedLog(1)) - return (PixelMapPeer*) 100; + return (Ark_PixelMap) 100; string out("new PixelMap("); out.append(") \n"); - out.append("[return (PixelMapPeer*) 100] \n"); + out.append("[return (Ark_PixelMap) 100] \n"); appendGroupedLog(1, out); - return (PixelMapPeer*) 100; + return (Ark_PixelMap) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20788,7 +20839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReadPixelsToBufferSyncImpl(PixelMapPeer* peer, + void ReadPixelsToBufferSyncImpl(Ark_PixelMap peer, const Ark_Buffer* dst) { if (!needGroupedLog(1)) @@ -20798,7 +20849,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void WriteBufferToPixelsImpl(PixelMapPeer* peer, + void WriteBufferToPixelsImpl(Ark_PixelMap peer, const Ark_Buffer* src) { if (!needGroupedLog(1)) @@ -20808,7 +20859,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetIsEditableImpl(PixelMapPeer* peer) + Ark_Boolean GetIsEditableImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return 0; @@ -20818,17 +20869,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsEditableImpl(PixelMapPeer* peer, - Ark_Int32 isEditable) - { - if (!needGroupedLog(1)) - return; - string out("setIsEditable("); - WriteToString(&out, isEditable); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Int32 GetIsStrideAlignmentImpl(PixelMapPeer* peer) + Ark_Boolean GetIsStrideAlignmentImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return 0; @@ -20838,19 +20879,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsStrideAlignmentImpl(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment) - { - if (!needGroupedLog(1)) - return; - string out("setIsStrideAlignment("); - WriteToString(&out, isStrideAlignment); - out.append(") \n"); - appendGroupedLog(1, out); - } } // PixelMapAccessor namespace NavExtenderAccessor { - void DestroyPeerImpl(NavExtenderPeer* peer) + void DestroyPeerImpl(Ark_NavExtender peer) { if (!needGroupedLog(1)) return; @@ -20861,12 +20892,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavExtender CtorImpl() { if (!needGroupedLog(1)) - return (NavExtenderPeer*) 100; + return (Ark_NavExtender) 100; string out("new NavExtender("); out.append(") \n"); - out.append("[return (NavExtenderPeer*) 100] \n"); + out.append("[return (Ark_NavExtender) 100] \n"); appendGroupedLog(1, out); - return (NavExtenderPeer*) 100; + return (Ark_NavExtender) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20892,7 +20923,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavExtenderAccessor namespace EventEmulatorAccessor { - void DestroyPeerImpl(EventEmulatorPeer* peer) + void DestroyPeerImpl(Ark_EventEmulator peer) { if (!needGroupedLog(1)) return; @@ -20903,12 +20934,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventEmulator CtorImpl() { if (!needGroupedLog(1)) - return (EventEmulatorPeer*) 100; + return (Ark_EventEmulator) 100; string out("new EventEmulator("); out.append(") \n"); - out.append("[return (EventEmulatorPeer*) 100] \n"); + out.append("[return (Ark_EventEmulator) 100] \n"); appendGroupedLog(1, out); - return (EventEmulatorPeer*) 100; + return (Ark_EventEmulator) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20946,7 +20977,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventEmulatorAccessor namespace ActionSheetAccessor { - void DestroyPeerImpl(ActionSheetPeer* peer) + void DestroyPeerImpl(Ark_ActionSheet peer) { if (!needGroupedLog(1)) return; @@ -20957,12 +20988,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ActionSheet CtorImpl() { if (!needGroupedLog(1)) - return (ActionSheetPeer*) 100; + return (Ark_ActionSheet) 100; string out("new ActionSheet("); out.append(") \n"); - out.append("[return (ActionSheetPeer*) 100] \n"); + out.append("[return (Ark_ActionSheet) 100] \n"); appendGroupedLog(1, out); - return (ActionSheetPeer*) 100; + return (Ark_ActionSheet) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20985,7 +21016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ActionSheetAccessor namespace AlertDialogAccessor { - void DestroyPeerImpl(AlertDialogPeer* peer) + void DestroyPeerImpl(Ark_AlertDialog peer) { if (!needGroupedLog(1)) return; @@ -20996,12 +21027,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AlertDialog CtorImpl() { if (!needGroupedLog(1)) - return (AlertDialogPeer*) 100; + return (Ark_AlertDialog) 100; string out("new AlertDialog("); out.append(") \n"); - out.append("[return (AlertDialogPeer*) 100] \n"); + out.append("[return (Ark_AlertDialog) 100] \n"); appendGroupedLog(1, out); - return (AlertDialogPeer*) 100; + return (Ark_AlertDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21024,7 +21055,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AlertDialogAccessor namespace SpringPropAccessor { - void DestroyPeerImpl(SpringPropPeer* peer) + void DestroyPeerImpl(Ark_SpringProp peer) { if (!needGroupedLog(1)) return; @@ -21037,7 +21068,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* damping) { if (!needGroupedLog(1)) - return (SpringPropPeer*) 100; + return (Ark_SpringProp) 100; string out("new SpringProp("); WriteToString(&out, mass); out.append(", "); @@ -21045,9 +21076,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, damping); out.append(") \n"); - out.append("[return (SpringPropPeer*) 100] \n"); + out.append("[return (Ark_SpringProp) 100] \n"); appendGroupedLog(1, out); - return (SpringPropPeer*) 100; + return (Ark_SpringProp) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21061,7 +21092,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringPropAccessor namespace SpringMotionAccessor { - void DestroyPeerImpl(SpringMotionPeer* peer) + void DestroyPeerImpl(Ark_SpringMotion peer) { if (!needGroupedLog(1)) return; @@ -21075,7 +21106,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SpringProp prop) { if (!needGroupedLog(1)) - return (SpringMotionPeer*) 100; + return (Ark_SpringMotion) 100; string out("new SpringMotion("); WriteToString(&out, start); out.append(", "); @@ -21085,9 +21116,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, prop); out.append(") \n"); - out.append("[return (SpringMotionPeer*) 100] \n"); + out.append("[return (Ark_SpringMotion) 100] \n"); appendGroupedLog(1, out); - return (SpringMotionPeer*) 100; + return (Ark_SpringMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21101,7 +21132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringMotionAccessor namespace FrictionMotionAccessor { - void DestroyPeerImpl(FrictionMotionPeer* peer) + void DestroyPeerImpl(Ark_FrictionMotion peer) { if (!needGroupedLog(1)) return; @@ -21114,7 +21145,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* velocity) { if (!needGroupedLog(1)) - return (FrictionMotionPeer*) 100; + return (Ark_FrictionMotion) 100; string out("new FrictionMotion("); WriteToString(&out, friction); out.append(", "); @@ -21122,9 +21153,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, velocity); out.append(") \n"); - out.append("[return (FrictionMotionPeer*) 100] \n"); + out.append("[return (Ark_FrictionMotion) 100] \n"); appendGroupedLog(1, out); - return (FrictionMotionPeer*) 100; + return (Ark_FrictionMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21138,7 +21169,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrictionMotionAccessor namespace ScrollMotionAccessor { - void DestroyPeerImpl(ScrollMotionPeer* peer) + void DestroyPeerImpl(Ark_ScrollMotion peer) { if (!needGroupedLog(1)) return; @@ -21153,7 +21184,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SpringProp prop) { if (!needGroupedLog(1)) - return (ScrollMotionPeer*) 100; + return (Ark_ScrollMotion) 100; string out("new ScrollMotion("); WriteToString(&out, position); out.append(", "); @@ -21165,9 +21196,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, prop); out.append(") \n"); - out.append("[return (ScrollMotionPeer*) 100] \n"); + out.append("[return (Ark_ScrollMotion) 100] \n"); appendGroupedLog(1, out); - return (ScrollMotionPeer*) 100; + return (Ark_ScrollMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21181,7 +21212,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollMotionAccessor namespace CalendarControllerAccessor { - void DestroyPeerImpl(CalendarControllerPeer* peer) + void DestroyPeerImpl(Ark_CalendarController peer) { if (!needGroupedLog(1)) return; @@ -21192,12 +21223,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CalendarController CtorImpl() { if (!needGroupedLog(1)) - return (CalendarControllerPeer*) 100; + return (Ark_CalendarController) 100; string out("new CalendarController("); out.append(") \n"); - out.append("[return (CalendarControllerPeer*) 100] \n"); + out.append("[return (Ark_CalendarController) 100] \n"); appendGroupedLog(1, out); - return (CalendarControllerPeer*) 100; + return (Ark_CalendarController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21209,7 +21240,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void BackToTodayImpl(CalendarControllerPeer* peer) + void BackToTodayImpl(Ark_CalendarController peer) { if (!needGroupedLog(1)) return; @@ -21217,7 +21248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GoToImpl(CalendarControllerPeer* peer, + void GoToImpl(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value) { if (!needGroupedLog(1)) @@ -21229,7 +21260,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarControllerAccessor namespace CalendarPickerDialogAccessor { - void DestroyPeerImpl(CalendarPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_CalendarPickerDialog peer) { if (!needGroupedLog(1)) return; @@ -21240,12 +21271,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CalendarPickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (CalendarPickerDialogPeer*) 100; + return (Ark_CalendarPickerDialog) 100; string out("new CalendarPickerDialog("); out.append(") \n"); - out.append("[return (CalendarPickerDialogPeer*) 100] \n"); + out.append("[return (Ark_CalendarPickerDialog) 100] \n"); appendGroupedLog(1, out); - return (CalendarPickerDialogPeer*) 100; + return (Ark_CalendarPickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21268,7 +21299,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarPickerDialogAccessor namespace CanvasGradientAccessor { - void DestroyPeerImpl(CanvasGradientPeer* peer) + void DestroyPeerImpl(Ark_CanvasGradient peer) { if (!needGroupedLog(1)) return; @@ -21279,12 +21310,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasGradient CtorImpl() { if (!needGroupedLog(1)) - return (CanvasGradientPeer*) 100; + return (Ark_CanvasGradient) 100; string out("new CanvasGradient("); out.append(") \n"); - out.append("[return (CanvasGradientPeer*) 100] \n"); + out.append("[return (Ark_CanvasGradient) 100] \n"); appendGroupedLog(1, out); - return (CanvasGradientPeer*) 100; + return (Ark_CanvasGradient) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21296,7 +21327,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void AddColorStopImpl(CanvasGradientPeer* peer, + void AddColorStopImpl(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color) { @@ -21311,7 +21342,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasGradientAccessor namespace CanvasPathAccessor { - void DestroyPeerImpl(CanvasPathPeer* peer) + void DestroyPeerImpl(Ark_CanvasPath peer) { if (!needGroupedLog(1)) return; @@ -21322,12 +21353,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasPath CtorImpl() { if (!needGroupedLog(1)) - return (CanvasPathPeer*) 100; + return (Ark_CanvasPath) 100; string out("new CanvasPath("); out.append(") \n"); - out.append("[return (CanvasPathPeer*) 100] \n"); + out.append("[return (Ark_CanvasPath) 100] \n"); appendGroupedLog(1, out); - return (CanvasPathPeer*) 100; + return (Ark_CanvasPath) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21339,7 +21370,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ArcImpl(CanvasPathPeer* peer, + void ArcImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, @@ -21364,7 +21395,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ArcToImpl(CanvasPathPeer* peer, + void ArcToImpl(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, @@ -21386,7 +21417,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void BezierCurveToImpl(CanvasPathPeer* peer, + void BezierCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, @@ -21411,7 +21442,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClosePathImpl(CanvasPathPeer* peer) + void ClosePathImpl(Ark_CanvasPath peer) { if (!needGroupedLog(1)) return; @@ -21419,7 +21450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void EllipseImpl(CanvasPathPeer* peer, + void EllipseImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -21450,7 +21481,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LineToImpl(CanvasPathPeer* peer, + void LineToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { @@ -21463,7 +21494,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void MoveToImpl(CanvasPathPeer* peer, + void MoveToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { @@ -21476,7 +21507,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void QuadraticCurveToImpl(CanvasPathPeer* peer, + void QuadraticCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, @@ -21495,7 +21526,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RectImpl(CanvasPathPeer* peer, + void RectImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -21516,7 +21547,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPathAccessor namespace Path2DAccessor { - void DestroyPeerImpl(Path2DPeer* peer) + void DestroyPeerImpl(Ark_Path2D peer) { if (!needGroupedLog(1)) return; @@ -21527,12 +21558,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Path2D CtorImpl() { if (!needGroupedLog(1)) - return (Path2DPeer*) 100; + return (Ark_Path2D) 100; string out("new Path2D("); out.append(") \n"); - out.append("[return (Path2DPeer*) 100] \n"); + out.append("[return (Ark_Path2D) 100] \n"); appendGroupedLog(1, out); - return (Path2DPeer*) 100; + return (Ark_Path2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21544,7 +21575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void AddPathImpl(Path2DPeer* peer, + void AddPathImpl(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform) { @@ -21559,7 +21590,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // Path2DAccessor namespace CanvasPatternAccessor { - void DestroyPeerImpl(CanvasPatternPeer* peer) + void DestroyPeerImpl(Ark_CanvasPattern peer) { if (!needGroupedLog(1)) return; @@ -21570,12 +21601,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasPattern CtorImpl() { if (!needGroupedLog(1)) - return (CanvasPatternPeer*) 100; + return (Ark_CanvasPattern) 100; string out("new CanvasPattern("); out.append(") \n"); - out.append("[return (CanvasPatternPeer*) 100] \n"); + out.append("[return (Ark_CanvasPattern) 100] \n"); appendGroupedLog(1, out); - return (CanvasPatternPeer*) 100; + return (Ark_CanvasPattern) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21587,7 +21618,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetTransformImpl(CanvasPatternPeer* peer, + void SetTransformImpl(Ark_CanvasPattern peer, const Opt_Matrix2D* transform) { if (!needGroupedLog(1)) @@ -21599,7 +21630,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPatternAccessor namespace ImageBitmapAccessor { - void DestroyPeerImpl(ImageBitmapPeer* peer) + void DestroyPeerImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return; @@ -21610,13 +21641,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageBitmap CtorImpl(const Ark_String* src) { if (!needGroupedLog(1)) - return (ImageBitmapPeer*) 100; + return (Ark_ImageBitmap) 100; string out("new ImageBitmap("); WriteToString(&out, src); out.append(") \n"); - out.append("[return (ImageBitmapPeer*) 100] \n"); + out.append("[return (Ark_ImageBitmap) 100] \n"); appendGroupedLog(1, out); - return (ImageBitmapPeer*) 100; + return (Ark_ImageBitmap) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21628,7 +21659,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseImpl(ImageBitmapPeer* peer) + void CloseImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return; @@ -21636,7 +21667,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetHeightImpl(ImageBitmapPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return 0; @@ -21646,7 +21677,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(ImageBitmapPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return 0; @@ -21658,7 +21689,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageBitmapAccessor namespace ImageDataAccessor { - void DestroyPeerImpl(ImageDataPeer* peer) + void DestroyPeerImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return; @@ -21671,7 +21702,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Buffer* data) { if (!needGroupedLog(1)) - return (ImageDataPeer*) 100; + return (Ark_ImageData) 100; string out("new ImageData("); WriteToString(&out, width); out.append(", "); @@ -21679,9 +21710,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, data); out.append(") \n"); - out.append("[return (ImageDataPeer*) 100] \n"); + out.append("[return (Ark_ImageData) 100] \n"); appendGroupedLog(1, out); - return (ImageDataPeer*) 100; + return (Ark_ImageData) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21693,7 +21724,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetHeightImpl(ImageDataPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return 0; @@ -21703,7 +21734,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return 0; @@ -21715,7 +21746,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageDataAccessor namespace RenderingContextSettingsAccessor { - void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + void DestroyPeerImpl(Ark_RenderingContextSettings peer) { if (!needGroupedLog(1)) return; @@ -21726,13 +21757,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RenderingContextSettings CtorImpl(const Opt_Boolean* antialias) { if (!needGroupedLog(1)) - return (RenderingContextSettingsPeer*) 100; + return (Ark_RenderingContextSettings) 100; string out("new RenderingContextSettings("); WriteToString(&out, antialias); out.append(") \n"); - out.append("[return (RenderingContextSettingsPeer*) 100] \n"); + out.append("[return (Ark_RenderingContextSettings) 100] \n"); appendGroupedLog(1, out); - return (RenderingContextSettingsPeer*) 100; + return (Ark_RenderingContextSettings) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21744,7 +21775,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + Ark_Boolean GetAntialiasImpl(Ark_RenderingContextSettings peer) { if (!needGroupedLog(1)) return 0; @@ -21754,7 +21785,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + void SetAntialiasImpl(Ark_RenderingContextSettings peer, Ark_Boolean antialias) { if (!needGroupedLog(1)) @@ -21766,7 +21797,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { - void DestroyPeerImpl(CanvasRendererPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21777,12 +21808,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasRenderer CtorImpl() { if (!needGroupedLog(1)) - return (CanvasRendererPeer*) 100; + return (Ark_CanvasRenderer) 100; string out("new CanvasRenderer("); out.append(") \n"); - out.append("[return (CanvasRendererPeer*) 100] \n"); + out.append("[return (Ark_CanvasRenderer) 100] \n"); appendGroupedLog(1, out); - return (CanvasRendererPeer*) 100; + return (Ark_CanvasRenderer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21794,7 +21825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawImage0Impl(CanvasRendererPeer* peer, + void DrawImage0Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy) @@ -21810,7 +21841,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawImage1Impl(CanvasRendererPeer* peer, + void DrawImage1Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, @@ -21832,7 +21863,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawImage2Impl(CanvasRendererPeer* peer, + void DrawImage2Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -21866,7 +21897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void BeginPathImpl(CanvasRendererPeer* peer) + void BeginPathImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21874,7 +21905,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Clip0Impl(CanvasRendererPeer* peer, + void Clip0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21884,7 +21915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Clip1Impl(CanvasRendererPeer* peer, + void Clip1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { @@ -21897,7 +21928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Fill0Impl(CanvasRendererPeer* peer, + void Fill0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21907,7 +21938,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Fill1Impl(CanvasRendererPeer* peer, + void Fill1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { @@ -21920,7 +21951,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Stroke0Impl(CanvasRendererPeer* peer) + void Stroke0Impl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21928,7 +21959,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Stroke1Impl(CanvasRendererPeer* peer, + void Stroke1Impl(Ark_CanvasRenderer peer, Ark_Path2D path) { if (!needGroupedLog(1)) @@ -21938,14 +21969,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateLinearGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, const Ark_Number* y1) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createLinearGradient("); WriteToString(&out, x0); out.append(", "); @@ -21955,26 +21986,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y1); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Opt_CanvasPattern CreatePatternImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createPattern("); WriteToString(&out, image); out.append(", "); WriteToString(&out, repetition); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_CanvasGradient CreateRadialGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateRadialGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, @@ -21983,7 +22014,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* r1) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createRadialGradient("); WriteToString(&out, x0); out.append(", "); @@ -21997,17 +22028,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, r1); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateConicGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createConicGradient("); WriteToString(&out, startAngle); out.append(", "); @@ -22015,45 +22046,45 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData0Impl(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("createImageData("); WriteToString(&out, sw); out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("createImageData("); WriteToString(&out, imagedata); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + Ark_ImageData GetImageDataImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("getImageData("); WriteToString(&out, sx); out.append(", "); @@ -22063,18 +22094,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + Ark_PixelMap GetPixelMapImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_PixelMap) 300; string out("getPixelMap("); WriteToString(&out, sx); out.append(", "); @@ -22084,11 +22115,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_PixelMap) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_PixelMap) 300; } - void PutImageData0Impl(CanvasRendererPeer* peer, + void PutImageData0Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) @@ -22104,7 +22135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PutImageData1Impl(CanvasRendererPeer* peer, + void PutImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -22132,15 +22163,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetLineDashImpl(CanvasRendererPeer* peer) + Array_Number GetLineDashImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getLineDash("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetLineDashImpl(CanvasRendererPeer* peer, + void SetLineDashImpl(Ark_CanvasRenderer peer, const Array_Number* segments) { if (!needGroupedLog(1)) @@ -22150,7 +22183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearRectImpl(CanvasRendererPeer* peer, + void ClearRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22169,7 +22202,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FillRectImpl(CanvasRendererPeer* peer, + void FillRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22188,7 +22221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StrokeRectImpl(CanvasRendererPeer* peer, + void StrokeRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22207,7 +22240,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RestoreImpl(CanvasRendererPeer* peer) + void RestoreImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22215,7 +22248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveImpl(CanvasRendererPeer* peer) + void SaveImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22223,7 +22256,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FillTextImpl(CanvasRendererPeer* peer, + void FillTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, @@ -22242,8 +22275,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer MeasureTextImpl(CanvasRendererPeer* peer, - const Ark_String* text) + Ark_TextMetrics MeasureTextImpl(Ark_CanvasRenderer peer, + const Ark_String* text) { if (!needGroupedLog(1)) return {}; @@ -22254,7 +22287,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void StrokeTextImpl(CanvasRendererPeer* peer, + void StrokeTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, @@ -22273,17 +22306,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("getTransform("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - void ResetTransformImpl(CanvasRendererPeer* peer) + void ResetTransformImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22291,7 +22324,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RotateImpl(CanvasRendererPeer* peer, + void RotateImpl(Ark_CanvasRenderer peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -22301,7 +22334,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScaleImpl(CanvasRendererPeer* peer, + void ScaleImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { @@ -22314,7 +22347,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTransform0Impl(CanvasRendererPeer* peer, + void SetTransform0Impl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -22339,7 +22372,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTransform1Impl(CanvasRendererPeer* peer, + void SetTransform1Impl(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform) { if (!needGroupedLog(1)) @@ -22349,7 +22382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TransformImpl(CanvasRendererPeer* peer, + void TransformImpl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -22374,7 +22407,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TranslateImpl(CanvasRendererPeer* peer, + void TranslateImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { @@ -22387,7 +22420,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetPixelMapImpl(CanvasRendererPeer* peer, + void SetPixelMapImpl(Ark_CanvasRenderer peer, const Opt_PixelMap* value) { if (!needGroupedLog(1)) @@ -22397,7 +22430,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, + void TransferFromImageBitmapImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap) { if (!needGroupedLog(1)) @@ -22407,7 +22440,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveLayerImpl(CanvasRendererPeer* peer) + void SaveLayerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22415,7 +22448,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RestoreLayerImpl(CanvasRendererPeer* peer) + void RestoreLayerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22423,7 +22456,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(CanvasRendererPeer* peer) + void ResetImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22431,7 +22464,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetGlobalAlphaImpl(CanvasRendererPeer* peer) + Ark_Int32 GetGlobalAlphaImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22441,7 +22474,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetGlobalAlphaImpl(CanvasRendererPeer* peer, + void SetGlobalAlphaImpl(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha) { if (!needGroupedLog(1)) @@ -22451,7 +22484,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetGlobalCompositeOperationImpl(CanvasRendererPeer* peer) + void GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22459,7 +22492,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetGlobalCompositeOperationImpl(CanvasRendererPeer* peer, + void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) { if (!needGroupedLog(1)) @@ -22469,7 +22502,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFillStyleImpl(CanvasRendererPeer* peer, + void SetFillStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle) { if (!needGroupedLog(1)) @@ -22479,7 +22512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStrokeStyleImpl(CanvasRendererPeer* peer, + void SetStrokeStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle) { if (!needGroupedLog(1)) @@ -22489,7 +22522,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFilterImpl(CanvasRendererPeer* peer) + void GetFilterImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22497,7 +22530,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFilterImpl(CanvasRendererPeer* peer, + void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) { if (!needGroupedLog(1)) @@ -22507,7 +22540,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetImageSmoothingEnabledImpl(CanvasRendererPeer* peer) + Ark_Boolean GetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22517,7 +22550,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetImageSmoothingEnabledImpl(CanvasRendererPeer* peer, + void SetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled) { if (!needGroupedLog(1)) @@ -22527,7 +22560,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) + Ark_String GetImageSmoothingQualityImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22537,7 +22570,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, + void SetImageSmoothingQualityImpl(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality) { if (!needGroupedLog(1)) @@ -22547,7 +22580,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) + Ark_String GetLineCapImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22557,7 +22590,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetLineCapImpl(CanvasRendererPeer* peer, + void SetLineCapImpl(Ark_CanvasRenderer peer, const Ark_String* lineCap) { if (!needGroupedLog(1)) @@ -22567,7 +22600,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLineDashOffsetImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineDashOffsetImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22577,7 +22610,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetLineDashOffsetImpl(CanvasRendererPeer* peer, + void SetLineDashOffsetImpl(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset) { if (!needGroupedLog(1)) @@ -22587,7 +22620,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) + Ark_String GetLineJoinImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22597,7 +22630,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetLineJoinImpl(CanvasRendererPeer* peer, + void SetLineJoinImpl(Ark_CanvasRenderer peer, const Ark_String* lineJoin) { if (!needGroupedLog(1)) @@ -22607,7 +22640,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLineWidthImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineWidthImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22617,7 +22650,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetLineWidthImpl(CanvasRendererPeer* peer, + void SetLineWidthImpl(Ark_CanvasRenderer peer, const Ark_Number* lineWidth) { if (!needGroupedLog(1)) @@ -22627,7 +22660,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMiterLimitImpl(CanvasRendererPeer* peer) + Ark_Int32 GetMiterLimitImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22637,7 +22670,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMiterLimitImpl(CanvasRendererPeer* peer, + void SetMiterLimitImpl(Ark_CanvasRenderer peer, const Ark_Number* miterLimit) { if (!needGroupedLog(1)) @@ -22647,7 +22680,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowBlurImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowBlurImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22657,7 +22690,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowBlurImpl(CanvasRendererPeer* peer, + void SetShadowBlurImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur) { if (!needGroupedLog(1)) @@ -22667,7 +22700,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetShadowColorImpl(CanvasRendererPeer* peer) + void GetShadowColorImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22675,7 +22708,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetShadowColorImpl(CanvasRendererPeer* peer, + void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) { if (!needGroupedLog(1)) @@ -22685,7 +22718,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowOffsetXImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetXImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22695,7 +22728,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowOffsetXImpl(CanvasRendererPeer* peer, + void SetShadowOffsetXImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX) { if (!needGroupedLog(1)) @@ -22705,7 +22738,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowOffsetYImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetYImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22715,7 +22748,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowOffsetYImpl(CanvasRendererPeer* peer, + void SetShadowOffsetYImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY) { if (!needGroupedLog(1)) @@ -22725,7 +22758,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) + Ark_String GetDirectionImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22735,7 +22768,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(CanvasRendererPeer* peer, + void SetDirectionImpl(Ark_CanvasRenderer peer, const Ark_String* direction) { if (!needGroupedLog(1)) @@ -22745,7 +22778,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFontImpl(CanvasRendererPeer* peer) + void GetFontImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22753,7 +22786,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFontImpl(CanvasRendererPeer* peer, + void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) { if (!needGroupedLog(1)) @@ -22763,7 +22796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) + Ark_String GetTextAlignImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22773,7 +22806,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTextAlignImpl(CanvasRendererPeer* peer, + void SetTextAlignImpl(Ark_CanvasRenderer peer, const Ark_String* textAlign) { if (!needGroupedLog(1)) @@ -22783,7 +22816,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) + Ark_String GetTextBaselineImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22793,7 +22826,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTextBaselineImpl(CanvasRendererPeer* peer, + void SetTextBaselineImpl(Ark_CanvasRenderer peer, const Ark_String* textBaseline) { if (!needGroupedLog(1)) @@ -22805,7 +22838,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasRendererAccessor namespace CanvasRenderingContext2DAccessor { - void DestroyPeerImpl(CanvasRenderingContext2DPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return; @@ -22816,13 +22849,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasRenderingContext2D CtorImpl(const Opt_RenderingContextSettings* settings) { if (!needGroupedLog(1)) - return (CanvasRenderingContext2DPeer*) 100; + return (Ark_CanvasRenderingContext2D) 100; string out("new CanvasRenderingContext2D("); WriteToString(&out, settings); out.append(") \n"); - out.append("[return (CanvasRenderingContext2DPeer*) 100] \n"); + out.append("[return (Ark_CanvasRenderingContext2D) 100] \n"); appendGroupedLog(1, out); - return (CanvasRenderingContext2DPeer*) 100; + return (Ark_CanvasRenderingContext2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22834,7 +22867,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ToDataURLImpl(CanvasRenderingContext2DPeer* peer, + void ToDataURLImpl(Ark_CanvasRenderingContext2D peer, const Opt_String* type, const Opt_Number* quality) { @@ -22847,7 +22880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StartImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer, + void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -22860,7 +22893,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer) + void StopImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return; @@ -22868,7 +22901,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22878,7 +22911,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22888,7 +22921,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22898,7 +22931,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22908,7 +22941,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetHeightImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetHeightImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return 0; @@ -22918,7 +22951,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetWidthImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return 0; @@ -22929,8 +22962,164 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } } // CanvasRenderingContext2DAccessor + namespace OffscreenCanvasRenderingContext2DAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_OffscreenCanvasRenderingContext2D CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvasRenderingContext2D) 100; + string out("new OffscreenCanvasRenderingContext2D("); + WriteToString(&out, width); + out.append(", "); + WriteToString(&out, height); + out.append(", "); + WriteToString(&out, settings); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvasRenderingContext2D) 100] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvasRenderingContext2D) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + void ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_CustomObject* quality) + { + if (!needGroupedLog(1)) + return; + string out("toDataURL("); + WriteToString(&out, type); + out.append(", "); + WriteToString(&out, quality); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + if (!needGroupedLog(1)) + return (Ark_ImageBitmap) 300; + string out("transferToImageBitmap("); + out.append(") \n"); + out.append("[return (Ark_ImageBitmap) 300] \n"); + appendGroupedLog(1, out); + return (Ark_ImageBitmap) 300; + } + } // OffscreenCanvasRenderingContext2DAccessor + namespace OffscreenCanvasAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_OffscreenCanvas CtorImpl(const Ark_Number* width, + const Ark_Number* height) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvas) 100; + string out("new OffscreenCanvas("); + WriteToString(&out, width); + out.append(", "); + WriteToString(&out, height); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvas) 100] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvas) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return (Ark_ImageBitmap) 300; + string out("transferToImageBitmap("); + out.append(") \n"); + out.append("[return (Ark_ImageBitmap) 300] \n"); + appendGroupedLog(1, out); + return (Ark_ImageBitmap) 300; + } + Ark_OffscreenCanvasRenderingContext2D GetContext2dImpl(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvasRenderingContext2D) 300; + string out("getContext2d("); + WriteToString(&out, options); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvasRenderingContext2D) 300] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvasRenderingContext2D) 300; + } + Ark_Int32 GetHeightImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getHeight("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetHeightImpl(Ark_OffscreenCanvas peer, + const Ark_Number* height) + { + if (!needGroupedLog(1)) + return; + string out("setHeight("); + WriteToString(&out, height); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Int32 GetWidthImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getWidth("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetWidthImpl(Ark_OffscreenCanvas peer, + const Ark_Number* width) + { + if (!needGroupedLog(1)) + return; + string out("setWidth("); + WriteToString(&out, width); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // OffscreenCanvasAccessor namespace DrawingRenderingContextAccessor { - void DestroyPeerImpl(DrawingRenderingContextPeer* peer) + void DestroyPeerImpl(Ark_DrawingRenderingContext peer) { if (!needGroupedLog(1)) return; @@ -22941,13 +23130,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawingRenderingContext CtorImpl(const Opt_LengthMetricsUnit* unit) { if (!needGroupedLog(1)) - return (DrawingRenderingContextPeer*) 100; + return (Ark_DrawingRenderingContext) 100; string out("new DrawingRenderingContext("); WriteToString(&out, unit); out.append(") \n"); - out.append("[return (DrawingRenderingContextPeer*) 100] \n"); + out.append("[return (Ark_DrawingRenderingContext) 100] \n"); appendGroupedLog(1, out); - return (DrawingRenderingContextPeer*) 100; + return (Ark_DrawingRenderingContext) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22959,7 +23148,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InvalidateImpl(DrawingRenderingContextPeer* peer) + void InvalidateImpl(Ark_DrawingRenderingContext peer) { if (!needGroupedLog(1)) return; @@ -22969,7 +23158,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingRenderingContextAccessor namespace ICurveAccessor { - void DestroyPeerImpl(ICurvePeer* peer) + void DestroyPeerImpl(Ark_ICurve peer) { if (!needGroupedLog(1)) return; @@ -22980,12 +23169,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ICurve CtorImpl() { if (!needGroupedLog(1)) - return (ICurvePeer*) 100; + return (Ark_ICurve) 100; string out("new ICurve("); out.append(") \n"); - out.append("[return (ICurvePeer*) 100] \n"); + out.append("[return (Ark_ICurve) 100] \n"); appendGroupedLog(1, out); - return (ICurvePeer*) 100; + return (Ark_ICurve) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22997,7 +23186,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 InterpolateImpl(ICurvePeer* peer, + Ark_Int32 InterpolateImpl(Ark_ICurve peer, const Ark_Number* fraction) { if (!needGroupedLog(1)) @@ -23011,7 +23200,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ICurveAccessor namespace DrawModifierAccessor { - void DestroyPeerImpl(DrawModifierPeer* peer) + void DestroyPeerImpl(Ark_DrawModifier peer) { if (!needGroupedLog(1)) return; @@ -23022,12 +23211,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawModifier CtorImpl() { if (!needGroupedLog(1)) - return (DrawModifierPeer*) 100; + return (Ark_DrawModifier) 100; string out("new DrawModifier("); out.append(") \n"); - out.append("[return (DrawModifierPeer*) 100] \n"); + out.append("[return (Ark_DrawModifier) 100] \n"); appendGroupedLog(1, out); - return (DrawModifierPeer*) 100; + return (Ark_DrawModifier) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23039,7 +23228,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawBehindImpl(DrawModifierPeer* peer, + void DrawBehindImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23049,7 +23238,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawContentImpl(DrawModifierPeer* peer, + void DrawContentImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23059,7 +23248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawFrontImpl(DrawModifierPeer* peer, + void DrawFrontImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23069,7 +23258,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InvalidateImpl(DrawModifierPeer* peer) + void InvalidateImpl(Ark_DrawModifier peer) { if (!needGroupedLog(1)) return; @@ -23079,7 +23268,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawModifierAccessor namespace TransitionEffectAccessor { - void DestroyPeerImpl(TransitionEffectPeer* peer) + void DestroyPeerImpl(Ark_TransitionEffect peer) { if (!needGroupedLog(1)) return; @@ -23091,15 +23280,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_TransitionEffects* effect) { if (!needGroupedLog(1)) - return (TransitionEffectPeer*) 100; + return (Ark_TransitionEffect) 100; string out("new TransitionEffect("); WriteToString(&out, type); out.append(", "); WriteToString(&out, effect); out.append(") \n"); - out.append("[return (TransitionEffectPeer*) 100] \n"); + out.append("[return (Ark_TransitionEffect) 100] \n"); appendGroupedLog(1, out); - return (TransitionEffectPeer*) 100; + return (Ark_TransitionEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23180,33 +23369,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_TransitionEffect) 300; } - Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect AnimationImpl(Ark_TransitionEffect peer, const Ark_AnimateParam* value) { if (!needGroupedLog(1)) - return {}; + return (Ark_TransitionEffect) 300; string out("animation("); WriteToString(&out, value); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_TransitionEffect) 300; } - Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect CombineImpl(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect) { if (!needGroupedLog(1)) - return {}; + return (Ark_TransitionEffect) 300; string out("combine("); WriteToString(&out, transitionEffect); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_TransitionEffect) 300; } } // TransitionEffectAccessor namespace BaseEventAccessor { - void DestroyPeerImpl(BaseEventPeer* peer) + void DestroyPeerImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return; @@ -23217,12 +23406,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaseEvent CtorImpl() { if (!needGroupedLog(1)) - return (BaseEventPeer*) 100; + return (Ark_BaseEvent) 100; string out("new BaseEvent("); out.append(") \n"); - out.append("[return (BaseEventPeer*) 100] \n"); + out.append("[return (Ark_BaseEvent) 100] \n"); appendGroupedLog(1, out); - return (BaseEventPeer*) 100; + return (Ark_BaseEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23234,7 +23423,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetModifierKeyStateImpl(BaseEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_BaseEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -23246,7 +23435,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTargetImpl(BaseEventPeer* peer, + void SetTargetImpl(Ark_BaseEvent peer, const Ark_EventTarget* target) { if (!needGroupedLog(1)) @@ -23256,7 +23445,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTimestampImpl(BaseEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23266,7 +23455,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTimestampImpl(BaseEventPeer* peer, + void SetTimestampImpl(Ark_BaseEvent peer, const Ark_Number* timestamp) { if (!needGroupedLog(1)) @@ -23276,7 +23465,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) + Ark_SourceType GetSourceImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23286,7 +23475,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetSourceImpl(BaseEventPeer* peer, + void SetSourceImpl(Ark_BaseEvent peer, Ark_SourceType source) { if (!needGroupedLog(1)) @@ -23296,7 +23485,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAxisHorizontalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisHorizontalImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23306,7 +23495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAxisHorizontalImpl(BaseEventPeer* peer, + void SetAxisHorizontalImpl(Ark_BaseEvent peer, const Ark_Number* axisHorizontal) { if (!needGroupedLog(1)) @@ -23316,7 +23505,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAxisVerticalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisVerticalImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23326,7 +23515,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAxisVerticalImpl(BaseEventPeer* peer, + void SetAxisVerticalImpl(Ark_BaseEvent peer, const Ark_Number* axisVertical) { if (!needGroupedLog(1)) @@ -23336,7 +23525,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPressureImpl(BaseEventPeer* peer) + Ark_Int32 GetPressureImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23346,7 +23535,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPressureImpl(BaseEventPeer* peer, + void SetPressureImpl(Ark_BaseEvent peer, const Ark_Number* pressure) { if (!needGroupedLog(1)) @@ -23356,7 +23545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTiltXImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltXImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23366,7 +23555,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTiltXImpl(BaseEventPeer* peer, + void SetTiltXImpl(Ark_BaseEvent peer, const Ark_Number* tiltX) { if (!needGroupedLog(1)) @@ -23376,7 +23565,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTiltYImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltYImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23386,7 +23575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTiltYImpl(BaseEventPeer* peer, + void SetTiltYImpl(Ark_BaseEvent peer, const Ark_Number* tiltY) { if (!needGroupedLog(1)) @@ -23396,7 +23585,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) + Ark_SourceTool GetSourceToolImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23406,7 +23595,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetSourceToolImpl(BaseEventPeer* peer, + void SetSourceToolImpl(Ark_BaseEvent peer, Ark_SourceTool sourceTool) { if (!needGroupedLog(1)) @@ -23416,7 +23605,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDeviceIdImpl(BaseEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23426,7 +23615,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDeviceIdImpl(BaseEventPeer* peer, + void SetDeviceIdImpl(Ark_BaseEvent peer, const Ark_Number* deviceId) { if (!needGroupedLog(1)) @@ -23438,7 +23627,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaseEventAccessor namespace ClickEventAccessor { - void DestroyPeerImpl(ClickEventPeer* peer) + void DestroyPeerImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return; @@ -23449,12 +23638,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ClickEvent CtorImpl() { if (!needGroupedLog(1)) - return (ClickEventPeer*) 100; + return (Ark_ClickEvent) 100; string out("new ClickEvent("); out.append(") \n"); - out.append("[return (ClickEventPeer*) 100] \n"); + out.append("[return (Ark_ClickEvent) 100] \n"); appendGroupedLog(1, out); - return (ClickEventPeer*) 100; + return (Ark_ClickEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23466,7 +23655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetDisplayXImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23476,7 +23665,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(ClickEventPeer* peer, + void SetDisplayXImpl(Ark_ClickEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -23486,7 +23675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23496,7 +23685,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(ClickEventPeer* peer, + void SetDisplayYImpl(Ark_ClickEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -23506,7 +23695,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23516,7 +23705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(ClickEventPeer* peer, + void SetWindowXImpl(Ark_ClickEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -23526,7 +23715,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23536,7 +23725,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(ClickEventPeer* peer, + void SetWindowYImpl(Ark_ClickEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -23546,7 +23735,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenXImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23556,7 +23745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenXImpl(ClickEventPeer* peer, + void SetScreenXImpl(Ark_ClickEvent peer, const Ark_Number* screenX) { if (!needGroupedLog(1)) @@ -23566,7 +23755,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenYImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23576,7 +23765,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenYImpl(ClickEventPeer* peer, + void SetScreenYImpl(Ark_ClickEvent peer, const Ark_Number* screenY) { if (!needGroupedLog(1)) @@ -23586,7 +23775,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(ClickEventPeer* peer) + Ark_Int32 GetXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23596,7 +23785,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(ClickEventPeer* peer, + void SetXImpl(Ark_ClickEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -23606,7 +23795,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(ClickEventPeer* peer) + Ark_Int32 GetYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23616,7 +23805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(ClickEventPeer* peer, + void SetYImpl(Ark_ClickEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -23626,7 +23815,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23636,7 +23825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetPreventDefaultImpl(ClickEventPeer* peer, + void SetPreventDefaultImpl(Ark_ClickEvent peer, const Callback_Void* preventDefault) { if (!needGroupedLog(1)) @@ -23648,7 +23837,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ClickEventAccessor namespace HoverEventAccessor { - void DestroyPeerImpl(HoverEventPeer* peer) + void DestroyPeerImpl(Ark_HoverEvent peer) { if (!needGroupedLog(1)) return; @@ -23659,12 +23848,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HoverEvent CtorImpl() { if (!needGroupedLog(1)) - return (HoverEventPeer*) 100; + return (Ark_HoverEvent) 100; string out("new HoverEvent("); out.append(") \n"); - out.append("[return (HoverEventPeer*) 100] \n"); + out.append("[return (Ark_HoverEvent) 100] \n"); appendGroupedLog(1, out); - return (HoverEventPeer*) 100; + return (Ark_HoverEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23676,7 +23865,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_HoverEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23686,7 +23875,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(HoverEventPeer* peer, + void SetStopPropagationImpl(Ark_HoverEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -23698,7 +23887,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HoverEventAccessor namespace MouseEventAccessor { - void DestroyPeerImpl(MouseEventPeer* peer) + void DestroyPeerImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return; @@ -23709,12 +23898,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MouseEvent CtorImpl() { if (!needGroupedLog(1)) - return (MouseEventPeer*) 100; + return (Ark_MouseEvent) 100; string out("new MouseEvent("); out.append(") \n"); - out.append("[return (MouseEventPeer*) 100] \n"); + out.append("[return (Ark_MouseEvent) 100] \n"); appendGroupedLog(1, out); - return (MouseEventPeer*) 100; + return (Ark_MouseEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23726,7 +23915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) + Ark_MouseButton GetButtonImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23736,7 +23925,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetButtonImpl(MouseEventPeer* peer, + void SetButtonImpl(Ark_MouseEvent peer, Ark_MouseButton button) { if (!needGroupedLog(1)) @@ -23746,7 +23935,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetActionImpl(MouseEventPeer* peer) + Ark_MouseAction GetActionImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23756,7 +23945,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetActionImpl(MouseEventPeer* peer, + void SetActionImpl(Ark_MouseEvent peer, Ark_MouseAction action) { if (!needGroupedLog(1)) @@ -23766,7 +23955,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayXImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23776,7 +23965,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(MouseEventPeer* peer, + void SetDisplayXImpl(Ark_MouseEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -23786,7 +23975,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23796,7 +23985,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(MouseEventPeer* peer, + void SetDisplayYImpl(Ark_MouseEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -23806,7 +23995,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23816,7 +24005,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(MouseEventPeer* peer, + void SetWindowXImpl(Ark_MouseEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -23826,7 +24015,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23836,7 +24025,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(MouseEventPeer* peer, + void SetWindowYImpl(Ark_MouseEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -23846,7 +24035,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenXImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23856,7 +24045,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenXImpl(MouseEventPeer* peer, + void SetScreenXImpl(Ark_MouseEvent peer, const Ark_Number* screenX) { if (!needGroupedLog(1)) @@ -23866,7 +24055,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenYImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23876,7 +24065,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenYImpl(MouseEventPeer* peer, + void SetScreenYImpl(Ark_MouseEvent peer, const Ark_Number* screenY) { if (!needGroupedLog(1)) @@ -23886,7 +24075,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(MouseEventPeer* peer) + Ark_Int32 GetXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23896,7 +24085,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(MouseEventPeer* peer, + void SetXImpl(Ark_MouseEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -23906,7 +24095,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(MouseEventPeer* peer) + Ark_Int32 GetYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23916,7 +24105,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(MouseEventPeer* peer, + void SetYImpl(Ark_MouseEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -23926,7 +24115,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23936,7 +24125,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(MouseEventPeer* peer, + void SetStopPropagationImpl(Ark_MouseEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -23948,7 +24137,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MouseEventAccessor namespace AccessibilityHoverEventAccessor { - void DestroyPeerImpl(AccessibilityHoverEventPeer* peer) + void DestroyPeerImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return; @@ -23959,12 +24148,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AccessibilityHoverEvent CtorImpl() { if (!needGroupedLog(1)) - return (AccessibilityHoverEventPeer*) 100; + return (Ark_AccessibilityHoverEvent) 100; string out("new AccessibilityHoverEvent("); out.append(") \n"); - out.append("[return (AccessibilityHoverEventPeer*) 100] \n"); + out.append("[return (Ark_AccessibilityHoverEvent) 100] \n"); appendGroupedLog(1, out); - return (AccessibilityHoverEventPeer*) 100; + return (Ark_AccessibilityHoverEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23976,7 +24165,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) + Ark_AccessibilityHoverType GetTypeImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23986,7 +24175,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(AccessibilityHoverEventPeer* peer, + void SetTypeImpl(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type) { if (!needGroupedLog(1)) @@ -23996,7 +24185,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24006,7 +24195,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(AccessibilityHoverEventPeer* peer, + void SetXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -24016,7 +24205,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24026,7 +24215,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(AccessibilityHoverEventPeer* peer, + void SetYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -24036,7 +24225,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24046,7 +24235,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -24056,7 +24245,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24066,7 +24255,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -24076,7 +24265,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24086,7 +24275,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(AccessibilityHoverEventPeer* peer, + void SetWindowXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -24096,7 +24285,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24106,7 +24295,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(AccessibilityHoverEventPeer* peer, + void SetWindowYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -24118,7 +24307,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AccessibilityHoverEventAccessor namespace TouchEventAccessor { - void DestroyPeerImpl(TouchEventPeer* peer) + void DestroyPeerImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return; @@ -24129,12 +24318,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TouchEvent CtorImpl() { if (!needGroupedLog(1)) - return (TouchEventPeer*) 100; + return (Ark_TouchEvent) 100; string out("new TouchEvent("); out.append(") \n"); - out.append("[return (TouchEventPeer*) 100] \n"); + out.append("[return (Ark_TouchEvent) 100] \n"); appendGroupedLog(1, out); - return (TouchEventPeer*) 100; + return (Ark_TouchEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24146,15 +24335,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetHistoricalPointsImpl(TouchEventPeer* peer) + Array_HistoricalPoint GetHistoricalPointsImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getHistoricalPoints("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) + Ark_TouchType GetTypeImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24164,7 +24355,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(TouchEventPeer* peer, + void SetTypeImpl(Ark_TouchEvent peer, Ark_TouchType type) { if (!needGroupedLog(1)) @@ -24174,7 +24365,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetTouchesImpl(Ark_TouchEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getTouches("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* touches) { if (!needGroupedLog(1)) @@ -24184,7 +24385,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetChangedTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetChangedTouchesImpl(Ark_TouchEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getChangedTouches("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetChangedTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* changedTouches) { if (!needGroupedLog(1)) @@ -24194,7 +24405,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24204,7 +24415,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(TouchEventPeer* peer, + void SetStopPropagationImpl(Ark_TouchEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -24214,7 +24425,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24224,7 +24435,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetPreventDefaultImpl(TouchEventPeer* peer, + void SetPreventDefaultImpl(Ark_TouchEvent peer, const Callback_Void* preventDefault) { if (!needGroupedLog(1)) @@ -24236,7 +24447,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TouchEventAccessor namespace PixelMapMockAccessor { - void DestroyPeerImpl(PixelMapMockPeer* peer) + void DestroyPeerImpl(Ark_PixelMapMock peer) { if (!needGroupedLog(1)) return; @@ -24247,12 +24458,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PixelMapMock CtorImpl() { if (!needGroupedLog(1)) - return (PixelMapMockPeer*) 100; + return (Ark_PixelMapMock) 100; string out("new PixelMapMock("); out.append(") \n"); - out.append("[return (PixelMapMockPeer*) 100] \n"); + out.append("[return (Ark_PixelMapMock) 100] \n"); appendGroupedLog(1, out); - return (PixelMapMockPeer*) 100; + return (Ark_PixelMapMock) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24264,7 +24475,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReleaseImpl(PixelMapMockPeer* peer) + void ReleaseImpl(Ark_PixelMapMock peer) { if (!needGroupedLog(1)) return; @@ -24274,7 +24485,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PixelMapMockAccessor namespace DragEventAccessor { - void DestroyPeerImpl(DragEventPeer* peer) + void DestroyPeerImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return; @@ -24285,12 +24496,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DragEvent CtorImpl() { if (!needGroupedLog(1)) - return (DragEventPeer*) 100; + return (Ark_DragEvent) 100; string out("new DragEvent("); out.append(") \n"); - out.append("[return (DragEventPeer*) 100] \n"); + out.append("[return (Ark_DragEvent) 100] \n"); appendGroupedLog(1, out); - return (DragEventPeer*) 100; + return (Ark_DragEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24302,7 +24513,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetDisplayXImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24312,7 +24523,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetDisplayYImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24322,7 +24533,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWindowXImpl(DragEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24332,7 +24543,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWindowYImpl(DragEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24342,7 +24553,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetXImpl(DragEventPeer* peer) + Ark_Int32 GetXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24352,7 +24563,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetYImpl(DragEventPeer* peer) + Ark_Int32 GetYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24362,7 +24573,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDataImpl(DragEventPeer* peer, + void SetDataImpl(Ark_DragEvent peer, Ark_UnifiedData unifiedData) { if (!needGroupedLog(1)) @@ -24372,17 +24583,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_UnifiedData GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_UnifiedData) 300; string out("getData("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_UnifiedData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_UnifiedData) 300; } - Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) + Ark_Summary GetSummaryImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24392,7 +24603,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetResultImpl(DragEventPeer* peer, + void SetResultImpl(Ark_DragEvent peer, Ark_DragResult dragResult) { if (!needGroupedLog(1)) @@ -24402,7 +24613,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetResultImpl(DragEventPeer* peer) + Ark_DragResult GetResultImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24412,7 +24623,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) + Ark_Rectangle GetPreviewRectImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24422,7 +24633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24432,7 +24643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetVelocityYImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24442,7 +24653,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetVelocityImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24452,7 +24663,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean GetModifierKeyStateImpl(DragEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_DragEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -24464,7 +24675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) + Ark_DragBehavior GetDragBehaviorImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24474,7 +24685,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDragBehaviorImpl(DragEventPeer* peer, + void SetDragBehaviorImpl(Ark_DragEvent peer, Ark_DragBehavior dragBehavior) { if (!needGroupedLog(1)) @@ -24484,7 +24695,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetUseCustomDropAnimationImpl(DragEventPeer* peer) + Ark_Boolean GetUseCustomDropAnimationImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24494,7 +24705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetUseCustomDropAnimationImpl(DragEventPeer* peer, + void SetUseCustomDropAnimationImpl(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation) { if (!needGroupedLog(1)) @@ -24506,7 +24717,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DragEventAccessor namespace KeyEventAccessor { - void DestroyPeerImpl(KeyEventPeer* peer) + void DestroyPeerImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return; @@ -24517,12 +24728,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_KeyEvent CtorImpl() { if (!needGroupedLog(1)) - return (KeyEventPeer*) 100; + return (Ark_KeyEvent) 100; string out("new KeyEvent("); out.append(") \n"); - out.append("[return (KeyEventPeer*) 100] \n"); + out.append("[return (Ark_KeyEvent) 100] \n"); appendGroupedLog(1, out); - return (KeyEventPeer*) 100; + return (Ark_KeyEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24534,7 +24745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetModifierKeyStateImpl(KeyEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_KeyEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -24546,7 +24757,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) + Ark_KeyType GetTypeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24556,7 +24767,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(KeyEventPeer* peer, + void SetTypeImpl(Ark_KeyEvent peer, Ark_KeyType type) { if (!needGroupedLog(1)) @@ -24566,7 +24777,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetKeyCodeImpl(KeyEventPeer* peer) + Ark_Int32 GetKeyCodeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24576,7 +24787,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetKeyCodeImpl(KeyEventPeer* peer, + void SetKeyCodeImpl(Ark_KeyEvent peer, const Ark_Number* keyCode) { if (!needGroupedLog(1)) @@ -24586,7 +24797,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetKeyTextImpl(KeyEventPeer* peer) + void GetKeyTextImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return; @@ -24594,7 +24805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetKeyTextImpl(KeyEventPeer* peer, + void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) { if (!needGroupedLog(1)) @@ -24604,7 +24815,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) + Ark_KeySource GetKeySourceImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24614,7 +24825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetKeySourceImpl(KeyEventPeer* peer, + void SetKeySourceImpl(Ark_KeyEvent peer, Ark_KeySource keySource) { if (!needGroupedLog(1)) @@ -24624,7 +24835,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDeviceIdImpl(KeyEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24634,7 +24845,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDeviceIdImpl(KeyEventPeer* peer, + void SetDeviceIdImpl(Ark_KeyEvent peer, const Ark_Number* deviceId) { if (!needGroupedLog(1)) @@ -24644,7 +24855,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMetaKeyImpl(KeyEventPeer* peer) + Ark_Int32 GetMetaKeyImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24654,7 +24865,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMetaKeyImpl(KeyEventPeer* peer, + void SetMetaKeyImpl(Ark_KeyEvent peer, const Ark_Number* metaKey) { if (!needGroupedLog(1)) @@ -24664,7 +24875,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTimestampImpl(KeyEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24674,7 +24885,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTimestampImpl(KeyEventPeer* peer, + void SetTimestampImpl(Ark_KeyEvent peer, const Ark_Number* timestamp) { if (!needGroupedLog(1)) @@ -24684,7 +24895,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24694,7 +24905,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(KeyEventPeer* peer, + void SetStopPropagationImpl(Ark_KeyEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -24704,7 +24915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetIntentionCodeImpl(KeyEventPeer* peer, + void SetIntentionCodeImpl(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode) { if (!needGroupedLog(1)) @@ -24714,7 +24925,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetUnicodeImpl(KeyEventPeer* peer) + Ark_Int32 GetUnicodeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24724,7 +24935,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetUnicodeImpl(KeyEventPeer* peer, + void SetUnicodeImpl(Ark_KeyEvent peer, const Ark_Number* unicode) { if (!needGroupedLog(1)) @@ -24736,7 +24947,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // KeyEventAccessor namespace ProgressMaskAccessor { - void DestroyPeerImpl(ProgressMaskPeer* peer) + void DestroyPeerImpl(Ark_ProgressMask peer) { if (!needGroupedLog(1)) return; @@ -24749,7 +24960,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_ResourceColor* color) { if (!needGroupedLog(1)) - return (ProgressMaskPeer*) 100; + return (Ark_ProgressMask) 100; string out("new ProgressMask("); WriteToString(&out, value); out.append(", "); @@ -24757,9 +24968,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, color); out.append(") \n"); - out.append("[return (ProgressMaskPeer*) 100] \n"); + out.append("[return (Ark_ProgressMask) 100] \n"); appendGroupedLog(1, out); - return (ProgressMaskPeer*) 100; + return (Ark_ProgressMask) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24771,7 +24982,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void UpdateProgressImpl(ProgressMaskPeer* peer, + void UpdateProgressImpl(Ark_ProgressMask peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -24781,7 +24992,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateColorImpl(ProgressMaskPeer* peer, + void UpdateColorImpl(Ark_ProgressMask peer, const Ark_ResourceColor* value) { if (!needGroupedLog(1)) @@ -24791,7 +25002,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void EnableBreathingAnimationImpl(ProgressMaskPeer* peer, + void EnableBreathingAnimationImpl(Ark_ProgressMask peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -24803,7 +25014,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ProgressMaskAccessor namespace MeasurableAccessor { - void DestroyPeerImpl(MeasurablePeer* peer) + void DestroyPeerImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return; @@ -24814,12 +25025,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Measurable CtorImpl() { if (!needGroupedLog(1)) - return (MeasurablePeer*) 100; + return (Ark_Measurable) 100; string out("new Measurable("); out.append(") \n"); - out.append("[return (MeasurablePeer*) 100] \n"); + out.append("[return (Ark_Measurable) 100] \n"); appendGroupedLog(1, out); - return (MeasurablePeer*) 100; + return (Ark_Measurable) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24831,7 +25042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer MeasureImpl(MeasurablePeer* peer, + Ark_MeasureResult MeasureImpl(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint) { if (!needGroupedLog(1)) @@ -24843,7 +25054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetMarginImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24853,7 +25064,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetPaddingImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24863,7 +25074,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetBorderWidthImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24875,7 +25086,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MeasurableAccessor namespace ViewAccessor { - void DestroyPeerImpl(ViewPeer* peer) + void DestroyPeerImpl(Ark_View peer) { if (!needGroupedLog(1)) return; @@ -24886,12 +25097,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_View CtorImpl() { if (!needGroupedLog(1)) - return (ViewPeer*) 100; + return (Ark_View) 100; string out("new View("); out.append(") \n"); - out.append("[return (ViewPeer*) 100] \n"); + out.append("[return (Ark_View) 100] \n"); appendGroupedLog(1, out); - return (ViewPeer*) 100; + return (Ark_View) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24903,19 +25114,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CreateImpl(ViewPeer* peer, - const Ark_CustomObject* value) + Ark_CustomObject CreateImpl(Ark_View peer, + const Ark_CustomObject* value) { if (!needGroupedLog(1)) - return; + return {}; string out("create("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // ViewAccessor namespace TextContentControllerBaseAccessor { - void DestroyPeerImpl(TextContentControllerBasePeer* peer) + void DestroyPeerImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return; @@ -24926,12 +25139,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextContentControllerBase CtorImpl() { if (!needGroupedLog(1)) - return (TextContentControllerBasePeer*) 100; + return (Ark_TextContentControllerBase) 100; string out("new TextContentControllerBase("); out.append(") \n"); - out.append("[return (TextContentControllerBasePeer*) 100] \n"); + out.append("[return (Ark_TextContentControllerBase) 100] \n"); appendGroupedLog(1, out); - return (TextContentControllerBasePeer*) 100; + return (Ark_TextContentControllerBase) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24943,7 +25156,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) + Ark_CaretOffset GetCaretOffsetImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return {}; @@ -24953,7 +25166,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) + Ark_RectResult GetTextContentRectImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return {}; @@ -24963,7 +25176,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) + Ark_Int32 GetTextContentLineCountImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return 0; @@ -24975,7 +25188,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextContentControllerBaseAccessor namespace DynamicNodeAccessor { - void DestroyPeerImpl(DynamicNodePeer* peer) + void DestroyPeerImpl(Ark_DynamicNode peer) { if (!needGroupedLog(1)) return; @@ -24986,12 +25199,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DynamicNode CtorImpl() { if (!needGroupedLog(1)) - return (DynamicNodePeer*) 100; + return (Ark_DynamicNode) 100; string out("new DynamicNode("); out.append(") \n"); - out.append("[return (DynamicNodePeer*) 100] \n"); + out.append("[return (Ark_DynamicNode) 100] \n"); appendGroupedLog(1, out); - return (DynamicNodePeer*) 100; + return (Ark_DynamicNode) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25003,19 +25216,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnMoveImpl(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler) + Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler) { if (!needGroupedLog(1)) - return; + return {}; string out("onMove("); WriteToString(&out, handler); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { - void DestroyPeerImpl(ChildrenMainSizePeer* peer) + void DestroyPeerImpl(Ark_ChildrenMainSize peer) { if (!needGroupedLog(1)) return; @@ -25026,13 +25241,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ChildrenMainSize CtorImpl(const Ark_Number* childDefaultSize) { if (!needGroupedLog(1)) - return (ChildrenMainSizePeer*) 100; + return (Ark_ChildrenMainSize) 100; string out("new ChildrenMainSize("); WriteToString(&out, childDefaultSize); out.append(") \n"); - out.append("[return (ChildrenMainSizePeer*) 100] \n"); + out.append("[return (Ark_ChildrenMainSize) 100] \n"); appendGroupedLog(1, out); - return (ChildrenMainSizePeer*) 100; + return (Ark_ChildrenMainSize) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25044,7 +25259,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SpliceImpl(ChildrenMainSizePeer* peer, + void SpliceImpl(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize) @@ -25060,7 +25275,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateImpl(ChildrenMainSizePeer* peer, + void UpdateImpl(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize) { @@ -25073,7 +25288,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetChildDefaultSizeImpl(ChildrenMainSizePeer* peer) + Ark_Int32 GetChildDefaultSizeImpl(Ark_ChildrenMainSize peer) { if (!needGroupedLog(1)) return 0; @@ -25083,7 +25298,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetChildDefaultSizeImpl(ChildrenMainSizePeer* peer, + void SetChildDefaultSizeImpl(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize) { if (!needGroupedLog(1)) @@ -25095,7 +25310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ChildrenMainSizeAccessor namespace UICommonEventAccessor { - void DestroyPeerImpl(UICommonEventPeer* peer) + void DestroyPeerImpl(Ark_UICommonEvent peer) { if (!needGroupedLog(1)) return; @@ -25106,12 +25321,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UICommonEvent CtorImpl() { if (!needGroupedLog(1)) - return (UICommonEventPeer*) 100; + return (Ark_UICommonEvent) 100; string out("new UICommonEvent("); out.append(") \n"); - out.append("[return (UICommonEventPeer*) 100] \n"); + out.append("[return (Ark_UICommonEvent) 100] \n"); appendGroupedLog(1, out); - return (UICommonEventPeer*) 100; + return (Ark_UICommonEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25123,7 +25338,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetOnClickImpl(UICommonEventPeer* peer, + void SetOnClickImpl(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25133,7 +25348,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnTouchImpl(UICommonEventPeer* peer, + void SetOnTouchImpl(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25143,7 +25358,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnAppearImpl(UICommonEventPeer* peer, + void SetOnAppearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25153,7 +25368,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnDisappearImpl(UICommonEventPeer* peer, + void SetOnDisappearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25163,7 +25378,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnKeyEventImpl(UICommonEventPeer* peer, + void SetOnKeyEventImpl(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25173,7 +25388,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnFocusImpl(UICommonEventPeer* peer, + void SetOnFocusImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25183,7 +25398,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnBlurImpl(UICommonEventPeer* peer, + void SetOnBlurImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25193,7 +25408,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnHoverImpl(UICommonEventPeer* peer, + void SetOnHoverImpl(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_) { if (!needGroupedLog(1)) @@ -25203,7 +25418,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnMouseImpl(UICommonEventPeer* peer, + void SetOnMouseImpl(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25213,7 +25428,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnSizeChangeImpl(UICommonEventPeer* peer, + void SetOnSizeChangeImpl(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_) { if (!needGroupedLog(1)) @@ -25223,7 +25438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnVisibleAreaApproximateChangeImpl(UICommonEventPeer* peer, + void SetOnVisibleAreaApproximateChangeImpl(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event) { @@ -25238,7 +25453,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // UICommonEventAccessor namespace GestureModifierAccessor { - void DestroyPeerImpl(GestureModifierPeer* peer) + void DestroyPeerImpl(Ark_GestureModifier peer) { if (!needGroupedLog(1)) return; @@ -25249,12 +25464,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureModifier CtorImpl() { if (!needGroupedLog(1)) - return (GestureModifierPeer*) 100; + return (Ark_GestureModifier) 100; string out("new GestureModifier("); out.append(") \n"); - out.append("[return (GestureModifierPeer*) 100] \n"); + out.append("[return (Ark_GestureModifier) 100] \n"); appendGroupedLog(1, out); - return (GestureModifierPeer*) 100; + return (Ark_GestureModifier) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25266,7 +25481,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ApplyGestureImpl(GestureModifierPeer* peer, + void ApplyGestureImpl(Ark_GestureModifier peer, const Ark_UIGestureEvent* event) { if (!needGroupedLog(1)) @@ -25277,8 +25492,56 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(GlobalScope_commonPeer* peer) + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + if (!needGroupedLog(1)) + return 0; + string out("requestFocus("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetCursorImpl(Ark_PointerStyle value) + { + if (!needGroupedLog(1)) + return; + string out("setCursor("); + WriteToString(&out, value); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RestoreDefaultImpl() + { + if (!needGroupedLog(1)) + return; + string out("restoreDefault("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // GlobalScope_cursorControl_commonAccessor + namespace GlobalScopecommonAccessor { + void DestroyPeerImpl(Ark_GlobalScopecommon peer) { if (!needGroupedLog(1)) return; @@ -25286,16 +25549,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetContextImpl(const Opt_CustomObject* component) + Ark_Context GetContextImpl(const Opt_CustomObject* component) { if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; + return {}; string out("getContext("); WriteToString(&out, component); out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return (Ark_NativePointer) 300; + return {}; } void PostCardActionImpl(const Ark_CustomObject* component, const Ark_CustomObject* action) @@ -25309,30 +25572,30 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) + Ark_Resource Dollar_rImpl(const Ark_String* value, + const Array_CustomObject* params) { if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; + return {}; string out("dollar_r("); WriteToString(&out, value); out.append(", "); WriteToString(&out, params); out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return (Ark_NativePointer) 300; + return {}; } - Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) + Ark_Resource Dollar_rawfileImpl(const Ark_String* value) { if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; + return {}; string out("dollar_rawfile("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return (Ark_NativePointer) 300; + return {}; } void AnimateToImpl(const Ark_AnimateParam* value, const Callback_Void* event) @@ -25361,100 +25624,72 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Int32 Vp2pxImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return 100; + return 0; string out("vp2px("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 100] \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); - return 100; + return 0; } Ark_Int32 Px2vpImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return 100; + return 0; string out("px2vp("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 100] \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); - return 100; + return 0; } Ark_Int32 Fp2pxImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return 100; + return 0; string out("fp2px("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 100] \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); - return 100; + return 0; } Ark_Int32 Px2fpImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return 100; + return 0; string out("px2fp("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 100] \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); - return 100; + return 0; } Ark_Int32 Lpx2pxImpl(const Ark_Number* value) { if (!needGroupedLog(1)) - return 100; + return 0; string out("lpx2px("); WriteToString(&out, value); out.append(") \n"); - out.append("[return 100] \n"); + out.append("[return 0] \n"); appendGroupedLog(1, out); - return 100; + return 0; } Ark_Int32 Px2lpxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("px2lpx("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Boolean RequestFocusImpl(const Ark_String* value) { if (!needGroupedLog(1)) return 0; - string out("requestFocus("); + string out("px2lpx("); WriteToString(&out, value); out.append(") \n"); out.append("[return 0] \n"); appendGroupedLog(1, out); return 0; } - void SetCursorImpl(Ark_PointerStyle value) - { - if (!needGroupedLog(1)) - return; - string out("setCursor("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RestoreDefaultImpl() - { - if (!needGroupedLog(1)) - return; - string out("restoreDefault("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GlobalScope_commonAccessor + } // GlobalScopecommonAccessor namespace ContextMenuAccessor { - void DestroyPeerImpl(ContextMenuPeer* peer) + void DestroyPeerImpl(Ark_ContextMenu peer) { if (!needGroupedLog(1)) return; @@ -25465,12 +25700,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ContextMenu CtorImpl() { if (!needGroupedLog(1)) - return (ContextMenuPeer*) 100; + return (Ark_ContextMenu) 100; string out("new ContextMenu("); out.append(") \n"); - out.append("[return (ContextMenuPeer*) 100] \n"); + out.append("[return (Ark_ContextMenu) 100] \n"); appendGroupedLog(1, out); - return (ContextMenuPeer*) 100; + return (Ark_ContextMenu) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25492,7 +25727,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ContextMenuAccessor namespace CustomDialogControllerAccessor { - void DestroyPeerImpl(CustomDialogControllerPeer* peer) + void DestroyPeerImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25503,13 +25738,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CustomDialogController CtorImpl(const Ark_CustomDialogControllerOptions* value) { if (!needGroupedLog(1)) - return (CustomDialogControllerPeer*) 100; + return (Ark_CustomDialogController) 100; string out("new CustomDialogController("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (CustomDialogControllerPeer*) 100] \n"); + out.append("[return (Ark_CustomDialogController) 100] \n"); appendGroupedLog(1, out); - return (CustomDialogControllerPeer*) 100; + return (Ark_CustomDialogController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25521,7 +25756,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OpenImpl(CustomDialogControllerPeer* peer) + void OpenImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25529,7 +25764,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseImpl(CustomDialogControllerPeer* peer) + void CloseImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25539,7 +25774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CustomDialogControllerAccessor namespace LinearGradientAccessor { - void DestroyPeerImpl(LinearGradientPeer* peer) + void DestroyPeerImpl(Ark_LinearGradient peer) { if (!needGroupedLog(1)) return; @@ -25550,13 +25785,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LinearGradient CtorImpl(const Array_ColorStop* colorStops) { if (!needGroupedLog(1)) - return (LinearGradientPeer*) 100; + return (Ark_LinearGradient) 100; string out("new LinearGradient("); WriteToString(&out, colorStops); out.append(") \n"); - out.append("[return (LinearGradientPeer*) 100] \n"); + out.append("[return (Ark_LinearGradient) 100] \n"); appendGroupedLog(1, out); - return (LinearGradientPeer*) 100; + return (Ark_LinearGradient) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25570,7 +25805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LinearGradientAccessor namespace DatePickerDialogAccessor { - void DestroyPeerImpl(DatePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_DatePickerDialog peer) { if (!needGroupedLog(1)) return; @@ -25581,12 +25816,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DatePickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (DatePickerDialogPeer*) 100; + return (Ark_DatePickerDialog) 100; string out("new DatePickerDialog("); out.append(") \n"); - out.append("[return (DatePickerDialogPeer*) 100] \n"); + out.append("[return (Ark_DatePickerDialog) 100] \n"); appendGroupedLog(1, out); - return (DatePickerDialogPeer*) 100; + return (Ark_DatePickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25609,7 +25844,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DatePickerDialogAccessor namespace BaseGestureEventAccessor { - void DestroyPeerImpl(BaseGestureEventPeer* peer) + void DestroyPeerImpl(Ark_BaseGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25620,12 +25855,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaseGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (BaseGestureEventPeer*) 100; + return (Ark_BaseGestureEvent) 100; string out("new BaseGestureEvent("); out.append(") \n"); - out.append("[return (BaseGestureEventPeer*) 100] \n"); + out.append("[return (Ark_BaseGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (BaseGestureEventPeer*) 100; + return (Ark_BaseGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25637,7 +25872,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetFingerListImpl(BaseGestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_BaseGestureEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getFingerList("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetFingerListImpl(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList) { if (!needGroupedLog(1)) @@ -25649,7 +25894,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaseGestureEventAccessor namespace TapGestureEventAccessor { - void DestroyPeerImpl(TapGestureEventPeer* peer) + void DestroyPeerImpl(Ark_TapGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25660,12 +25905,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TapGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (TapGestureEventPeer*) 100; + return (Ark_TapGestureEvent) 100; string out("new TapGestureEvent("); out.append(") \n"); - out.append("[return (TapGestureEventPeer*) 100] \n"); + out.append("[return (Ark_TapGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (TapGestureEventPeer*) 100; + return (Ark_TapGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25679,7 +25924,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TapGestureEventAccessor namespace LongPressGestureEventAccessor { - void DestroyPeerImpl(LongPressGestureEventPeer* peer) + void DestroyPeerImpl(Ark_LongPressGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25690,12 +25935,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LongPressGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (LongPressGestureEventPeer*) 100; + return (Ark_LongPressGestureEvent) 100; string out("new LongPressGestureEvent("); out.append(") \n"); - out.append("[return (LongPressGestureEventPeer*) 100] \n"); + out.append("[return (Ark_LongPressGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (LongPressGestureEventPeer*) 100; + return (Ark_LongPressGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25707,7 +25952,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetRepeatImpl(LongPressGestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_LongPressGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25717,7 +25962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRepeatImpl(LongPressGestureEventPeer* peer, + void SetRepeatImpl(Ark_LongPressGestureEvent peer, Ark_Boolean repeat) { if (!needGroupedLog(1)) @@ -25729,7 +25974,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LongPressGestureEventAccessor namespace PanGestureEventAccessor { - void DestroyPeerImpl(PanGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25740,12 +25985,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (PanGestureEventPeer*) 100; + return (Ark_PanGestureEvent) 100; string out("new PanGestureEvent("); out.append(") \n"); - out.append("[return (PanGestureEventPeer*) 100] \n"); + out.append("[return (Ark_PanGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (PanGestureEventPeer*) 100; + return (Ark_PanGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25757,7 +26002,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetOffsetXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25767,7 +26012,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetXImpl(PanGestureEventPeer* peer, + void SetOffsetXImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetX) { if (!needGroupedLog(1)) @@ -25777,7 +26022,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25787,7 +26032,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetYImpl(PanGestureEventPeer* peer, + void SetOffsetYImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetY) { if (!needGroupedLog(1)) @@ -25797,7 +26042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25807,7 +26052,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityXImpl(PanGestureEventPeer* peer, + void SetVelocityXImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityX) { if (!needGroupedLog(1)) @@ -25817,7 +26062,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25827,7 +26072,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityYImpl(PanGestureEventPeer* peer, + void SetVelocityYImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityY) { if (!needGroupedLog(1)) @@ -25837,7 +26082,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25847,7 +26092,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityImpl(PanGestureEventPeer* peer, + void SetVelocityImpl(Ark_PanGestureEvent peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -25859,7 +26104,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PanGestureEventAccessor namespace PinchGestureEventAccessor { - void DestroyPeerImpl(PinchGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25870,12 +26115,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PinchGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (PinchGestureEventPeer*) 100; + return (Ark_PinchGestureEvent) 100; string out("new PinchGestureEvent("); out.append(") \n"); - out.append("[return (PinchGestureEventPeer*) 100] \n"); + out.append("[return (Ark_PinchGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (PinchGestureEventPeer*) 100; + return (Ark_PinchGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25887,7 +26132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetScaleImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25897,7 +26142,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleImpl(PinchGestureEventPeer* peer, + void SetScaleImpl(Ark_PinchGestureEvent peer, const Ark_Number* scale) { if (!needGroupedLog(1)) @@ -25907,7 +26152,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterXImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25917,7 +26162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterXImpl(PinchGestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX) { if (!needGroupedLog(1)) @@ -25927,7 +26172,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterYImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25937,7 +26182,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterYImpl(PinchGestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY) { if (!needGroupedLog(1)) @@ -25949,7 +26194,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PinchGestureEventAccessor namespace RotationGestureEventAccessor { - void DestroyPeerImpl(RotationGestureEventPeer* peer) + void DestroyPeerImpl(Ark_RotationGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25960,12 +26205,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RotationGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (RotationGestureEventPeer*) 100; + return (Ark_RotationGestureEvent) 100; string out("new RotationGestureEvent("); out.append(") \n"); - out.append("[return (RotationGestureEventPeer*) 100] \n"); + out.append("[return (Ark_RotationGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (RotationGestureEventPeer*) 100; + return (Ark_RotationGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25977,7 +26222,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetAngleImpl(RotationGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_RotationGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25987,7 +26232,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(RotationGestureEventPeer* peer, + void SetAngleImpl(Ark_RotationGestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -25999,7 +26244,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RotationGestureEventAccessor namespace SwipeGestureEventAccessor { - void DestroyPeerImpl(SwipeGestureEventPeer* peer) + void DestroyPeerImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -26010,12 +26255,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwipeGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (SwipeGestureEventPeer*) 100; + return (Ark_SwipeGestureEvent) 100; string out("new SwipeGestureEvent("); out.append(") \n"); - out.append("[return (SwipeGestureEventPeer*) 100] \n"); + out.append("[return (Ark_SwipeGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (SwipeGestureEventPeer*) 100; + return (Ark_SwipeGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26027,7 +26272,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetAngleImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26037,7 +26282,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(SwipeGestureEventPeer* peer, + void SetAngleImpl(Ark_SwipeGestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -26047,7 +26292,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSpeedImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26057,7 +26302,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSpeedImpl(SwipeGestureEventPeer* peer, + void SetSpeedImpl(Ark_SwipeGestureEvent peer, const Ark_Number* speed) { if (!needGroupedLog(1)) @@ -26069,7 +26314,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwipeGestureEventAccessor namespace GestureEventAccessor { - void DestroyPeerImpl(GestureEventPeer* peer) + void DestroyPeerImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return; @@ -26080,12 +26325,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (GestureEventPeer*) 100; + return (Ark_GestureEvent) 100; string out("new GestureEvent("); out.append(") \n"); - out.append("[return (GestureEventPeer*) 100] \n"); + out.append("[return (Ark_GestureEvent) 100] \n"); appendGroupedLog(1, out); - return (GestureEventPeer*) 100; + return (Ark_GestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26097,7 +26342,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetRepeatImpl(GestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26107,7 +26352,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRepeatImpl(GestureEventPeer* peer, + void SetRepeatImpl(Ark_GestureEvent peer, Ark_Boolean repeat) { if (!needGroupedLog(1)) @@ -26117,7 +26362,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFingerListImpl(GestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_GestureEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getFingerList("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetFingerListImpl(Ark_GestureEvent peer, const Array_FingerInfo* fingerList) { if (!needGroupedLog(1)) @@ -26127,7 +26382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetXImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26137,7 +26392,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetXImpl(GestureEventPeer* peer, + void SetOffsetXImpl(Ark_GestureEvent peer, const Ark_Number* offsetX) { if (!needGroupedLog(1)) @@ -26147,7 +26402,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetYImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26157,7 +26412,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetYImpl(GestureEventPeer* peer, + void SetOffsetYImpl(Ark_GestureEvent peer, const Ark_Number* offsetY) { if (!needGroupedLog(1)) @@ -26167,7 +26422,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAngleImpl(GestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26177,7 +26432,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(GestureEventPeer* peer, + void SetAngleImpl(Ark_GestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -26187,7 +26442,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSpeedImpl(GestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26197,7 +26452,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSpeedImpl(GestureEventPeer* peer, + void SetSpeedImpl(Ark_GestureEvent peer, const Ark_Number* speed) { if (!needGroupedLog(1)) @@ -26207,7 +26462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScaleImpl(GestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26217,7 +26472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleImpl(GestureEventPeer* peer, + void SetScaleImpl(Ark_GestureEvent peer, const Ark_Number* scale) { if (!needGroupedLog(1)) @@ -26227,7 +26482,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterXImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26237,7 +26492,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterXImpl(GestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterX) { if (!needGroupedLog(1)) @@ -26247,7 +26502,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterYImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26257,7 +26512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterYImpl(GestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterY) { if (!needGroupedLog(1)) @@ -26267,7 +26522,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityXImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26277,7 +26532,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityXImpl(GestureEventPeer* peer, + void SetVelocityXImpl(Ark_GestureEvent peer, const Ark_Number* velocityX) { if (!needGroupedLog(1)) @@ -26287,7 +26542,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityYImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26297,7 +26552,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityYImpl(GestureEventPeer* peer, + void SetVelocityYImpl(Ark_GestureEvent peer, const Ark_Number* velocityY) { if (!needGroupedLog(1)) @@ -26307,7 +26562,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26317,7 +26572,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityImpl(GestureEventPeer* peer, + void SetVelocityImpl(Ark_GestureEvent peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -26329,7 +26584,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureEventAccessor namespace PanGestureOptionsAccessor { - void DestroyPeerImpl(PanGestureOptionsPeer* peer) + void DestroyPeerImpl(Ark_PanGestureOptions peer) { if (!needGroupedLog(1)) return; @@ -26340,13 +26595,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanGestureOptions CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) { if (!needGroupedLog(1)) - return (PanGestureOptionsPeer*) 100; + return (Ark_PanGestureOptions) 100; string out("new PanGestureOptions("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (PanGestureOptionsPeer*) 100] \n"); + out.append("[return (Ark_PanGestureOptions) 100] \n"); appendGroupedLog(1, out); - return (PanGestureOptionsPeer*) 100; + return (Ark_PanGestureOptions) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26358,7 +26613,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetDirectionImpl(PanGestureOptionsPeer* peer, + void SetDirectionImpl(Ark_PanGestureOptions peer, Ark_PanDirection value) { if (!needGroupedLog(1)) @@ -26368,7 +26623,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetDistanceImpl(PanGestureOptionsPeer* peer, + void SetDistanceImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -26378,7 +26633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFingersImpl(PanGestureOptionsPeer* peer, + void SetFingersImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -26388,7 +26643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) + Ark_PanDirection GetDirectionImpl(Ark_PanGestureOptions peer) { if (!needGroupedLog(1)) return {}; @@ -26400,7 +26655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { - void DestroyPeerImpl(ScrollableTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return; @@ -26411,12 +26666,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ScrollableTargetInfo CtorImpl() { if (!needGroupedLog(1)) - return (ScrollableTargetInfoPeer*) 100; + return (Ark_ScrollableTargetInfo) 100; string out("new ScrollableTargetInfo("); out.append(") \n"); - out.append("[return (ScrollableTargetInfoPeer*) 100] \n"); + out.append("[return (Ark_ScrollableTargetInfo) 100] \n"); appendGroupedLog(1, out); - return (ScrollableTargetInfoPeer*) 100; + return (Ark_ScrollableTargetInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26428,7 +26683,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsBeginImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsBeginImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return 0; @@ -26438,7 +26693,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsEndImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsEndImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return 0; @@ -26450,7 +26705,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollableTargetInfoAccessor namespace EventTargetInfoAccessor { - void DestroyPeerImpl(EventTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_EventTargetInfo peer) { if (!needGroupedLog(1)) return; @@ -26461,12 +26716,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventTargetInfo CtorImpl() { if (!needGroupedLog(1)) - return (EventTargetInfoPeer*) 100; + return (Ark_EventTargetInfo) 100; string out("new EventTargetInfo("); out.append(") \n"); - out.append("[return (EventTargetInfoPeer*) 100] \n"); + out.append("[return (Ark_EventTargetInfo) 100] \n"); appendGroupedLog(1, out); - return (EventTargetInfoPeer*) 100; + return (Ark_EventTargetInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26478,7 +26733,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetIdImpl(EventTargetInfoPeer* peer) + void GetIdImpl(Ark_EventTargetInfo peer) { if (!needGroupedLog(1)) return; @@ -26488,7 +26743,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { - void DestroyPeerImpl(GestureRecognizerPeer* peer) + void DestroyPeerImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return; @@ -26499,12 +26754,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureRecognizer CtorImpl() { if (!needGroupedLog(1)) - return (GestureRecognizerPeer*) 100; + return (Ark_GestureRecognizer) 100; string out("new GestureRecognizer("); out.append(") \n"); - out.append("[return (GestureRecognizerPeer*) 100] \n"); + out.append("[return (Ark_GestureRecognizer) 100] \n"); appendGroupedLog(1, out); - return (GestureRecognizerPeer*) 100; + return (Ark_GestureRecognizer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26516,7 +26771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTagImpl(GestureRecognizerPeer* peer) + void GetTagImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return; @@ -26524,7 +26779,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) + Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return {}; @@ -26534,7 +26789,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsBuiltInImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26544,7 +26799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetEnabledImpl(GestureRecognizerPeer* peer, + void SetEnabledImpl(Ark_GestureRecognizer peer, Ark_Boolean isEnabled) { if (!needGroupedLog(1)) @@ -26554,7 +26809,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsEnabledImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsEnabledImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26564,7 +26819,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) + Ark_GestureRecognizerState GetStateImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return {}; @@ -26574,17 +26829,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_EventTargetInfo) 300; string out("getEventTargetInfo("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_EventTargetInfo) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_EventTargetInfo) 300; } - Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsValidImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26596,7 +26851,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureRecognizerAccessor namespace PanRecognizerAccessor { - void DestroyPeerImpl(PanRecognizerPeer* peer) + void DestroyPeerImpl(Ark_PanRecognizer peer) { if (!needGroupedLog(1)) return; @@ -26607,12 +26862,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanRecognizer CtorImpl() { if (!needGroupedLog(1)) - return (PanRecognizerPeer*) 100; + return (Ark_PanRecognizer) 100; string out("new PanRecognizer("); out.append(") \n"); - out.append("[return (PanRecognizerPeer*) 100] \n"); + out.append("[return (Ark_PanRecognizer) 100] \n"); appendGroupedLog(1, out); - return (PanRecognizerPeer*) 100; + return (Ark_PanRecognizer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26624,19 +26879,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(Ark_PanRecognizer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_PanGestureOptions) 300; string out("getPanGestureOptions("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_PanGestureOptions) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_PanGestureOptions) 300; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { - void DestroyPeerImpl(ImageAnalyzerControllerPeer* peer) + void DestroyPeerImpl(Ark_ImageAnalyzerController peer) { if (!needGroupedLog(1)) return; @@ -26647,12 +26902,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageAnalyzerController CtorImpl() { if (!needGroupedLog(1)) - return (ImageAnalyzerControllerPeer*) 100; + return (Ark_ImageAnalyzerController) 100; string out("new ImageAnalyzerController("); out.append(") \n"); - out.append("[return (ImageAnalyzerControllerPeer*) 100] \n"); + out.append("[return (Ark_ImageAnalyzerController) 100] \n"); appendGroupedLog(1, out); - return (ImageAnalyzerControllerPeer*) 100; + return (Ark_ImageAnalyzerController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26664,17 +26919,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetImageAnalyzerSupportTypesImpl(ImageAnalyzerControllerPeer* peer) + Array_ImageAnalyzerType GetImageAnalyzerSupportTypesImpl(Ark_ImageAnalyzerController peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getImageAnalyzerSupportTypes("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // ImageAnalyzerControllerAccessor namespace ListScrollerAccessor { - void DestroyPeerImpl(ListScrollerPeer* peer) + void DestroyPeerImpl(Ark_ListScroller peer) { if (!needGroupedLog(1)) return; @@ -26685,12 +26942,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ListScroller CtorImpl() { if (!needGroupedLog(1)) - return (ListScrollerPeer*) 100; + return (Ark_ListScroller) 100; string out("new ListScroller("); out.append(") \n"); - out.append("[return (ListScrollerPeer*) 100] \n"); + out.append("[return (Ark_ListScroller) 100] \n"); appendGroupedLog(1, out); - return (ListScrollerPeer*) 100; + return (Ark_ListScroller) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26702,9 +26959,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetItemRectInGroupImpl(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup) + Ark_RectResult GetItemRectInGroupImpl(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup) { if (!needGroupedLog(1)) return {}; @@ -26717,7 +26974,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void ScrollToItemInGroupImpl(ListScrollerPeer* peer, + void ScrollToItemInGroupImpl(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, @@ -26736,7 +26993,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseAllSwipeActionsImpl(ListScrollerPeer* peer, + void CloseAllSwipeActionsImpl(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options) { if (!needGroupedLog(1)) @@ -26746,9 +27003,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetVisibleListContentInfoImpl(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_VisibleListContentInfo GetVisibleListContentInfoImpl(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y) { if (!needGroupedLog(1)) return {}; @@ -26763,7 +27020,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ListScrollerAccessor namespace Matrix2DAccessor { - void DestroyPeerImpl(Matrix2DPeer* peer) + void DestroyPeerImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return; @@ -26774,12 +27031,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Matrix2D CtorImpl() { if (!needGroupedLog(1)) - return (Matrix2DPeer*) 100; + return (Ark_Matrix2D) 100; string out("new Matrix2D("); out.append(") \n"); - out.append("[return (Matrix2DPeer*) 100] \n"); + out.append("[return (Ark_Matrix2D) 100] \n"); appendGroupedLog(1, out); - return (Matrix2DPeer*) 100; + return (Ark_Matrix2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26791,60 +27048,60 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("identity("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("invert("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + Ark_Matrix2D MultiplyImpl(Ark_Matrix2D peer, const Opt_Matrix2D* other) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("multiply("); WriteToString(&out, other); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate0Impl(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("rotate("); WriteToString(&out, rx); out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate1Impl(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("rotate("); WriteToString(&out, degree); out.append(", "); @@ -26852,41 +27109,41 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + Ark_Matrix2D TranslateImpl(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("translate("); WriteToString(&out, tx); out.append(", "); WriteToString(&out, ty); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + Ark_Matrix2D ScaleImpl(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("scale("); WriteToString(&out, sx); out.append(", "); WriteToString(&out, sy); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26896,7 +27153,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleXImpl(Matrix2DPeer* peer, + void SetScaleXImpl(Ark_Matrix2D peer, const Ark_Number* scaleX) { if (!needGroupedLog(1)) @@ -26906,7 +27163,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetRotateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26916,7 +27173,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRotateYImpl(Matrix2DPeer* peer, + void SetRotateYImpl(Ark_Matrix2D peer, const Ark_Number* rotateY) { if (!needGroupedLog(1)) @@ -26926,7 +27183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetRotateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26936,7 +27193,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRotateXImpl(Matrix2DPeer* peer, + void SetRotateXImpl(Ark_Matrix2D peer, const Ark_Number* rotateX) { if (!needGroupedLog(1)) @@ -26946,7 +27203,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScaleYImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26956,7 +27213,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleYImpl(Matrix2DPeer* peer, + void SetScaleYImpl(Ark_Matrix2D peer, const Ark_Number* scaleY) { if (!needGroupedLog(1)) @@ -26966,7 +27223,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTranslateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26976,7 +27233,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTranslateXImpl(Matrix2DPeer* peer, + void SetTranslateXImpl(Ark_Matrix2D peer, const Ark_Number* translateX) { if (!needGroupedLog(1)) @@ -26986,7 +27243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTranslateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26996,7 +27253,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTranslateYImpl(Matrix2DPeer* peer, + void SetTranslateYImpl(Ark_Matrix2D peer, const Ark_Number* translateY) { if (!needGroupedLog(1)) @@ -27008,7 +27265,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // Matrix2DAccessor namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) + void DestroyPeerImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) return; @@ -27019,12 +27276,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavDestinationContext CtorImpl() { if (!needGroupedLog(1)) - return (NavDestinationContextPeer*) 100; + return (Ark_NavDestinationContext) 100; string out("new NavDestinationContext("); out.append(") \n"); - out.append("[return (NavDestinationContextPeer*) 100] \n"); + out.append("[return (Ark_NavDestinationContext) 100] \n"); appendGroupedLog(1, out); - return (NavDestinationContextPeer*) 100; + return (Ark_NavDestinationContext) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27036,17 +27293,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) + Opt_RouteMapConfig GetConfigInRouteMapImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getConfigInRouteMap("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void SetPathInfoImpl(NavDestinationContextPeer* peer, + void SetPathInfoImpl(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo) { if (!needGroupedLog(1)) @@ -27056,7 +27313,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetPathStackImpl(NavDestinationContextPeer* peer, + void SetPathStackImpl(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack) { if (!needGroupedLog(1)) @@ -27066,7 +27323,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) + void GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) return; @@ -27074,7 +27331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, + void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) { if (!needGroupedLog(1)) @@ -27086,7 +27343,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavDestinationContextAccessor namespace NavPathInfoAccessor { - void DestroyPeerImpl(NavPathInfoPeer* peer) + void DestroyPeerImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return; @@ -27100,7 +27357,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* isEntry) { if (!needGroupedLog(1)) - return (NavPathInfoPeer*) 100; + return (Ark_NavPathInfo) 100; string out("new NavPathInfo("); WriteToString(&out, name); out.append(", "); @@ -27110,9 +27367,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, isEntry); out.append(") \n"); - out.append("[return (NavPathInfoPeer*) 100] \n"); + out.append("[return (Ark_NavPathInfo) 100] \n"); appendGroupedLog(1, out); - return (NavPathInfoPeer*) 100; + return (Ark_NavPathInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27124,7 +27381,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetNameImpl(NavPathInfoPeer* peer) + void GetNameImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return; @@ -27132,7 +27389,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetNameImpl(NavPathInfoPeer* peer, + void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -27142,7 +27399,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetParamImpl(NavPathInfoPeer* peer, + void SetParamImpl(Ark_NavPathInfo peer, const Ark_CustomObject* param) { if (!needGroupedLog(1)) @@ -27152,7 +27409,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + Callback_PopInfo_Void GetOnPopImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return {}; @@ -27162,7 +27419,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetOnPopImpl(NavPathInfoPeer* peer, + void SetOnPopImpl(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop) { if (!needGroupedLog(1)) @@ -27172,7 +27429,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + Ark_Boolean GetIsEntryImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return 0; @@ -27182,7 +27439,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsEntryImpl(NavPathInfoPeer* peer, + void SetIsEntryImpl(Ark_NavPathInfo peer, Ark_Boolean isEntry) { if (!needGroupedLog(1)) @@ -27194,7 +27451,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavPathInfoAccessor namespace NavPathStackAccessor { - void DestroyPeerImpl(NavPathStackPeer* peer) + void DestroyPeerImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) return; @@ -27205,12 +27462,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavPathStack CtorImpl() { if (!needGroupedLog(1)) - return (NavPathStackPeer*) 100; + return (Ark_NavPathStack) 100; string out("new NavPathStack("); out.append(") \n"); - out.append("[return (NavPathStackPeer*) 100] \n"); + out.append("[return (Ark_NavPathStack) 100] \n"); appendGroupedLog(1, out); - return (NavPathStackPeer*) 100; + return (Ark_NavPathStack) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27222,7 +27479,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void PushPath0Impl(NavPathStackPeer* peer, + void PushPath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { @@ -27235,7 +27492,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPath1Impl(NavPathStackPeer* peer, + void PushPath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { @@ -27248,7 +27505,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestination0Impl(NavPathStackPeer* peer, + void PushDestination0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27264,7 +27521,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestination1Impl(NavPathStackPeer* peer, + void PushDestination1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27280,7 +27537,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPathByName0Impl(NavPathStackPeer* peer, + void PushPathByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) @@ -27296,7 +27553,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPathByName1Impl(NavPathStackPeer* peer, + void PushPathByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -27315,7 +27572,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestinationByName0Impl(NavPathStackPeer* peer, + void PushDestinationByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, @@ -27334,7 +27591,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestinationByName1Impl(NavPathStackPeer* peer, + void PushDestinationByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -27356,7 +27613,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePath0Impl(NavPathStackPeer* peer, + void ReplacePath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { @@ -27369,7 +27626,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePath1Impl(NavPathStackPeer* peer, + void ReplacePath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { @@ -27382,7 +27639,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceDestinationImpl(NavPathStackPeer* peer, + void ReplaceDestinationImpl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27398,7 +27655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePathByNameImpl(NavPathStackPeer* peer, + void ReplacePathByNameImpl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) @@ -27414,7 +27671,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 RemoveByIndexesImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByIndexesImpl(Ark_NavPathStack peer, const Array_Number* indexes) { if (!needGroupedLog(1)) @@ -27426,7 +27683,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 RemoveByNameImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByNameImpl(Ark_NavPathStack peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -27438,7 +27695,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean RemoveByNavDestinationIdImpl(NavPathStackPeer* peer, + Ark_Boolean RemoveByNavDestinationIdImpl(Ark_NavPathStack peer, const Ark_String* navDestinationId) { if (!needGroupedLog(1)) @@ -27450,34 +27707,34 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop0Impl(Ark_NavPathStack peer, const Opt_Boolean* animated) { if (!needGroupedLog(1)) - return 0; + return {}; string out("pop("); WriteToString(&out, animated); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop1Impl(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated) { if (!needGroupedLog(1)) - return 0; + return {}; string out("pop("); WriteToString(&out, result); out.append(", "); WriteToString(&out, animated); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_Int32 PopToName0Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { @@ -27492,7 +27749,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 PopToName1Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated) @@ -27510,7 +27767,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void PopToIndex0Impl(NavPathStackPeer* peer, + void PopToIndex0Impl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { @@ -27523,7 +27780,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PopToIndex1Impl(NavPathStackPeer* peer, + void PopToIndex1Impl(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated) @@ -27539,7 +27796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 MoveToTopImpl(NavPathStackPeer* peer, + Ark_Int32 MoveToTopImpl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { @@ -27554,7 +27811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void MoveIndexToTopImpl(NavPathStackPeer* peer, + void MoveIndexToTopImpl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { @@ -27567,7 +27824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearImpl(NavPathStackPeer* peer, + void ClearImpl(Ark_NavPathStack peer, const Opt_Boolean* animated) { if (!needGroupedLog(1)) @@ -27577,55 +27834,63 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetAllPathNameImpl(NavPathStackPeer* peer) + Array_String GetAllPathNameImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAllPathName("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParamByIndexImpl(NavPathStackPeer* peer, - const Ark_Number* index) + Opt_CustomObject GetParamByIndexImpl(Ark_NavPathStack peer, + const Ark_Number* index) { if (!needGroupedLog(1)) - return; + return {}; string out("getParamByIndex("); WriteToString(&out, index); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParamByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_CustomObject GetParamByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { if (!needGroupedLog(1)) - return; + return {}; string out("getParamByName("); WriteToString(&out, name); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetIndexByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_Number GetIndexByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { if (!needGroupedLog(1)) - return; + return {}; string out("getIndexByName("); WriteToString(&out, name); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) + Opt_NavPathStack GetParentImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getParent("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_Int32 SizeImpl(NavPathStackPeer* peer) + Ark_Int32 SizeImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) return 0; @@ -27635,7 +27900,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void DisableAnimationImpl(NavPathStackPeer* peer, + void DisableAnimationImpl(Ark_NavPathStack peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -27645,7 +27910,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetInterceptionImpl(NavPathStackPeer* peer, + void SetInterceptionImpl(Ark_NavPathStack peer, const Ark_NavigationInterception* interception) { if (!needGroupedLog(1)) @@ -27657,7 +27922,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavPathStackAccessor namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27668,12 +27933,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavigationTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (NavigationTransitionProxyPeer*) 100; + return (Ark_NavigationTransitionProxy) 100; string out("new NavigationTransitionProxy("); out.append(") \n"); - out.append("[return (NavigationTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_NavigationTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (NavigationTransitionProxyPeer*) 100; + return (Ark_NavigationTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27685,7 +27950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27693,7 +27958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) + void CancelTransitionImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27701,7 +27966,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, + void UpdateTransitionImpl(Ark_NavigationTransitionProxy peer, const Ark_Number* progress) { if (!needGroupedLog(1)) @@ -27711,7 +27976,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFromImpl(NavigationTransitionProxyPeer* peer, + void SetFromImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from) { if (!needGroupedLog(1)) @@ -27721,7 +27986,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetToImpl(NavigationTransitionProxyPeer* peer, + void SetToImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to) { if (!needGroupedLog(1)) @@ -27731,7 +27996,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) + Ark_Boolean GetIsInteractiveImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -27741,7 +28006,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, + void SetIsInteractiveImpl(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive) { if (!needGroupedLog(1)) @@ -27753,7 +28018,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { - void DestroyPeerImpl(PatternLockControllerPeer* peer) + void DestroyPeerImpl(Ark_PatternLockController peer) { if (!needGroupedLog(1)) return; @@ -27764,12 +28029,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PatternLockController CtorImpl() { if (!needGroupedLog(1)) - return (PatternLockControllerPeer*) 100; + return (Ark_PatternLockController) 100; string out("new PatternLockController("); out.append(") \n"); - out.append("[return (PatternLockControllerPeer*) 100] \n"); + out.append("[return (Ark_PatternLockController) 100] \n"); appendGroupedLog(1, out); - return (PatternLockControllerPeer*) 100; + return (Ark_PatternLockController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27781,7 +28046,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ResetImpl(PatternLockControllerPeer* peer) + void ResetImpl(Ark_PatternLockController peer) { if (!needGroupedLog(1)) return; @@ -27789,7 +28054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetChallengeResultImpl(PatternLockControllerPeer* peer, + void SetChallengeResultImpl(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result) { if (!needGroupedLog(1)) @@ -27801,7 +28066,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PatternLockControllerAccessor namespace RichEditorBaseControllerAccessor { - void DestroyPeerImpl(RichEditorBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27812,12 +28077,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorBaseController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorBaseControllerPeer*) 100; + return (Ark_RichEditorBaseController) 100; string out("new RichEditorBaseController("); out.append(") \n"); - out.append("[return (RichEditorBaseControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorBaseController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorBaseControllerPeer*) 100; + return (Ark_RichEditorBaseController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27829,7 +28094,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetCaretOffsetImpl(RichEditorBaseControllerPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return 0; @@ -27839,7 +28104,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean SetCaretOffsetImpl(RichEditorBaseControllerPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_RichEditorBaseController peer, const Ark_Number* offset) { if (!needGroupedLog(1)) @@ -27851,7 +28116,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void CloseSelectionMenuImpl(RichEditorBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27859,7 +28124,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) + Ark_RichEditorTextStyle GetTypingStyleImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return {}; @@ -27869,7 +28134,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, + void SetTypingStyleImpl(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value) { if (!needGroupedLog(1)) @@ -27879,7 +28144,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetSelectionImpl(RichEditorBaseControllerPeer* peer, + void SetSelectionImpl(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -27895,7 +28160,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsEditingImpl(RichEditorBaseControllerPeer* peer) + Ark_Boolean IsEditingImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return 0; @@ -27905,7 +28170,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void StopEditingImpl(RichEditorBaseControllerPeer* peer) + void StopEditingImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27913,17 +28178,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } - Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return {}; @@ -27935,7 +28200,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { - void DestroyPeerImpl(RichEditorControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorController peer) { if (!needGroupedLog(1)) return; @@ -27946,12 +28211,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorControllerPeer*) 100; + return (Ark_RichEditorController) 100; string out("new RichEditorController("); out.append(") \n"); - out.append("[return (RichEditorControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorControllerPeer*) 100; + return (Ark_RichEditorController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27963,7 +28228,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 AddTextSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddTextSpanImpl(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options) { @@ -27978,7 +28243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddImageSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddImageSpanImpl(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options) { @@ -27993,7 +28258,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddBuilderSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddBuilderSpanImpl(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options) { @@ -28008,7 +28273,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddSymbolSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddSymbolSpanImpl(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options) { @@ -28023,7 +28288,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void UpdateSpanStyleImpl(RichEditorControllerPeer* peer, + void UpdateSpanStyleImpl(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value) { if (!needGroupedLog(1)) @@ -28033,7 +28298,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateParagraphStyleImpl(RichEditorControllerPeer* peer, + void UpdateParagraphStyleImpl(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value) { if (!needGroupedLog(1)) @@ -28043,7 +28308,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteSpansImpl(RichEditorControllerPeer* peer, + void DeleteSpansImpl(Ark_RichEditorController peer, const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) @@ -28053,27 +28318,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetSpansImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult GetSpansImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) - return; + return {}; string out("getSpans("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParagraphsImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_RichEditorParagraphResult GetParagraphsImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) - return; + return {}; string out("getParagraphs("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) + Ark_RichEditorSelection GetSelectionImpl(Ark_RichEditorController peer) { if (!needGroupedLog(1)) return {}; @@ -28083,31 +28352,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void FromStyledStringImpl(RichEditorControllerPeer* peer, - Ark_StyledString value) + Array_RichEditorSpan FromStyledStringImpl(Ark_RichEditorController peer, + Ark_StyledString value) { if (!needGroupedLog(1)) - return; + return {}; string out("fromStyledString("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + Ark_StyledString ToStyledStringImpl(Ark_RichEditorController peer, const Ark_RichEditorRange* value) { if (!needGroupedLog(1)) - return {}; + return (Ark_StyledString) 300; string out("toStyledString("); WriteToString(&out, value); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_StyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_StyledString) 300; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { - void DestroyPeerImpl(RichEditorStyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) return; @@ -28118,12 +28389,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorStyledStringController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorStyledStringControllerPeer*) 100; + return (Ark_RichEditorStyledStringController) 100; string out("new RichEditorStyledStringController("); out.append(") \n"); - out.append("[return (RichEditorStyledStringControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorStyledStringController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorStyledStringControllerPeer*) 100; + return (Ark_RichEditorStyledStringController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28135,7 +28406,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString) { if (!needGroupedLog(1)) @@ -28145,17 +28416,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_MutableStyledString) 300; string out("getStyledString("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_MutableStyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_MutableStyledString) 300; } - Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) + Ark_RichEditorRange GetSelectionImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) return {}; @@ -28165,7 +28436,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, + void OnContentChangedImpl(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener) { if (!needGroupedLog(1)) @@ -28177,7 +28448,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RichEditorStyledStringControllerAccessor namespace ScrollerAccessor { - void DestroyPeerImpl(ScrollerPeer* peer) + void DestroyPeerImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return; @@ -28188,12 +28459,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Scroller CtorImpl() { if (!needGroupedLog(1)) - return (ScrollerPeer*) 100; + return (Ark_Scroller) 100; string out("new Scroller("); out.append(") \n"); - out.append("[return (ScrollerPeer*) 100] \n"); + out.append("[return (Ark_Scroller) 100] \n"); appendGroupedLog(1, out); - return (ScrollerPeer*) 100; + return (Ark_Scroller) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28205,7 +28476,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ScrollToImpl(ScrollerPeer* peer, + void ScrollToImpl(Ark_Scroller peer, const Ark_ScrollOptions* options) { if (!needGroupedLog(1)) @@ -28215,7 +28486,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollEdgeImpl(ScrollerPeer* peer, + void ScrollEdgeImpl(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options) { @@ -28228,7 +28499,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FlingImpl(ScrollerPeer* peer, + void FlingImpl(Ark_Scroller peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -28238,7 +28509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollPage0Impl(ScrollerPeer* peer, + void ScrollPage0Impl(Ark_Scroller peer, const Ark_ScrollPageOptions* value) { if (!needGroupedLog(1)) @@ -28248,7 +28519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollPage1Impl(ScrollerPeer* peer, + void ScrollPage1Impl(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value) { if (!needGroupedLog(1)) @@ -28258,7 +28529,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) + Ark_OffsetResult CurrentOffsetImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return {}; @@ -28268,7 +28539,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void ScrollToIndexImpl(ScrollerPeer* peer, + void ScrollToIndexImpl(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, @@ -28287,7 +28558,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollByImpl(ScrollerPeer* peer, + void ScrollByImpl(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy) { @@ -28300,7 +28571,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsAtEndImpl(ScrollerPeer* peer) + Ark_Boolean IsAtEndImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return 0; @@ -28310,8 +28581,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetItemRectImpl(ScrollerPeer* peer, - const Ark_Number* index) + Ark_RectResult GetItemRectImpl(Ark_Scroller peer, + const Ark_Number* index) { if (!needGroupedLog(1)) return {}; @@ -28322,7 +28593,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, + Ark_Int32 GetItemIndexImpl(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y) { @@ -28339,7 +28610,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollerAccessor namespace SearchControllerAccessor { - void DestroyPeerImpl(SearchControllerPeer* peer) + void DestroyPeerImpl(Ark_SearchController peer) { if (!needGroupedLog(1)) return; @@ -28350,12 +28621,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SearchController CtorImpl() { if (!needGroupedLog(1)) - return (SearchControllerPeer*) 100; + return (Ark_SearchController) 100; string out("new SearchController("); out.append(") \n"); - out.append("[return (SearchControllerPeer*) 100] \n"); + out.append("[return (Ark_SearchController) 100] \n"); appendGroupedLog(1, out); - return (SearchControllerPeer*) 100; + return (Ark_SearchController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28367,7 +28638,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(SearchControllerPeer* peer, + void CaretPositionImpl(Ark_SearchController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -28377,7 +28648,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(SearchControllerPeer* peer) + void StopEditingImpl(Ark_SearchController peer) { if (!needGroupedLog(1)) return; @@ -28385,7 +28656,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(SearchControllerPeer* peer, + void SetTextSelectionImpl(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -28403,7 +28674,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SearchControllerAccessor namespace SwiperControllerAccessor { - void DestroyPeerImpl(SwiperControllerPeer* peer) + void DestroyPeerImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28414,12 +28685,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwiperController CtorImpl() { if (!needGroupedLog(1)) - return (SwiperControllerPeer*) 100; + return (Ark_SwiperController) 100; string out("new SwiperController("); out.append(") \n"); - out.append("[return (SwiperControllerPeer*) 100] \n"); + out.append("[return (Ark_SwiperController) 100] \n"); appendGroupedLog(1, out); - return (SwiperControllerPeer*) 100; + return (Ark_SwiperController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28431,7 +28702,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ShowNextImpl(SwiperControllerPeer* peer) + void ShowNextImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28439,7 +28710,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ShowPreviousImpl(SwiperControllerPeer* peer) + void ShowPreviousImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28447,7 +28718,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ChangeIndexImpl(SwiperControllerPeer* peer, + void ChangeIndexImpl(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { @@ -28460,7 +28731,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FinishAnimationImpl(SwiperControllerPeer* peer, + void FinishAnimationImpl(Ark_SwiperController peer, const Opt_VoidCallback* callback_) { if (!needGroupedLog(1)) @@ -28472,7 +28743,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwiperControllerAccessor namespace SwiperContentTransitionProxyAccessor { - void DestroyPeerImpl(SwiperContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -28483,12 +28754,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwiperContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (SwiperContentTransitionProxyPeer*) 100; + return (Ark_SwiperContentTransitionProxy) 100; string out("new SwiperContentTransitionProxy("); out.append(") \n"); - out.append("[return (SwiperContentTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_SwiperContentTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (SwiperContentTransitionProxyPeer*) 100; + return (Ark_SwiperContentTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28500,7 +28771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(SwiperContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -28508,7 +28779,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28518,7 +28789,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex) { if (!needGroupedLog(1)) @@ -28528,7 +28799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetIndexImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28538,7 +28809,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index) { if (!needGroupedLog(1)) @@ -28548,7 +28819,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPositionImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetPositionImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28558,7 +28829,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPositionImpl(SwiperContentTransitionProxyPeer* peer, + void SetPositionImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position) { if (!needGroupedLog(1)) @@ -28568,7 +28839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28578,7 +28849,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer, + void SetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength) { if (!needGroupedLog(1)) @@ -28590,7 +28861,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwiperContentTransitionProxyAccessor namespace IndicatorComponentControllerAccessor { - void DestroyPeerImpl(IndicatorComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28601,12 +28872,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_IndicatorComponentController CtorImpl() { if (!needGroupedLog(1)) - return (IndicatorComponentControllerPeer*) 100; + return (Ark_IndicatorComponentController) 100; string out("new IndicatorComponentController("); out.append(") \n"); - out.append("[return (IndicatorComponentControllerPeer*) 100] \n"); + out.append("[return (Ark_IndicatorComponentController) 100] \n"); appendGroupedLog(1, out); - return (IndicatorComponentControllerPeer*) 100; + return (Ark_IndicatorComponentController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28618,7 +28889,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ShowNextImpl(IndicatorComponentControllerPeer* peer) + void ShowNextImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28626,7 +28897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ShowPreviousImpl(IndicatorComponentControllerPeer* peer) + void ShowPreviousImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28634,7 +28905,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ChangeIndexImpl(IndicatorComponentControllerPeer* peer, + void ChangeIndexImpl(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { @@ -28649,7 +28920,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // IndicatorComponentControllerAccessor namespace ScaleSymbolEffectAccessor { - void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28661,15 +28932,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_EffectDirection* direction) { if (!needGroupedLog(1)) - return (ScaleSymbolEffectPeer*) 100; + return (Ark_ScaleSymbolEffect) 100; string out("new ScaleSymbolEffect("); WriteToString(&out, scope); out.append(", "); WriteToString(&out, direction); out.append(") \n"); - out.append("[return (ScaleSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_ScaleSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (ScaleSymbolEffectPeer*) 100; + return (Ark_ScaleSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28681,7 +28952,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28691,7 +28962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(ScaleSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28701,7 +28972,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28711,7 +28982,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction) { if (!needGroupedLog(1)) @@ -28723,7 +28994,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScaleSymbolEffectAccessor namespace HierarchicalSymbolEffectAccessor { - void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_HierarchicalSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28734,13 +29005,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HierarchicalSymbolEffect CtorImpl(const Opt_EffectFillStyle* fillStyle) { if (!needGroupedLog(1)) - return (HierarchicalSymbolEffectPeer*) 100; + return (Ark_HierarchicalSymbolEffect) 100; string out("new HierarchicalSymbolEffect("); WriteToString(&out, fillStyle); out.append(") \n"); - out.append("[return (HierarchicalSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_HierarchicalSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (HierarchicalSymbolEffectPeer*) 100; + return (Ark_HierarchicalSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28752,7 +29023,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + Ark_EffectFillStyle GetFillStyleImpl(Ark_HierarchicalSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28762,7 +29033,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + void SetFillStyleImpl(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle) { if (!needGroupedLog(1)) @@ -28774,7 +29045,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HierarchicalSymbolEffectAccessor namespace AppearSymbolEffectAccessor { - void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_AppearSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28785,13 +29056,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AppearSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (AppearSymbolEffectPeer*) 100; + return (Ark_AppearSymbolEffect) 100; string out("new AppearSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (AppearSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_AppearSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (AppearSymbolEffectPeer*) 100; + return (Ark_AppearSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28803,7 +29074,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(AppearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_AppearSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28813,7 +29084,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(AppearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_AppearSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28825,7 +29096,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AppearSymbolEffectAccessor namespace DisappearSymbolEffectAccessor { - void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_DisappearSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28836,13 +29107,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DisappearSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (DisappearSymbolEffectPeer*) 100; + return (Ark_DisappearSymbolEffect) 100; string out("new DisappearSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (DisappearSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_DisappearSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (DisappearSymbolEffectPeer*) 100; + return (Ark_DisappearSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28854,7 +29125,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(DisappearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_DisappearSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28864,7 +29135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(DisappearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28876,7 +29147,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DisappearSymbolEffectAccessor namespace BounceSymbolEffectAccessor { - void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28888,15 +29159,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_EffectDirection* direction) { if (!needGroupedLog(1)) - return (BounceSymbolEffectPeer*) 100; + return (Ark_BounceSymbolEffect) 100; string out("new BounceSymbolEffect("); WriteToString(&out, scope); out.append(", "); WriteToString(&out, direction); out.append(") \n"); - out.append("[return (BounceSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_BounceSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (BounceSymbolEffectPeer*) 100; + return (Ark_BounceSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28908,7 +29179,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(BounceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28918,7 +29189,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(BounceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_BounceSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28928,7 +29199,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28938,7 +29209,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(BounceSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction) { if (!needGroupedLog(1)) @@ -28950,7 +29221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BounceSymbolEffectAccessor namespace ReplaceSymbolEffectAccessor { - void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ReplaceSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28961,13 +29232,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ReplaceSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (ReplaceSymbolEffectPeer*) 100; + return (Ark_ReplaceSymbolEffect) 100; string out("new ReplaceSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (ReplaceSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_ReplaceSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (ReplaceSymbolEffectPeer*) 100; + return (Ark_ReplaceSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28979,7 +29250,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(ReplaceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ReplaceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28989,7 +29260,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -29001,7 +29272,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ReplaceSymbolEffectAccessor namespace TabsControllerAccessor { - void DestroyPeerImpl(TabsControllerPeer* peer) + void DestroyPeerImpl(Ark_TabsController peer) { if (!needGroupedLog(1)) return; @@ -29012,12 +29283,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TabsController CtorImpl() { if (!needGroupedLog(1)) - return (TabsControllerPeer*) 100; + return (Ark_TabsController) 100; string out("new TabsController("); out.append(") \n"); - out.append("[return (TabsControllerPeer*) 100] \n"); + out.append("[return (Ark_TabsController) 100] \n"); appendGroupedLog(1, out); - return (TabsControllerPeer*) 100; + return (Ark_TabsController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29029,7 +29300,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ChangeIndexImpl(TabsControllerPeer* peer, + void ChangeIndexImpl(Ark_TabsController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29039,7 +29310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PreloadItemsImpl(TabsControllerPeer* peer, + void PreloadItemsImpl(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -29052,7 +29323,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTabBarTranslateImpl(TabsControllerPeer* peer, + void SetTabBarTranslateImpl(Ark_TabsController peer, const Ark_TranslateOptions* translate) { if (!needGroupedLog(1)) @@ -29062,7 +29333,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTabBarOpacityImpl(TabsControllerPeer* peer, + void SetTabBarOpacityImpl(Ark_TabsController peer, const Ark_Number* opacity) { if (!needGroupedLog(1)) @@ -29074,7 +29345,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TabsControllerAccessor namespace TabContentTransitionProxyAccessor { - void DestroyPeerImpl(TabContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -29085,12 +29356,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TabContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (TabContentTransitionProxyPeer*) 100; + return (Ark_TabContentTransitionProxy) 100; string out("new TabContentTransitionProxy("); out.append(") \n"); - out.append("[return (TabContentTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_TabContentTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (TabContentTransitionProxyPeer*) 100; + return (Ark_TabContentTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29102,7 +29373,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(TabContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -29110,7 +29381,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetFromImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetFromImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -29120,7 +29391,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetFromImpl(TabContentTransitionProxyPeer* peer, + void SetFromImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* from) { if (!needGroupedLog(1)) @@ -29130,7 +29401,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetToImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetToImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -29140,7 +29411,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetToImpl(TabContentTransitionProxyPeer* peer, + void SetToImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* to) { if (!needGroupedLog(1)) @@ -29152,7 +29423,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TabContentTransitionProxyAccessor namespace TextControllerAccessor { - void DestroyPeerImpl(TextControllerPeer* peer) + void DestroyPeerImpl(Ark_TextController peer) { if (!needGroupedLog(1)) return; @@ -29163,12 +29434,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextController CtorImpl() { if (!needGroupedLog(1)) - return (TextControllerPeer*) 100; + return (Ark_TextController) 100; string out("new TextController("); out.append(") \n"); - out.append("[return (TextControllerPeer*) 100] \n"); + out.append("[return (Ark_TextController) 100] \n"); appendGroupedLog(1, out); - return (TextControllerPeer*) 100; + return (Ark_TextController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29180,7 +29451,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseSelectionMenuImpl(TextControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextController peer) { if (!needGroupedLog(1)) return; @@ -29188,7 +29459,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStyledStringImpl(TextControllerPeer* peer, + void SetStyledStringImpl(Ark_TextController peer, Ark_StyledString value) { if (!needGroupedLog(1)) @@ -29198,19 +29469,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } } // TextControllerAccessor namespace TextAreaControllerAccessor { - void DestroyPeerImpl(TextAreaControllerPeer* peer) + void DestroyPeerImpl(Ark_TextAreaController peer) { if (!needGroupedLog(1)) return; @@ -29221,12 +29492,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextAreaController CtorImpl() { if (!needGroupedLog(1)) - return (TextAreaControllerPeer*) 100; + return (Ark_TextAreaController) 100; string out("new TextAreaController("); out.append(") \n"); - out.append("[return (TextAreaControllerPeer*) 100] \n"); + out.append("[return (Ark_TextAreaController) 100] \n"); appendGroupedLog(1, out); - return (TextAreaControllerPeer*) 100; + return (Ark_TextAreaController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29238,7 +29509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(TextAreaControllerPeer* peer, + void CaretPositionImpl(Ark_TextAreaController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29248,7 +29519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(TextAreaControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29264,7 +29535,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(TextAreaControllerPeer* peer) + void StopEditingImpl(Ark_TextAreaController peer) { if (!needGroupedLog(1)) return; @@ -29274,7 +29545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextAreaControllerAccessor namespace TextClockControllerAccessor { - void DestroyPeerImpl(TextClockControllerPeer* peer) + void DestroyPeerImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29285,12 +29556,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextClockController CtorImpl() { if (!needGroupedLog(1)) - return (TextClockControllerPeer*) 100; + return (Ark_TextClockController) 100; string out("new TextClockController("); out.append(") \n"); - out.append("[return (TextClockControllerPeer*) 100] \n"); + out.append("[return (Ark_TextClockController) 100] \n"); appendGroupedLog(1, out); - return (TextClockControllerPeer*) 100; + return (Ark_TextClockController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29302,7 +29573,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(TextClockControllerPeer* peer) + void StartImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29310,7 +29581,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(TextClockControllerPeer* peer) + void StopImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29320,7 +29591,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextClockControllerAccessor namespace TextBaseControllerAccessor { - void DestroyPeerImpl(TextBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) return; @@ -29331,12 +29602,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextBaseController CtorImpl() { if (!needGroupedLog(1)) - return (TextBaseControllerPeer*) 100; + return (Ark_TextBaseController) 100; string out("new TextBaseController("); out.append(") \n"); - out.append("[return (TextBaseControllerPeer*) 100] \n"); + out.append("[return (Ark_TextBaseController) 100] \n"); appendGroupedLog(1, out); - return (TextBaseControllerPeer*) 100; + return (Ark_TextBaseController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29348,7 +29619,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetSelectionImpl(TextBaseControllerPeer* peer, + void SetSelectionImpl(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29364,7 +29635,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseSelectionMenuImpl(TextBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) return; @@ -29372,19 +29643,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { - void DestroyPeerImpl(TextEditControllerExPeer* peer) + void DestroyPeerImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return; @@ -29395,12 +29666,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextEditControllerEx CtorImpl() { if (!needGroupedLog(1)) - return (TextEditControllerExPeer*) 100; + return (Ark_TextEditControllerEx) 100; string out("new TextEditControllerEx("); out.append(") \n"); - out.append("[return (TextEditControllerExPeer*) 100] \n"); + out.append("[return (Ark_TextEditControllerEx) 100] \n"); appendGroupedLog(1, out); - return (TextEditControllerExPeer*) 100; + return (Ark_TextEditControllerEx) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29412,7 +29683,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsEditingImpl(TextEditControllerExPeer* peer) + Ark_Boolean IsEditingImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return 0; @@ -29422,7 +29693,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void StopEditingImpl(TextEditControllerExPeer* peer) + void StopEditingImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return; @@ -29430,7 +29701,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean SetCaretOffsetImpl(TextEditControllerExPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_TextEditControllerEx peer, const Ark_Number* offset) { if (!needGroupedLog(1)) @@ -29442,7 +29713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetCaretOffsetImpl(TextEditControllerExPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return 0; @@ -29452,7 +29723,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return {}; @@ -29464,7 +29735,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { - void DestroyPeerImpl(StyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_StyledStringController peer) { if (!needGroupedLog(1)) return; @@ -29475,12 +29746,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_StyledStringController CtorImpl() { if (!needGroupedLog(1)) - return (StyledStringControllerPeer*) 100; + return (Ark_StyledStringController) 100; string out("new StyledStringController("); out.append(") \n"); - out.append("[return (StyledStringControllerPeer*) 100] \n"); + out.append("[return (Ark_StyledStringController) 100] \n"); appendGroupedLog(1, out); - return (StyledStringControllerPeer*) 100; + return (Ark_StyledStringController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29492,7 +29763,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetStyledStringImpl(StyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_StyledStringController peer, Ark_StyledString styledString) { if (!needGroupedLog(1)) @@ -29502,19 +29773,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_StyledStringController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_MutableStyledString) 300; string out("getStyledString("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_MutableStyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_MutableStyledString) 300; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { - void DestroyPeerImpl(LayoutManagerPeer* peer) + void DestroyPeerImpl(Ark_LayoutManager peer) { if (!needGroupedLog(1)) return; @@ -29525,12 +29796,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LayoutManager CtorImpl() { if (!needGroupedLog(1)) - return (LayoutManagerPeer*) 100; + return (Ark_LayoutManager) 100; string out("new LayoutManager("); out.append(") \n"); - out.append("[return (LayoutManagerPeer*) 100] \n"); + out.append("[return (Ark_LayoutManager) 100] \n"); appendGroupedLog(1, out); - return (LayoutManagerPeer*) 100; + return (Ark_LayoutManager) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29542,7 +29813,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLineCountImpl(LayoutManagerPeer* peer) + Ark_Int32 GetLineCountImpl(Ark_LayoutManager peer) { if (!needGroupedLog(1)) return 0; @@ -29552,9 +29823,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetGlyphPositionAtCoordinateImpl(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_PositionWithAffinity GetGlyphPositionAtCoordinateImpl(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y) { if (!needGroupedLog(1)) return {}; @@ -29567,8 +29838,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, - const Ark_Number* lineNumber) + Ark_LineMetrics GetLineMetricsImpl(Ark_LayoutManager peer, + const Ark_Number* lineNumber) { if (!needGroupedLog(1)) return {}; @@ -29579,13 +29850,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetRectsForRangeImpl(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle) + Array_TextBox GetRectsForRangeImpl(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle) { if (!needGroupedLog(1)) - return; + return {}; string out("getRectsForRange("); WriteToString(&out, range); out.append(", "); @@ -29593,11 +29864,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, heightStyle); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // LayoutManagerAccessor namespace TextMenuItemIdAccessor { - void DestroyPeerImpl(TextMenuItemIdPeer* peer) + void DestroyPeerImpl(Ark_TextMenuItemId peer) { if (!needGroupedLog(1)) return; @@ -29608,12 +29881,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextMenuItemId CtorImpl() { if (!needGroupedLog(1)) - return (TextMenuItemIdPeer*) 100; + return (Ark_TextMenuItemId) 100; string out("new TextMenuItemId("); out.append(") \n"); - out.append("[return (TextMenuItemIdPeer*) 100] \n"); + out.append("[return (Ark_TextMenuItemId) 100] \n"); appendGroupedLog(1, out); - return (TextMenuItemIdPeer*) 100; + return (Ark_TextMenuItemId) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29636,7 +29909,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_TextMenuItemId) 300; } - Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, + Ark_Boolean EqualsImpl(Ark_TextMenuItemId peer, Ark_TextMenuItemId id) { if (!needGroupedLog(1)) @@ -29650,7 +29923,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextMenuItemIdAccessor namespace EditMenuOptionsAccessor { - void DestroyPeerImpl(EditMenuOptionsPeer* peer) + void DestroyPeerImpl(Ark_EditMenuOptions peer) { if (!needGroupedLog(1)) return; @@ -29661,12 +29934,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EditMenuOptions CtorImpl() { if (!needGroupedLog(1)) - return (EditMenuOptionsPeer*) 100; + return (Ark_EditMenuOptions) 100; string out("new EditMenuOptions("); out.append(") \n"); - out.append("[return (EditMenuOptionsPeer*) 100] \n"); + out.append("[return (Ark_EditMenuOptions) 100] \n"); appendGroupedLog(1, out); - return (EditMenuOptionsPeer*) 100; + return (Ark_EditMenuOptions) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29678,17 +29951,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnCreateMenuImpl(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems) + Array_TextMenuItem OnCreateMenuImpl(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems) { if (!needGroupedLog(1)) - return; + return {}; string out("onCreateMenu("); WriteToString(&out, menuItems); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean OnMenuItemClickImpl(EditMenuOptionsPeer* peer, + Ark_Boolean OnMenuItemClickImpl(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range) { @@ -29705,7 +29980,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EditMenuOptionsAccessor namespace SubmitEventAccessor { - void DestroyPeerImpl(SubmitEventPeer* peer) + void DestroyPeerImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) return; @@ -29716,12 +29991,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SubmitEvent CtorImpl() { if (!needGroupedLog(1)) - return (SubmitEventPeer*) 100; + return (Ark_SubmitEvent) 100; string out("new SubmitEvent("); out.append(") \n"); - out.append("[return (SubmitEventPeer*) 100] \n"); + out.append("[return (Ark_SubmitEvent) 100] \n"); appendGroupedLog(1, out); - return (SubmitEventPeer*) 100; + return (Ark_SubmitEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29733,7 +30008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void KeepEditableStateImpl(SubmitEventPeer* peer) + void KeepEditableStateImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) return; @@ -29741,7 +30016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetTextImpl(SubmitEventPeer* peer) + void GetTextImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) return; @@ -29749,7 +30024,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextImpl(SubmitEventPeer* peer, + void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) { if (!needGroupedLog(1)) @@ -29761,7 +30036,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SubmitEventAccessor namespace TextInputControllerAccessor { - void DestroyPeerImpl(TextInputControllerPeer* peer) + void DestroyPeerImpl(Ark_TextInputController peer) { if (!needGroupedLog(1)) return; @@ -29772,12 +30047,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextInputController CtorImpl() { if (!needGroupedLog(1)) - return (TextInputControllerPeer*) 100; + return (Ark_TextInputController) 100; string out("new TextInputController("); out.append(") \n"); - out.append("[return (TextInputControllerPeer*) 100] \n"); + out.append("[return (Ark_TextInputController) 100] \n"); appendGroupedLog(1, out); - return (TextInputControllerPeer*) 100; + return (Ark_TextInputController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29789,7 +30064,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(TextInputControllerPeer* peer, + void CaretPositionImpl(Ark_TextInputController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29799,7 +30074,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(TextInputControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29815,7 +30090,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(TextInputControllerPeer* peer) + void StopEditingImpl(Ark_TextInputController peer) { if (!needGroupedLog(1)) return; @@ -29825,7 +30100,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextInputControllerAccessor namespace TextPickerDialogAccessor { - void DestroyPeerImpl(TextPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TextPickerDialog peer) { if (!needGroupedLog(1)) return; @@ -29836,12 +30111,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextPickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (TextPickerDialogPeer*) 100; + return (Ark_TextPickerDialog) 100; string out("new TextPickerDialog("); out.append(") \n"); - out.append("[return (TextPickerDialogPeer*) 100] \n"); + out.append("[return (Ark_TextPickerDialog) 100] \n"); appendGroupedLog(1, out); - return (TextPickerDialogPeer*) 100; + return (Ark_TextPickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29864,7 +30139,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextPickerDialogAccessor namespace TextTimerControllerAccessor { - void DestroyPeerImpl(TextTimerControllerPeer* peer) + void DestroyPeerImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29875,12 +30150,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextTimerController CtorImpl() { if (!needGroupedLog(1)) - return (TextTimerControllerPeer*) 100; + return (Ark_TextTimerController) 100; string out("new TextTimerController("); out.append(") \n"); - out.append("[return (TextTimerControllerPeer*) 100] \n"); + out.append("[return (Ark_TextTimerController) 100] \n"); appendGroupedLog(1, out); - return (TextTimerControllerPeer*) 100; + return (Ark_TextTimerController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29892,7 +30167,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(TextTimerControllerPeer* peer) + void StartImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29900,7 +30175,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(TextTimerControllerPeer* peer) + void PauseImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29908,7 +30183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(TextTimerControllerPeer* peer) + void ResetImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29918,7 +30193,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextTimerControllerAccessor namespace TimePickerDialogAccessor { - void DestroyPeerImpl(TimePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TimePickerDialog peer) { if (!needGroupedLog(1)) return; @@ -29929,12 +30204,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TimePickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (TimePickerDialogPeer*) 100; + return (Ark_TimePickerDialog) 100; string out("new TimePickerDialog("); out.append(") \n"); - out.append("[return (TimePickerDialogPeer*) 100] \n"); + out.append("[return (Ark_TimePickerDialog) 100] \n"); appendGroupedLog(1, out); - return (TimePickerDialogPeer*) 100; + return (Ark_TimePickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29957,7 +30232,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TimePickerDialogAccessor namespace ColorFilterAccessor { - void DestroyPeerImpl(ColorFilterPeer* peer) + void DestroyPeerImpl(Ark_ColorFilter peer) { if (!needGroupedLog(1)) return; @@ -29968,13 +30243,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ColorFilter CtorImpl(const Array_Number* value) { if (!needGroupedLog(1)) - return (ColorFilterPeer*) 100; + return (Ark_ColorFilter) 100; string out("new ColorFilter("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ColorFilterPeer*) 100] \n"); + out.append("[return (Ark_ColorFilter) 100] \n"); appendGroupedLog(1, out); - return (ColorFilterPeer*) 100; + return (Ark_ColorFilter) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29988,7 +30263,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ColorFilterAccessor namespace VideoControllerAccessor { - void DestroyPeerImpl(VideoControllerPeer* peer) + void DestroyPeerImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -29999,12 +30274,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_VideoController CtorImpl() { if (!needGroupedLog(1)) - return (VideoControllerPeer*) 100; + return (Ark_VideoController) 100; string out("new VideoController("); out.append(") \n"); - out.append("[return (VideoControllerPeer*) 100] \n"); + out.append("[return (Ark_VideoController) 100] \n"); appendGroupedLog(1, out); - return (VideoControllerPeer*) 100; + return (Ark_VideoController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30016,7 +30291,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(VideoControllerPeer* peer) + void StartImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30024,7 +30299,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(VideoControllerPeer* peer) + void PauseImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30032,7 +30307,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(VideoControllerPeer* peer) + void StopImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30040,7 +30315,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetCurrentTime0Impl(VideoControllerPeer* peer, + void SetCurrentTime0Impl(Ark_VideoController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -30050,7 +30325,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RequestFullscreenImpl(VideoControllerPeer* peer, + void RequestFullscreenImpl(Ark_VideoController peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -30060,7 +30335,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ExitFullscreenImpl(VideoControllerPeer* peer) + void ExitFullscreenImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30068,7 +30343,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetCurrentTime1Impl(VideoControllerPeer* peer, + void SetCurrentTime1Impl(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode) { @@ -30081,7 +30356,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(VideoControllerPeer* peer) + void ResetImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30091,7 +30366,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // VideoControllerAccessor namespace WebKeyboardControllerAccessor { - void DestroyPeerImpl(WebKeyboardControllerPeer* peer) + void DestroyPeerImpl(Ark_WebKeyboardController peer) { if (!needGroupedLog(1)) return; @@ -30102,12 +30377,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebKeyboardController CtorImpl() { if (!needGroupedLog(1)) - return (WebKeyboardControllerPeer*) 100; + return (Ark_WebKeyboardController) 100; string out("new WebKeyboardController("); out.append(") \n"); - out.append("[return (WebKeyboardControllerPeer*) 100] \n"); + out.append("[return (Ark_WebKeyboardController) 100] \n"); appendGroupedLog(1, out); - return (WebKeyboardControllerPeer*) 100; + return (Ark_WebKeyboardController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30119,7 +30394,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InsertTextImpl(WebKeyboardControllerPeer* peer, + void InsertTextImpl(Ark_WebKeyboardController peer, const Ark_String* text) { if (!needGroupedLog(1)) @@ -30129,7 +30404,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteForwardImpl(WebKeyboardControllerPeer* peer, + void DeleteForwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { if (!needGroupedLog(1)) @@ -30139,7 +30414,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteBackwardImpl(WebKeyboardControllerPeer* peer, + void DeleteBackwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { if (!needGroupedLog(1)) @@ -30149,7 +30424,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SendFunctionKeyImpl(WebKeyboardControllerPeer* peer, + void SendFunctionKeyImpl(Ark_WebKeyboardController peer, const Ark_Number* key) { if (!needGroupedLog(1)) @@ -30159,7 +30434,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseImpl(WebKeyboardControllerPeer* peer) + void CloseImpl(Ark_WebKeyboardController peer) { if (!needGroupedLog(1)) return; @@ -30169,7 +30444,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebKeyboardControllerAccessor namespace FullScreenExitHandlerAccessor { - void DestroyPeerImpl(FullScreenExitHandlerPeer* peer) + void DestroyPeerImpl(Ark_FullScreenExitHandler peer) { if (!needGroupedLog(1)) return; @@ -30180,12 +30455,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FullScreenExitHandler CtorImpl() { if (!needGroupedLog(1)) - return (FullScreenExitHandlerPeer*) 100; + return (Ark_FullScreenExitHandler) 100; string out("new FullScreenExitHandler("); out.append(") \n"); - out.append("[return (FullScreenExitHandlerPeer*) 100] \n"); + out.append("[return (Ark_FullScreenExitHandler) 100] \n"); appendGroupedLog(1, out); - return (FullScreenExitHandlerPeer*) 100; + return (Ark_FullScreenExitHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30197,7 +30472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ExitFullScreenImpl(FullScreenExitHandlerPeer* peer) + void ExitFullScreenImpl(Ark_FullScreenExitHandler peer) { if (!needGroupedLog(1)) return; @@ -30207,7 +30482,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FullScreenExitHandlerAccessor namespace FileSelectorParamAccessor { - void DestroyPeerImpl(FileSelectorParamPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return; @@ -30218,12 +30493,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FileSelectorParam CtorImpl() { if (!needGroupedLog(1)) - return (FileSelectorParamPeer*) 100; + return (Ark_FileSelectorParam) 100; string out("new FileSelectorParam("); out.append(") \n"); - out.append("[return (FileSelectorParamPeer*) 100] \n"); + out.append("[return (Ark_FileSelectorParam) 100] \n"); appendGroupedLog(1, out); - return (FileSelectorParamPeer*) 100; + return (Ark_FileSelectorParam) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30235,7 +30510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTitleImpl(FileSelectorParamPeer* peer) + void GetTitleImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return; @@ -30243,7 +30518,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) + Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return {}; @@ -30253,15 +30528,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetAcceptTypeImpl(FileSelectorParamPeer* peer) + Array_String GetAcceptTypeImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAcceptType("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean IsCaptureImpl(FileSelectorParamPeer* peer) + Ark_Boolean IsCaptureImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return 0; @@ -30273,7 +30550,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FileSelectorParamAccessor namespace JsResultAccessor { - void DestroyPeerImpl(JsResultPeer* peer) + void DestroyPeerImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30284,12 +30561,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_JsResult CtorImpl() { if (!needGroupedLog(1)) - return (JsResultPeer*) 100; + return (Ark_JsResult) 100; string out("new JsResult("); out.append(") \n"); - out.append("[return (JsResultPeer*) 100] \n"); + out.append("[return (Ark_JsResult) 100] \n"); appendGroupedLog(1, out); - return (JsResultPeer*) 100; + return (Ark_JsResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30301,7 +30578,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleCancelImpl(JsResultPeer* peer) + void HandleCancelImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30309,7 +30586,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandleConfirmImpl(JsResultPeer* peer) + void HandleConfirmImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30317,7 +30594,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandlePromptConfirmImpl(JsResultPeer* peer, + void HandlePromptConfirmImpl(Ark_JsResult peer, const Ark_String* result) { if (!needGroupedLog(1)) @@ -30329,7 +30606,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsResultAccessor namespace FileSelectorResultAccessor { - void DestroyPeerImpl(FileSelectorResultPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorResult peer) { if (!needGroupedLog(1)) return; @@ -30340,12 +30617,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FileSelectorResult CtorImpl() { if (!needGroupedLog(1)) - return (FileSelectorResultPeer*) 100; + return (Ark_FileSelectorResult) 100; string out("new FileSelectorResult("); out.append(") \n"); - out.append("[return (FileSelectorResultPeer*) 100] \n"); + out.append("[return (Ark_FileSelectorResult) 100] \n"); appendGroupedLog(1, out); - return (FileSelectorResultPeer*) 100; + return (Ark_FileSelectorResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30357,7 +30634,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleFileListImpl(FileSelectorResultPeer* peer, + void HandleFileListImpl(Ark_FileSelectorResult peer, const Array_String* fileList) { if (!needGroupedLog(1)) @@ -30369,7 +30646,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FileSelectorResultAccessor namespace HttpAuthHandlerAccessor { - void DestroyPeerImpl(HttpAuthHandlerPeer* peer) + void DestroyPeerImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return; @@ -30380,12 +30657,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HttpAuthHandler CtorImpl() { if (!needGroupedLog(1)) - return (HttpAuthHandlerPeer*) 100; + return (Ark_HttpAuthHandler) 100; string out("new HttpAuthHandler("); out.append(") \n"); - out.append("[return (HttpAuthHandlerPeer*) 100] \n"); + out.append("[return (Ark_HttpAuthHandler) 100] \n"); appendGroupedLog(1, out); - return (HttpAuthHandlerPeer*) 100; + return (Ark_HttpAuthHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30397,7 +30674,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean ConfirmImpl(HttpAuthHandlerPeer* peer, + Ark_Boolean ConfirmImpl(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password) { @@ -30412,7 +30689,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void CancelImpl(HttpAuthHandlerPeer* peer) + void CancelImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return; @@ -30420,7 +30697,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsHttpAuthInfoSavedImpl(HttpAuthHandlerPeer* peer) + Ark_Boolean IsHttpAuthInfoSavedImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return 0; @@ -30432,7 +30709,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HttpAuthHandlerAccessor namespace SslErrorHandlerAccessor { - void DestroyPeerImpl(SslErrorHandlerPeer* peer) + void DestroyPeerImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30443,12 +30720,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SslErrorHandler CtorImpl() { if (!needGroupedLog(1)) - return (SslErrorHandlerPeer*) 100; + return (Ark_SslErrorHandler) 100; string out("new SslErrorHandler("); out.append(") \n"); - out.append("[return (SslErrorHandlerPeer*) 100] \n"); + out.append("[return (Ark_SslErrorHandler) 100] \n"); appendGroupedLog(1, out); - return (SslErrorHandlerPeer*) 100; + return (Ark_SslErrorHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30460,7 +30737,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleConfirmImpl(SslErrorHandlerPeer* peer) + void HandleConfirmImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30468,7 +30745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandleCancelImpl(SslErrorHandlerPeer* peer) + void HandleCancelImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30478,7 +30755,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SslErrorHandlerAccessor namespace ClientAuthenticationHandlerAccessor { - void DestroyPeerImpl(ClientAuthenticationHandlerPeer* peer) + void DestroyPeerImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30489,12 +30766,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ClientAuthenticationHandler CtorImpl() { if (!needGroupedLog(1)) - return (ClientAuthenticationHandlerPeer*) 100; + return (Ark_ClientAuthenticationHandler) 100; string out("new ClientAuthenticationHandler("); out.append(") \n"); - out.append("[return (ClientAuthenticationHandlerPeer*) 100] \n"); + out.append("[return (Ark_ClientAuthenticationHandler) 100] \n"); appendGroupedLog(1, out); - return (ClientAuthenticationHandlerPeer*) 100; + return (Ark_ClientAuthenticationHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30506,7 +30783,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void Confirm0Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm0Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile) { @@ -30519,7 +30796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Confirm1Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm1Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri) { if (!needGroupedLog(1)) @@ -30529,7 +30806,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelImpl(ClientAuthenticationHandlerPeer* peer) + void CancelImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30537,7 +30814,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void IgnoreImpl(ClientAuthenticationHandlerPeer* peer) + void IgnoreImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30547,7 +30824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ClientAuthenticationHandlerAccessor namespace PermissionRequestAccessor { - void DestroyPeerImpl(PermissionRequestPeer* peer) + void DestroyPeerImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) return; @@ -30558,12 +30835,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PermissionRequest CtorImpl() { if (!needGroupedLog(1)) - return (PermissionRequestPeer*) 100; + return (Ark_PermissionRequest) 100; string out("new PermissionRequest("); out.append(") \n"); - out.append("[return (PermissionRequestPeer*) 100] \n"); + out.append("[return (Ark_PermissionRequest) 100] \n"); appendGroupedLog(1, out); - return (PermissionRequestPeer*) 100; + return (Ark_PermissionRequest) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30575,7 +30852,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DenyImpl(PermissionRequestPeer* peer) + void DenyImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) return; @@ -30583,7 +30860,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetOriginImpl(PermissionRequestPeer* peer) + void GetOriginImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) return; @@ -30591,15 +30868,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetAccessibleResourceImpl(PermissionRequestPeer* peer) + Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAccessibleResource("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GrantImpl(PermissionRequestPeer* peer, + void GrantImpl(Ark_PermissionRequest peer, const Array_String* resources) { if (!needGroupedLog(1)) @@ -30611,7 +30890,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PermissionRequestAccessor namespace ScreenCaptureHandlerAccessor { - void DestroyPeerImpl(ScreenCaptureHandlerPeer* peer) + void DestroyPeerImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) return; @@ -30622,12 +30901,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ScreenCaptureHandler CtorImpl() { if (!needGroupedLog(1)) - return (ScreenCaptureHandlerPeer*) 100; + return (Ark_ScreenCaptureHandler) 100; string out("new ScreenCaptureHandler("); out.append(") \n"); - out.append("[return (ScreenCaptureHandlerPeer*) 100] \n"); + out.append("[return (Ark_ScreenCaptureHandler) 100] \n"); appendGroupedLog(1, out); - return (ScreenCaptureHandlerPeer*) 100; + return (Ark_ScreenCaptureHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30639,7 +30918,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetOriginImpl(ScreenCaptureHandlerPeer* peer) + void GetOriginImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) return; @@ -30647,7 +30926,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GrantImpl(ScreenCaptureHandlerPeer* peer, + void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) { if (!needGroupedLog(1)) @@ -30657,7 +30936,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DenyImpl(ScreenCaptureHandlerPeer* peer) + void DenyImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) return; @@ -30667,7 +30946,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScreenCaptureHandlerAccessor namespace DataResubmissionHandlerAccessor { - void DestroyPeerImpl(DataResubmissionHandlerPeer* peer) + void DestroyPeerImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30678,12 +30957,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DataResubmissionHandler CtorImpl() { if (!needGroupedLog(1)) - return (DataResubmissionHandlerPeer*) 100; + return (Ark_DataResubmissionHandler) 100; string out("new DataResubmissionHandler("); out.append(") \n"); - out.append("[return (DataResubmissionHandlerPeer*) 100] \n"); + out.append("[return (Ark_DataResubmissionHandler) 100] \n"); appendGroupedLog(1, out); - return (DataResubmissionHandlerPeer*) 100; + return (Ark_DataResubmissionHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30695,7 +30974,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ResendImpl(DataResubmissionHandlerPeer* peer) + void ResendImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30703,7 +30982,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelImpl(DataResubmissionHandlerPeer* peer) + void CancelImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30713,7 +30992,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DataResubmissionHandlerAccessor namespace ControllerHandlerAccessor { - void DestroyPeerImpl(ControllerHandlerPeer* peer) + void DestroyPeerImpl(Ark_ControllerHandler peer) { if (!needGroupedLog(1)) return; @@ -30724,12 +31003,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ControllerHandler CtorImpl() { if (!needGroupedLog(1)) - return (ControllerHandlerPeer*) 100; + return (Ark_ControllerHandler) 100; string out("new ControllerHandler("); out.append(") \n"); - out.append("[return (ControllerHandlerPeer*) 100] \n"); + out.append("[return (Ark_ControllerHandler) 100] \n"); appendGroupedLog(1, out); - return (ControllerHandlerPeer*) 100; + return (Ark_ControllerHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30741,7 +31020,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetWebControllerImpl(ControllerHandlerPeer* peer, + void SetWebControllerImpl(Ark_ControllerHandler peer, Ark_WebviewController controller) { if (!needGroupedLog(1)) @@ -30753,7 +31032,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ControllerHandlerAccessor namespace WebContextMenuParamAccessor { - void DestroyPeerImpl(WebContextMenuParamPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30764,12 +31043,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebContextMenuParam CtorImpl() { if (!needGroupedLog(1)) - return (WebContextMenuParamPeer*) 100; + return (Ark_WebContextMenuParam) 100; string out("new WebContextMenuParam("); out.append(") \n"); - out.append("[return (WebContextMenuParamPeer*) 100] \n"); + out.append("[return (Ark_WebContextMenuParam) 100] \n"); appendGroupedLog(1, out); - return (WebContextMenuParamPeer*) 100; + return (Ark_WebContextMenuParam) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30781,7 +31060,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 XImpl(WebContextMenuParamPeer* peer) + Ark_Int32 XImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30791,7 +31070,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 YImpl(WebContextMenuParamPeer* peer) + Ark_Int32 YImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30801,7 +31080,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetLinkUrlImpl(WebContextMenuParamPeer* peer) + void GetLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30809,7 +31088,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetUnfilteredLinkUrlImpl(WebContextMenuParamPeer* peer) + void GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30817,7 +31096,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetSourceUrlImpl(WebContextMenuParamPeer* peer) + void GetSourceUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30825,7 +31104,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean ExistsImageContentsImpl(WebContextMenuParamPeer* peer) + Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30835,7 +31114,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuMediaType GetMediaTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30845,7 +31124,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetSelectionTextImpl(WebContextMenuParamPeer* peer) + void GetSelectionTextImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30853,7 +31132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30863,7 +31142,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuInputFieldType GetInputFieldTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30873,7 +31152,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) + Ark_Boolean IsEditableImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30883,7 +31162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetEditStateFlagsImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetEditStateFlagsImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30893,7 +31172,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetPreviewWidthImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewWidthImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30903,7 +31182,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetPreviewHeightImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewHeightImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30915,7 +31194,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebContextMenuParamAccessor namespace WebContextMenuResultAccessor { - void DestroyPeerImpl(WebContextMenuResultPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30926,12 +31205,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebContextMenuResult CtorImpl() { if (!needGroupedLog(1)) - return (WebContextMenuResultPeer*) 100; + return (Ark_WebContextMenuResult) 100; string out("new WebContextMenuResult("); out.append(") \n"); - out.append("[return (WebContextMenuResultPeer*) 100] \n"); + out.append("[return (Ark_WebContextMenuResult) 100] \n"); appendGroupedLog(1, out); - return (WebContextMenuResultPeer*) 100; + return (Ark_WebContextMenuResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30943,7 +31222,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseContextMenuImpl(WebContextMenuResultPeer* peer) + void CloseContextMenuImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30951,7 +31230,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CopyImageImpl(WebContextMenuResultPeer* peer) + void CopyImageImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30959,7 +31238,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CopyImpl(WebContextMenuResultPeer* peer) + void CopyImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30967,7 +31246,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PasteImpl(WebContextMenuResultPeer* peer) + void PasteImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30975,7 +31254,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CutImpl(WebContextMenuResultPeer* peer) + void CutImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30983,7 +31262,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SelectAllImpl(WebContextMenuResultPeer* peer) + void SelectAllImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30993,7 +31272,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebContextMenuResultAccessor namespace ConsoleMessageAccessor { - void DestroyPeerImpl(ConsoleMessagePeer* peer) + void DestroyPeerImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return; @@ -31007,7 +31286,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MessageLevel messageLevel) { if (!needGroupedLog(1)) - return (ConsoleMessagePeer*) 100; + return (Ark_ConsoleMessage) 100; string out("new ConsoleMessage("); WriteToString(&out, message); out.append(", "); @@ -31017,9 +31296,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, messageLevel); out.append(") \n"); - out.append("[return (ConsoleMessagePeer*) 100] \n"); + out.append("[return (Ark_ConsoleMessage) 100] \n"); appendGroupedLog(1, out); - return (ConsoleMessagePeer*) 100; + return (Ark_ConsoleMessage) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31031,7 +31310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetMessageImpl(ConsoleMessagePeer* peer) + void GetMessageImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return; @@ -31039,7 +31318,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetSourceIdImpl(ConsoleMessagePeer* peer) + void GetSourceIdImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return; @@ -31047,7 +31326,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLineNumberImpl(ConsoleMessagePeer* peer) + Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return 0; @@ -31057,7 +31336,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) + Ark_MessageLevel GetMessageLevelImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return {}; @@ -31069,7 +31348,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { - void DestroyPeerImpl(WebResourceRequestPeer* peer) + void DestroyPeerImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return; @@ -31080,12 +31359,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceRequest CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceRequestPeer*) 100; + return (Ark_WebResourceRequest) 100; string out("new WebResourceRequest("); out.append(") \n"); - out.append("[return (WebResourceRequestPeer*) 100] \n"); + out.append("[return (Ark_WebResourceRequest) 100] \n"); appendGroupedLog(1, out); - return (WebResourceRequestPeer*) 100; + return (Ark_WebResourceRequest) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31097,15 +31376,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetRequestHeaderImpl(WebResourceRequestPeer* peer) + Array_Header GetRequestHeaderImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestHeader("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetRequestUrlImpl(WebResourceRequestPeer* peer) + void GetRequestUrlImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return; @@ -31113,7 +31394,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsRequestGestureImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31123,7 +31404,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsMainFrameImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsMainFrameImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31133,7 +31414,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsRedirectImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRedirectImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31143,7 +31424,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetRequestMethodImpl(WebResourceRequestPeer* peer) + void GetRequestMethodImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return; @@ -31153,7 +31434,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { - void DestroyPeerImpl(WebResourceResponsePeer* peer) + void DestroyPeerImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31164,12 +31445,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceResponse CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceResponsePeer*) 100; + return (Ark_WebResourceResponse) 100; string out("new WebResourceResponse("); out.append(") \n"); - out.append("[return (WebResourceResponsePeer*) 100] \n"); + out.append("[return (Ark_WebResourceResponse) 100] \n"); appendGroupedLog(1, out); - return (WebResourceResponsePeer*) 100; + return (Ark_WebResourceResponse) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31181,7 +31462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetResponseDataImpl(WebResourceResponsePeer* peer) + void GetResponseDataImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31189,17 +31470,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetResponseDataExImpl(WebResourceResponsePeer* peer) + Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getResponseDataEx("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void GetResponseEncodingImpl(WebResourceResponsePeer* peer) + void GetResponseEncodingImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31207,7 +31488,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetResponseMimeTypeImpl(WebResourceResponsePeer* peer) + void GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31215,7 +31496,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetReasonMessageImpl(WebResourceResponsePeer* peer) + void GetReasonMessageImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31223,15 +31504,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetResponseHeaderImpl(WebResourceResponsePeer* peer) + Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseHeader("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 GetResponseCodeImpl(WebResourceResponsePeer* peer) + Ark_Int32 GetResponseCodeImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return 0; @@ -31241,7 +31524,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetResponseDataImpl(WebResourceResponsePeer* peer, + void SetResponseDataImpl(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data) { if (!needGroupedLog(1)) @@ -31251,7 +31534,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseEncodingImpl(WebResourceResponsePeer* peer, + void SetResponseEncodingImpl(Ark_WebResourceResponse peer, const Ark_String* encoding) { if (!needGroupedLog(1)) @@ -31261,7 +31544,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseMimeTypeImpl(WebResourceResponsePeer* peer, + void SetResponseMimeTypeImpl(Ark_WebResourceResponse peer, const Ark_String* mimeType) { if (!needGroupedLog(1)) @@ -31271,7 +31554,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetReasonMessageImpl(WebResourceResponsePeer* peer, + void SetReasonMessageImpl(Ark_WebResourceResponse peer, const Ark_String* reason) { if (!needGroupedLog(1)) @@ -31281,7 +31564,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseHeaderImpl(WebResourceResponsePeer* peer, + void SetResponseHeaderImpl(Ark_WebResourceResponse peer, const Array_Header* header) { if (!needGroupedLog(1)) @@ -31291,7 +31574,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseCodeImpl(WebResourceResponsePeer* peer, + void SetResponseCodeImpl(Ark_WebResourceResponse peer, const Ark_Number* code) { if (!needGroupedLog(1)) @@ -31301,7 +31584,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseIsReadyImpl(WebResourceResponsePeer* peer, + void SetResponseIsReadyImpl(Ark_WebResourceResponse peer, Ark_Boolean IsReady) { if (!needGroupedLog(1)) @@ -31311,7 +31594,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetResponseIsReadyImpl(WebResourceResponsePeer* peer) + Ark_Boolean GetResponseIsReadyImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return 0; @@ -31323,7 +31606,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebResourceResponseAccessor namespace WebResourceErrorAccessor { - void DestroyPeerImpl(WebResourceErrorPeer* peer) + void DestroyPeerImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) return; @@ -31334,12 +31617,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceError CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceErrorPeer*) 100; + return (Ark_WebResourceError) 100; string out("new WebResourceError("); out.append(") \n"); - out.append("[return (WebResourceErrorPeer*) 100] \n"); + out.append("[return (Ark_WebResourceError) 100] \n"); appendGroupedLog(1, out); - return (WebResourceErrorPeer*) 100; + return (Ark_WebResourceError) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31351,7 +31634,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetErrorInfoImpl(WebResourceErrorPeer* peer) + void GetErrorInfoImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) return; @@ -31359,7 +31642,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetErrorCodeImpl(WebResourceErrorPeer* peer) + Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) return 0; @@ -31371,7 +31654,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebResourceErrorAccessor namespace JsGeolocationAccessor { - void DestroyPeerImpl(JsGeolocationPeer* peer) + void DestroyPeerImpl(Ark_JsGeolocation peer) { if (!needGroupedLog(1)) return; @@ -31382,12 +31665,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_JsGeolocation CtorImpl() { if (!needGroupedLog(1)) - return (JsGeolocationPeer*) 100; + return (Ark_JsGeolocation) 100; string out("new JsGeolocation("); out.append(") \n"); - out.append("[return (JsGeolocationPeer*) 100] \n"); + out.append("[return (Ark_JsGeolocation) 100] \n"); appendGroupedLog(1, out); - return (JsGeolocationPeer*) 100; + return (Ark_JsGeolocation) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31399,7 +31682,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InvokeImpl(JsGeolocationPeer* peer, + void InvokeImpl(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain) @@ -31417,7 +31700,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsGeolocationAccessor namespace WebCookieAccessor { - void DestroyPeerImpl(WebCookiePeer* peer) + void DestroyPeerImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31428,12 +31711,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebCookie CtorImpl() { if (!needGroupedLog(1)) - return (WebCookiePeer*) 100; + return (Ark_WebCookie) 100; string out("new WebCookie("); out.append(") \n"); - out.append("[return (WebCookiePeer*) 100] \n"); + out.append("[return (Ark_WebCookie) 100] \n"); appendGroupedLog(1, out); - return (WebCookiePeer*) 100; + return (Ark_WebCookie) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31445,7 +31728,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetCookieImpl(WebCookiePeer* peer) + void SetCookieImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31453,7 +31736,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveCookieImpl(WebCookiePeer* peer) + void SaveCookieImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31463,7 +31746,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebCookieAccessor namespace EventResultAccessor { - void DestroyPeerImpl(EventResultPeer* peer) + void DestroyPeerImpl(Ark_EventResult peer) { if (!needGroupedLog(1)) return; @@ -31474,12 +31757,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventResult CtorImpl() { if (!needGroupedLog(1)) - return (EventResultPeer*) 100; + return (Ark_EventResult) 100; string out("new EventResult("); out.append(") \n"); - out.append("[return (EventResultPeer*) 100] \n"); + out.append("[return (Ark_EventResult) 100] \n"); appendGroupedLog(1, out); - return (EventResultPeer*) 100; + return (Ark_EventResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31491,7 +31774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetGestureEventResultImpl(EventResultPeer* peer, + void SetGestureEventResultImpl(Ark_EventResult peer, Ark_Boolean result) { if (!needGroupedLog(1)) @@ -31503,7 +31786,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventResultAccessor namespace WebControllerAccessor { - void DestroyPeerImpl(WebControllerPeer* peer) + void DestroyPeerImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31514,12 +31797,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebController CtorImpl() { if (!needGroupedLog(1)) - return (WebControllerPeer*) 100; + return (Ark_WebController) 100; string out("new WebController("); out.append(") \n"); - out.append("[return (WebControllerPeer*) 100] \n"); + out.append("[return (Ark_WebController) 100] \n"); appendGroupedLog(1, out); - return (WebControllerPeer*) 100; + return (Ark_WebController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31531,7 +31814,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnInactiveImpl(WebControllerPeer* peer) + void OnInactiveImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31539,7 +31822,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnActiveImpl(WebControllerPeer* peer) + void OnActiveImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31547,7 +31830,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ZoomImpl(WebControllerPeer* peer, + void ZoomImpl(Ark_WebController peer, const Ark_Number* factor) { if (!needGroupedLog(1)) @@ -31557,7 +31840,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearHistoryImpl(WebControllerPeer* peer) + void ClearHistoryImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31565,7 +31848,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RunJavaScriptImpl(WebControllerPeer* peer, + void RunJavaScriptImpl(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options) { if (!needGroupedLog(1)) @@ -31575,7 +31858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadDataImpl(WebControllerPeer* peer, + void LoadDataImpl(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options) { if (!needGroupedLog(1)) @@ -31585,7 +31868,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadUrlImpl(WebControllerPeer* peer, + void LoadUrlImpl(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options) { if (!needGroupedLog(1)) @@ -31595,7 +31878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RefreshImpl(WebControllerPeer* peer) + void RefreshImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31603,7 +31886,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(WebControllerPeer* peer) + void StopImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31611,7 +31894,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RegisterJavaScriptProxyImpl(WebControllerPeer* peer, + void RegisterJavaScriptProxyImpl(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options) { if (!needGroupedLog(1)) @@ -31621,7 +31904,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteJavaScriptRegisterImpl(WebControllerPeer* peer, + void DeleteJavaScriptRegisterImpl(Ark_WebController peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -31631,7 +31914,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) + Ark_HitTestType GetHitTestImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return {}; @@ -31641,7 +31924,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void RequestFocusImpl(WebControllerPeer* peer) + void RequestFocusImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31649,7 +31932,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean AccessBackwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessBackwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return 0; @@ -31659,7 +31942,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean AccessForwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessForwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return 0; @@ -31669,7 +31952,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean AccessStepImpl(WebControllerPeer* peer, + Ark_Boolean AccessStepImpl(Ark_WebController peer, const Ark_Number* step) { if (!needGroupedLog(1)) @@ -31681,7 +31964,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void BackwardImpl(WebControllerPeer* peer) + void BackwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31689,7 +31972,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ForwardImpl(WebControllerPeer* peer) + void ForwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31697,19 +31980,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(Ark_WebController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_WebCookie) 300; string out("getCookieManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_WebCookie) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_WebCookie) 300; } } // WebControllerAccessor namespace XComponentControllerAccessor { - void DestroyPeerImpl(XComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return; @@ -31720,12 +32003,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_XComponentController CtorImpl() { if (!needGroupedLog(1)) - return (XComponentControllerPeer*) 100; + return (Ark_XComponentController) 100; string out("new XComponentController("); out.append(") \n"); - out.append("[return (XComponentControllerPeer*) 100] \n"); + out.append("[return (Ark_XComponentController) 100] \n"); appendGroupedLog(1, out); - return (XComponentControllerPeer*) 100; + return (Ark_XComponentController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31737,7 +32020,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetXComponentSurfaceIdImpl(XComponentControllerPeer* peer) + void GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return; @@ -31745,7 +32028,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) + Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31755,7 +32038,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceSizeImpl(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) { if (!needGroupedLog(1)) @@ -31765,7 +32048,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRectImpl(Ark_XComponentController peer, const Ark_SurfaceRect* rect) { if (!needGroupedLog(1)) @@ -31775,7 +32058,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + Ark_SurfaceRect GetXComponentSurfaceRectImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31785,7 +32068,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRotationImpl(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions) { if (!needGroupedLog(1)) @@ -31795,7 +32078,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + Ark_SurfaceRotationOptions GetXComponentSurfaceRotationImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31805,7 +32088,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, + void OnSurfaceCreatedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { if (!needGroupedLog(1)) @@ -31815,7 +32098,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSurfaceChangedImpl(XComponentControllerPeer* peer, + void OnSurfaceChangedImpl(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect) { @@ -31828,7 +32111,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, + void OnSurfaceDestroyedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { if (!needGroupedLog(1)) @@ -31838,7 +32121,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StartImageAnalyzerImpl(XComponentControllerPeer* peer, + void StartImageAnalyzerImpl(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -31851,7 +32134,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + void StopImageAnalyzerImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return; @@ -31861,7 +32144,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // XComponentControllerAccessor namespace WaterFlowSectionsAccessor { - void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + void DestroyPeerImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) return; @@ -31872,12 +32155,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WaterFlowSections CtorImpl() { if (!needGroupedLog(1)) - return (WaterFlowSectionsPeer*) 100; + return (Ark_WaterFlowSections) 100; string out("new WaterFlowSections("); out.append(") \n"); - out.append("[return (WaterFlowSectionsPeer*) 100] \n"); + out.append("[return (Ark_WaterFlowSections) 100] \n"); appendGroupedLog(1, out); - return (WaterFlowSectionsPeer*) 100; + return (Ark_WaterFlowSections) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31889,7 +32172,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean SpliceImpl(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections) @@ -31907,7 +32190,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean PushImpl(Ark_WaterFlowSections peer, const Ark_SectionOptions* section) { if (!needGroupedLog(1)) @@ -31919,7 +32202,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean UpdateImpl(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section) { @@ -31934,15 +32217,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void ValuesImpl(WaterFlowSectionsPeer* peer) + Array_SectionOptions ValuesImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) - return; + return {}; string out("values("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + Ark_Int32 LengthImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) return 0; @@ -31954,7 +32239,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WaterFlowSectionsAccessor namespace UIExtensionProxyAccessor { - void DestroyPeerImpl(UIExtensionProxyPeer* peer) + void DestroyPeerImpl(Ark_UIExtensionProxy peer) { if (!needGroupedLog(1)) return; @@ -31965,12 +32250,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UIExtensionProxy CtorImpl() { if (!needGroupedLog(1)) - return (UIExtensionProxyPeer*) 100; + return (Ark_UIExtensionProxy) 100; string out("new UIExtensionProxy("); out.append(") \n"); - out.append("[return (UIExtensionProxyPeer*) 100] \n"); + out.append("[return (Ark_UIExtensionProxy) 100] \n"); appendGroupedLog(1, out); - return (UIExtensionProxyPeer*) 100; + return (Ark_UIExtensionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31982,7 +32267,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SendImpl(UIExtensionProxyPeer* peer, + void SendImpl(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data) { if (!needGroupedLog(1)) @@ -31992,19 +32277,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + Map_String_CustomObject SendSyncImpl(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data) { if (!needGroupedLog(1)) - return 0; + return {}; string out("sendSync("); WriteToString(&out, data); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32014,7 +32299,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32024,7 +32309,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32034,7 +32319,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32046,7 +32331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // UIExtensionProxyAccessor namespace StyledStringAccessor { - void DestroyPeerImpl(StyledStringPeer* peer) + void DestroyPeerImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) return; @@ -32058,15 +32343,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Array_StyleOptions* styles) { if (!needGroupedLog(1)) - return (StyledStringPeer*) 100; + return (Ark_StyledString) 100; string out("new StyledString("); WriteToString(&out, value); out.append(", "); WriteToString(&out, styles); out.append(") \n"); - out.append("[return (StyledStringPeer*) 100] \n"); + out.append("[return (Ark_StyledString) 100] \n"); appendGroupedLog(1, out); - return (StyledStringPeer*) 100; + return (Ark_StyledString) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32078,7 +32363,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetStringImpl(StyledStringPeer* peer) + void GetStringImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) return; @@ -32086,13 +32371,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetStylesImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey) + Array_SpanStyle GetStylesImpl(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey) { if (!needGroupedLog(1)) - return; + return {}; string out("getStyles("); WriteToString(&out, start); out.append(", "); @@ -32100,9 +32385,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, styledKey); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean EqualsImpl(StyledStringPeer* peer, + Ark_Boolean EqualsImpl(Ark_StyledString peer, Ark_StyledString other) { if (!needGroupedLog(1)) @@ -32114,20 +32401,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + Ark_StyledString SubStyledStringImpl(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length) { if (!needGroupedLog(1)) - return {}; + return (Ark_StyledString) 300; string out("subStyledString("); WriteToString(&out, start); out.append(", "); WriteToString(&out, length); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_StyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_StyledString) 300; } void FromHtmlImpl(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -32150,14 +32437,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void MarshallingImpl(Ark_StyledString styledString) + Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) - return; + return {}; string out("marshalling("); WriteToString(&out, styledString); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void UnmarshallingImpl(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -32171,7 +32460,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + Ark_Int32 GetLengthImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) return 0; @@ -32183,7 +32472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // StyledStringAccessor namespace TextStyle_styled_stringAccessor { - void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) + void DestroyPeerImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return; @@ -32194,13 +32483,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextStyle_styled_string CtorImpl(const Opt_TextStyleInterface* value) { if (!needGroupedLog(1)) - return (TextStyle_styled_stringPeer*) 100; + return (Ark_TextStyle_styled_string) 100; string out("new TextStyle_styled_string("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (TextStyle_styled_stringPeer*) 100] \n"); + out.append("[return (Ark_TextStyle_styled_string) 100] \n"); appendGroupedLog(1, out); - return (TextStyle_styled_stringPeer*) 100; + return (Ark_TextStyle_styled_string) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32212,7 +32501,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) + void GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return; @@ -32220,7 +32509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return 0; @@ -32230,7 +32519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontWeightImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return 0; @@ -32240,7 +32529,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) + Ark_FontStyle GetFontStyleImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return {}; @@ -32252,7 +32541,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextStyle_styled_stringAccessor namespace DecorationStyleAccessor { - void DestroyPeerImpl(DecorationStylePeer* peer) + void DestroyPeerImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return; @@ -32263,13 +32552,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DecorationStyle CtorImpl(const Ark_DecorationStyleInterface* value) { if (!needGroupedLog(1)) - return (DecorationStylePeer*) 100; + return (Ark_DecorationStyle) 100; string out("new DecorationStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (DecorationStylePeer*) 100] \n"); + out.append("[return (Ark_DecorationStyle) 100] \n"); appendGroupedLog(1, out); - return (DecorationStylePeer*) 100; + return (Ark_DecorationStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32281,7 +32570,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) + Ark_TextDecorationType GetTypeImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32291,7 +32580,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) + Ark_TextDecorationStyle GetStyleImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32303,7 +32592,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DecorationStyleAccessor namespace BaselineOffsetStyleAccessor { - void DestroyPeerImpl(BaselineOffsetStylePeer* peer) + void DestroyPeerImpl(Ark_BaselineOffsetStyle peer) { if (!needGroupedLog(1)) return; @@ -32314,13 +32603,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaselineOffsetStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (BaselineOffsetStylePeer*) 100; + return (Ark_BaselineOffsetStyle) 100; string out("new BaselineOffsetStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (BaselineOffsetStylePeer*) 100] \n"); + out.append("[return (Ark_BaselineOffsetStyle) 100] \n"); appendGroupedLog(1, out); - return (BaselineOffsetStylePeer*) 100; + return (Ark_BaselineOffsetStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32332,7 +32621,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) + Ark_Int32 GetBaselineOffsetImpl(Ark_BaselineOffsetStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32344,7 +32633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaselineOffsetStyleAccessor namespace LetterSpacingStyleAccessor { - void DestroyPeerImpl(LetterSpacingStylePeer* peer) + void DestroyPeerImpl(Ark_LetterSpacingStyle peer) { if (!needGroupedLog(1)) return; @@ -32355,13 +32644,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LetterSpacingStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (LetterSpacingStylePeer*) 100; + return (Ark_LetterSpacingStyle) 100; string out("new LetterSpacingStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (LetterSpacingStylePeer*) 100] \n"); + out.append("[return (Ark_LetterSpacingStyle) 100] \n"); appendGroupedLog(1, out); - return (LetterSpacingStylePeer*) 100; + return (Ark_LetterSpacingStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32373,7 +32662,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) + Ark_Int32 GetLetterSpacingImpl(Ark_LetterSpacingStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32385,7 +32674,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LetterSpacingStyleAccessor namespace TextShadowStyleAccessor { - void DestroyPeerImpl(TextShadowStylePeer* peer) + void DestroyPeerImpl(Ark_TextShadowStyle peer) { if (!needGroupedLog(1)) return; @@ -32396,13 +32685,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextShadowStyle CtorImpl(const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { if (!needGroupedLog(1)) - return (TextShadowStylePeer*) 100; + return (Ark_TextShadowStyle) 100; string out("new TextShadowStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (TextShadowStylePeer*) 100] \n"); + out.append("[return (Ark_TextShadowStyle) 100] \n"); appendGroupedLog(1, out); - return (TextShadowStylePeer*) 100; + return (Ark_TextShadowStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32414,9 +32703,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } + Array_ShadowOptions GetTextShadowImpl(Ark_TextShadowStyle peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getTextShadow("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } } // TextShadowStyleAccessor namespace BackgroundColorStyleAccessor { - void DestroyPeerImpl(BackgroundColorStylePeer* peer) + void DestroyPeerImpl(Ark_BackgroundColorStyle peer) { if (!needGroupedLog(1)) return; @@ -32427,13 +32726,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BackgroundColorStyle CtorImpl(const Ark_TextBackgroundStyle* textBackgroundStyle) { if (!needGroupedLog(1)) - return (BackgroundColorStylePeer*) 100; + return (Ark_BackgroundColorStyle) 100; string out("new BackgroundColorStyle("); WriteToString(&out, textBackgroundStyle); out.append(") \n"); - out.append("[return (BackgroundColorStylePeer*) 100] \n"); + out.append("[return (Ark_BackgroundColorStyle) 100] \n"); appendGroupedLog(1, out); - return (BackgroundColorStylePeer*) 100; + return (Ark_BackgroundColorStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32447,7 +32746,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BackgroundColorStyleAccessor namespace GestureStyleAccessor { - void DestroyPeerImpl(GestureStylePeer* peer) + void DestroyPeerImpl(Ark_GestureStyle peer) { if (!needGroupedLog(1)) return; @@ -32458,13 +32757,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureStyle CtorImpl(const Opt_GestureStyleInterface* value) { if (!needGroupedLog(1)) - return (GestureStylePeer*) 100; + return (Ark_GestureStyle) 100; string out("new GestureStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (GestureStylePeer*) 100] \n"); + out.append("[return (Ark_GestureStyle) 100] \n"); appendGroupedLog(1, out); - return (GestureStylePeer*) 100; + return (Ark_GestureStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32478,7 +32777,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureStyleAccessor namespace ParagraphStyleAccessor { - void DestroyPeerImpl(ParagraphStylePeer* peer) + void DestroyPeerImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return; @@ -32489,13 +32788,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ParagraphStyle CtorImpl(const Opt_ParagraphStyleInterface* value) { if (!needGroupedLog(1)) - return (ParagraphStylePeer*) 100; + return (Ark_ParagraphStyle) 100; string out("new ParagraphStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ParagraphStylePeer*) 100] \n"); + out.append("[return (Ark_ParagraphStyle) 100] \n"); appendGroupedLog(1, out); - return (ParagraphStylePeer*) 100; + return (Ark_ParagraphStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32507,7 +32806,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTextAlignImpl(ParagraphStylePeer* peer) + Ark_TextAlign GetTextAlignImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32517,7 +32816,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) + Ark_Int32 GetTextIndentImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32527,7 +32826,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) + Ark_Int32 GetMaxLinesImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32537,7 +32836,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) + Ark_TextOverflow GetOverflowImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32547,7 +32846,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) + Ark_WordBreak GetWordBreakImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32559,7 +32858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ParagraphStyleAccessor namespace LineHeightStyleAccessor { - void DestroyPeerImpl(LineHeightStylePeer* peer) + void DestroyPeerImpl(Ark_LineHeightStyle peer) { if (!needGroupedLog(1)) return; @@ -32570,13 +32869,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LineHeightStyle CtorImpl(Ark_LengthMetrics lineHeight) { if (!needGroupedLog(1)) - return (LineHeightStylePeer*) 100; + return (Ark_LineHeightStyle) 100; string out("new LineHeightStyle("); WriteToString(&out, lineHeight); out.append(") \n"); - out.append("[return (LineHeightStylePeer*) 100] \n"); + out.append("[return (Ark_LineHeightStyle) 100] \n"); appendGroupedLog(1, out); - return (LineHeightStylePeer*) 100; + return (Ark_LineHeightStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32588,7 +32887,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) + Ark_Int32 GetLineHeightImpl(Ark_LineHeightStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32600,7 +32899,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LineHeightStyleAccessor namespace UrlStyleAccessor { - void DestroyPeerImpl(UrlStylePeer* peer) + void DestroyPeerImpl(Ark_UrlStyle peer) { if (!needGroupedLog(1)) return; @@ -32611,13 +32910,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UrlStyle CtorImpl(const Ark_String* url) { if (!needGroupedLog(1)) - return (UrlStylePeer*) 100; + return (Ark_UrlStyle) 100; string out("new UrlStyle("); WriteToString(&out, url); out.append(") \n"); - out.append("[return (UrlStylePeer*) 100] \n"); + out.append("[return (Ark_UrlStyle) 100] \n"); appendGroupedLog(1, out); - return (UrlStylePeer*) 100; + return (Ark_UrlStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32629,7 +32928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetUrlImpl(UrlStylePeer* peer) + void GetUrlImpl(Ark_UrlStyle peer) { if (!needGroupedLog(1)) return; @@ -32639,7 +32938,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // UrlStyleAccessor namespace MutableStyledStringAccessor { - void DestroyPeerImpl(MutableStyledStringPeer* peer) + void DestroyPeerImpl(Ark_MutableStyledString peer) { if (!needGroupedLog(1)) return; @@ -32650,12 +32949,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MutableStyledString CtorImpl() { if (!needGroupedLog(1)) - return (MutableStyledStringPeer*) 100; + return (Ark_MutableStyledString) 100; string out("new MutableStyledString("); out.append(") \n"); - out.append("[return (MutableStyledStringPeer*) 100] \n"); + out.append("[return (Ark_MutableStyledString) 100] \n"); appendGroupedLog(1, out); - return (MutableStyledStringPeer*) 100; + return (Ark_MutableStyledString) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32667,7 +32966,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReplaceStringImpl(MutableStyledStringPeer* peer, + void ReplaceStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other) @@ -32683,7 +32982,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertStringImpl(MutableStyledStringPeer* peer, + void InsertStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other) { @@ -32696,7 +32995,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStringImpl(MutableStyledStringPeer* peer, + void RemoveStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { @@ -32709,7 +33008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceStyleImpl(MutableStyledStringPeer* peer, + void ReplaceStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { if (!needGroupedLog(1)) @@ -32719,7 +33018,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStyleImpl(MutableStyledStringPeer* peer, + void SetStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { if (!needGroupedLog(1)) @@ -32729,7 +33028,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStyleImpl(MutableStyledStringPeer* peer, + void RemoveStyleImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey) @@ -32745,7 +33044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStylesImpl(MutableStyledStringPeer* peer, + void RemoveStylesImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { @@ -32758,7 +33057,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearStylesImpl(MutableStyledStringPeer* peer) + void ClearStylesImpl(Ark_MutableStyledString peer) { if (!needGroupedLog(1)) return; @@ -32766,7 +33065,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, + void ReplaceStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other) @@ -32782,7 +33081,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertStyledStringImpl(MutableStyledStringPeer* peer, + void InsertStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other) { @@ -32795,7 +33094,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void AppendStyledStringImpl(MutableStyledStringPeer* peer, + void AppendStyledStringImpl(Ark_MutableStyledString peer, Ark_StyledString other) { if (!needGroupedLog(1)) @@ -32807,7 +33106,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MutableStyledStringAccessor namespace ImageAttachmentAccessor { - void DestroyPeerImpl(ImageAttachmentPeer* peer) + void DestroyPeerImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return; @@ -32818,13 +33117,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageAttachment CtorImpl(const Ark_ImageAttachmentInterface* value) { if (!needGroupedLog(1)) - return (ImageAttachmentPeer*) 100; + return (Ark_ImageAttachment) 100; string out("new ImageAttachment("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ImageAttachmentPeer*) 100] \n"); + out.append("[return (Ark_ImageAttachment) 100] \n"); appendGroupedLog(1, out); - return (ImageAttachmentPeer*) 100; + return (Ark_ImageAttachment) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32836,7 +33135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetVerticalAlignImpl(ImageAttachmentPeer* peer) + Ark_ImageSpanAlignment GetVerticalAlignImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return {}; @@ -32846,7 +33145,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + Ark_ImageFit GetObjectFitImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return {}; @@ -32858,7 +33157,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageAttachmentAccessor namespace CustomSpanAccessor { - void DestroyPeerImpl(CustomSpanPeer* peer) + void DestroyPeerImpl(Ark_CustomSpan peer) { if (!needGroupedLog(1)) return; @@ -32869,12 +33168,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CustomSpan CtorImpl() { if (!needGroupedLog(1)) - return (CustomSpanPeer*) 100; + return (Ark_CustomSpan) 100; string out("new CustomSpan("); out.append(") \n"); - out.append("[return (CustomSpanPeer*) 100] \n"); + out.append("[return (Ark_CustomSpan) 100] \n"); appendGroupedLog(1, out); - return (CustomSpanPeer*) 100; + return (Ark_CustomSpan) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32886,8 +33185,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo) + Ark_CustomSpanMetrics OnMeasureImpl(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo) { if (!needGroupedLog(1)) return {}; @@ -32898,7 +33197,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnDrawImpl(CustomSpanPeer* peer, + void OnDrawImpl(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo) { @@ -32911,7 +33210,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InvalidateImpl(CustomSpanPeer* peer) + void InvalidateImpl(Ark_CustomSpan peer) { if (!needGroupedLog(1)) return; @@ -32921,7 +33220,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CustomSpanAccessor namespace LinearIndicatorControllerAccessor { - void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + void DestroyPeerImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32932,12 +33231,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LinearIndicatorController CtorImpl() { if (!needGroupedLog(1)) - return (LinearIndicatorControllerPeer*) 100; + return (Ark_LinearIndicatorController) 100; string out("new LinearIndicatorController("); out.append(") \n"); - out.append("[return (LinearIndicatorControllerPeer*) 100] \n"); + out.append("[return (Ark_LinearIndicatorController) 100] \n"); appendGroupedLog(1, out); - return (LinearIndicatorControllerPeer*) 100; + return (Ark_LinearIndicatorController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32949,7 +33248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetProgressImpl(LinearIndicatorControllerPeer* peer, + void SetProgressImpl(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress) { @@ -32962,7 +33261,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StartImpl(LinearIndicatorControllerPeer* peer, + void StartImpl(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options) { if (!needGroupedLog(1)) @@ -32972,7 +33271,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(LinearIndicatorControllerPeer* peer) + void PauseImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32980,7 +33279,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(LinearIndicatorControllerPeer* peer) + void StopImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32989,8 +33288,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // LinearIndicatorControllerAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + namespace GlobalScope_Profiler_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_Profiler_inspector peer) { if (!needGroupedLog(1)) return; @@ -32998,43 +33297,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetInspectorNodesImpl() + void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("getInspectorNodes("); + return; + string out("registerVsyncCallback("); + WriteToString(&out, callback_); out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (Ark_NativePointer) 300; } - Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) + void UnregisterVsyncCallbackImpl() { if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("getInspectorNodeById("); - WriteToString(&out, id); + return; + string out("unregisterVsyncCallback("); out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); appendGroupedLog(1, out); - return (Ark_NativePointer) 300; } - void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) + } // GlobalScope_Profiler_inspectorAccessor + namespace GlobalScopeinspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScopeinspector peer) { if (!needGroupedLog(1)) return; - string out("registerVsyncCallback("); - WriteToString(&out, callback_); + string out("destroyPeer("); out.append(") \n"); appendGroupedLog(1, out); } - void UnregisterVsyncCallbackImpl() + Ark_CustomObject GetInspectorNodesImpl() { if (!needGroupedLog(1)) - return; - string out("unregisterVsyncCallback("); + return {}; + string out("getInspectorNodes("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + Ark_CustomObject GetInspectorNodeByIdImpl(const Ark_Number* id) + { + if (!needGroupedLog(1)) + return {}; + string out("getInspectorNodeById("); + WriteToString(&out, id); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetAppBgColorImpl(const Ark_String* value) { @@ -33045,7 +33354,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - } // GlobalScope_inspectorAccessor + } // GlobalScopeinspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -33096,6 +33405,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LazyForEachOpsPeer { virtual ~LazyForEachOpsPeer() = default; }; + const GENERATED_ArkUISystemOpsAccessor* GetSystemOpsAccessor() + { + static const GENERATED_ArkUISystemOpsAccessor SystemOpsAccessorImpl { + SystemOpsAccessor::DestroyPeerImpl, + SystemOpsAccessor::CtorImpl, + SystemOpsAccessor::GetFinalizerImpl, + SystemOpsAccessor::StartFrameImpl, + SystemOpsAccessor::EndFrameImpl, + }; + return &SystemOpsAccessorImpl; + } + + struct SystemOpsPeer { + virtual ~SystemOpsPeer() = default; + }; const GENERATED_ArkUIDrawingCanvasAccessor* GetDrawingCanvasAccessor() { static const GENERATED_ArkUIDrawingCanvasAccessor DrawingCanvasAccessorImpl { @@ -33210,9 +33534,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PixelMapAccessor::ReadPixelsToBufferSyncImpl, PixelMapAccessor::WriteBufferToPixelsImpl, PixelMapAccessor::GetIsEditableImpl, - PixelMapAccessor::SetIsEditableImpl, PixelMapAccessor::GetIsStrideAlignmentImpl, - PixelMapAccessor::SetIsStrideAlignmentImpl, }; return &PixelMapAccessorImpl; } @@ -33584,6 +33906,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CanvasRenderingContext2DPeer { virtual ~CanvasRenderingContext2DPeer() = default; }; + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* GetOffscreenCanvasRenderingContext2DAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor OffscreenCanvasRenderingContext2DAccessorImpl { + OffscreenCanvasRenderingContext2DAccessor::DestroyPeerImpl, + OffscreenCanvasRenderingContext2DAccessor::CtorImpl, + OffscreenCanvasRenderingContext2DAccessor::GetFinalizerImpl, + OffscreenCanvasRenderingContext2DAccessor::ToDataURLImpl, + OffscreenCanvasRenderingContext2DAccessor::TransferToImageBitmapImpl, + }; + return &OffscreenCanvasRenderingContext2DAccessorImpl; + } + + struct OffscreenCanvasRenderingContext2DPeer { + virtual ~OffscreenCanvasRenderingContext2DPeer() = default; + }; + const GENERATED_ArkUIOffscreenCanvasAccessor* GetOffscreenCanvasAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasAccessor OffscreenCanvasAccessorImpl { + OffscreenCanvasAccessor::DestroyPeerImpl, + OffscreenCanvasAccessor::CtorImpl, + OffscreenCanvasAccessor::GetFinalizerImpl, + OffscreenCanvasAccessor::TransferToImageBitmapImpl, + OffscreenCanvasAccessor::GetContext2dImpl, + OffscreenCanvasAccessor::GetHeightImpl, + OffscreenCanvasAccessor::SetHeightImpl, + OffscreenCanvasAccessor::GetWidthImpl, + OffscreenCanvasAccessor::SetWidthImpl, + }; + return &OffscreenCanvasAccessorImpl; + } + + struct OffscreenCanvasPeer { + virtual ~OffscreenCanvasPeer() = default; + }; const GENERATED_ArkUIDrawingRenderingContextAccessor* GetDrawingRenderingContextAccessor() { static const GENERATED_ArkUIDrawingRenderingContextAccessor DrawingRenderingContextAccessorImpl { @@ -33800,7 +34156,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::GetHistoricalPointsImpl, TouchEventAccessor::GetTypeImpl, TouchEventAccessor::SetTypeImpl, + TouchEventAccessor::GetTouchesImpl, TouchEventAccessor::SetTouchesImpl, + TouchEventAccessor::GetChangedTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, @@ -34025,31 +34383,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - GlobalScope_commonAccessor::RequestFocusImpl, - GlobalScope_commonAccessor::SetCursorImpl, - GlobalScope_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScopecommonAccessor* GetGlobalScopecommonAccessor() + { + static const GENERATED_ArkUIGlobalScopecommonAccessor GlobalScopecommonAccessorImpl { + GlobalScopecommonAccessor::DestroyPeerImpl, + GlobalScopecommonAccessor::GetContextImpl, + GlobalScopecommonAccessor::PostCardActionImpl, + GlobalScopecommonAccessor::Dollar_rImpl, + GlobalScopecommonAccessor::Dollar_rawfileImpl, + GlobalScopecommonAccessor::AnimateToImpl, + GlobalScopecommonAccessor::AnimateToImmediatelyImpl, + GlobalScopecommonAccessor::Vp2pxImpl, + GlobalScopecommonAccessor::Px2vpImpl, + GlobalScopecommonAccessor::Fp2pxImpl, + GlobalScopecommonAccessor::Px2fpImpl, + GlobalScopecommonAccessor::Lpx2pxImpl, + GlobalScopecommonAccessor::Px2lpxImpl, + }; + return &GlobalScopecommonAccessorImpl; + } + + struct GlobalScopecommonPeer { + virtual ~GlobalScopecommonPeer() = default; }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { @@ -34113,6 +34493,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { BaseGestureEventAccessor::DestroyPeerImpl, BaseGestureEventAccessor::CtorImpl, BaseGestureEventAccessor::GetFinalizerImpl, + BaseGestureEventAccessor::GetFingerListImpl, BaseGestureEventAccessor::SetFingerListImpl, }; return &BaseGestureEventAccessorImpl; @@ -34231,6 +34612,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GestureEventAccessor::GetFinalizerImpl, GestureEventAccessor::GetRepeatImpl, GestureEventAccessor::SetRepeatImpl, + GestureEventAccessor::GetFingerListImpl, GestureEventAccessor::SetFingerListImpl, GestureEventAccessor::GetOffsetXImpl, GestureEventAccessor::SetOffsetXImpl, @@ -35602,6 +35984,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextShadowStyleAccessor::DestroyPeerImpl, TextShadowStyleAccessor::CtorImpl, TextShadowStyleAccessor::GetFinalizerImpl, + TextShadowStyleAccessor::GetTextShadowImpl, }; return &TextShadowStyleAccessorImpl; } @@ -35753,21 +36136,32 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LinearIndicatorControllerPeer { virtual ~LinearIndicatorControllerPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* GetGlobalScope_Profiler_inspectorAccessor() + { + static const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor GlobalScope_Profiler_inspectorAccessorImpl { + GlobalScope_Profiler_inspectorAccessor::DestroyPeerImpl, + GlobalScope_Profiler_inspectorAccessor::RegisterVsyncCallbackImpl, + GlobalScope_Profiler_inspectorAccessor::UnregisterVsyncCallbackImpl, + }; + return &GlobalScope_Profiler_inspectorAccessorImpl; + } + + struct GlobalScope_Profiler_inspectorPeer { + virtual ~GlobalScope_Profiler_inspectorPeer() = default; + }; + const GENERATED_ArkUIGlobalScopeinspectorAccessor* GetGlobalScopeinspectorAccessor() { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::UnregisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScopeinspectorAccessor GlobalScopeinspectorAccessorImpl { + GlobalScopeinspectorAccessor::DestroyPeerImpl, + GlobalScopeinspectorAccessor::GetInspectorNodesImpl, + GlobalScopeinspectorAccessor::GetInspectorNodeByIdImpl, + GlobalScopeinspectorAccessor::SetAppBgColorImpl, }; - return &GlobalScope_inspectorAccessorImpl; + return &GlobalScopeinspectorAccessorImpl; } - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; + struct GlobalScopeinspectorPeer { + virtual ~GlobalScopeinspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -35775,6 +36169,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetAnimationExtenderAccessor, GetUnifiedDataAccessor, GetLazyForEachOpsAccessor, + GetSystemOpsAccessor, GetDrawingCanvasAccessor, GetLengthMetricsAccessor, GetWebviewControllerAccessor, @@ -35801,6 +36196,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, + GetOffscreenCanvasRenderingContext2DAccessor, + GetOffscreenCanvasAccessor, GetDrawingRenderingContextAccessor, GetICurveAccessor, GetDrawModifierAccessor, @@ -35822,7 +36219,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, + GetGlobalScopecommonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -35920,7 +36319,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, - GetGlobalScope_inspectorAccessor, + GetGlobalScope_Profiler_inspectorAccessor, + GetGlobalScopeinspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 6a0985480..4e3778d7f 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -10385,7 +10385,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &modifiersImpl; } namespace AnimationExtenderAccessor { - void DestroyPeerImpl(AnimationExtenderPeer* peer) + void DestroyPeerImpl(Ark_AnimationExtender peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10438,7 +10438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { - void DestroyPeerImpl(UnifiedDataPeer* peer) + void DestroyPeerImpl(Ark_UnifiedData peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10453,19 +10453,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean HasTypeImpl(UnifiedDataPeer* peer, + Ark_Boolean HasTypeImpl(Ark_UnifiedData peer, const Ark_String* UnifiedData_type) { return {}; } - void GetTypesImpl(UnifiedDataPeer* peer) + Array_String GetTypesImpl(Ark_UnifiedData peer) { + return {}; } } // UnifiedDataAccessor namespace LazyForEachOpsAccessor { } // LazyForEachOpsAccessor + namespace SystemOpsAccessor { + void DestroyPeerImpl(Ark_SystemOps peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_SystemOps CtorImpl() + { + return new SystemOpsPeer(); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer StartFrameImpl() + { + return {}; + } + void EndFrameImpl(Ark_NativePointer root) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(root); + //auto convValue = Converter::OptConvert(root); // for enums + //undefinedModelNG::SetEndFrame(frameNode, convValue); + } + } // SystemOpsAccessor namespace DrawingCanvasAccessor { - void DestroyPeerImpl(DrawingCanvasPeer* peer) + void DestroyPeerImpl(Ark_DrawingCanvas peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10480,7 +10510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawRectImpl(DrawingCanvasPeer* peer, + void DrawRectImpl(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -10489,7 +10519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingCanvasAccessor namespace LengthMetricsAccessor { - void DestroyPeerImpl(LengthMetricsPeer* peer) + void DestroyPeerImpl(Ark_LengthMetrics peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10512,25 +10542,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) + Ark_LengthUnit GetUnitImpl(Ark_LengthMetrics peer) { return {}; } - void SetUnitImpl(LengthMetricsPeer* peer, + void SetUnitImpl(Ark_LengthMetrics peer, Ark_LengthUnit unit) { } - Ark_Int32 GetValueImpl(LengthMetricsPeer* peer) + Ark_Int32 GetValueImpl(Ark_LengthMetrics peer) { return {}; } - void SetValueImpl(LengthMetricsPeer* peer, + void SetValueImpl(Ark_LengthMetrics peer, const Ark_Number* value) { } } // LengthMetricsAccessor namespace WebviewControllerAccessor { - void DestroyPeerImpl(WebviewControllerPeer* peer) + void DestroyPeerImpl(Ark_WebviewController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10548,14 +10578,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { void InitializeWebEngineImpl() { } - void LoadUrlImpl(WebviewControllerPeer* peer, + void LoadUrlImpl(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers) { } } // WebviewControllerAccessor namespace GlobalScope_ohos_arkui_componentSnapshotAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_componentSnapshotPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_componentSnapshot peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10577,7 +10607,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_componentSnapshotAccessor namespace GlobalScope_ohos_arkui_performanceMonitorAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_performanceMonitorPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_performanceMonitor peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10607,7 +10637,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_performanceMonitorAccessor namespace FrameNodeAccessor { - void DestroyPeerImpl(FrameNodePeer* peer) + void DestroyPeerImpl(Ark_FrameNode peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10622,65 +10652,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsModifiableImpl(FrameNodePeer* peer) + Ark_Boolean IsModifiableImpl(Ark_FrameNode peer) { return {}; } - void AppendChildImpl(FrameNodePeer* peer, + void AppendChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { } - void InsertChildAfterImpl(FrameNodePeer* peer, + void InsertChildAfterImpl(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling) { } - void RemoveChildImpl(FrameNodePeer* peer, + void RemoveChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { } - void ClearChildrenImpl(FrameNodePeer* peer) + void ClearChildrenImpl(Ark_FrameNode peer) { } - Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + Ark_FrameNode GetChildImpl(Ark_FrameNode peer, const Ark_Number* index) { return {}; } - Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(Ark_FrameNode peer) { return {}; } - Ark_Int32 GetChildrenCountImpl(FrameNodePeer* peer) + Ark_Int32 GetChildrenCountImpl(Ark_FrameNode peer) { return {}; } - void DisposeImpl(FrameNodePeer* peer) + void DisposeImpl(Ark_FrameNode peer) { } - Ark_Int32 GetOpacityImpl(FrameNodePeer* peer) + Ark_Int32 GetOpacityImpl(Ark_FrameNode peer) { return {}; } - Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) + Ark_Position GetPositionToWindowWithTransformImpl(Ark_FrameNode peer) { return {}; } } // FrameNodeAccessor namespace PixelMapAccessor { - void DestroyPeerImpl(PixelMapPeer* peer) + void DestroyPeerImpl(Ark_PixelMap peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10695,33 +10725,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReadPixelsToBufferSyncImpl(PixelMapPeer* peer, + void ReadPixelsToBufferSyncImpl(Ark_PixelMap peer, const Ark_Buffer* dst) { } - void WriteBufferToPixelsImpl(PixelMapPeer* peer, + void WriteBufferToPixelsImpl(Ark_PixelMap peer, const Ark_Buffer* src) { } - Ark_Int32 GetIsEditableImpl(PixelMapPeer* peer) + Ark_Boolean GetIsEditableImpl(Ark_PixelMap peer) { return {}; } - void SetIsEditableImpl(PixelMapPeer* peer, - Ark_Int32 isEditable) - { - } - Ark_Int32 GetIsStrideAlignmentImpl(PixelMapPeer* peer) + Ark_Boolean GetIsStrideAlignmentImpl(Ark_PixelMap peer) { return {}; } - void SetIsStrideAlignmentImpl(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment) - { - } } // PixelMapAccessor namespace NavExtenderAccessor { - void DestroyPeerImpl(NavExtenderPeer* peer) + void DestroyPeerImpl(Ark_NavExtender peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10742,7 +10764,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavExtenderAccessor namespace EventEmulatorAccessor { - void DestroyPeerImpl(EventEmulatorPeer* peer) + void DestroyPeerImpl(Ark_EventEmulator peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10777,7 +10799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventEmulatorAccessor namespace ActionSheetAccessor { - void DestroyPeerImpl(ActionSheetPeer* peer) + void DestroyPeerImpl(Ark_ActionSheet peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10797,7 +10819,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ActionSheetAccessor namespace AlertDialogAccessor { - void DestroyPeerImpl(AlertDialogPeer* peer) + void DestroyPeerImpl(Ark_AlertDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10817,7 +10839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AlertDialogAccessor namespace SpringPropAccessor { - void DestroyPeerImpl(SpringPropPeer* peer) + void DestroyPeerImpl(Ark_SpringProp peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10836,7 +10858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringPropAccessor namespace SpringMotionAccessor { - void DestroyPeerImpl(SpringMotionPeer* peer) + void DestroyPeerImpl(Ark_SpringMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10856,7 +10878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringMotionAccessor namespace FrictionMotionAccessor { - void DestroyPeerImpl(FrictionMotionPeer* peer) + void DestroyPeerImpl(Ark_FrictionMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10875,7 +10897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrictionMotionAccessor namespace ScrollMotionAccessor { - void DestroyPeerImpl(ScrollMotionPeer* peer) + void DestroyPeerImpl(Ark_ScrollMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10896,7 +10918,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollMotionAccessor namespace CalendarControllerAccessor { - void DestroyPeerImpl(CalendarControllerPeer* peer) + void DestroyPeerImpl(Ark_CalendarController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10911,16 +10933,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void BackToTodayImpl(CalendarControllerPeer* peer) + void BackToTodayImpl(Ark_CalendarController peer) { } - void GoToImpl(CalendarControllerPeer* peer, + void GoToImpl(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value) { } } // CalendarControllerAccessor namespace CalendarPickerDialogAccessor { - void DestroyPeerImpl(CalendarPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_CalendarPickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10940,7 +10962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarPickerDialogAccessor namespace CanvasGradientAccessor { - void DestroyPeerImpl(CanvasGradientPeer* peer) + void DestroyPeerImpl(Ark_CanvasGradient peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10955,14 +10977,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void AddColorStopImpl(CanvasGradientPeer* peer, + void AddColorStopImpl(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color) { } } // CanvasGradientAccessor namespace CanvasPathAccessor { - void DestroyPeerImpl(CanvasPathPeer* peer) + void DestroyPeerImpl(Ark_CanvasPath peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10977,7 +10999,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ArcImpl(CanvasPathPeer* peer, + void ArcImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, @@ -10986,7 +11008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* counterclockwise) { } - void ArcToImpl(CanvasPathPeer* peer, + void ArcToImpl(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, @@ -10994,7 +11016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* radius) { } - void BezierCurveToImpl(CanvasPathPeer* peer, + void BezierCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, @@ -11003,10 +11025,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* y) { } - void ClosePathImpl(CanvasPathPeer* peer) + void ClosePathImpl(Ark_CanvasPath peer) { } - void EllipseImpl(CanvasPathPeer* peer, + void EllipseImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -11017,24 +11039,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* counterclockwise) { } - void LineToImpl(CanvasPathPeer* peer, + void LineToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { } - void MoveToImpl(CanvasPathPeer* peer, + void MoveToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { } - void QuadraticCurveToImpl(CanvasPathPeer* peer, + void QuadraticCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, const Ark_Number* y) { } - void RectImpl(CanvasPathPeer* peer, + void RectImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -11043,7 +11065,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPathAccessor namespace Path2DAccessor { - void DestroyPeerImpl(Path2DPeer* peer) + void DestroyPeerImpl(Ark_Path2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11058,14 +11080,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void AddPathImpl(Path2DPeer* peer, + void AddPathImpl(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform) { } } // Path2DAccessor namespace CanvasPatternAccessor { - void DestroyPeerImpl(CanvasPatternPeer* peer) + void DestroyPeerImpl(Ark_CanvasPattern peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11080,13 +11102,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetTransformImpl(CanvasPatternPeer* peer, + void SetTransformImpl(Ark_CanvasPattern peer, const Opt_Matrix2D* transform) { } } // CanvasPatternAccessor namespace ImageBitmapAccessor { - void DestroyPeerImpl(ImageBitmapPeer* peer) + void DestroyPeerImpl(Ark_ImageBitmap peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11101,20 +11123,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseImpl(ImageBitmapPeer* peer) + void CloseImpl(Ark_ImageBitmap peer) { } - Ark_Int32 GetHeightImpl(ImageBitmapPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageBitmap peer) { return {}; } - Ark_Int32 GetWidthImpl(ImageBitmapPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageBitmap peer) { return {}; } } // ImageBitmapAccessor namespace ImageDataAccessor { - void DestroyPeerImpl(ImageDataPeer* peer) + void DestroyPeerImpl(Ark_ImageData peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11131,17 +11153,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetHeightImpl(ImageDataPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageData peer) { return {}; } - Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageData peer) { return {}; } } // ImageDataAccessor namespace RenderingContextSettingsAccessor { - void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + void DestroyPeerImpl(Ark_RenderingContextSettings peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11156,17 +11178,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + Ark_Boolean GetAntialiasImpl(Ark_RenderingContextSettings peer) { return {}; } - void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + void SetAntialiasImpl(Ark_RenderingContextSettings peer, Ark_Boolean antialias) { } } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { - void DestroyPeerImpl(CanvasRendererPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11181,13 +11203,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawImage0Impl(CanvasRendererPeer* peer, + void DrawImage0Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy) { } - void DrawImage1Impl(CanvasRendererPeer* peer, + void DrawImage1Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, @@ -11195,7 +11217,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* dh) { } - void DrawImage2Impl(CanvasRendererPeer* peer, + void DrawImage2Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -11207,35 +11229,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* dh) { } - void BeginPathImpl(CanvasRendererPeer* peer) + void BeginPathImpl(Ark_CanvasRenderer peer) { } - void Clip0Impl(CanvasRendererPeer* peer, + void Clip0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { } - void Clip1Impl(CanvasRendererPeer* peer, + void Clip1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { } - void Fill0Impl(CanvasRendererPeer* peer, + void Fill0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { } - void Fill1Impl(CanvasRendererPeer* peer, + void Fill1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { } - void Stroke0Impl(CanvasRendererPeer* peer) + void Stroke0Impl(Ark_CanvasRenderer peer) { } - void Stroke1Impl(CanvasRendererPeer* peer, + void Stroke1Impl(Ark_CanvasRenderer peer, Ark_Path2D path) { } - Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateLinearGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, @@ -11243,13 +11265,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Opt_CanvasPattern CreatePatternImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition) { return {}; } - Ark_CanvasGradient CreateRadialGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateRadialGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, @@ -11259,25 +11281,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateConicGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y) { return {}; } - Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData0Impl(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh) { return {}; } - Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata) { return {}; } - Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + Ark_ImageData GetImageDataImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, @@ -11285,7 +11307,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + Ark_PixelMap GetPixelMapImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, @@ -11293,13 +11315,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void PutImageData0Impl(CanvasRendererPeer* peer, + void PutImageData0Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) { } - void PutImageData1Impl(CanvasRendererPeer* peer, + void PutImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -11309,76 +11331,77 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Union_Number_String* dirtyHeight) { } - void GetLineDashImpl(CanvasRendererPeer* peer) + Array_Number GetLineDashImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetLineDashImpl(CanvasRendererPeer* peer, + void SetLineDashImpl(Ark_CanvasRenderer peer, const Array_Number* segments) { } - void ClearRectImpl(CanvasRendererPeer* peer, + void ClearRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void FillRectImpl(CanvasRendererPeer* peer, + void FillRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void StrokeRectImpl(CanvasRendererPeer* peer, + void StrokeRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void RestoreImpl(CanvasRendererPeer* peer) + void RestoreImpl(Ark_CanvasRenderer peer) { } - void SaveImpl(CanvasRendererPeer* peer) + void SaveImpl(Ark_CanvasRenderer peer) { } - void FillTextImpl(CanvasRendererPeer* peer, + void FillTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth) { } - Ark_NativePointer MeasureTextImpl(CanvasRendererPeer* peer, - const Ark_String* text) + Ark_TextMetrics MeasureTextImpl(Ark_CanvasRenderer peer, + const Ark_String* text) { return {}; } - void StrokeTextImpl(CanvasRendererPeer* peer, + void StrokeTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth) { } - Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(Ark_CanvasRenderer peer) { return {}; } - void ResetTransformImpl(CanvasRendererPeer* peer) + void ResetTransformImpl(Ark_CanvasRenderer peer) { } - void RotateImpl(CanvasRendererPeer* peer, + void RotateImpl(Ark_CanvasRenderer peer, const Ark_Number* angle) { } - void ScaleImpl(CanvasRendererPeer* peer, + void ScaleImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { } - void SetTransform0Impl(CanvasRendererPeer* peer, + void SetTransform0Impl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -11387,11 +11410,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* f) { } - void SetTransform1Impl(CanvasRendererPeer* peer, + void SetTransform1Impl(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform) { } - void TransformImpl(CanvasRendererPeer* peer, + void TransformImpl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -11400,179 +11423,179 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* f) { } - void TranslateImpl(CanvasRendererPeer* peer, + void TranslateImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { } - void SetPixelMapImpl(CanvasRendererPeer* peer, + void SetPixelMapImpl(Ark_CanvasRenderer peer, const Opt_PixelMap* value) { } - void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, + void TransferFromImageBitmapImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap) { } - void SaveLayerImpl(CanvasRendererPeer* peer) + void SaveLayerImpl(Ark_CanvasRenderer peer) { } - void RestoreLayerImpl(CanvasRendererPeer* peer) + void RestoreLayerImpl(Ark_CanvasRenderer peer) { } - void ResetImpl(CanvasRendererPeer* peer) + void ResetImpl(Ark_CanvasRenderer peer) { } - Ark_Int32 GetGlobalAlphaImpl(CanvasRendererPeer* peer) + Ark_Int32 GetGlobalAlphaImpl(Ark_CanvasRenderer peer) { return {}; } - void SetGlobalAlphaImpl(CanvasRendererPeer* peer, + void SetGlobalAlphaImpl(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha) { } - void GetGlobalCompositeOperationImpl(CanvasRendererPeer* peer) + void GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { } - void SetGlobalCompositeOperationImpl(CanvasRendererPeer* peer, + void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) { } - void SetFillStyleImpl(CanvasRendererPeer* peer, + void SetFillStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle) { } - void SetStrokeStyleImpl(CanvasRendererPeer* peer, + void SetStrokeStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle) { } - void GetFilterImpl(CanvasRendererPeer* peer) + void GetFilterImpl(Ark_CanvasRenderer peer) { } - void SetFilterImpl(CanvasRendererPeer* peer, + void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) { } - Ark_Boolean GetImageSmoothingEnabledImpl(CanvasRendererPeer* peer) + Ark_Boolean GetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer) { return {}; } - void SetImageSmoothingEnabledImpl(CanvasRendererPeer* peer, + void SetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled) { } - Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) + Ark_String GetImageSmoothingQualityImpl(Ark_CanvasRenderer peer) { return {}; } - void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, + void SetImageSmoothingQualityImpl(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality) { } - Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) + Ark_String GetLineCapImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineCapImpl(CanvasRendererPeer* peer, + void SetLineCapImpl(Ark_CanvasRenderer peer, const Ark_String* lineCap) { } - Ark_Int32 GetLineDashOffsetImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineDashOffsetImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineDashOffsetImpl(CanvasRendererPeer* peer, + void SetLineDashOffsetImpl(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset) { } - Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) + Ark_String GetLineJoinImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineJoinImpl(CanvasRendererPeer* peer, + void SetLineJoinImpl(Ark_CanvasRenderer peer, const Ark_String* lineJoin) { } - Ark_Int32 GetLineWidthImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineWidthImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineWidthImpl(CanvasRendererPeer* peer, + void SetLineWidthImpl(Ark_CanvasRenderer peer, const Ark_Number* lineWidth) { } - Ark_Int32 GetMiterLimitImpl(CanvasRendererPeer* peer) + Ark_Int32 GetMiterLimitImpl(Ark_CanvasRenderer peer) { return {}; } - void SetMiterLimitImpl(CanvasRendererPeer* peer, + void SetMiterLimitImpl(Ark_CanvasRenderer peer, const Ark_Number* miterLimit) { } - Ark_Int32 GetShadowBlurImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowBlurImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowBlurImpl(CanvasRendererPeer* peer, + void SetShadowBlurImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur) { } - void GetShadowColorImpl(CanvasRendererPeer* peer) + void GetShadowColorImpl(Ark_CanvasRenderer peer) { } - void SetShadowColorImpl(CanvasRendererPeer* peer, + void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) { } - Ark_Int32 GetShadowOffsetXImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetXImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowOffsetXImpl(CanvasRendererPeer* peer, + void SetShadowOffsetXImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX) { } - Ark_Int32 GetShadowOffsetYImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetYImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowOffsetYImpl(CanvasRendererPeer* peer, + void SetShadowOffsetYImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY) { } - Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) + Ark_String GetDirectionImpl(Ark_CanvasRenderer peer) { return {}; } - void SetDirectionImpl(CanvasRendererPeer* peer, + void SetDirectionImpl(Ark_CanvasRenderer peer, const Ark_String* direction) { } - void GetFontImpl(CanvasRendererPeer* peer) + void GetFontImpl(Ark_CanvasRenderer peer) { } - void SetFontImpl(CanvasRendererPeer* peer, + void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) { } - Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) + Ark_String GetTextAlignImpl(Ark_CanvasRenderer peer) { return {}; } - void SetTextAlignImpl(CanvasRendererPeer* peer, + void SetTextAlignImpl(Ark_CanvasRenderer peer, const Ark_String* textAlign) { } - Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) + Ark_String GetTextBaselineImpl(Ark_CanvasRenderer peer) { return {}; } - void SetTextBaselineImpl(CanvasRendererPeer* peer, + void SetTextBaselineImpl(Ark_CanvasRenderer peer, const Ark_String* textBaseline) { } } // CanvasRendererAccessor namespace CanvasRenderingContext2DAccessor { - void DestroyPeerImpl(CanvasRenderingContext2DPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderingContext2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11587,46 +11610,117 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ToDataURLImpl(CanvasRenderingContext2DPeer* peer, + void ToDataURLImpl(Ark_CanvasRenderingContext2D peer, const Opt_String* type, const Opt_Number* quality) { } - void StartImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer, + void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void StopImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer) + void StopImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer) { } - void OnOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { } - void OffOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { } - void OnOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { } - void OffOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { } - Ark_Int32 GetHeightImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetHeightImpl(Ark_CanvasRenderingContext2D peer) { return {}; } - Ark_Int32 GetWidthImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetWidthImpl(Ark_CanvasRenderingContext2D peer) { return {}; } } // CanvasRenderingContext2DAccessor + namespace OffscreenCanvasRenderingContext2DAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_OffscreenCanvasRenderingContext2D CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings) + { + return new OffscreenCanvasRenderingContext2DPeer(width, height, settings); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + void ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_CustomObject* quality) + { + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + return {}; + } + } // OffscreenCanvasRenderingContext2DAccessor + namespace OffscreenCanvasAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvas peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_OffscreenCanvas CtorImpl(const Ark_Number* width, + const Ark_Number* height) + { + return new OffscreenCanvasPeer(width, height); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + Ark_OffscreenCanvasRenderingContext2D GetContext2dImpl(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options) + { + return {}; + } + Ark_Int32 GetHeightImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + void SetHeightImpl(Ark_OffscreenCanvas peer, + const Ark_Number* height) + { + } + Ark_Int32 GetWidthImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + void SetWidthImpl(Ark_OffscreenCanvas peer, + const Ark_Number* width) + { + } + } // OffscreenCanvasAccessor namespace DrawingRenderingContextAccessor { - void DestroyPeerImpl(DrawingRenderingContextPeer* peer) + void DestroyPeerImpl(Ark_DrawingRenderingContext peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11641,12 +11735,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InvalidateImpl(DrawingRenderingContextPeer* peer) + void InvalidateImpl(Ark_DrawingRenderingContext peer) { } } // DrawingRenderingContextAccessor namespace ICurveAccessor { - void DestroyPeerImpl(ICurvePeer* peer) + void DestroyPeerImpl(Ark_ICurve peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11661,14 +11755,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 InterpolateImpl(ICurvePeer* peer, + Ark_Int32 InterpolateImpl(Ark_ICurve peer, const Ark_Number* fraction) { return {}; } } // ICurveAccessor namespace DrawModifierAccessor { - void DestroyPeerImpl(DrawModifierPeer* peer) + void DestroyPeerImpl(Ark_DrawModifier peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11683,24 +11777,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawBehindImpl(DrawModifierPeer* peer, + void DrawBehindImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void DrawContentImpl(DrawModifierPeer* peer, + void DrawContentImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void DrawFrontImpl(DrawModifierPeer* peer, + void DrawFrontImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void InvalidateImpl(DrawModifierPeer* peer) + void InvalidateImpl(Ark_DrawModifier peer) { } } // DrawModifierAccessor namespace TransitionEffectAccessor { - void DestroyPeerImpl(TransitionEffectPeer* peer) + void DestroyPeerImpl(Ark_TransitionEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11741,19 +11835,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect AnimationImpl(Ark_TransitionEffect peer, const Ark_AnimateParam* value) { return {}; } - Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect CombineImpl(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect) { return {}; } } // TransitionEffectAccessor namespace BaseEventAccessor { - void DestroyPeerImpl(BaseEventPeer* peer) + void DestroyPeerImpl(Ark_BaseEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11768,90 +11862,90 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetModifierKeyStateImpl(BaseEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_BaseEvent peer, const Array_String* keys) { return {}; } - void SetTargetImpl(BaseEventPeer* peer, + void SetTargetImpl(Ark_BaseEvent peer, const Ark_EventTarget* target) { } - Ark_Int32 GetTimestampImpl(BaseEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_BaseEvent peer) { return {}; } - void SetTimestampImpl(BaseEventPeer* peer, + void SetTimestampImpl(Ark_BaseEvent peer, const Ark_Number* timestamp) { } - Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) + Ark_SourceType GetSourceImpl(Ark_BaseEvent peer) { return {}; } - void SetSourceImpl(BaseEventPeer* peer, + void SetSourceImpl(Ark_BaseEvent peer, Ark_SourceType source) { } - Ark_Int32 GetAxisHorizontalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisHorizontalImpl(Ark_BaseEvent peer) { return {}; } - void SetAxisHorizontalImpl(BaseEventPeer* peer, + void SetAxisHorizontalImpl(Ark_BaseEvent peer, const Ark_Number* axisHorizontal) { } - Ark_Int32 GetAxisVerticalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisVerticalImpl(Ark_BaseEvent peer) { return {}; } - void SetAxisVerticalImpl(BaseEventPeer* peer, + void SetAxisVerticalImpl(Ark_BaseEvent peer, const Ark_Number* axisVertical) { } - Ark_Int32 GetPressureImpl(BaseEventPeer* peer) + Ark_Int32 GetPressureImpl(Ark_BaseEvent peer) { return {}; } - void SetPressureImpl(BaseEventPeer* peer, + void SetPressureImpl(Ark_BaseEvent peer, const Ark_Number* pressure) { } - Ark_Int32 GetTiltXImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltXImpl(Ark_BaseEvent peer) { return {}; } - void SetTiltXImpl(BaseEventPeer* peer, + void SetTiltXImpl(Ark_BaseEvent peer, const Ark_Number* tiltX) { } - Ark_Int32 GetTiltYImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltYImpl(Ark_BaseEvent peer) { return {}; } - void SetTiltYImpl(BaseEventPeer* peer, + void SetTiltYImpl(Ark_BaseEvent peer, const Ark_Number* tiltY) { } - Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) + Ark_SourceTool GetSourceToolImpl(Ark_BaseEvent peer) { return {}; } - void SetSourceToolImpl(BaseEventPeer* peer, + void SetSourceToolImpl(Ark_BaseEvent peer, Ark_SourceTool sourceTool) { } - Ark_Int32 GetDeviceIdImpl(BaseEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_BaseEvent peer) { return {}; } - void SetDeviceIdImpl(BaseEventPeer* peer, + void SetDeviceIdImpl(Ark_BaseEvent peer, const Ark_Number* deviceId) { } } // BaseEventAccessor namespace ClickEventAccessor { - void DestroyPeerImpl(ClickEventPeer* peer) + void DestroyPeerImpl(Ark_ClickEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11866,81 +11960,81 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetDisplayXImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_ClickEvent peer) { return {}; } - void SetDisplayXImpl(ClickEventPeer* peer, + void SetDisplayXImpl(Ark_ClickEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_ClickEvent peer) { return {}; } - void SetDisplayYImpl(ClickEventPeer* peer, + void SetDisplayYImpl(Ark_ClickEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_ClickEvent peer) { return {}; } - void SetWindowXImpl(ClickEventPeer* peer, + void SetWindowXImpl(Ark_ClickEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_ClickEvent peer) { return {}; } - void SetWindowYImpl(ClickEventPeer* peer, + void SetWindowYImpl(Ark_ClickEvent peer, const Ark_Number* windowY) { } - Ark_Int32 GetScreenXImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_ClickEvent peer) { return {}; } - void SetScreenXImpl(ClickEventPeer* peer, + void SetScreenXImpl(Ark_ClickEvent peer, const Ark_Number* screenX) { } - Ark_Int32 GetScreenYImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_ClickEvent peer) { return {}; } - void SetScreenYImpl(ClickEventPeer* peer, + void SetScreenYImpl(Ark_ClickEvent peer, const Ark_Number* screenY) { } - Ark_Int32 GetXImpl(ClickEventPeer* peer) + Ark_Int32 GetXImpl(Ark_ClickEvent peer) { return {}; } - void SetXImpl(ClickEventPeer* peer, + void SetXImpl(Ark_ClickEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(ClickEventPeer* peer) + Ark_Int32 GetYImpl(Ark_ClickEvent peer) { return {}; } - void SetYImpl(ClickEventPeer* peer, + void SetYImpl(Ark_ClickEvent peer, const Ark_Number* y) { } - Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_ClickEvent peer) { return {}; } - void SetPreventDefaultImpl(ClickEventPeer* peer, + void SetPreventDefaultImpl(Ark_ClickEvent peer, const Callback_Void* preventDefault) { } } // ClickEventAccessor namespace HoverEventAccessor { - void DestroyPeerImpl(HoverEventPeer* peer) + void DestroyPeerImpl(Ark_HoverEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11955,17 +12049,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_HoverEvent peer) { return {}; } - void SetStopPropagationImpl(HoverEventPeer* peer, + void SetStopPropagationImpl(Ark_HoverEvent peer, const Callback_Void* stopPropagation) { } } // HoverEventAccessor namespace MouseEventAccessor { - void DestroyPeerImpl(MouseEventPeer* peer) + void DestroyPeerImpl(Ark_MouseEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11980,97 +12074,97 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) + Ark_MouseButton GetButtonImpl(Ark_MouseEvent peer) { return {}; } - void SetButtonImpl(MouseEventPeer* peer, + void SetButtonImpl(Ark_MouseEvent peer, Ark_MouseButton button) { } - Ark_NativePointer GetActionImpl(MouseEventPeer* peer) + Ark_MouseAction GetActionImpl(Ark_MouseEvent peer) { return {}; } - void SetActionImpl(MouseEventPeer* peer, + void SetActionImpl(Ark_MouseEvent peer, Ark_MouseAction action) { } - Ark_Int32 GetDisplayXImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_MouseEvent peer) { return {}; } - void SetDisplayXImpl(MouseEventPeer* peer, + void SetDisplayXImpl(Ark_MouseEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_MouseEvent peer) { return {}; } - void SetDisplayYImpl(MouseEventPeer* peer, + void SetDisplayYImpl(Ark_MouseEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_MouseEvent peer) { return {}; } - void SetWindowXImpl(MouseEventPeer* peer, + void SetWindowXImpl(Ark_MouseEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_MouseEvent peer) { return {}; } - void SetWindowYImpl(MouseEventPeer* peer, + void SetWindowYImpl(Ark_MouseEvent peer, const Ark_Number* windowY) { } - Ark_Int32 GetScreenXImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_MouseEvent peer) { return {}; } - void SetScreenXImpl(MouseEventPeer* peer, + void SetScreenXImpl(Ark_MouseEvent peer, const Ark_Number* screenX) { } - Ark_Int32 GetScreenYImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_MouseEvent peer) { return {}; } - void SetScreenYImpl(MouseEventPeer* peer, + void SetScreenYImpl(Ark_MouseEvent peer, const Ark_Number* screenY) { } - Ark_Int32 GetXImpl(MouseEventPeer* peer) + Ark_Int32 GetXImpl(Ark_MouseEvent peer) { return {}; } - void SetXImpl(MouseEventPeer* peer, + void SetXImpl(Ark_MouseEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(MouseEventPeer* peer) + Ark_Int32 GetYImpl(Ark_MouseEvent peer) { return {}; } - void SetYImpl(MouseEventPeer* peer, + void SetYImpl(Ark_MouseEvent peer, const Ark_Number* y) { } - Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_MouseEvent peer) { return {}; } - void SetStopPropagationImpl(MouseEventPeer* peer, + void SetStopPropagationImpl(Ark_MouseEvent peer, const Callback_Void* stopPropagation) { } } // MouseEventAccessor namespace AccessibilityHoverEventAccessor { - void DestroyPeerImpl(AccessibilityHoverEventPeer* peer) + void DestroyPeerImpl(Ark_AccessibilityHoverEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12085,65 +12179,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) + Ark_AccessibilityHoverType GetTypeImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetTypeImpl(AccessibilityHoverEventPeer* peer, + void SetTypeImpl(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type) { } - Ark_Int32 GetXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetXImpl(AccessibilityHoverEventPeer* peer, + void SetXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetYImpl(AccessibilityHoverEventPeer* peer, + void SetYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* y) { } - Ark_Int32 GetDisplayXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetDisplayXImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetDisplayYImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetWindowXImpl(AccessibilityHoverEventPeer* peer, + void SetWindowXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetWindowYImpl(AccessibilityHoverEventPeer* peer, + void SetWindowYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY) { } } // AccessibilityHoverEventAccessor namespace TouchEventAccessor { - void DestroyPeerImpl(TouchEventPeer* peer) + void DestroyPeerImpl(Ark_TouchEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12158,44 +12252,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetHistoricalPointsImpl(TouchEventPeer* peer) + Array_HistoricalPoint GetHistoricalPointsImpl(Ark_TouchEvent peer) { + return {}; } - Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) + Ark_TouchType GetTypeImpl(Ark_TouchEvent peer) { return {}; } - void SetTypeImpl(TouchEventPeer* peer, + void SetTypeImpl(Ark_TouchEvent peer, Ark_TouchType type) { } - void SetTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetTouchesImpl(Ark_TouchEvent peer) + { + return {}; + } + void SetTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* touches) { } - void SetChangedTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetChangedTouchesImpl(Ark_TouchEvent peer) + { + return {}; + } + void SetChangedTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* changedTouches) { } - Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_TouchEvent peer) { return {}; } - void SetStopPropagationImpl(TouchEventPeer* peer, + void SetStopPropagationImpl(Ark_TouchEvent peer, const Callback_Void* stopPropagation) { } - Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_TouchEvent peer) { return {}; } - void SetPreventDefaultImpl(TouchEventPeer* peer, + void SetPreventDefaultImpl(Ark_TouchEvent peer, const Callback_Void* preventDefault) { } } // TouchEventAccessor namespace PixelMapMockAccessor { - void DestroyPeerImpl(PixelMapMockPeer* peer) + void DestroyPeerImpl(Ark_PixelMapMock peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12210,12 +12313,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReleaseImpl(PixelMapMockPeer* peer) + void ReleaseImpl(Ark_PixelMapMock peer) { } } // PixelMapMockAccessor namespace DragEventAccessor { - void DestroyPeerImpl(DragEventPeer* peer) + void DestroyPeerImpl(Ark_DragEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12230,90 +12333,90 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetDisplayXImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetDisplayYImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetWindowXImpl(DragEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetWindowYImpl(DragEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetXImpl(DragEventPeer* peer) + Ark_Int32 GetXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetYImpl(DragEventPeer* peer) + Ark_Int32 GetYImpl(Ark_DragEvent peer) { return {}; } - void SetDataImpl(DragEventPeer* peer, + void SetDataImpl(Ark_DragEvent peer, Ark_UnifiedData unifiedData) { } - Ark_UnifiedData GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(Ark_DragEvent peer) { return {}; } - Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) + Ark_Summary GetSummaryImpl(Ark_DragEvent peer) { return {}; } - void SetResultImpl(DragEventPeer* peer, + void SetResultImpl(Ark_DragEvent peer, Ark_DragResult dragResult) { } - Ark_NativePointer GetResultImpl(DragEventPeer* peer) + Ark_DragResult GetResultImpl(Ark_DragEvent peer) { return {}; } - Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) + Ark_Rectangle GetPreviewRectImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityYImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_DragEvent peer) { return {}; } - Ark_Boolean GetModifierKeyStateImpl(DragEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_DragEvent peer, const Array_String* keys) { return {}; } - Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) + Ark_DragBehavior GetDragBehaviorImpl(Ark_DragEvent peer) { return {}; } - void SetDragBehaviorImpl(DragEventPeer* peer, + void SetDragBehaviorImpl(Ark_DragEvent peer, Ark_DragBehavior dragBehavior) { } - Ark_Boolean GetUseCustomDropAnimationImpl(DragEventPeer* peer) + Ark_Boolean GetUseCustomDropAnimationImpl(Ark_DragEvent peer) { return {}; } - void SetUseCustomDropAnimationImpl(DragEventPeer* peer, + void SetUseCustomDropAnimationImpl(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation) { } } // DragEventAccessor namespace KeyEventAccessor { - void DestroyPeerImpl(KeyEventPeer* peer) + void DestroyPeerImpl(Ark_KeyEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12328,89 +12431,89 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetModifierKeyStateImpl(KeyEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_KeyEvent peer, const Array_String* keys) { return {}; } - Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) + Ark_KeyType GetTypeImpl(Ark_KeyEvent peer) { return {}; } - void SetTypeImpl(KeyEventPeer* peer, + void SetTypeImpl(Ark_KeyEvent peer, Ark_KeyType type) { } - Ark_Int32 GetKeyCodeImpl(KeyEventPeer* peer) + Ark_Int32 GetKeyCodeImpl(Ark_KeyEvent peer) { return {}; } - void SetKeyCodeImpl(KeyEventPeer* peer, + void SetKeyCodeImpl(Ark_KeyEvent peer, const Ark_Number* keyCode) { } - void GetKeyTextImpl(KeyEventPeer* peer) + void GetKeyTextImpl(Ark_KeyEvent peer) { } - void SetKeyTextImpl(KeyEventPeer* peer, + void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) { } - Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) + Ark_KeySource GetKeySourceImpl(Ark_KeyEvent peer) { return {}; } - void SetKeySourceImpl(KeyEventPeer* peer, + void SetKeySourceImpl(Ark_KeyEvent peer, Ark_KeySource keySource) { } - Ark_Int32 GetDeviceIdImpl(KeyEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_KeyEvent peer) { return {}; } - void SetDeviceIdImpl(KeyEventPeer* peer, + void SetDeviceIdImpl(Ark_KeyEvent peer, const Ark_Number* deviceId) { } - Ark_Int32 GetMetaKeyImpl(KeyEventPeer* peer) + Ark_Int32 GetMetaKeyImpl(Ark_KeyEvent peer) { return {}; } - void SetMetaKeyImpl(KeyEventPeer* peer, + void SetMetaKeyImpl(Ark_KeyEvent peer, const Ark_Number* metaKey) { } - Ark_Int32 GetTimestampImpl(KeyEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_KeyEvent peer) { return {}; } - void SetTimestampImpl(KeyEventPeer* peer, + void SetTimestampImpl(Ark_KeyEvent peer, const Ark_Number* timestamp) { } - Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_KeyEvent peer) { return {}; } - void SetStopPropagationImpl(KeyEventPeer* peer, + void SetStopPropagationImpl(Ark_KeyEvent peer, const Callback_Void* stopPropagation) { } - void SetIntentionCodeImpl(KeyEventPeer* peer, + void SetIntentionCodeImpl(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode) { } - Ark_Int32 GetUnicodeImpl(KeyEventPeer* peer) + Ark_Int32 GetUnicodeImpl(Ark_KeyEvent peer) { return {}; } - void SetUnicodeImpl(KeyEventPeer* peer, + void SetUnicodeImpl(Ark_KeyEvent peer, const Ark_Number* unicode) { } } // KeyEventAccessor namespace ProgressMaskAccessor { - void DestroyPeerImpl(ProgressMaskPeer* peer) + void DestroyPeerImpl(Ark_ProgressMask peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12427,21 +12530,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void UpdateProgressImpl(ProgressMaskPeer* peer, + void UpdateProgressImpl(Ark_ProgressMask peer, const Ark_Number* value) { } - void UpdateColorImpl(ProgressMaskPeer* peer, + void UpdateColorImpl(Ark_ProgressMask peer, const Ark_ResourceColor* value) { } - void EnableBreathingAnimationImpl(ProgressMaskPeer* peer, + void EnableBreathingAnimationImpl(Ark_ProgressMask peer, Ark_Boolean value) { } } // ProgressMaskAccessor namespace MeasurableAccessor { - void DestroyPeerImpl(MeasurablePeer* peer) + void DestroyPeerImpl(Ark_Measurable peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12456,26 +12559,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer MeasureImpl(MeasurablePeer* peer, + Ark_MeasureResult MeasureImpl(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint) { return {}; } - Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetMarginImpl(Ark_Measurable peer) { return {}; } - Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetPaddingImpl(Ark_Measurable peer) { return {}; } - Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetBorderWidthImpl(Ark_Measurable peer) { return {}; } } // MeasurableAccessor namespace ViewAccessor { - void DestroyPeerImpl(ViewPeer* peer) + void DestroyPeerImpl(Ark_View peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12490,13 +12593,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CreateImpl(ViewPeer* peer, - const Ark_CustomObject* value) + Ark_CustomObject CreateImpl(Ark_View peer, + const Ark_CustomObject* value) { + return {}; } } // ViewAccessor namespace TextContentControllerBaseAccessor { - void DestroyPeerImpl(TextContentControllerBasePeer* peer) + void DestroyPeerImpl(Ark_TextContentControllerBase peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12511,21 +12615,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) + Ark_CaretOffset GetCaretOffsetImpl(Ark_TextContentControllerBase peer) { return {}; } - Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) + Ark_RectResult GetTextContentRectImpl(Ark_TextContentControllerBase peer) { return {}; } - Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) + Ark_Int32 GetTextContentLineCountImpl(Ark_TextContentControllerBase peer) { return {}; } } // TextContentControllerBaseAccessor namespace DynamicNodeAccessor { - void DestroyPeerImpl(DynamicNodePeer* peer) + void DestroyPeerImpl(Ark_DynamicNode peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12540,13 +12644,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnMoveImpl(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler) + Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler) { + return {}; } } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { - void DestroyPeerImpl(ChildrenMainSizePeer* peer) + void DestroyPeerImpl(Ark_ChildrenMainSize peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12561,28 +12666,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SpliceImpl(ChildrenMainSizePeer* peer, + void SpliceImpl(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize) { } - void UpdateImpl(ChildrenMainSizePeer* peer, + void UpdateImpl(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize) { } - Ark_Int32 GetChildDefaultSizeImpl(ChildrenMainSizePeer* peer) + Ark_Int32 GetChildDefaultSizeImpl(Ark_ChildrenMainSize peer) { return {}; } - void SetChildDefaultSizeImpl(ChildrenMainSizePeer* peer, + void SetChildDefaultSizeImpl(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize) { } } // ChildrenMainSizeAccessor namespace UICommonEventAccessor { - void DestroyPeerImpl(UICommonEventPeer* peer) + void DestroyPeerImpl(Ark_UICommonEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12597,54 +12702,54 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetOnClickImpl(UICommonEventPeer* peer, + void SetOnClickImpl(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_) { } - void SetOnTouchImpl(UICommonEventPeer* peer, + void SetOnTouchImpl(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_) { } - void SetOnAppearImpl(UICommonEventPeer* peer, + void SetOnAppearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnDisappearImpl(UICommonEventPeer* peer, + void SetOnDisappearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnKeyEventImpl(UICommonEventPeer* peer, + void SetOnKeyEventImpl(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_) { } - void SetOnFocusImpl(UICommonEventPeer* peer, + void SetOnFocusImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnBlurImpl(UICommonEventPeer* peer, + void SetOnBlurImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnHoverImpl(UICommonEventPeer* peer, + void SetOnHoverImpl(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_) { } - void SetOnMouseImpl(UICommonEventPeer* peer, + void SetOnMouseImpl(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_) { } - void SetOnSizeChangeImpl(UICommonEventPeer* peer, + void SetOnSizeChangeImpl(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_) { } - void SetOnVisibleAreaApproximateChangeImpl(UICommonEventPeer* peer, + void SetOnVisibleAreaApproximateChangeImpl(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event) { } } // UICommonEventAccessor namespace GestureModifierAccessor { - void DestroyPeerImpl(GestureModifierPeer* peer) + void DestroyPeerImpl(Ark_GestureModifier peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12659,20 +12764,48 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ApplyGestureImpl(GestureModifierPeer* peer, + void ApplyGestureImpl(Ark_GestureModifier peer, const Ark_UIGestureEvent* event) { } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(GlobalScope_commonPeer* peer) + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer GetContextImpl(const Opt_CustomObject* component) + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + return {}; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + void SetCursorImpl(Ark_PointerStyle value) + { + } + void RestoreDefaultImpl() + { + } + } // GlobalScope_cursorControl_commonAccessor + namespace GlobalScopecommonAccessor { + void DestroyPeerImpl(Ark_GlobalScopecommon peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_Context GetContextImpl(const Opt_CustomObject* component) { return {}; } @@ -12680,12 +12813,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_CustomObject* action) { } - Ark_NativePointer Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) + Ark_Resource Dollar_rImpl(const Ark_String* value, + const Array_CustomObject* params) { return {}; } - Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) + Ark_Resource Dollar_rawfileImpl(const Ark_String* value) { return {}; } @@ -12721,19 +12854,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_Boolean RequestFocusImpl(const Ark_String* value) - { - return {}; - } - void SetCursorImpl(Ark_PointerStyle value) - { - } - void RestoreDefaultImpl() - { - } - } // GlobalScope_commonAccessor + } // GlobalScopecommonAccessor namespace ContextMenuAccessor { - void DestroyPeerImpl(ContextMenuPeer* peer) + void DestroyPeerImpl(Ark_ContextMenu peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12753,7 +12876,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ContextMenuAccessor namespace CustomDialogControllerAccessor { - void DestroyPeerImpl(CustomDialogControllerPeer* peer) + void DestroyPeerImpl(Ark_CustomDialogController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12768,15 +12891,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OpenImpl(CustomDialogControllerPeer* peer) + void OpenImpl(Ark_CustomDialogController peer) { } - void CloseImpl(CustomDialogControllerPeer* peer) + void CloseImpl(Ark_CustomDialogController peer) { } } // CustomDialogControllerAccessor namespace LinearGradientAccessor { - void DestroyPeerImpl(LinearGradientPeer* peer) + void DestroyPeerImpl(Ark_LinearGradient peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12793,7 +12916,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LinearGradientAccessor namespace DatePickerDialogAccessor { - void DestroyPeerImpl(DatePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_DatePickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12813,7 +12936,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DatePickerDialogAccessor namespace BaseGestureEventAccessor { - void DestroyPeerImpl(BaseGestureEventPeer* peer) + void DestroyPeerImpl(Ark_BaseGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12828,13 +12951,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetFingerListImpl(BaseGestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_BaseGestureEvent peer) + { + return {}; + } + void SetFingerListImpl(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList) { } } // BaseGestureEventAccessor namespace TapGestureEventAccessor { - void DestroyPeerImpl(TapGestureEventPeer* peer) + void DestroyPeerImpl(Ark_TapGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12851,7 +12978,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TapGestureEventAccessor namespace LongPressGestureEventAccessor { - void DestroyPeerImpl(LongPressGestureEventPeer* peer) + void DestroyPeerImpl(Ark_LongPressGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12866,17 +12993,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetRepeatImpl(LongPressGestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_LongPressGestureEvent peer) { return {}; } - void SetRepeatImpl(LongPressGestureEventPeer* peer, + void SetRepeatImpl(Ark_LongPressGestureEvent peer, Ark_Boolean repeat) { } } // LongPressGestureEventAccessor namespace PanGestureEventAccessor { - void DestroyPeerImpl(PanGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PanGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12891,49 +13018,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetOffsetXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_PanGestureEvent peer) { return {}; } - void SetOffsetXImpl(PanGestureEventPeer* peer, + void SetOffsetXImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetX) { } - Ark_Int32 GetOffsetYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_PanGestureEvent peer) { return {}; } - void SetOffsetYImpl(PanGestureEventPeer* peer, + void SetOffsetYImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetY) { } - Ark_Int32 GetVelocityXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityXImpl(PanGestureEventPeer* peer, + void SetVelocityXImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityX) { } - Ark_Int32 GetVelocityYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityYImpl(PanGestureEventPeer* peer, + void SetVelocityYImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityY) { } - Ark_Int32 GetVelocityImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityImpl(PanGestureEventPeer* peer, + void SetVelocityImpl(Ark_PanGestureEvent peer, const Ark_Number* velocity) { } } // PanGestureEventAccessor namespace PinchGestureEventAccessor { - void DestroyPeerImpl(PinchGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PinchGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12948,33 +13075,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetScaleImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetScaleImpl(PinchGestureEventPeer* peer, + void SetScaleImpl(Ark_PinchGestureEvent peer, const Ark_Number* scale) { } - Ark_Int32 GetPinchCenterXImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetPinchCenterXImpl(PinchGestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX) { } - Ark_Int32 GetPinchCenterYImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetPinchCenterYImpl(PinchGestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY) { } } // PinchGestureEventAccessor namespace RotationGestureEventAccessor { - void DestroyPeerImpl(RotationGestureEventPeer* peer) + void DestroyPeerImpl(Ark_RotationGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12989,17 +13116,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetAngleImpl(RotationGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_RotationGestureEvent peer) { return {}; } - void SetAngleImpl(RotationGestureEventPeer* peer, + void SetAngleImpl(Ark_RotationGestureEvent peer, const Ark_Number* angle) { } } // RotationGestureEventAccessor namespace SwipeGestureEventAccessor { - void DestroyPeerImpl(SwipeGestureEventPeer* peer) + void DestroyPeerImpl(Ark_SwipeGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13014,25 +13141,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetAngleImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_SwipeGestureEvent peer) { return {}; } - void SetAngleImpl(SwipeGestureEventPeer* peer, + void SetAngleImpl(Ark_SwipeGestureEvent peer, const Ark_Number* angle) { } - Ark_Int32 GetSpeedImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_SwipeGestureEvent peer) { return {}; } - void SetSpeedImpl(SwipeGestureEventPeer* peer, + void SetSpeedImpl(Ark_SwipeGestureEvent peer, const Ark_Number* speed) { } } // SwipeGestureEventAccessor namespace GestureEventAccessor { - void DestroyPeerImpl(GestureEventPeer* peer) + void DestroyPeerImpl(Ark_GestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13047,101 +13174,105 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetRepeatImpl(GestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_GestureEvent peer) { return {}; } - void SetRepeatImpl(GestureEventPeer* peer, + void SetRepeatImpl(Ark_GestureEvent peer, Ark_Boolean repeat) { } - void SetFingerListImpl(GestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_GestureEvent peer) + { + return {}; + } + void SetFingerListImpl(Ark_GestureEvent peer, const Array_FingerInfo* fingerList) { } - Ark_Int32 GetOffsetXImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_GestureEvent peer) { return {}; } - void SetOffsetXImpl(GestureEventPeer* peer, + void SetOffsetXImpl(Ark_GestureEvent peer, const Ark_Number* offsetX) { } - Ark_Int32 GetOffsetYImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_GestureEvent peer) { return {}; } - void SetOffsetYImpl(GestureEventPeer* peer, + void SetOffsetYImpl(Ark_GestureEvent peer, const Ark_Number* offsetY) { } - Ark_Int32 GetAngleImpl(GestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_GestureEvent peer) { return {}; } - void SetAngleImpl(GestureEventPeer* peer, + void SetAngleImpl(Ark_GestureEvent peer, const Ark_Number* angle) { } - Ark_Int32 GetSpeedImpl(GestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_GestureEvent peer) { return {}; } - void SetSpeedImpl(GestureEventPeer* peer, + void SetSpeedImpl(Ark_GestureEvent peer, const Ark_Number* speed) { } - Ark_Int32 GetScaleImpl(GestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_GestureEvent peer) { return {}; } - void SetScaleImpl(GestureEventPeer* peer, + void SetScaleImpl(Ark_GestureEvent peer, const Ark_Number* scale) { } - Ark_Int32 GetPinchCenterXImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_GestureEvent peer) { return {}; } - void SetPinchCenterXImpl(GestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterX) { } - Ark_Int32 GetPinchCenterYImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_GestureEvent peer) { return {}; } - void SetPinchCenterYImpl(GestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterY) { } - Ark_Int32 GetVelocityXImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityXImpl(GestureEventPeer* peer, + void SetVelocityXImpl(Ark_GestureEvent peer, const Ark_Number* velocityX) { } - Ark_Int32 GetVelocityYImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityYImpl(GestureEventPeer* peer, + void SetVelocityYImpl(Ark_GestureEvent peer, const Ark_Number* velocityY) { } - Ark_Int32 GetVelocityImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityImpl(GestureEventPeer* peer, + void SetVelocityImpl(Ark_GestureEvent peer, const Ark_Number* velocity) { } } // GestureEventAccessor namespace PanGestureOptionsAccessor { - void DestroyPeerImpl(PanGestureOptionsPeer* peer) + void DestroyPeerImpl(Ark_PanGestureOptions peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13156,25 +13287,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetDirectionImpl(PanGestureOptionsPeer* peer, + void SetDirectionImpl(Ark_PanGestureOptions peer, Ark_PanDirection value) { } - void SetDistanceImpl(PanGestureOptionsPeer* peer, + void SetDistanceImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { } - void SetFingersImpl(PanGestureOptionsPeer* peer, + void SetFingersImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { } - Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) + Ark_PanDirection GetDirectionImpl(Ark_PanGestureOptions peer) { return {}; } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { - void DestroyPeerImpl(ScrollableTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_ScrollableTargetInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13189,17 +13320,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsBeginImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsBeginImpl(Ark_ScrollableTargetInfo peer) { return {}; } - Ark_Boolean IsEndImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsEndImpl(Ark_ScrollableTargetInfo peer) { return {}; } } // ScrollableTargetInfoAccessor namespace EventTargetInfoAccessor { - void DestroyPeerImpl(EventTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_EventTargetInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13214,12 +13345,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetIdImpl(EventTargetInfoPeer* peer) + void GetIdImpl(Ark_EventTargetInfo peer) { } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { - void DestroyPeerImpl(GestureRecognizerPeer* peer) + void DestroyPeerImpl(Ark_GestureRecognizer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13234,40 +13365,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTagImpl(GestureRecognizerPeer* peer) + void GetTagImpl(Ark_GestureRecognizer peer) { } - Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) + Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsBuiltInImpl(Ark_GestureRecognizer peer) { return {}; } - void SetEnabledImpl(GestureRecognizerPeer* peer, + void SetEnabledImpl(Ark_GestureRecognizer peer, Ark_Boolean isEnabled) { } - Ark_Boolean IsEnabledImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsEnabledImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) + Ark_GestureRecognizerState GetStateImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsValidImpl(Ark_GestureRecognizer peer) { return {}; } } // GestureRecognizerAccessor namespace PanRecognizerAccessor { - void DestroyPeerImpl(PanRecognizerPeer* peer) + void DestroyPeerImpl(Ark_PanRecognizer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13282,13 +13413,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(Ark_PanRecognizer peer) { return {}; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { - void DestroyPeerImpl(ImageAnalyzerControllerPeer* peer) + void DestroyPeerImpl(Ark_ImageAnalyzerController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13303,12 +13434,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetImageAnalyzerSupportTypesImpl(ImageAnalyzerControllerPeer* peer) + Array_ImageAnalyzerType GetImageAnalyzerSupportTypesImpl(Ark_ImageAnalyzerController peer) { + return {}; } } // ImageAnalyzerControllerAccessor namespace ListScrollerAccessor { - void DestroyPeerImpl(ListScrollerPeer* peer) + void DestroyPeerImpl(Ark_ListScroller peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13323,32 +13455,32 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetItemRectInGroupImpl(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup) + Ark_RectResult GetItemRectInGroupImpl(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup) { return {}; } - void ScrollToItemInGroupImpl(ListScrollerPeer* peer, + void ScrollToItemInGroupImpl(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, const Opt_ScrollAlign* align) { } - void CloseAllSwipeActionsImpl(ListScrollerPeer* peer, + void CloseAllSwipeActionsImpl(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options) { } - Ark_NativePointer GetVisibleListContentInfoImpl(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_VisibleListContentInfo GetVisibleListContentInfoImpl(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y) { return {}; } } // ListScrollerAccessor namespace Matrix2DAccessor { - void DestroyPeerImpl(Matrix2DPeer* peer) + void DestroyPeerImpl(Ark_Matrix2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13363,95 +13495,95 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Ark_Matrix2D peer) { return {}; } - Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Ark_Matrix2D peer) { return {}; } - Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + Ark_Matrix2D MultiplyImpl(Ark_Matrix2D peer, const Opt_Matrix2D* other) { return {}; } - Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate0Impl(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry) { return {}; } - Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate1Impl(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry) { return {}; } - Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + Ark_Matrix2D TranslateImpl(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty) { return {}; } - Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + Ark_Matrix2D ScaleImpl(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy) { return {}; } - Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleXImpl(Ark_Matrix2D peer) { return {}; } - void SetScaleXImpl(Matrix2DPeer* peer, + void SetScaleXImpl(Ark_Matrix2D peer, const Ark_Number* scaleX) { } - Ark_Int32 GetRotateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateYImpl(Ark_Matrix2D peer) { return {}; } - void SetRotateYImpl(Matrix2DPeer* peer, + void SetRotateYImpl(Ark_Matrix2D peer, const Ark_Number* rotateY) { } - Ark_Int32 GetRotateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateXImpl(Ark_Matrix2D peer) { return {}; } - void SetRotateXImpl(Matrix2DPeer* peer, + void SetRotateXImpl(Ark_Matrix2D peer, const Ark_Number* rotateX) { } - Ark_Int32 GetScaleYImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleYImpl(Ark_Matrix2D peer) { return {}; } - void SetScaleYImpl(Matrix2DPeer* peer, + void SetScaleYImpl(Ark_Matrix2D peer, const Ark_Number* scaleY) { } - Ark_Int32 GetTranslateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateXImpl(Ark_Matrix2D peer) { return {}; } - void SetTranslateXImpl(Matrix2DPeer* peer, + void SetTranslateXImpl(Ark_Matrix2D peer, const Ark_Number* translateX) { } - Ark_Int32 GetTranslateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateYImpl(Ark_Matrix2D peer) { return {}; } - void SetTranslateYImpl(Matrix2DPeer* peer, + void SetTranslateYImpl(Ark_Matrix2D peer, const Ark_Number* translateY) { } } // Matrix2DAccessor namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) + void DestroyPeerImpl(Ark_NavDestinationContext peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13466,28 +13598,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) + Opt_RouteMapConfig GetConfigInRouteMapImpl(Ark_NavDestinationContext peer) { return {}; } - void SetPathInfoImpl(NavDestinationContextPeer* peer, + void SetPathInfoImpl(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo) { } - void SetPathStackImpl(NavDestinationContextPeer* peer, + void SetPathStackImpl(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack) { } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) + void GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, + void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) { } } // NavDestinationContextAccessor namespace NavPathInfoAccessor { - void DestroyPeerImpl(NavPathInfoPeer* peer) + void DestroyPeerImpl(Ark_NavPathInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13505,36 +13637,36 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetNameImpl(NavPathInfoPeer* peer) + void GetNameImpl(Ark_NavPathInfo peer) { } - void SetNameImpl(NavPathInfoPeer* peer, + void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) { } - void SetParamImpl(NavPathInfoPeer* peer, + void SetParamImpl(Ark_NavPathInfo peer, const Ark_CustomObject* param) { } - Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + Callback_PopInfo_Void GetOnPopImpl(Ark_NavPathInfo peer) { return {}; } - void SetOnPopImpl(NavPathInfoPeer* peer, + void SetOnPopImpl(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop) { } - Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + Ark_Boolean GetIsEntryImpl(Ark_NavPathInfo peer) { return {}; } - void SetIsEntryImpl(NavPathInfoPeer* peer, + void SetIsEntryImpl(Ark_NavPathInfo peer, Ark_Boolean isEntry) { } } // NavPathInfoAccessor namespace NavPathStackAccessor { - void DestroyPeerImpl(NavPathStackPeer* peer) + void DestroyPeerImpl(Ark_NavPathStack peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13549,49 +13681,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void PushPath0Impl(NavPathStackPeer* peer, + void PushPath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { } - void PushPath1Impl(NavPathStackPeer* peer, + void PushPath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } - void PushDestination0Impl(NavPathStackPeer* peer, + void PushDestination0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushDestination1Impl(NavPathStackPeer* peer, + void PushDestination1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushPathByName0Impl(NavPathStackPeer* peer, + void PushPathByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) { } - void PushPathByName1Impl(NavPathStackPeer* peer, + void PushPathByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated) { } - void PushDestinationByName0Impl(NavPathStackPeer* peer, + void PushDestinationByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushDestinationByName1Impl(NavPathStackPeer* peer, + void PushDestinationByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -13599,127 +13731,131 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ReplacePath0Impl(NavPathStackPeer* peer, + void ReplacePath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { } - void ReplacePath1Impl(NavPathStackPeer* peer, + void ReplacePath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } - void ReplaceDestinationImpl(NavPathStackPeer* peer, + void ReplaceDestinationImpl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ReplacePathByNameImpl(NavPathStackPeer* peer, + void ReplacePathByNameImpl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) { } - Ark_Int32 RemoveByIndexesImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByIndexesImpl(Ark_NavPathStack peer, const Array_Number* indexes) { return {}; } - Ark_Int32 RemoveByNameImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByNameImpl(Ark_NavPathStack peer, const Ark_String* name) { return {}; } - Ark_Boolean RemoveByNavDestinationIdImpl(NavPathStackPeer* peer, + Ark_Boolean RemoveByNavDestinationIdImpl(Ark_NavPathStack peer, const Ark_String* navDestinationId) { return {}; } - Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop0Impl(Ark_NavPathStack peer, const Opt_Boolean* animated) { return {}; } - Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop1Impl(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated) { return {}; } - Ark_Int32 PopToName0Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { return {}; } - Ark_Int32 PopToName1Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated) { return {}; } - void PopToIndex0Impl(NavPathStackPeer* peer, + void PopToIndex0Impl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { } - void PopToIndex1Impl(NavPathStackPeer* peer, + void PopToIndex1Impl(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated) { } - Ark_Int32 MoveToTopImpl(NavPathStackPeer* peer, + Ark_Int32 MoveToTopImpl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { return {}; } - void MoveIndexToTopImpl(NavPathStackPeer* peer, + void MoveIndexToTopImpl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { } - void ClearImpl(NavPathStackPeer* peer, + void ClearImpl(Ark_NavPathStack peer, const Opt_Boolean* animated) { } - void GetAllPathNameImpl(NavPathStackPeer* peer) + Array_String GetAllPathNameImpl(Ark_NavPathStack peer) { + return {}; } - void GetParamByIndexImpl(NavPathStackPeer* peer, - const Ark_Number* index) + Opt_CustomObject GetParamByIndexImpl(Ark_NavPathStack peer, + const Ark_Number* index) { + return {}; } - void GetParamByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_CustomObject GetParamByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { + return {}; } - void GetIndexByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_Number GetIndexByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { + return {}; } - Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) + Opt_NavPathStack GetParentImpl(Ark_NavPathStack peer) { return {}; } - Ark_Int32 SizeImpl(NavPathStackPeer* peer) + Ark_Int32 SizeImpl(Ark_NavPathStack peer) { return {}; } - void DisableAnimationImpl(NavPathStackPeer* peer, + void DisableAnimationImpl(Ark_NavPathStack peer, Ark_Boolean value) { } - void SetInterceptionImpl(NavPathStackPeer* peer, + void SetInterceptionImpl(Ark_NavPathStack peer, const Ark_NavigationInterception* interception) { } } // NavPathStackAccessor namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_NavigationTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13734,35 +13870,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_NavigationTransitionProxy peer) { } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) + void CancelTransitionImpl(Ark_NavigationTransitionProxy peer) { } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, + void UpdateTransitionImpl(Ark_NavigationTransitionProxy peer, const Ark_Number* progress) { } - void SetFromImpl(NavigationTransitionProxyPeer* peer, + void SetFromImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from) { } - void SetToImpl(NavigationTransitionProxyPeer* peer, + void SetToImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to) { } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) + Ark_Boolean GetIsInteractiveImpl(Ark_NavigationTransitionProxy peer) { return {}; } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, + void SetIsInteractiveImpl(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive) { } } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { - void DestroyPeerImpl(PatternLockControllerPeer* peer) + void DestroyPeerImpl(Ark_PatternLockController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13777,16 +13913,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ResetImpl(PatternLockControllerPeer* peer) + void ResetImpl(Ark_PatternLockController peer) { } - void SetChallengeResultImpl(PatternLockControllerPeer* peer, + void SetChallengeResultImpl(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result) { } } // PatternLockControllerAccessor namespace RichEditorBaseControllerAccessor { - void DestroyPeerImpl(RichEditorBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorBaseController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13801,50 +13937,50 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetCaretOffsetImpl(RichEditorBaseControllerPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_RichEditorBaseController peer) { return {}; } - Ark_Boolean SetCaretOffsetImpl(RichEditorBaseControllerPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_RichEditorBaseController peer, const Ark_Number* offset) { return {}; } - void CloseSelectionMenuImpl(RichEditorBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_RichEditorBaseController peer) { } - Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) + Ark_RichEditorTextStyle GetTypingStyleImpl(Ark_RichEditorBaseController peer) { return {}; } - void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, + void SetTypingStyleImpl(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value) { } - void SetSelectionImpl(RichEditorBaseControllerPeer* peer, + void SetSelectionImpl(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - Ark_Boolean IsEditingImpl(RichEditorBaseControllerPeer* peer) + Ark_Boolean IsEditingImpl(Ark_RichEditorBaseController peer) { return {}; } - void StopEditingImpl(RichEditorBaseControllerPeer* peer) + void StopEditingImpl(Ark_RichEditorBaseController peer) { } - Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_RichEditorBaseController peer) { return {}; } - Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_RichEditorBaseController peer) { return {}; } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { - void DestroyPeerImpl(RichEditorControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13859,66 +13995,69 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 AddTextSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddTextSpanImpl(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options) { return {}; } - Ark_Int32 AddImageSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddImageSpanImpl(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options) { return {}; } - Ark_Int32 AddBuilderSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddBuilderSpanImpl(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options) { return {}; } - Ark_Int32 AddSymbolSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddSymbolSpanImpl(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options) { return {}; } - void UpdateSpanStyleImpl(RichEditorControllerPeer* peer, + void UpdateSpanStyleImpl(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value) { } - void UpdateParagraphStyleImpl(RichEditorControllerPeer* peer, + void UpdateParagraphStyleImpl(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value) { } - void DeleteSpansImpl(RichEditorControllerPeer* peer, + void DeleteSpansImpl(Ark_RichEditorController peer, const Opt_RichEditorRange* value) { } - void GetSpansImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult GetSpansImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { + return {}; } - void GetParagraphsImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_RichEditorParagraphResult GetParagraphsImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { + return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) + Ark_RichEditorSelection GetSelectionImpl(Ark_RichEditorController peer) { return {}; } - void FromStyledStringImpl(RichEditorControllerPeer* peer, - Ark_StyledString value) + Array_RichEditorSpan FromStyledStringImpl(Ark_RichEditorController peer, + Ark_StyledString value) { + return {}; } - Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + Ark_StyledString ToStyledStringImpl(Ark_RichEditorController peer, const Ark_RichEditorRange* value) { return {}; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { - void DestroyPeerImpl(RichEditorStyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorStyledStringController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13933,25 +14072,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString) { } - Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_RichEditorStyledStringController peer) { return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) + Ark_RichEditorRange GetSelectionImpl(Ark_RichEditorStyledStringController peer) { return {}; } - void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, + void OnContentChangedImpl(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener) { } } // RichEditorStyledStringControllerAccessor namespace ScrollerAccessor { - void DestroyPeerImpl(ScrollerPeer* peer) + void DestroyPeerImpl(Ark_Scroller peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13966,53 +14105,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ScrollToImpl(ScrollerPeer* peer, + void ScrollToImpl(Ark_Scroller peer, const Ark_ScrollOptions* options) { } - void ScrollEdgeImpl(ScrollerPeer* peer, + void ScrollEdgeImpl(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options) { } - void FlingImpl(ScrollerPeer* peer, + void FlingImpl(Ark_Scroller peer, const Ark_Number* velocity) { } - void ScrollPage0Impl(ScrollerPeer* peer, + void ScrollPage0Impl(Ark_Scroller peer, const Ark_ScrollPageOptions* value) { } - void ScrollPage1Impl(ScrollerPeer* peer, + void ScrollPage1Impl(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value) { } - Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) + Ark_OffsetResult CurrentOffsetImpl(Ark_Scroller peer) { return {}; } - void ScrollToIndexImpl(ScrollerPeer* peer, + void ScrollToIndexImpl(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, const Opt_ScrollToIndexOptions* options) { } - void ScrollByImpl(ScrollerPeer* peer, + void ScrollByImpl(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy) { } - Ark_Boolean IsAtEndImpl(ScrollerPeer* peer) + Ark_Boolean IsAtEndImpl(Ark_Scroller peer) { return {}; } - Ark_NativePointer GetItemRectImpl(ScrollerPeer* peer, - const Ark_Number* index) + Ark_RectResult GetItemRectImpl(Ark_Scroller peer, + const Ark_Number* index) { return {}; } - Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, + Ark_Int32 GetItemIndexImpl(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y) { @@ -14020,7 +14159,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollerAccessor namespace SearchControllerAccessor { - void DestroyPeerImpl(SearchControllerPeer* peer) + void DestroyPeerImpl(Ark_SearchController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14035,14 +14174,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(SearchControllerPeer* peer, + void CaretPositionImpl(Ark_SearchController peer, const Ark_Number* value) { } - void StopEditingImpl(SearchControllerPeer* peer) + void StopEditingImpl(Ark_SearchController peer) { } - void SetTextSelectionImpl(SearchControllerPeer* peer, + void SetTextSelectionImpl(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -14050,7 +14189,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SearchControllerAccessor namespace SwiperControllerAccessor { - void DestroyPeerImpl(SwiperControllerPeer* peer) + void DestroyPeerImpl(Ark_SwiperController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14065,24 +14204,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ShowNextImpl(SwiperControllerPeer* peer) + void ShowNextImpl(Ark_SwiperController peer) { } - void ShowPreviousImpl(SwiperControllerPeer* peer) + void ShowPreviousImpl(Ark_SwiperController peer) { } - void ChangeIndexImpl(SwiperControllerPeer* peer, + void ChangeIndexImpl(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { } - void FinishAnimationImpl(SwiperControllerPeer* peer, + void FinishAnimationImpl(Ark_SwiperController peer, const Opt_VoidCallback* callback_) { } } // SwiperControllerAccessor namespace SwiperContentTransitionProxyAccessor { - void DestroyPeerImpl(SwiperContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_SwiperContentTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14097,44 +14236,44 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(SwiperContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_SwiperContentTransitionProxy peer) { } - Ark_Int32 GetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex) { } - Ark_Int32 GetIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetIndexImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index) { } - Ark_Int32 GetPositionImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetPositionImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetPositionImpl(SwiperContentTransitionProxyPeer* peer, + void SetPositionImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position) { } - Ark_Int32 GetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer, + void SetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength) { } } // SwiperContentTransitionProxyAccessor namespace IndicatorComponentControllerAccessor { - void DestroyPeerImpl(IndicatorComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_IndicatorComponentController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14149,20 +14288,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ShowNextImpl(IndicatorComponentControllerPeer* peer) + void ShowNextImpl(Ark_IndicatorComponentController peer) { } - void ShowPreviousImpl(IndicatorComponentControllerPeer* peer) + void ShowPreviousImpl(Ark_IndicatorComponentController peer) { } - void ChangeIndexImpl(IndicatorComponentControllerPeer* peer, + void ChangeIndexImpl(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { } } // IndicatorComponentControllerAccessor namespace ScaleSymbolEffectAccessor { - void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ScaleSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14178,25 +14317,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ScaleSymbolEffect peer) { return {}; } - void SetScopeImpl(ScaleSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope) { } - Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_ScaleSymbolEffect peer) { return {}; } - void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction) { } } // ScaleSymbolEffectAccessor namespace HierarchicalSymbolEffectAccessor { - void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_HierarchicalSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14211,17 +14350,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + Ark_EffectFillStyle GetFillStyleImpl(Ark_HierarchicalSymbolEffect peer) { return {}; } - void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + void SetFillStyleImpl(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle) { } } // HierarchicalSymbolEffectAccessor namespace AppearSymbolEffectAccessor { - void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_AppearSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14236,17 +14375,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(AppearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_AppearSymbolEffect peer) { return {}; } - void SetScopeImpl(AppearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_AppearSymbolEffect peer, Ark_EffectScope scope) { } } // AppearSymbolEffectAccessor namespace DisappearSymbolEffectAccessor { - void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_DisappearSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14261,17 +14400,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(DisappearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_DisappearSymbolEffect peer) { return {}; } - void SetScopeImpl(DisappearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope) { } } // DisappearSymbolEffectAccessor namespace BounceSymbolEffectAccessor { - void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_BounceSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14287,25 +14426,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(BounceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_BounceSymbolEffect peer) { return {}; } - void SetScopeImpl(BounceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_BounceSymbolEffect peer, Ark_EffectScope scope) { } - Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_BounceSymbolEffect peer) { return {}; } - void SetDirectionImpl(BounceSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction) { } } // BounceSymbolEffectAccessor namespace ReplaceSymbolEffectAccessor { - void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ReplaceSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14320,17 +14459,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(ReplaceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ReplaceSymbolEffect peer) { return {}; } - void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope) { } } // ReplaceSymbolEffectAccessor namespace TabsControllerAccessor { - void DestroyPeerImpl(TabsControllerPeer* peer) + void DestroyPeerImpl(Ark_TabsController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14345,26 +14484,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ChangeIndexImpl(TabsControllerPeer* peer, + void ChangeIndexImpl(Ark_TabsController peer, const Ark_Number* value) { } - void PreloadItemsImpl(TabsControllerPeer* peer, + void PreloadItemsImpl(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void SetTabBarTranslateImpl(TabsControllerPeer* peer, + void SetTabBarTranslateImpl(Ark_TabsController peer, const Ark_TranslateOptions* translate) { } - void SetTabBarOpacityImpl(TabsControllerPeer* peer, + void SetTabBarOpacityImpl(Ark_TabsController peer, const Ark_Number* opacity) { } } // TabsControllerAccessor namespace TabContentTransitionProxyAccessor { - void DestroyPeerImpl(TabContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_TabContentTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14379,28 +14518,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(TabContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_TabContentTransitionProxy peer) { } - Ark_Int32 GetFromImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetFromImpl(Ark_TabContentTransitionProxy peer) { return {}; } - void SetFromImpl(TabContentTransitionProxyPeer* peer, + void SetFromImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* from) { } - Ark_Int32 GetToImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetToImpl(Ark_TabContentTransitionProxy peer) { return {}; } - void SetToImpl(TabContentTransitionProxyPeer* peer, + void SetToImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* to) { } } // TabContentTransitionProxyAccessor namespace TextControllerAccessor { - void DestroyPeerImpl(TextControllerPeer* peer) + void DestroyPeerImpl(Ark_TextController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14415,20 +14554,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseSelectionMenuImpl(TextControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextController peer) { } - void SetStyledStringImpl(TextControllerPeer* peer, + void SetStyledStringImpl(Ark_TextController peer, Ark_StyledString value) { } - Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextController peer) { return {}; } } // TextControllerAccessor namespace TextAreaControllerAccessor { - void DestroyPeerImpl(TextAreaControllerPeer* peer) + void DestroyPeerImpl(Ark_TextAreaController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14443,22 +14582,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(TextAreaControllerPeer* peer, + void CaretPositionImpl(Ark_TextAreaController peer, const Ark_Number* value) { } - void SetTextSelectionImpl(TextAreaControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void StopEditingImpl(TextAreaControllerPeer* peer) + void StopEditingImpl(Ark_TextAreaController peer) { } } // TextAreaControllerAccessor namespace TextClockControllerAccessor { - void DestroyPeerImpl(TextClockControllerPeer* peer) + void DestroyPeerImpl(Ark_TextClockController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14473,15 +14612,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(TextClockControllerPeer* peer) + void StartImpl(Ark_TextClockController peer) { } - void StopImpl(TextClockControllerPeer* peer) + void StopImpl(Ark_TextClockController peer) { } } // TextClockControllerAccessor namespace TextBaseControllerAccessor { - void DestroyPeerImpl(TextBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_TextBaseController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14496,22 +14635,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetSelectionImpl(TextBaseControllerPeer* peer, + void SetSelectionImpl(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void CloseSelectionMenuImpl(TextBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextBaseController peer) { } - Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextBaseController peer) { return {}; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { - void DestroyPeerImpl(TextEditControllerExPeer* peer) + void DestroyPeerImpl(Ark_TextEditControllerEx peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14526,29 +14665,29 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsEditingImpl(TextEditControllerExPeer* peer) + Ark_Boolean IsEditingImpl(Ark_TextEditControllerEx peer) { return {}; } - void StopEditingImpl(TextEditControllerExPeer* peer) + void StopEditingImpl(Ark_TextEditControllerEx peer) { } - Ark_Boolean SetCaretOffsetImpl(TextEditControllerExPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_TextEditControllerEx peer, const Ark_Number* offset) { return {}; } - Ark_Int32 GetCaretOffsetImpl(TextEditControllerExPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_TextEditControllerEx peer) { return {}; } - Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_TextEditControllerEx peer) { return {}; } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { - void DestroyPeerImpl(StyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_StyledStringController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14563,17 +14702,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetStyledStringImpl(StyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_StyledStringController peer, Ark_StyledString styledString) { } - Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_StyledStringController peer) { return {}; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { - void DestroyPeerImpl(LayoutManagerPeer* peer) + void DestroyPeerImpl(Ark_LayoutManager peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14588,30 +14727,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLineCountImpl(LayoutManagerPeer* peer) + Ark_Int32 GetLineCountImpl(Ark_LayoutManager peer) { return {}; } - Ark_NativePointer GetGlyphPositionAtCoordinateImpl(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_PositionWithAffinity GetGlyphPositionAtCoordinateImpl(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y) { return {}; } - Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, - const Ark_Number* lineNumber) + Ark_LineMetrics GetLineMetricsImpl(Ark_LayoutManager peer, + const Ark_Number* lineNumber) { return {}; } - void GetRectsForRangeImpl(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle) + Array_TextBox GetRectsForRangeImpl(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle) { + return {}; } } // LayoutManagerAccessor namespace TextMenuItemIdAccessor { - void DestroyPeerImpl(TextMenuItemIdPeer* peer) + void DestroyPeerImpl(Ark_TextMenuItemId peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14630,14 +14770,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, + Ark_Boolean EqualsImpl(Ark_TextMenuItemId peer, Ark_TextMenuItemId id) { return {}; } } // TextMenuItemIdAccessor namespace EditMenuOptionsAccessor { - void DestroyPeerImpl(EditMenuOptionsPeer* peer) + void DestroyPeerImpl(Ark_EditMenuOptions peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14652,11 +14792,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnCreateMenuImpl(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems) + Array_TextMenuItem OnCreateMenuImpl(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems) { + return {}; } - Ark_Boolean OnMenuItemClickImpl(EditMenuOptionsPeer* peer, + Ark_Boolean OnMenuItemClickImpl(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range) { @@ -14664,7 +14805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EditMenuOptionsAccessor namespace SubmitEventAccessor { - void DestroyPeerImpl(SubmitEventPeer* peer) + void DestroyPeerImpl(Ark_SubmitEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14679,19 +14820,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void KeepEditableStateImpl(SubmitEventPeer* peer) + void KeepEditableStateImpl(Ark_SubmitEvent peer) { } - void GetTextImpl(SubmitEventPeer* peer) + void GetTextImpl(Ark_SubmitEvent peer) { } - void SetTextImpl(SubmitEventPeer* peer, + void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) { } } // SubmitEventAccessor namespace TextInputControllerAccessor { - void DestroyPeerImpl(TextInputControllerPeer* peer) + void DestroyPeerImpl(Ark_TextInputController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14706,22 +14847,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(TextInputControllerPeer* peer, + void CaretPositionImpl(Ark_TextInputController peer, const Ark_Number* value) { } - void SetTextSelectionImpl(TextInputControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void StopEditingImpl(TextInputControllerPeer* peer) + void StopEditingImpl(Ark_TextInputController peer) { } } // TextInputControllerAccessor namespace TextPickerDialogAccessor { - void DestroyPeerImpl(TextPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TextPickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14741,7 +14882,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextPickerDialogAccessor namespace TextTimerControllerAccessor { - void DestroyPeerImpl(TextTimerControllerPeer* peer) + void DestroyPeerImpl(Ark_TextTimerController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14756,18 +14897,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(TextTimerControllerPeer* peer) + void StartImpl(Ark_TextTimerController peer) { } - void PauseImpl(TextTimerControllerPeer* peer) + void PauseImpl(Ark_TextTimerController peer) { } - void ResetImpl(TextTimerControllerPeer* peer) + void ResetImpl(Ark_TextTimerController peer) { } } // TextTimerControllerAccessor namespace TimePickerDialogAccessor { - void DestroyPeerImpl(TimePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TimePickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14787,7 +14928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TimePickerDialogAccessor namespace ColorFilterAccessor { - void DestroyPeerImpl(ColorFilterPeer* peer) + void DestroyPeerImpl(Ark_ColorFilter peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14804,7 +14945,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ColorFilterAccessor namespace VideoControllerAccessor { - void DestroyPeerImpl(VideoControllerPeer* peer) + void DestroyPeerImpl(Ark_VideoController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14819,37 +14960,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(VideoControllerPeer* peer) + void StartImpl(Ark_VideoController peer) { } - void PauseImpl(VideoControllerPeer* peer) + void PauseImpl(Ark_VideoController peer) { } - void StopImpl(VideoControllerPeer* peer) + void StopImpl(Ark_VideoController peer) { } - void SetCurrentTime0Impl(VideoControllerPeer* peer, + void SetCurrentTime0Impl(Ark_VideoController peer, const Ark_Number* value) { } - void RequestFullscreenImpl(VideoControllerPeer* peer, + void RequestFullscreenImpl(Ark_VideoController peer, Ark_Boolean value) { } - void ExitFullscreenImpl(VideoControllerPeer* peer) + void ExitFullscreenImpl(Ark_VideoController peer) { } - void SetCurrentTime1Impl(VideoControllerPeer* peer, + void SetCurrentTime1Impl(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode) { } - void ResetImpl(VideoControllerPeer* peer) + void ResetImpl(Ark_VideoController peer) { } } // VideoControllerAccessor namespace WebKeyboardControllerAccessor { - void DestroyPeerImpl(WebKeyboardControllerPeer* peer) + void DestroyPeerImpl(Ark_WebKeyboardController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14864,28 +15005,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InsertTextImpl(WebKeyboardControllerPeer* peer, + void InsertTextImpl(Ark_WebKeyboardController peer, const Ark_String* text) { } - void DeleteForwardImpl(WebKeyboardControllerPeer* peer, + void DeleteForwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { } - void DeleteBackwardImpl(WebKeyboardControllerPeer* peer, + void DeleteBackwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { } - void SendFunctionKeyImpl(WebKeyboardControllerPeer* peer, + void SendFunctionKeyImpl(Ark_WebKeyboardController peer, const Ark_Number* key) { } - void CloseImpl(WebKeyboardControllerPeer* peer) + void CloseImpl(Ark_WebKeyboardController peer) { } } // WebKeyboardControllerAccessor namespace FullScreenExitHandlerAccessor { - void DestroyPeerImpl(FullScreenExitHandlerPeer* peer) + void DestroyPeerImpl(Ark_FullScreenExitHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14900,12 +15041,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ExitFullScreenImpl(FullScreenExitHandlerPeer* peer) + void ExitFullScreenImpl(Ark_FullScreenExitHandler peer) { } } // FullScreenExitHandlerAccessor namespace FileSelectorParamAccessor { - void DestroyPeerImpl(FileSelectorParamPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorParam peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14920,23 +15061,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTitleImpl(FileSelectorParamPeer* peer) + void GetTitleImpl(Ark_FileSelectorParam peer) { } - Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) + Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { return {}; } - void GetAcceptTypeImpl(FileSelectorParamPeer* peer) + Array_String GetAcceptTypeImpl(Ark_FileSelectorParam peer) { + return {}; } - Ark_Boolean IsCaptureImpl(FileSelectorParamPeer* peer) + Ark_Boolean IsCaptureImpl(Ark_FileSelectorParam peer) { return {}; } } // FileSelectorParamAccessor namespace JsResultAccessor { - void DestroyPeerImpl(JsResultPeer* peer) + void DestroyPeerImpl(Ark_JsResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14951,19 +15093,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleCancelImpl(JsResultPeer* peer) + void HandleCancelImpl(Ark_JsResult peer) { } - void HandleConfirmImpl(JsResultPeer* peer) + void HandleConfirmImpl(Ark_JsResult peer) { } - void HandlePromptConfirmImpl(JsResultPeer* peer, + void HandlePromptConfirmImpl(Ark_JsResult peer, const Ark_String* result) { } } // JsResultAccessor namespace FileSelectorResultAccessor { - void DestroyPeerImpl(FileSelectorResultPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14978,13 +15120,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleFileListImpl(FileSelectorResultPeer* peer, + void HandleFileListImpl(Ark_FileSelectorResult peer, const Array_String* fileList) { } } // FileSelectorResultAccessor namespace HttpAuthHandlerAccessor { - void DestroyPeerImpl(HttpAuthHandlerPeer* peer) + void DestroyPeerImpl(Ark_HttpAuthHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14999,22 +15141,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean ConfirmImpl(HttpAuthHandlerPeer* peer, + Ark_Boolean ConfirmImpl(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password) { return {}; } - void CancelImpl(HttpAuthHandlerPeer* peer) + void CancelImpl(Ark_HttpAuthHandler peer) { } - Ark_Boolean IsHttpAuthInfoSavedImpl(HttpAuthHandlerPeer* peer) + Ark_Boolean IsHttpAuthInfoSavedImpl(Ark_HttpAuthHandler peer) { return {}; } } // HttpAuthHandlerAccessor namespace SslErrorHandlerAccessor { - void DestroyPeerImpl(SslErrorHandlerPeer* peer) + void DestroyPeerImpl(Ark_SslErrorHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15029,15 +15171,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleConfirmImpl(SslErrorHandlerPeer* peer) + void HandleConfirmImpl(Ark_SslErrorHandler peer) { } - void HandleCancelImpl(SslErrorHandlerPeer* peer) + void HandleCancelImpl(Ark_SslErrorHandler peer) { } } // SslErrorHandlerAccessor namespace ClientAuthenticationHandlerAccessor { - void DestroyPeerImpl(ClientAuthenticationHandlerPeer* peer) + void DestroyPeerImpl(Ark_ClientAuthenticationHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15052,24 +15194,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void Confirm0Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm0Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile) { } - void Confirm1Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm1Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri) { } - void CancelImpl(ClientAuthenticationHandlerPeer* peer) + void CancelImpl(Ark_ClientAuthenticationHandler peer) { } - void IgnoreImpl(ClientAuthenticationHandlerPeer* peer) + void IgnoreImpl(Ark_ClientAuthenticationHandler peer) { } } // ClientAuthenticationHandlerAccessor namespace PermissionRequestAccessor { - void DestroyPeerImpl(PermissionRequestPeer* peer) + void DestroyPeerImpl(Ark_PermissionRequest peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15084,22 +15226,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DenyImpl(PermissionRequestPeer* peer) + void DenyImpl(Ark_PermissionRequest peer) { } - void GetOriginImpl(PermissionRequestPeer* peer) + void GetOriginImpl(Ark_PermissionRequest peer) { } - void GetAccessibleResourceImpl(PermissionRequestPeer* peer) + Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { + return {}; } - void GrantImpl(PermissionRequestPeer* peer, + void GrantImpl(Ark_PermissionRequest peer, const Array_String* resources) { } } // PermissionRequestAccessor namespace ScreenCaptureHandlerAccessor { - void DestroyPeerImpl(ScreenCaptureHandlerPeer* peer) + void DestroyPeerImpl(Ark_ScreenCaptureHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15114,19 +15257,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetOriginImpl(ScreenCaptureHandlerPeer* peer) + void GetOriginImpl(Ark_ScreenCaptureHandler peer) { } - void GrantImpl(ScreenCaptureHandlerPeer* peer, + void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) { } - void DenyImpl(ScreenCaptureHandlerPeer* peer) + void DenyImpl(Ark_ScreenCaptureHandler peer) { } } // ScreenCaptureHandlerAccessor namespace DataResubmissionHandlerAccessor { - void DestroyPeerImpl(DataResubmissionHandlerPeer* peer) + void DestroyPeerImpl(Ark_DataResubmissionHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15141,15 +15284,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ResendImpl(DataResubmissionHandlerPeer* peer) + void ResendImpl(Ark_DataResubmissionHandler peer) { } - void CancelImpl(DataResubmissionHandlerPeer* peer) + void CancelImpl(Ark_DataResubmissionHandler peer) { } } // DataResubmissionHandlerAccessor namespace ControllerHandlerAccessor { - void DestroyPeerImpl(ControllerHandlerPeer* peer) + void DestroyPeerImpl(Ark_ControllerHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15164,13 +15307,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetWebControllerImpl(ControllerHandlerPeer* peer, + void SetWebControllerImpl(Ark_ControllerHandler peer, Ark_WebviewController controller) { } } // ControllerHandlerAccessor namespace WebContextMenuParamAccessor { - void DestroyPeerImpl(WebContextMenuParamPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuParam peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15185,61 +15328,61 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 XImpl(WebContextMenuParamPeer* peer) + Ark_Int32 XImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 YImpl(WebContextMenuParamPeer* peer) + Ark_Int32 YImpl(Ark_WebContextMenuParam peer) { return {}; } - void GetLinkUrlImpl(WebContextMenuParamPeer* peer) + void GetLinkUrlImpl(Ark_WebContextMenuParam peer) { } - void GetUnfilteredLinkUrlImpl(WebContextMenuParamPeer* peer) + void GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { } - void GetSourceUrlImpl(WebContextMenuParamPeer* peer) + void GetSourceUrlImpl(Ark_WebContextMenuParam peer) { } - Ark_Boolean ExistsImageContentsImpl(WebContextMenuParamPeer* peer) + Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuMediaType GetMediaTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - void GetSelectionTextImpl(WebContextMenuParamPeer* peer) + void GetSelectionTextImpl(Ark_WebContextMenuParam peer) { } - Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuInputFieldType GetInputFieldTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) + Ark_Boolean IsEditableImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetEditStateFlagsImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetEditStateFlagsImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetPreviewWidthImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewWidthImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetPreviewHeightImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewHeightImpl(Ark_WebContextMenuParam peer) { return {}; } } // WebContextMenuParamAccessor namespace WebContextMenuResultAccessor { - void DestroyPeerImpl(WebContextMenuResultPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15254,27 +15397,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseContextMenuImpl(WebContextMenuResultPeer* peer) + void CloseContextMenuImpl(Ark_WebContextMenuResult peer) { } - void CopyImageImpl(WebContextMenuResultPeer* peer) + void CopyImageImpl(Ark_WebContextMenuResult peer) { } - void CopyImpl(WebContextMenuResultPeer* peer) + void CopyImpl(Ark_WebContextMenuResult peer) { } - void PasteImpl(WebContextMenuResultPeer* peer) + void PasteImpl(Ark_WebContextMenuResult peer) { } - void CutImpl(WebContextMenuResultPeer* peer) + void CutImpl(Ark_WebContextMenuResult peer) { } - void SelectAllImpl(WebContextMenuResultPeer* peer) + void SelectAllImpl(Ark_WebContextMenuResult peer) { } } // WebContextMenuResultAccessor namespace ConsoleMessageAccessor { - void DestroyPeerImpl(ConsoleMessagePeer* peer) + void DestroyPeerImpl(Ark_ConsoleMessage peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15292,23 +15435,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetMessageImpl(ConsoleMessagePeer* peer) + void GetMessageImpl(Ark_ConsoleMessage peer) { } - void GetSourceIdImpl(ConsoleMessagePeer* peer) + void GetSourceIdImpl(Ark_ConsoleMessage peer) { } - Ark_Int32 GetLineNumberImpl(ConsoleMessagePeer* peer) + Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { return {}; } - Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) + Ark_MessageLevel GetMessageLevelImpl(Ark_ConsoleMessage peer) { return {}; } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { - void DestroyPeerImpl(WebResourceRequestPeer* peer) + void DestroyPeerImpl(Ark_WebResourceRequest peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15323,30 +15466,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetRequestHeaderImpl(WebResourceRequestPeer* peer) + Array_Header GetRequestHeaderImpl(Ark_WebResourceRequest peer) { + return {}; } - void GetRequestUrlImpl(WebResourceRequestPeer* peer) + void GetRequestUrlImpl(Ark_WebResourceRequest peer) { } - Ark_Boolean IsRequestGestureImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { return {}; } - Ark_Boolean IsMainFrameImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsMainFrameImpl(Ark_WebResourceRequest peer) { return {}; } - Ark_Boolean IsRedirectImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRedirectImpl(Ark_WebResourceRequest peer) { return {}; } - void GetRequestMethodImpl(WebResourceRequestPeer* peer) + void GetRequestMethodImpl(Ark_WebResourceRequest peer) { } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { - void DestroyPeerImpl(WebResourceResponsePeer* peer) + void DestroyPeerImpl(Ark_WebResourceResponse peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15361,64 +15505,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetResponseDataImpl(WebResourceResponsePeer* peer) + void GetResponseDataImpl(Ark_WebResourceResponse peer) { } - Ark_NativePointer GetResponseDataExImpl(WebResourceResponsePeer* peer) + Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { return {}; } - void GetResponseEncodingImpl(WebResourceResponsePeer* peer) + void GetResponseEncodingImpl(Ark_WebResourceResponse peer) { } - void GetResponseMimeTypeImpl(WebResourceResponsePeer* peer) + void GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { } - void GetReasonMessageImpl(WebResourceResponsePeer* peer) + void GetReasonMessageImpl(Ark_WebResourceResponse peer) { } - void GetResponseHeaderImpl(WebResourceResponsePeer* peer) + Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { + return {}; } - Ark_Int32 GetResponseCodeImpl(WebResourceResponsePeer* peer) + Ark_Int32 GetResponseCodeImpl(Ark_WebResourceResponse peer) { return {}; } - void SetResponseDataImpl(WebResourceResponsePeer* peer, + void SetResponseDataImpl(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data) { } - void SetResponseEncodingImpl(WebResourceResponsePeer* peer, + void SetResponseEncodingImpl(Ark_WebResourceResponse peer, const Ark_String* encoding) { } - void SetResponseMimeTypeImpl(WebResourceResponsePeer* peer, + void SetResponseMimeTypeImpl(Ark_WebResourceResponse peer, const Ark_String* mimeType) { } - void SetReasonMessageImpl(WebResourceResponsePeer* peer, + void SetReasonMessageImpl(Ark_WebResourceResponse peer, const Ark_String* reason) { } - void SetResponseHeaderImpl(WebResourceResponsePeer* peer, + void SetResponseHeaderImpl(Ark_WebResourceResponse peer, const Array_Header* header) { } - void SetResponseCodeImpl(WebResourceResponsePeer* peer, + void SetResponseCodeImpl(Ark_WebResourceResponse peer, const Ark_Number* code) { } - void SetResponseIsReadyImpl(WebResourceResponsePeer* peer, + void SetResponseIsReadyImpl(Ark_WebResourceResponse peer, Ark_Boolean IsReady) { } - Ark_Boolean GetResponseIsReadyImpl(WebResourceResponsePeer* peer) + Ark_Boolean GetResponseIsReadyImpl(Ark_WebResourceResponse peer) { return {}; } } // WebResourceResponseAccessor namespace WebResourceErrorAccessor { - void DestroyPeerImpl(WebResourceErrorPeer* peer) + void DestroyPeerImpl(Ark_WebResourceError peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15433,16 +15578,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetErrorInfoImpl(WebResourceErrorPeer* peer) + void GetErrorInfoImpl(Ark_WebResourceError peer) { } - Ark_Int32 GetErrorCodeImpl(WebResourceErrorPeer* peer) + Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { return {}; } } // WebResourceErrorAccessor namespace JsGeolocationAccessor { - void DestroyPeerImpl(JsGeolocationPeer* peer) + void DestroyPeerImpl(Ark_JsGeolocation peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15457,7 +15602,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InvokeImpl(JsGeolocationPeer* peer, + void InvokeImpl(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain) @@ -15465,7 +15610,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsGeolocationAccessor namespace WebCookieAccessor { - void DestroyPeerImpl(WebCookiePeer* peer) + void DestroyPeerImpl(Ark_WebCookie peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15480,15 +15625,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetCookieImpl(WebCookiePeer* peer) + void SetCookieImpl(Ark_WebCookie peer) { } - void SaveCookieImpl(WebCookiePeer* peer) + void SaveCookieImpl(Ark_WebCookie peer) { } } // WebCookieAccessor namespace EventResultAccessor { - void DestroyPeerImpl(EventResultPeer* peer) + void DestroyPeerImpl(Ark_EventResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15503,13 +15648,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetGestureEventResultImpl(EventResultPeer* peer, + void SetGestureEventResultImpl(Ark_EventResult peer, Ark_Boolean result) { } } // EventResultAccessor namespace WebControllerAccessor { - void DestroyPeerImpl(WebControllerPeer* peer) + void DestroyPeerImpl(Ark_WebController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15524,78 +15669,78 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnInactiveImpl(WebControllerPeer* peer) + void OnInactiveImpl(Ark_WebController peer) { } - void OnActiveImpl(WebControllerPeer* peer) + void OnActiveImpl(Ark_WebController peer) { } - void ZoomImpl(WebControllerPeer* peer, + void ZoomImpl(Ark_WebController peer, const Ark_Number* factor) { } - void ClearHistoryImpl(WebControllerPeer* peer) + void ClearHistoryImpl(Ark_WebController peer) { } - void RunJavaScriptImpl(WebControllerPeer* peer, + void RunJavaScriptImpl(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options) { } - void LoadDataImpl(WebControllerPeer* peer, + void LoadDataImpl(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options) { } - void LoadUrlImpl(WebControllerPeer* peer, + void LoadUrlImpl(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options) { } - void RefreshImpl(WebControllerPeer* peer) + void RefreshImpl(Ark_WebController peer) { } - void StopImpl(WebControllerPeer* peer) + void StopImpl(Ark_WebController peer) { } - void RegisterJavaScriptProxyImpl(WebControllerPeer* peer, + void RegisterJavaScriptProxyImpl(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options) { } - void DeleteJavaScriptRegisterImpl(WebControllerPeer* peer, + void DeleteJavaScriptRegisterImpl(Ark_WebController peer, const Ark_String* name) { } - Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) + Ark_HitTestType GetHitTestImpl(Ark_WebController peer) { return {}; } - void RequestFocusImpl(WebControllerPeer* peer) + void RequestFocusImpl(Ark_WebController peer) { } - Ark_Boolean AccessBackwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessBackwardImpl(Ark_WebController peer) { return {}; } - Ark_Boolean AccessForwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessForwardImpl(Ark_WebController peer) { return {}; } - Ark_Boolean AccessStepImpl(WebControllerPeer* peer, + Ark_Boolean AccessStepImpl(Ark_WebController peer, const Ark_Number* step) { return {}; } - void BackwardImpl(WebControllerPeer* peer) + void BackwardImpl(Ark_WebController peer) { } - void ForwardImpl(WebControllerPeer* peer) + void ForwardImpl(Ark_WebController peer) { } - Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(Ark_WebController peer) { return {}; } } // WebControllerAccessor namespace XComponentControllerAccessor { - void DestroyPeerImpl(XComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_XComponentController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15610,57 +15755,57 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetXComponentSurfaceIdImpl(XComponentControllerPeer* peer) + void GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { } - Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) + Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { return {}; } - void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceSizeImpl(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) { } - void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRectImpl(Ark_XComponentController peer, const Ark_SurfaceRect* rect) { } - Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + Ark_SurfaceRect GetXComponentSurfaceRectImpl(Ark_XComponentController peer) { return {}; } - void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRotationImpl(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions) { } - Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + Ark_SurfaceRotationOptions GetXComponentSurfaceRotationImpl(Ark_XComponentController peer) { return {}; } - void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, + void OnSurfaceCreatedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { } - void OnSurfaceChangedImpl(XComponentControllerPeer* peer, + void OnSurfaceChangedImpl(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect) { } - void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, + void OnSurfaceDestroyedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { } - void StartImageAnalyzerImpl(XComponentControllerPeer* peer, + void StartImageAnalyzerImpl(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + void StopImageAnalyzerImpl(Ark_XComponentController peer) { } } // XComponentControllerAccessor namespace WaterFlowSectionsAccessor { - void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + void DestroyPeerImpl(Ark_WaterFlowSections peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15675,34 +15820,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean SpliceImpl(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections) { return {}; } - Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean PushImpl(Ark_WaterFlowSections peer, const Ark_SectionOptions* section) { return {}; } - Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean UpdateImpl(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section) { return {}; } - void ValuesImpl(WaterFlowSectionsPeer* peer) + Array_SectionOptions ValuesImpl(Ark_WaterFlowSections peer) { + return {}; } - Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + Ark_Int32 LengthImpl(Ark_WaterFlowSections peer) { return {}; } } // WaterFlowSectionsAccessor namespace UIExtensionProxyAccessor { - void DestroyPeerImpl(UIExtensionProxyPeer* peer) + void DestroyPeerImpl(Ark_UIExtensionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15717,34 +15863,34 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SendImpl(UIExtensionProxyPeer* peer, + void SendImpl(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data) { } - Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + Map_String_CustomObject SendSyncImpl(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data) { return {}; } - void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { } - void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { } - void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { } - void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { } } // UIExtensionProxyAccessor namespace StyledStringAccessor { - void DestroyPeerImpl(StyledStringPeer* peer) + void DestroyPeerImpl(Ark_StyledString peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15760,21 +15906,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetStringImpl(StyledStringPeer* peer) + void GetStringImpl(Ark_StyledString peer) { } - void GetStylesImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey) + Array_SpanStyle GetStylesImpl(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey) { + return {}; } - Ark_Boolean EqualsImpl(StyledStringPeer* peer, + Ark_Boolean EqualsImpl(Ark_StyledString peer, Ark_StyledString other) { return {}; } - Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + Ark_StyledString SubStyledStringImpl(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length) { @@ -15787,20 +15934,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { void ToHtmlImpl(Ark_StyledString styledString) { } - void MarshallingImpl(Ark_StyledString styledString) + Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { + return {}; } void UnmarshallingImpl(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + Ark_Int32 GetLengthImpl(Ark_StyledString peer) { return {}; } } // StyledStringAccessor namespace TextStyle_styled_stringAccessor { - void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) + void DestroyPeerImpl(Ark_TextStyle_styled_string peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15815,24 +15963,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) + void GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { } - Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { return {}; } - Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontWeightImpl(Ark_TextStyle_styled_string peer) { return {}; } - Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) + Ark_FontStyle GetFontStyleImpl(Ark_TextStyle_styled_string peer) { return {}; } } // TextStyle_styled_stringAccessor namespace DecorationStyleAccessor { - void DestroyPeerImpl(DecorationStylePeer* peer) + void DestroyPeerImpl(Ark_DecorationStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15847,17 +15995,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) + Ark_TextDecorationType GetTypeImpl(Ark_DecorationStyle peer) { return {}; } - Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) + Ark_TextDecorationStyle GetStyleImpl(Ark_DecorationStyle peer) { return {}; } } // DecorationStyleAccessor namespace BaselineOffsetStyleAccessor { - void DestroyPeerImpl(BaselineOffsetStylePeer* peer) + void DestroyPeerImpl(Ark_BaselineOffsetStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15872,13 +16020,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) + Ark_Int32 GetBaselineOffsetImpl(Ark_BaselineOffsetStyle peer) { return {}; } } // BaselineOffsetStyleAccessor namespace LetterSpacingStyleAccessor { - void DestroyPeerImpl(LetterSpacingStylePeer* peer) + void DestroyPeerImpl(Ark_LetterSpacingStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15893,13 +16041,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) + Ark_Int32 GetLetterSpacingImpl(Ark_LetterSpacingStyle peer) { return {}; } } // LetterSpacingStyleAccessor namespace TextShadowStyleAccessor { - void DestroyPeerImpl(TextShadowStylePeer* peer) + void DestroyPeerImpl(Ark_TextShadowStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15914,9 +16062,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } + Array_ShadowOptions GetTextShadowImpl(Ark_TextShadowStyle peer) + { + return {}; + } } // TextShadowStyleAccessor namespace BackgroundColorStyleAccessor { - void DestroyPeerImpl(BackgroundColorStylePeer* peer) + void DestroyPeerImpl(Ark_BackgroundColorStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15933,7 +16085,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BackgroundColorStyleAccessor namespace GestureStyleAccessor { - void DestroyPeerImpl(GestureStylePeer* peer) + void DestroyPeerImpl(Ark_GestureStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15950,7 +16102,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureStyleAccessor namespace ParagraphStyleAccessor { - void DestroyPeerImpl(ParagraphStylePeer* peer) + void DestroyPeerImpl(Ark_ParagraphStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15965,29 +16117,29 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTextAlignImpl(ParagraphStylePeer* peer) + Ark_TextAlign GetTextAlignImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) + Ark_Int32 GetTextIndentImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) + Ark_Int32 GetMaxLinesImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) + Ark_TextOverflow GetOverflowImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) + Ark_WordBreak GetWordBreakImpl(Ark_ParagraphStyle peer) { return {}; } } // ParagraphStyleAccessor namespace LineHeightStyleAccessor { - void DestroyPeerImpl(LineHeightStylePeer* peer) + void DestroyPeerImpl(Ark_LineHeightStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16002,13 +16154,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) + Ark_Int32 GetLineHeightImpl(Ark_LineHeightStyle peer) { return {}; } } // LineHeightStyleAccessor namespace UrlStyleAccessor { - void DestroyPeerImpl(UrlStylePeer* peer) + void DestroyPeerImpl(Ark_UrlStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16023,12 +16175,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetUrlImpl(UrlStylePeer* peer) + void GetUrlImpl(Ark_UrlStyle peer) { } } // UrlStyleAccessor namespace MutableStyledStringAccessor { - void DestroyPeerImpl(MutableStyledStringPeer* peer) + void DestroyPeerImpl(Ark_MutableStyledString peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16043,62 +16195,62 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReplaceStringImpl(MutableStyledStringPeer* peer, + void ReplaceStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other) { } - void InsertStringImpl(MutableStyledStringPeer* peer, + void InsertStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other) { } - void RemoveStringImpl(MutableStyledStringPeer* peer, + void RemoveStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { } - void ReplaceStyleImpl(MutableStyledStringPeer* peer, + void ReplaceStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { } - void SetStyleImpl(MutableStyledStringPeer* peer, + void SetStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { } - void RemoveStyleImpl(MutableStyledStringPeer* peer, + void RemoveStyleImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey) { } - void RemoveStylesImpl(MutableStyledStringPeer* peer, + void RemoveStylesImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { } - void ClearStylesImpl(MutableStyledStringPeer* peer) + void ClearStylesImpl(Ark_MutableStyledString peer) { } - void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, + void ReplaceStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other) { } - void InsertStyledStringImpl(MutableStyledStringPeer* peer, + void InsertStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other) { } - void AppendStyledStringImpl(MutableStyledStringPeer* peer, + void AppendStyledStringImpl(Ark_MutableStyledString peer, Ark_StyledString other) { } } // MutableStyledStringAccessor namespace ImageAttachmentAccessor { - void DestroyPeerImpl(ImageAttachmentPeer* peer) + void DestroyPeerImpl(Ark_ImageAttachment peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16113,17 +16265,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetVerticalAlignImpl(ImageAttachmentPeer* peer) + Ark_ImageSpanAlignment GetVerticalAlignImpl(Ark_ImageAttachment peer) { return {}; } - Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + Ark_ImageFit GetObjectFitImpl(Ark_ImageAttachment peer) { return {}; } } // ImageAttachmentAccessor namespace CustomSpanAccessor { - void DestroyPeerImpl(CustomSpanPeer* peer) + void DestroyPeerImpl(Ark_CustomSpan peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16138,22 +16290,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo) + Ark_CustomSpanMetrics OnMeasureImpl(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo) { return {}; } - void OnDrawImpl(CustomSpanPeer* peer, + void OnDrawImpl(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo) { } - void InvalidateImpl(CustomSpanPeer* peer) + void InvalidateImpl(Ark_CustomSpan peer) { } } // CustomSpanAccessor namespace LinearIndicatorControllerAccessor { - void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + void DestroyPeerImpl(Ark_LinearIndicatorController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16168,48 +16320,57 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetProgressImpl(LinearIndicatorControllerPeer* peer, + void SetProgressImpl(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress) { } - void StartImpl(LinearIndicatorControllerPeer* peer, + void StartImpl(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options) { } - void PauseImpl(LinearIndicatorControllerPeer* peer) + void PauseImpl(Ark_LinearIndicatorController peer) { } - void StopImpl(LinearIndicatorControllerPeer* peer) + void StopImpl(Ark_LinearIndicatorController peer) { } } // LinearIndicatorControllerAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + namespace GlobalScope_Profiler_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_Profiler_inspector peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer GetInspectorNodesImpl() + void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { - return {}; } - Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) + void UnregisterVsyncCallbackImpl() { - return {}; } - void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) + } // GlobalScope_Profiler_inspectorAccessor + namespace GlobalScopeinspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScopeinspector peer) { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } } - void UnregisterVsyncCallbackImpl() + Ark_CustomObject GetInspectorNodesImpl() + { + return {}; + } + Ark_CustomObject GetInspectorNodeByIdImpl(const Ark_Number* id) { + return {}; } void SetAppBgColorImpl(const Ark_String* value) { } - } // GlobalScope_inspectorAccessor + } // GlobalScopeinspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -16260,6 +16421,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LazyForEachOpsPeer { virtual ~LazyForEachOpsPeer() = default; }; + const GENERATED_ArkUISystemOpsAccessor* GetSystemOpsAccessor() + { + static const GENERATED_ArkUISystemOpsAccessor SystemOpsAccessorImpl { + SystemOpsAccessor::DestroyPeerImpl, + SystemOpsAccessor::CtorImpl, + SystemOpsAccessor::GetFinalizerImpl, + SystemOpsAccessor::StartFrameImpl, + SystemOpsAccessor::EndFrameImpl, + }; + return &SystemOpsAccessorImpl; + } + + struct SystemOpsPeer { + virtual ~SystemOpsPeer() = default; + }; const GENERATED_ArkUIDrawingCanvasAccessor* GetDrawingCanvasAccessor() { static const GENERATED_ArkUIDrawingCanvasAccessor DrawingCanvasAccessorImpl { @@ -16374,9 +16550,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PixelMapAccessor::ReadPixelsToBufferSyncImpl, PixelMapAccessor::WriteBufferToPixelsImpl, PixelMapAccessor::GetIsEditableImpl, - PixelMapAccessor::SetIsEditableImpl, PixelMapAccessor::GetIsStrideAlignmentImpl, - PixelMapAccessor::SetIsStrideAlignmentImpl, }; return &PixelMapAccessorImpl; } @@ -16748,6 +16922,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CanvasRenderingContext2DPeer { virtual ~CanvasRenderingContext2DPeer() = default; }; + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* GetOffscreenCanvasRenderingContext2DAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor OffscreenCanvasRenderingContext2DAccessorImpl { + OffscreenCanvasRenderingContext2DAccessor::DestroyPeerImpl, + OffscreenCanvasRenderingContext2DAccessor::CtorImpl, + OffscreenCanvasRenderingContext2DAccessor::GetFinalizerImpl, + OffscreenCanvasRenderingContext2DAccessor::ToDataURLImpl, + OffscreenCanvasRenderingContext2DAccessor::TransferToImageBitmapImpl, + }; + return &OffscreenCanvasRenderingContext2DAccessorImpl; + } + + struct OffscreenCanvasRenderingContext2DPeer { + virtual ~OffscreenCanvasRenderingContext2DPeer() = default; + }; + const GENERATED_ArkUIOffscreenCanvasAccessor* GetOffscreenCanvasAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasAccessor OffscreenCanvasAccessorImpl { + OffscreenCanvasAccessor::DestroyPeerImpl, + OffscreenCanvasAccessor::CtorImpl, + OffscreenCanvasAccessor::GetFinalizerImpl, + OffscreenCanvasAccessor::TransferToImageBitmapImpl, + OffscreenCanvasAccessor::GetContext2dImpl, + OffscreenCanvasAccessor::GetHeightImpl, + OffscreenCanvasAccessor::SetHeightImpl, + OffscreenCanvasAccessor::GetWidthImpl, + OffscreenCanvasAccessor::SetWidthImpl, + }; + return &OffscreenCanvasAccessorImpl; + } + + struct OffscreenCanvasPeer { + virtual ~OffscreenCanvasPeer() = default; + }; const GENERATED_ArkUIDrawingRenderingContextAccessor* GetDrawingRenderingContextAccessor() { static const GENERATED_ArkUIDrawingRenderingContextAccessor DrawingRenderingContextAccessorImpl { @@ -16964,7 +17172,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::GetHistoricalPointsImpl, TouchEventAccessor::GetTypeImpl, TouchEventAccessor::SetTypeImpl, + TouchEventAccessor::GetTouchesImpl, TouchEventAccessor::SetTouchesImpl, + TouchEventAccessor::GetChangedTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, @@ -17189,31 +17399,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - GlobalScope_commonAccessor::RequestFocusImpl, - GlobalScope_commonAccessor::SetCursorImpl, - GlobalScope_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScopecommonAccessor* GetGlobalScopecommonAccessor() + { + static const GENERATED_ArkUIGlobalScopecommonAccessor GlobalScopecommonAccessorImpl { + GlobalScopecommonAccessor::DestroyPeerImpl, + GlobalScopecommonAccessor::GetContextImpl, + GlobalScopecommonAccessor::PostCardActionImpl, + GlobalScopecommonAccessor::Dollar_rImpl, + GlobalScopecommonAccessor::Dollar_rawfileImpl, + GlobalScopecommonAccessor::AnimateToImpl, + GlobalScopecommonAccessor::AnimateToImmediatelyImpl, + GlobalScopecommonAccessor::Vp2pxImpl, + GlobalScopecommonAccessor::Px2vpImpl, + GlobalScopecommonAccessor::Fp2pxImpl, + GlobalScopecommonAccessor::Px2fpImpl, + GlobalScopecommonAccessor::Lpx2pxImpl, + GlobalScopecommonAccessor::Px2lpxImpl, + }; + return &GlobalScopecommonAccessorImpl; + } + + struct GlobalScopecommonPeer { + virtual ~GlobalScopecommonPeer() = default; }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { @@ -17277,6 +17509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { BaseGestureEventAccessor::DestroyPeerImpl, BaseGestureEventAccessor::CtorImpl, BaseGestureEventAccessor::GetFinalizerImpl, + BaseGestureEventAccessor::GetFingerListImpl, BaseGestureEventAccessor::SetFingerListImpl, }; return &BaseGestureEventAccessorImpl; @@ -17395,6 +17628,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GestureEventAccessor::GetFinalizerImpl, GestureEventAccessor::GetRepeatImpl, GestureEventAccessor::SetRepeatImpl, + GestureEventAccessor::GetFingerListImpl, GestureEventAccessor::SetFingerListImpl, GestureEventAccessor::GetOffsetXImpl, GestureEventAccessor::SetOffsetXImpl, @@ -18766,6 +19000,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextShadowStyleAccessor::DestroyPeerImpl, TextShadowStyleAccessor::CtorImpl, TextShadowStyleAccessor::GetFinalizerImpl, + TextShadowStyleAccessor::GetTextShadowImpl, }; return &TextShadowStyleAccessorImpl; } @@ -18917,21 +19152,32 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LinearIndicatorControllerPeer { virtual ~LinearIndicatorControllerPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* GetGlobalScope_Profiler_inspectorAccessor() + { + static const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor GlobalScope_Profiler_inspectorAccessorImpl { + GlobalScope_Profiler_inspectorAccessor::DestroyPeerImpl, + GlobalScope_Profiler_inspectorAccessor::RegisterVsyncCallbackImpl, + GlobalScope_Profiler_inspectorAccessor::UnregisterVsyncCallbackImpl, + }; + return &GlobalScope_Profiler_inspectorAccessorImpl; + } + + struct GlobalScope_Profiler_inspectorPeer { + virtual ~GlobalScope_Profiler_inspectorPeer() = default; + }; + const GENERATED_ArkUIGlobalScopeinspectorAccessor* GetGlobalScopeinspectorAccessor() { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::UnregisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScopeinspectorAccessor GlobalScopeinspectorAccessorImpl { + GlobalScopeinspectorAccessor::DestroyPeerImpl, + GlobalScopeinspectorAccessor::GetInspectorNodesImpl, + GlobalScopeinspectorAccessor::GetInspectorNodeByIdImpl, + GlobalScopeinspectorAccessor::SetAppBgColorImpl, }; - return &GlobalScope_inspectorAccessorImpl; + return &GlobalScopeinspectorAccessorImpl; } - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; + struct GlobalScopeinspectorPeer { + virtual ~GlobalScopeinspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -18939,6 +19185,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetAnimationExtenderAccessor, GetUnifiedDataAccessor, GetLazyForEachOpsAccessor, + GetSystemOpsAccessor, GetDrawingCanvasAccessor, GetLengthMetricsAccessor, GetWebviewControllerAccessor, @@ -18965,6 +19212,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, + GetOffscreenCanvasRenderingContext2DAccessor, + GetOffscreenCanvasAccessor, GetDrawingRenderingContextAccessor, GetICurveAccessor, GetDrawModifierAccessor, @@ -18986,7 +19235,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, + GetGlobalScopecommonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -19084,7 +19335,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, - GetGlobalScope_inspectorAccessor, + GetGlobalScope_Profiler_inspectorAccessor, + GetGlobalScopeinspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/src/generated/ArkUINativeModule.ts b/arkoala/framework/src/generated/ArkUINativeModule.ts index fb8ea5c85..eacfce127 100644 --- a/arkoala/framework/src/generated/ArkUINativeModule.ts +++ b/arkoala/framework/src/generated/ArkUINativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary, withByteArray, Access, callCallback, nullptr, InteropNativeModule, providePlatformDefinedData, NativeStringBase, ArrayDecoder, CallbackRegistry } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary, withByteArray, Access, callCallback, nullptr, InteropNativeModule, providePlatformDefinedData, NativeStringBase, ArrayDecoder, CallbackRegistry } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModule { diff --git a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts index 13363d19a..4af27590e 100644 --- a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModuleEmpty { diff --git a/arkoala/framework/src/generated/TestNativeModule.ts b/arkoala/framework/src/generated/TestNativeModule.ts index 70a06091b..98598f2bf 100644 --- a/arkoala/framework/src/generated/TestNativeModule.ts +++ b/arkoala/framework/src/generated/TestNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModule { diff --git a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts index f396eaf3d..efc238d17 100644 --- a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModuleEmpty { diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index ade310f64..37e8594ec 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -8,8 +8,10 @@ }, "scripts": { "interface-sdk:download": "npm run interface-sdk:download --prefix ../../arkui-common", - "generate:ts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", - "generate:arkts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts", + "clean:ts": "rimraf ../../arkui/src/generated", + "generate:ts": "npm run clean:ts && npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", + "clean:arkts": "rimraf ../../../arkoala-arkts/arkui/src/generated", + "generate:arkts": "npm run clean:arkts && npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts", "generate:all": "npm run generate:ts && npm run generate:arkts", "install:current": "npm install idlizer-current && npm run compile --prefix node_modules/idlizer-current", "generate:ts:current": "npm run install:current && node node_modules/idlizer-current --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", @@ -18,6 +20,6 @@ }, "dependencies": { "@koalaui/interop": "file:../../../../external/interop", - "idlizer-current": "file:../../../../arkgen" + "idlizer-current": "file:../../../../idlize-2/arkgen" } } -- Gitee From 582a59f6e08096d5120569053d8d17e3e9b6727f Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 14:09:25 +0000 Subject: [PATCH 13/31] !21 libarkts: fix cyclic dependency, fix nullable creates, substitute AnnotationUsage --- arkoala-arkts/libarkts/.mocharc.json | 3 +- arkoala-arkts/libarkts/package.json | 2 +- .../libarkts/plugins/src/arkts-utils.ts | 4 +- .../plugins/src/builder-lambda-transformer.ts | 46 ++--- .../libarkts/src/arkts-api/class-by-peer.ts | 94 +-------- .../src/arkts-api/factory/nodeFactory.ts | 6 +- .../src/arkts-api/factory/nodeTests.ts | 13 +- arkoala-arkts/libarkts/src/arkts-api/index.ts | 4 +- .../libarkts/src/arkts-api/peers/AstNode.ts | 33 ++-- .../libarkts/src/arkts-api/peers/Context.ts | 3 - .../to-be-generated/MemberExpression.ts | 18 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 187 ++++++++---------- .../src/arkts-api/utilities/private.ts | 47 +++-- .../src/arkts-api/utilities/public.ts | 18 +- .../src/generated/peers/AnnotatedAstNode.ts | 3 +- .../generated/peers/AnnotatedExpression.ts | 3 +- .../src/generated/peers/AnnotatedStatement.ts | 3 +- .../generated/peers/AnnotationDeclaration.ts | 14 +- .../src/generated/peers/AnnotationUsage.ts | 14 +- .../src/generated/peers/ArrayExpression.ts | 3 +- .../peers/ArrowFunctionExpression.ts | 14 +- .../src/generated/peers/AssertStatement.ts | 10 +- .../generated/peers/AssignmentExpression.ts | 3 +- .../src/generated/peers/AwaitExpression.ts | 10 +- .../src/generated/peers/BigIntLiteral.ts | 10 +- .../src/generated/peers/BinaryExpression.ts | 10 +- .../src/generated/peers/BlockExpression.ts | 6 +- .../src/generated/peers/BlockStatement.ts | 6 +- .../src/generated/peers/BooleanLiteral.ts | 10 +- .../src/generated/peers/BreakStatement.ts | 14 +- .../src/generated/peers/CallExpression.ts | 12 +- .../src/generated/peers/CatchClause.ts | 10 +- .../src/generated/peers/ChainExpression.ts | 10 +- .../src/generated/peers/CharLiteral.ts | 10 +- .../src/generated/peers/ClassDeclaration.ts | 10 +- .../src/generated/peers/ClassDefinition.ts | 18 +- .../src/generated/peers/ClassElement.ts | 3 +- .../src/generated/peers/ClassExpression.ts | 10 +- .../src/generated/peers/ClassProperty.ts | 10 +- .../src/generated/peers/ClassStaticBlock.ts | 10 +- .../generated/peers/ConditionalExpression.ts | 10 +- .../src/generated/peers/ContinueStatement.ts | 14 +- .../src/generated/peers/DebuggerStatement.ts | 10 +- .../libarkts/src/generated/peers/Decorator.ts | 10 +- .../generated/peers/DirectEvalExpression.ts | 10 +- .../src/generated/peers/DoWhileStatement.ts | 6 +- .../src/generated/peers/ETSClassLiteral.ts | 10 +- .../generated/peers/ETSDynamicFunctionType.ts | 3 +- .../src/generated/peers/ETSFunctionType.ts | 6 +- .../generated/peers/ETSImportDeclaration.ts | 6 +- .../generated/peers/ETSLaunchExpression.ts | 10 +- .../libarkts/src/generated/peers/ETSModule.ts | 6 +- .../peers/ETSNewArrayInstanceExpression.ts | 10 +- .../peers/ETSNewClassInstanceExpression.ts | 14 +- .../ETSNewMultiDimArrayInstanceExpression.ts | 14 +- .../src/generated/peers/ETSNullType.ts | 10 +- .../generated/peers/ETSPackageDeclaration.ts | 10 +- .../generated/peers/ETSParameterExpression.ts | 10 +- .../src/generated/peers/ETSPrimitiveType.ts | 10 +- .../generated/peers/ETSReExportDeclaration.ts | 6 +- .../generated/peers/ETSStructDeclaration.ts | 10 +- .../libarkts/src/generated/peers/ETSTuple.ts | 18 +- .../src/generated/peers/ETSTypeReference.ts | 10 +- .../generated/peers/ETSTypeReferencePart.ts | 14 +- .../src/generated/peers/ETSUndefinedType.ts | 10 +- .../src/generated/peers/ETSUnionType.ts | 10 +- .../src/generated/peers/ETSWildcardType.ts | 10 +- .../src/generated/peers/EmptyStatement.ts | 10 +- .../generated/peers/ExportAllDeclaration.ts | 10 +- .../peers/ExportDefaultDeclaration.ts | 10 +- .../generated/peers/ExportNamedDeclaration.ts | 18 +- .../src/generated/peers/ExportSpecifier.ts | 10 +- .../src/generated/peers/Expression.ts | 3 +- .../generated/peers/ExpressionStatement.ts | 10 +- .../src/generated/peers/ForInStatement.ts | 6 +- .../src/generated/peers/ForOfStatement.ts | 6 +- .../src/generated/peers/ForUpdateStatement.ts | 6 +- .../src/generated/peers/FunctionDecl.ts | 3 +- .../generated/peers/FunctionDeclaration.ts | 14 +- .../src/generated/peers/FunctionExpression.ts | 14 +- .../src/generated/peers/Identifier.ts | 18 +- .../src/generated/peers/IfStatement.ts | 6 +- .../src/generated/peers/ImportDeclaration.ts | 10 +- .../generated/peers/ImportDefaultSpecifier.ts | 10 +- .../src/generated/peers/ImportExpression.ts | 10 +- .../peers/ImportNamespaceSpecifier.ts | 10 +- .../src/generated/peers/ImportSpecifier.ts | 10 +- .../src/generated/peers/InterfaceDecl.ts | 3 +- .../src/generated/peers/LabelledStatement.ts | 6 +- .../libarkts/src/generated/peers/Literal.ts | 3 +- .../src/generated/peers/LoopStatement.ts | 3 +- .../peers/MaybeOptionalExpression.ts | 3 +- .../src/generated/peers/MemberExpression.ts | 10 +- .../src/generated/peers/MetaProperty.ts | 10 +- .../src/generated/peers/MethodDefinition.ts | 10 +- .../libarkts/src/generated/peers/NamedType.ts | 10 +- .../src/generated/peers/NewExpression.ts | 10 +- .../src/generated/peers/NullLiteral.ts | 10 +- .../src/generated/peers/NumberLiteral.ts | 6 +- .../src/generated/peers/ObjectExpression.ts | 3 +- .../src/generated/peers/OmittedExpression.ts | 10 +- .../src/generated/peers/OpaqueTypeNode.ts | 10 +- .../peers/PrefixAssertionExpression.ts | 10 +- .../libarkts/src/generated/peers/Property.ts | 14 +- .../src/generated/peers/RegExpLiteral.ts | 10 +- .../src/generated/peers/ReturnStatement.ts | 14 +- .../src/generated/peers/ScriptFunction.ts | 6 +- .../src/generated/peers/SequenceExpression.ts | 10 +- .../src/generated/peers/SpreadElement.ts | 3 +- .../libarkts/src/generated/peers/Statement.ts | 3 +- .../src/generated/peers/StringLiteral.ts | 12 +- .../src/generated/peers/SuperExpression.ts | 10 +- .../generated/peers/SwitchCaseStatement.ts | 6 +- .../src/generated/peers/SwitchStatement.ts | 10 +- .../src/generated/peers/TSAnyKeyword.ts | 10 +- .../src/generated/peers/TSArrayType.ts | 10 +- .../src/generated/peers/TSAsExpression.ts | 10 +- .../src/generated/peers/TSBigintKeyword.ts | 10 +- .../src/generated/peers/TSBooleanKeyword.ts | 10 +- .../src/generated/peers/TSClassImplements.ts | 14 +- .../src/generated/peers/TSConditionalType.ts | 10 +- .../src/generated/peers/TSConstructorType.ts | 6 +- .../src/generated/peers/TSEnumDeclaration.ts | 10 +- .../src/generated/peers/TSEnumMember.ts | 14 +- .../peers/TSExternalModuleReference.ts | 10 +- .../src/generated/peers/TSFunctionType.ts | 6 +- .../peers/TSImportEqualsDeclaration.ts | 10 +- .../src/generated/peers/TSImportType.ts | 10 +- .../src/generated/peers/TSIndexSignature.ts | 10 +- .../generated/peers/TSIndexedAccessType.ts | 10 +- .../src/generated/peers/TSInferType.ts | 10 +- .../src/generated/peers/TSInterfaceBody.ts | 10 +- .../generated/peers/TSInterfaceDeclaration.ts | 10 +- .../generated/peers/TSInterfaceHeritage.ts | 10 +- .../src/generated/peers/TSIntersectionType.ts | 10 +- .../src/generated/peers/TSLiteralType.ts | 10 +- .../src/generated/peers/TSMappedType.ts | 10 +- .../src/generated/peers/TSMethodSignature.ts | 6 +- .../src/generated/peers/TSModuleBlock.ts | 6 +- .../generated/peers/TSModuleDeclaration.ts | 6 +- .../src/generated/peers/TSNamedTupleMember.ts | 10 +- .../src/generated/peers/TSNeverKeyword.ts | 10 +- .../generated/peers/TSNonNullExpression.ts | 10 +- .../src/generated/peers/TSNullKeyword.ts | 10 +- .../src/generated/peers/TSNumberKeyword.ts | 10 +- .../src/generated/peers/TSObjectKeyword.ts | 10 +- .../generated/peers/TSParameterProperty.ts | 10 +- .../generated/peers/TSParenthesizedType.ts | 10 +- .../generated/peers/TSPropertySignature.ts | 10 +- .../src/generated/peers/TSQualifiedName.ts | 10 +- .../generated/peers/TSSignatureDeclaration.ts | 6 +- .../src/generated/peers/TSStringKeyword.ts | 10 +- .../src/generated/peers/TSThisType.ts | 10 +- .../src/generated/peers/TSTupleType.ts | 10 +- .../generated/peers/TSTypeAliasDeclaration.ts | 14 +- .../src/generated/peers/TSTypeAssertion.ts | 10 +- .../src/generated/peers/TSTypeLiteral.ts | 10 +- .../src/generated/peers/TSTypeOperator.ts | 10 +- .../src/generated/peers/TSTypeParameter.ts | 14 +- .../peers/TSTypeParameterDeclaration.ts | 10 +- .../peers/TSTypeParameterInstantiation.ts | 10 +- .../src/generated/peers/TSTypePredicate.ts | 10 +- .../src/generated/peers/TSTypeQuery.ts | 10 +- .../src/generated/peers/TSTypeReference.ts | 10 +- .../src/generated/peers/TSUndefinedKeyword.ts | 10 +- .../src/generated/peers/TSUnionType.ts | 10 +- .../src/generated/peers/TSUnknownKeyword.ts | 10 +- .../src/generated/peers/TSVoidKeyword.ts | 10 +- .../peers/TaggedTemplateExpression.ts | 10 +- .../src/generated/peers/TemplateElement.ts | 14 +- .../src/generated/peers/TemplateLiteral.ts | 10 +- .../src/generated/peers/ThisExpression.ts | 10 +- .../src/generated/peers/ThrowStatement.ts | 10 +- .../src/generated/peers/TryStatement.ts | 6 +- .../libarkts/src/generated/peers/TypeNode.ts | 3 +- .../src/generated/peers/TypedAstNode.ts | 3 +- .../src/generated/peers/TypedStatement.ts | 3 +- .../src/generated/peers/TypeofExpression.ts | 10 +- .../src/generated/peers/UnaryExpression.ts | 10 +- .../src/generated/peers/UndefinedLiteral.ts | 10 +- .../src/generated/peers/UpdateExpression.ts | 10 +- .../generated/peers/VariableDeclaration.ts | 10 +- .../src/generated/peers/VariableDeclarator.ts | 14 +- .../src/generated/peers/WhileStatement.ts | 6 +- .../src/generated/peers/YieldExpression.ts | 10 +- .../libarkts/src/reexport-for-generated.ts | 8 +- arkoala-arkts/libarkts/src/utils.ts | 9 +- .../arkts-api/general/annotations.test.ts | 3 + arkoala-arkts/libarkts/test/test-util.ts | 57 +----- .../create-function-declaration.test.ts | 2 +- .../update-function-declaration.test.ts | 2 +- .../lambda-param-memoization.test.ts | 2 +- .../test/ts-api/general/abc-gen.test.ts | 2 +- .../test/ts-api/general/basic.test.ts | 2 +- .../ts-api/variables/create-variable.test.ts | 2 +- .../memo-rewrite.test.ts | 2 +- .../memo-plugin/src/function-transformer.ts | 18 +- 197 files changed, 1349 insertions(+), 831 deletions(-) diff --git a/arkoala-arkts/libarkts/.mocharc.json b/arkoala-arkts/libarkts/.mocharc.json index 1799d0fb2..62699a6cd 100644 --- a/arkoala-arkts/libarkts/.mocharc.json +++ b/arkoala-arkts/libarkts/.mocharc.json @@ -1,7 +1,6 @@ { "ui": "tdd", - "spec": "./test/**/*.test.ts", - "exclude": "./test/ts-api/**/*", + "spec": "./test/arkts-api/**/*.test.ts", "extension": [ "ts" ], diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index c635b15b2..fd2fb9326 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,7 +11,7 @@ "./build/*" ], "config": { - "gen_version": "3.0.18", + "gen_version": "3.0.19", "input_file": "../../incremental/tools/panda/node_modules/@panda/sdk/ohos_arm64/include/tools/es2panda/generated/es2panda_lib/es2panda_lib.idl" }, "dependencies": { diff --git a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts index 549790fd7..e6201eda8 100644 --- a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -1,8 +1,8 @@ import * as arkts from "@koalaui/libarkts" -export function annotation(name: string): arkts.AnnotationUsageIr { +export function annotation(name: string): arkts.AnnotationUsage { const ident: arkts.Identifier = arkts.factory.createIdentifier(name).setAnnotationUsage(); - const annotation: arkts.AnnotationUsageIr = arkts.factory.createAnnotationUsageIr(ident); + const annotation: arkts.AnnotationUsage = arkts.factory.createAnnotationUsage(ident); annotation.modifiers = arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_ANNOTATION_USAGE; ident.parent = annotation; diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index e65728dba..ab1fc833e 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -66,22 +66,25 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar ) } -function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsageIr): boolean { +function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsage): boolean { + if (annotation.expr === undefined) { + return false + } if (!arkts.isIdentifier(annotation.expr)) { return false } return annotation.expr.name !== "BuilderLambda" } -function builderLambdaArgumentName(annotation: arkts.AnnotationUsageIr): string | undefined { +function builderLambdaArgumentName(annotation: arkts.AnnotationUsage): string | undefined { if (!isBuilderLambdaAnnotation(annotation)) return undefined + const property = annotation.properties[0] + if (property === undefined) return undefined + if (!arkts.isClassProperty(property)) return undefined + if (property.value === undefined) return undefined + if (!arkts.isStringLiteral(property.value)) return undefined - if (!annotation.properties[0].value || - !arkts.isStringLiteral(annotation.properties[0].value) - ) { - return undefined - } - return annotation.properties[0].value.str + return property.value.str } /* function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | undefined { @@ -95,8 +98,7 @@ function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | un return annotation.properties[1].value.str } */ -function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsageIr|undefined { - +function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsage | undefined { let decl: arkts.AstNode|undefined = undefined if (arkts.isIdentifier(node.expression)) { decl = arkts.getDecl(node.expression) @@ -172,20 +174,20 @@ function builderLambdaReplace(leaf: arkts.CallExpression): arkts.Identifier|arkt } if (arkts.isIdentifier(node)) { - return arkts.factory.createIdentifier( - funcName - ) + return arkts.factory.createIdentifier( + funcName + ) } if (arkts.isMemberExpression(node)) { - return arkts.factory.createMemberExpression( - node.object, - arkts.factory.createIdentifier( - funcName - ), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ) + return arkts.factory.createMemberExpression( + node.object, + arkts.factory.createIdentifier( + funcName + ), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ) } return undefined } diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index 212f6a30c..fa2a83a5a 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -13,103 +13,19 @@ * limitations under the License. */ -import { - AnnotationUsageIr, - ArrowFunctionExpression, - AssignmentExpression, - BinaryExpression, - BlockStatement, - CallExpression, - ClassDeclaration, - ClassDefinition, - ClassProperty, - ClassStaticBlock, - ETSFunctionType, - EtsImportDeclaration, - ETSParameterExpression, - ETSPrimitiveType, - EtsScript, - ETSTypeReference, - ETSTypeReferencePart, - ETSUndefinedType, - ETSUnionType, - ExpressionStatement, - FunctionDeclaration, - FunctionExpression, - Identifier, - IfStatement, - ImportSpecifier, - MethodDefinition, - NumberLiteral, - ReturnStatement, - ScriptFunction, - StringLiteral, - StructDeclaration, - SuperExpression, - TSTypeParameter, - TSTypeParameterDeclaration, - UndefinedLiteral, - UnsupportedNode, - VariableDeclaration, - VariableDeclarator -} from "./types" import { Es2pandaAstNodeType } from "../Es2pandaEnums" -import { MemberExpression } from "./to-be-generated/MemberExpression" import { throwError } from "../utils" import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" -import { AstNode } from "./peers/AstNode" -import { nodes as generatedNodes } from "../generated/node-map" +import { AstNode, UnsupportedNode } from "./peers/AstNode" -export function classByPeer(peer: KNativePointer): AstNode { - const nodes = new Map([ - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], - [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], - [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], - [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], - [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], - [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsageIr], - ]) +export const nodeByType = new Map([]) +export function classByPeer(peer: KNativePointer): T { if (peer === nullptr) { throwError('classByPeer: peer is NULLPTR') } const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - const node = nodes.get(type) ?? generatedNodes.get(type) - if (node === undefined) { - return new UnsupportedNode(peer) - } - return new node(peer) + const node = nodeByType.get(type) ?? UnsupportedNode + return new node(peer) as T } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index 778cb68cd..4f3f39b21 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -15,7 +15,6 @@ import { updateNodeByNode } from "../utilities/private" import { - AnnotationUsageIr, ArrowFunctionExpression, BinaryExpression, BlockStatement, @@ -54,6 +53,7 @@ import { } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" +import { AnnotationUsage } from "../../generated" function compose( create: (...args: ARGS) => T, @@ -289,8 +289,8 @@ export const factory = { get updateUndefinedLiteral() { return compose(UndefinedLiteral.create) }, - get createAnnotationUsageIr() { - return AnnotationUsageIr.create + get createAnnotationUsage() { + return AnnotationUsage.createAnnotationUsage }, get updateAnnotationUsageIr() { return compose(UndefinedLiteral.create) diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 70089c669..dd87fe0c4 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,7 +1,6 @@ import { global } from "../static/global" import { AnnotationDeclaration, - AnnotationUsageIr, ArrowFunctionExpression, BlockStatement, CallExpression, @@ -24,14 +23,6 @@ import { import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" -export function isClassProperty(node: AstNode): node is ClassProperty { - return global.es2panda._IsClassProperty(node.peer); -} - -export function isAnnotationUsage(node: AstNode): node is AnnotationUsageIr { - return global.es2panda._IsAnnotationUsage(node.peer); -} - export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { return global.es2panda._IsAnnotationDeclaration(node.peer); } @@ -107,3 +98,7 @@ export function isStringLiteral(node: AstNode): node is StringLiteral { export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition } + +export function isClassProperty(node: AstNode): node is ClassProperty { + return node instanceof ClassProperty +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index 8e444fc04..b6926ba0f 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -15,6 +15,7 @@ export * from "../Es2pandaEnums" export * from "../generated/Es2pandaEnums" +export * from "../generated/peers/AnnotationUsage" export * from "./types" export * from "./utilities/private" @@ -22,7 +23,8 @@ export * from "./utilities/public" export * from "./factory/nodeFactory" export * from "./factory/nodeTests" export * from "./visitor" -export * from "./peers/AstNode" +export type { AstNode } from "./peers/AstNode" +import "../generated" export * from "./peers/Config" export * from "./peers/Context" export * from "./to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 5fc86f188..2ba4dfb1e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -13,29 +13,23 @@ * limitations under the License. */ -import { KNativePointer } from "@koalaui/interop" +import { isNullPtr, KInt, KNativePointer as KPtr, KNativePointer, nullptr } from "@koalaui/interop" import { global } from "../static/global" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" +import { allFlags, nodeType, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" import { throwError } from "../../utils" import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" -import { allFlags } from "../types" -import { KInt } from "@koalaui/interop" -import { isNullPtr, nullptr } from "@koalaui/interop" import { ArktsObject } from "./ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" export abstract class AstNode extends ArktsObject { protected constructor(peer: KNativePointer) { if (isNullPtr(peer)) { - throw new Error('trying to create new Node on NULLPTR') + throwError(`attempted to create AstNode from nullptr`) } super(peer) - this.type = global.generatedEs2panda._AstNodeTypeConst(global.context, this.peer) this.updateChildren() } - readonly type: Es2pandaAstNodeType - public get originalPeer(): KNativePointer { return global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer) } @@ -50,7 +44,7 @@ export abstract class AstNode extends ArktsObject { public getSubtree(): readonly AstNode[] { return this.getChildren().reduce( - (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { + (prev: readonly AstNode[], curr) => { return prev.concat(curr.getSubtree()) }, [this] @@ -75,7 +69,6 @@ export abstract class AstNode extends ArktsObject { .map((it) => it.dump(indentation + 1)) const msg = `${indentation}_` - + Es2pandaAstNodeType[this.type] + ` ` + this.dumpMessage() return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("") @@ -98,11 +91,11 @@ export abstract class AstNode extends ArktsObject { } public get parent(): AstNode { - const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) - if (_parent === nullptr) { - throwError('BAD ACCESS: PARENT IS NULLPTR') + const parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) + if (parent === nullptr) { + throwError(`no parent`) } - return unpackNonNullableNode(_parent) + return unpackNonNullableNode(parent) } public set parent(node: AstNode) { @@ -118,3 +111,11 @@ export abstract class AstNode extends ArktsObject { global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) } } + + +export class UnsupportedNode extends AstNode { + constructor(peer: KPtr) { + super(peer) + console.warn(`Warning: unsupported node ${Es2pandaAstNodeType[nodeType(this)]}`) + } +} diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts index 07fede2a8..e6ee16f0b 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts @@ -24,9 +24,6 @@ export class Context extends ArktsObject { super(peer) } - // TODO: - // static create - static createFromString( source: string ): Context { diff --git a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts index f760db27a..ac8213680 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts @@ -13,13 +13,17 @@ * limitations under the License. */ -import { global } from "../static/global" -import { assertValidPeer } from "../types" -import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" -import { passNode, unpackNonNullableNode } from "../utilities/private" -import { KNativePointer } from "@koalaui/interop" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { AstNode } from "../peers/AstNode" + +import { + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + Es2pandaMemberExpressionKind, + KNativePointer, + passNode, + unpackNonNullableNode, + global +} from "../../reexport-for-generated" export class MemberExpression extends AstNode { constructor(peer: KNativePointer) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index a3168d27b..e546bff6e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -12,12 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - import { global } from "./static/global" -import { throwError } from "../utils" -import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" +import { KBoolean, KInt, KNativePointer, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { - Es2pandaClassDefinitionModifiers, Es2pandaContextState, Es2pandaExpressionParseFlags, Es2pandaIdentifierFlags, @@ -31,10 +28,13 @@ import { Es2pandaVariableDeclaratorFlag, } from "../generated/Es2pandaEnums" import { + allFlags, + arrayOfNullptr, + assertValidPeer, + nodeType, passNode, passNodeArray, passString, - resolveSource, unpackNode, unpackNodeArray, unpackNonNullableNode, @@ -47,34 +47,10 @@ import { AstNode } from "./peers/AstNode" import { ArktsObject } from "./peers/ArktsObject" import { Config } from "./peers/Config" import { Context } from "./peers/Context" -import { factory } from "@koalaui/ets-tsc" - -export const arrayOfNullptr = new BigUint64Array([nullptr]) - -export const allFlags: KInt = - Object.values(Es2pandaModifierFlags).filter( - (value: any) => { return (typeof value) === 'number' } - ).reduce( - (prev: KInt, next: KInt): KInt => (prev | next), - 0 as KInt - ) - -export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { - if (peer === nullptr) { - throwError(`invalid peer: NULLPTR`) - } - const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - if (peerType !== expectedKind) { - throwError(`actual type of peer: ${peerType} expected: ${expectedKind}`) - } -} - -export class UnsupportedNode extends AstNode { - constructor(peer: KPtr) { - super(peer) - console.log(`WARNING: UNSUPPORTED NODE (arkts): ${Es2pandaAstNodeType[this.type]}`) - } -} +import * as path from "node:path" +import { nodeByType } from "./class-by-peer" +import { MemberExpression } from "./to-be-generated/MemberExpression" +import { AnnotationUsage, Expression } from "../generated" export class EtsScript extends AstNode { constructor(peer: KPtr) { @@ -255,10 +231,6 @@ export class ETSPrimitiveType extends AstNode { ) } - protected override dumpMessage(): string { - return ` ` - } - readonly primitiveType: Es2pandaPrimitiveType } @@ -390,7 +362,7 @@ export class ETSFunctionType extends AstNode { } } -export class Identifier extends AstNode { +export class Identifier extends Expression { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER) super(peer) @@ -399,25 +371,10 @@ export class Identifier extends AstNode { static create( name: string, typeAnnotation?: AstNode, - isAnnotation?: boolean ): Identifier { - if (isAnnotation) { - return new Identifier( - global.es2panda._ETSParserCreateExpression( - global.context, - passString(name), - Es2pandaExpressionParseFlags.EXPRESSION_PARSE_FLAGS_ACCEPT_COMMA - ) - ) - } else if (typeAnnotation === undefined) { - return new Identifier( - global.es2panda._CreateIdentifier1(global.context, passString(name)) - ) - } else { - return new Identifier( - global.es2panda._CreateIdentifier2(global.context, passString(name), typeAnnotation.peer) - ) - } + return new Identifier( + global.es2panda._CreateIdentifier2(global.context, passString(name), passNode(typeAnnotation)) + ) } setOptional(optional: boolean): Identifier { @@ -607,7 +564,7 @@ export class ScriptFunction extends AstNode { // TODO: goes through whole subtree, optimizable (unnecessary now) this.body.getSubtree().forEach( (node: AstNode) => { - hasReturn = hasReturn || (node.type === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT) + hasReturn = hasReturn || nodeType(node) === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT } ) return hasReturn @@ -624,18 +581,18 @@ export class ScriptFunction extends AstNode { readonly scriptFunctionFlags: KInt readonly ident?: Identifier - get annotations(): AnnotationUsageIr[] { + get annotations(): AnnotationUsage[] { return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( - global.context, - this.peer, + global.context, + this.peer, nullptr - )) as AnnotationUsageIr[]; + )) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ScriptFunctionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); @@ -766,18 +723,18 @@ export class ETSParameterExpression extends AstNode { ) } - get annotations(): AnnotationUsageIr[] { + get annotations(): AnnotationUsage[] { return unpackNodeArray(global.es2panda._ETSParameterExpressionAnnotations( - global.context, - this.peer, + global.context, + this.peer, nullptr - )) as AnnotationUsageIr[]; + )) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ETSParameterExpressionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); @@ -1079,18 +1036,20 @@ export class ClassProperty extends ClassElement { ) } - get annotations(): AnnotationUsageIr[] { - return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( - global.context, - this.peer, - nullptr - )) as AnnotationUsageIr[]; + get annotations(): AnnotationUsage[] { + return unpackNodeArray( + global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + ) + ) } - set annotations(newAnnotations: AnnotationUsageIr[]) { + set annotations(newAnnotations: AnnotationUsage[]) { global.es2panda._ScriptFunctionSetAnnotations( - global.context, - this.peer, + global.context, + this.peer, passNodeArray(newAnnotations), newAnnotations.length ); @@ -1192,7 +1151,9 @@ export class ImportSource extends ArktsObject { global.es2panda._CreateImportSource( global.context, source.peer, - resolveSource(source).peer, + StringLiteral.create( + path.resolve(source.str).toString() + ).peer, hasDecl ) ) @@ -1257,29 +1218,6 @@ export class ImportSpecifier extends AstNode { } } -export class AnnotationUsageIr extends AstNode { - constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE) - super(peer) - this.expr = unpackNonNullableNode(global.generatedEs2panda._AnnotationUsageIrExpr(global.context, this.peer)) - this.properties = unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesConst(global.context, this.peer)) - } - - static create( - annoIdent: AstNode - ): AnnotationUsageIr { - return new AnnotationUsageIr( - global.es2panda._CreateAnnotationUsageIr( - global.context, - passNode(annoIdent) - ) - ); - } - - readonly expr: AstNode - readonly properties: readonly ClassProperty[] -} - export class TSTypeParameterInstantiation extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION) @@ -1358,3 +1296,44 @@ export class AnnotationDeclaration extends AstNode { ) } } + +const pairs: [Es2pandaAstNodeType, { new(peer: KNativePointer): AstNode }][] = [ + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], + [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], + [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], + [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], + [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], + [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], +] +pairs.forEach(([tp, cctor]) => nodeByType.set(tp, cctor)) \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index c6ec7acdc..9f5d10457 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -14,16 +14,43 @@ */ import { global } from "../static/global" -import { throwError } from "../../utils" -import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" +import { isNumber, throwError } from "../../utils" +import { + KInt, + KNativePointer as KPtr, + KNativePointer, + nullptr, + withString, + withStringArray, + withStringResult +} from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" -import * as path from "node:path" -import { allFlags, StringLiteral } from "../types" -import { Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" -import { factory } from "../factory/nodeFactory" +import { Es2pandaModifierFlags, Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { classByPeer } from "../class-by-peer" -import { AstNode } from "../peers/AstNode" +import type { AstNode } from "../peers/AstNode" import { ArktsObject } from "../peers/ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" + +export const arrayOfNullptr = new BigUint64Array([nullptr]) + +export const allFlags = + Object.values(Es2pandaModifierFlags) + .filter(isNumber) + .reduce( + (prev, next) => (prev | next), + 0 + + ) + +export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { + if (peer === nullptr) { + throwError(`invalid peer`) + } + const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) + if (peerType !== expectedKind) { + throwError(`expected: ${Es2pandaAstNodeType[expectedKind]}, got: ${Es2pandaAstNodeType[peerType]}`) + } +} export function unpackNonNullableNode(peer: KNativePointer): T { if (peer === nullptr) { @@ -130,8 +157,6 @@ export function updateNodeByNode(node: T, original: AstNode): return node } -export function resolveSource(source: StringLiteral): StringLiteral { - return factory.createStringLiteral( - path.resolve(source.str).toString() - ) +export function nodeType(node: AstNode): Es2pandaAstNodeType { + return global.generatedEs2panda._AstNodeTypeConst(global.context, passNode(node)) } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index 7231cc0f5..de723054e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -15,12 +15,12 @@ import { global } from "../static/global" import { throwError } from "../../utils" -import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" +import { nullptr, withStringResult } from "@koalaui/interop" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" -import { AstNode } from "../peers/AstNode" -import { AnnotationUsageIr } from "../types" +import type { AstNode } from "../peers/AstNode" +import type { AnnotationUsage } from "../../generated" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -31,9 +31,15 @@ export function proceedToState(state: Es2pandaContextState): void { if (global.es2panda._ContextState(global.context) === Es2pandaContextState.ES2PANDA_STATE_ERROR) { const errorMessage = withStringResult(global.es2panda._ContextErrorMessage(global.context)) if (errorMessage === undefined) { - throwError(`COULDN'T GET ContextErrorMessage`) + throwError(`Could not get ContextErrorMessage`) } - throwError("FAILED PROCEED TO: " + Es2pandaContextState[state] + "\n" + errorMessage) + throwError( + [ + `Failed to proceed to ${Es2pandaContextState[state]}`, + errorMessage + ] + .join(`\n`) + ) } } catch (e) { global.es2panda._DestroyContext(global.context) @@ -61,7 +67,7 @@ export function getDecl(node: AstNode): AstNode | undefined { return unpackNonNullableNode(decl) } -export function getAnnotations(node: AstNode): readonly AnnotationUsageIr[] { +export function getAnnotations(node: AstNode): readonly AnnotationUsage[] { if (!isFunctionDeclaration(node) && !isScriptFunction(node) && !isClassDefinition(node)) { throwError('for now annotations allowed only for: functionDeclaration, scriptFunction, classDefinition') } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts index 07b9fbc43..36938c6cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class AnnotatedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts index e6bdfee72..63624f801 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts index 171ecd625..679236e02 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index aad6adc04..17c10a02c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class AnnotationDeclaration extends Statement { super(pointer) console.warn("Warning: stub node AnnotationDeclaration") } - static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration | undefined { + static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) } - static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration | undefined { + static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr))) } - static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get internalNameConst(): string { @@ -67,4 +68,7 @@ export class AnnotationDeclaration extends Statement { } export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { return node instanceof AnnotationDeclaration +} +if (!nodeByType.has(1)) { + nodeByType.set(1, AnnotationDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index 326159dd1..8e324f9da 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class AnnotationUsage extends Statement { super(pointer) console.warn("Warning: stub node AnnotationUsage") } - static createAnnotationUsage(expr?: Expression): AnnotationUsage | undefined { + static createAnnotationUsage(expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) } - static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage | undefined { + static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr(global.context, passNode(original), passNode(expr))) } - static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get expr(): Expression | undefined { @@ -61,4 +62,7 @@ export class AnnotationUsage extends Statement { } export function isAnnotationUsage(node: AstNode): node is AnnotationUsage { return node instanceof AnnotationUsage +} +if (!nodeByType.has(2)) { + nodeByType.set(2, AnnotationUsage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts index 56113fd26..fbdef9485 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 2e6d050e7..90de76f6a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,16 +36,16 @@ export class ArrowFunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node ArrowFunctionExpression") } - static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression | undefined { + static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) } - static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression | undefined { + static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression1(global.context, passNode(other))) } - static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other))) } get functionConst(): ScriptFunction | undefined { @@ -62,4 +63,7 @@ export class ArrowFunctionExpression extends Expression { } export function isArrowFunctionExpression(node: AstNode): node is ArrowFunctionExpression { return node instanceof ArrowFunctionExpression +} +if (!nodeByType.has(0)) { + nodeByType.set(0, ArrowFunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index b21e36baf..d9ff4e1d5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class AssertStatement extends Statement { super(pointer) console.warn("Warning: stub node AssertStatement") } - static createAssertStatement(test?: Expression, second?: Expression): AssertStatement | undefined { + static createAssertStatement(test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second))) } - static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement | undefined { + static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second))) } get testConst(): Expression | undefined { @@ -52,4 +53,7 @@ export class AssertStatement extends Statement { } export function isAssertStatement(node: AstNode): node is AssertStatement { return node instanceof AssertStatement +} +if (!nodeByType.has(3)) { + nodeByType.set(3, AssertStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts index 84f10656d..75085e0f2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index e1981e7dc..47492db2d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class AwaitExpression extends Expression { super(pointer) console.warn("Warning: stub node AwaitExpression") } - static createAwaitExpression(argument?: Expression): AwaitExpression | undefined { + static createAwaitExpression(argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) } - static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression | undefined { + static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class AwaitExpression extends Expression { } export function isAwaitExpression(node: AstNode): node is AwaitExpression { return node instanceof AwaitExpression +} +if (!nodeByType.has(4)) { + nodeByType.set(4, AwaitExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 1d6b844be..5138e43be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,10 +34,10 @@ export class BigIntLiteral extends Literal { super(pointer) console.warn("Warning: stub node BigIntLiteral") } - static createBigIntLiteral(src: string): BigIntLiteral | undefined { + static createBigIntLiteral(src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) } - static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral | undefined { + static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src)) } get strConst(): string { @@ -45,4 +46,7 @@ export class BigIntLiteral extends Literal { } export function isBigIntLiteral(node: AstNode): node is BigIntLiteral { return node instanceof BigIntLiteral +} +if (!nodeByType.has(5)) { + nodeByType.set(5, BigIntLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index 9a7460643..ac197bf48 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class BinaryExpression extends Expression { super(pointer) console.warn("Warning: stub node BinaryExpression") } - static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) } - static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType)) } get leftConst(): Expression | undefined { @@ -76,4 +77,7 @@ export class BinaryExpression extends Expression { } export function isBinaryExpression(node: AstNode): node is BinaryExpression { return node instanceof BinaryExpression +} +if (!nodeByType.has(6)) { + nodeByType.set(6, BinaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts index 39d766831..0a1465641 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -43,4 +44,7 @@ export class BlockExpression extends Expression { } export function isBlockExpression(node: AstNode): node is BlockExpression { return node instanceof BlockExpression +} +if (!nodeByType.has(154)) { + nodeByType.set(154, BlockExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts index d6711fb04..0a7b0b1aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -42,4 +43,7 @@ export class BlockStatement extends Statement { } export function isBlockStatement(node: AstNode): node is BlockStatement { return node instanceof BlockStatement +} +if (!nodeByType.has(7)) { + nodeByType.set(7, BlockStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index 9390b9ae6..d31f4b5a4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,10 +34,10 @@ export class BooleanLiteral extends Literal { super(pointer) console.warn("Warning: stub node BooleanLiteral") } - static createBooleanLiteral(value: boolean): BooleanLiteral | undefined { + static createBooleanLiteral(value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) } - static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral | undefined { + static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value)) } get valueConst(): boolean { @@ -45,4 +46,7 @@ export class BooleanLiteral extends Literal { } export function isBooleanLiteral(node: AstNode): node is BooleanLiteral { return node instanceof BooleanLiteral +} +if (!nodeByType.has(8)) { + nodeByType.set(8, BooleanLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index 8fb8051b5..44785b47a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class BreakStatement extends Statement { super(pointer) console.warn("Warning: stub node BreakStatement") } - static createBreakStatement(): BreakStatement | undefined { + static createBreakStatement(): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) } - static updateBreakStatement(original?: BreakStatement): BreakStatement | undefined { + static updateBreakStatement(original?: BreakStatement): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original))) } - static create1BreakStatement(ident?: Identifier): BreakStatement | undefined { + static create1BreakStatement(ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident))) } - static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement | undefined { + static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { @@ -58,4 +59,7 @@ export class BreakStatement extends Statement { } export function isBreakStatement(node: AstNode): node is BreakStatement { return node instanceof BreakStatement +} +if (!nodeByType.has(9)) { + nodeByType.set(9, BreakStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index 495b700fc..b86739498 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -36,13 +37,13 @@ export class CallExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node CallExpression") } - static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression | undefined { + static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, trailingComma)) } - static create1CallExpression(other?: CallExpression): CallExpression | undefined { + static create1CallExpression(other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression1(global.context, passNode(other))) } - static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression | undefined { + static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other))) } get calleeConst(): Expression | undefined { @@ -75,4 +76,7 @@ export class CallExpression extends MaybeOptionalExpression { } export function isCallExpression(node: AstNode): node is CallExpression { return node instanceof CallExpression +} +if (!nodeByType.has(10)) { + nodeByType.set(10, CallExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index c22e26d92..6e214900d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -35,10 +36,10 @@ export class CatchClause extends TypedStatement { super(pointer) console.warn("Warning: stub node CatchClause") } - static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause | undefined { + static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body))) } - static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause | undefined { + static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body))) } get param(): Expression | undefined { @@ -56,4 +57,7 @@ export class CatchClause extends TypedStatement { } export function isCatchClause(node: AstNode): node is CatchClause { return node instanceof CatchClause +} +if (!nodeByType.has(11)) { + nodeByType.set(11, CatchClause) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index da0e9826c..992c8db0e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ChainExpression extends Expression { super(pointer) console.warn("Warning: stub node ChainExpression") } - static createChainExpression(expression?: Expression): ChainExpression | undefined { + static createChainExpression(expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) } - static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression | undefined { + static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._UpdateChainExpression(global.context, passNode(original), passNode(expression))) } get getExpressionConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class ChainExpression extends Expression { } export function isChainExpression(node: AstNode): node is ChainExpression { return node instanceof ChainExpression +} +if (!nodeByType.has(12)) { + nodeByType.set(12, ChainExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index 73108082d..cc0c0d2b7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class CharLiteral extends Literal { super(pointer) console.warn("Warning: stub node CharLiteral") } - static createCharLiteral(): CharLiteral | undefined { + static createCharLiteral(): CharLiteral { return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) } - static updateCharLiteral(original?: CharLiteral): CharLiteral | undefined { + static updateCharLiteral(original?: CharLiteral): CharLiteral { return new CharLiteral(global.generatedEs2panda._UpdateCharLiteral(global.context, passNode(original))) } } export function isCharLiteral(node: AstNode): node is CharLiteral { return node instanceof CharLiteral +} +if (!nodeByType.has(13)) { + nodeByType.set(13, CharLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 7a126b6cd..ba2f55301 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ClassDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ClassDeclaration") } - static createClassDeclaration(def?: ClassDefinition): ClassDeclaration | undefined { + static createClassDeclaration(def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) } - static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration | undefined { + static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def))) } get definition(): ClassDefinition | undefined { @@ -53,4 +54,7 @@ export class ClassDeclaration extends Statement { } export function isClassDeclaration(node: AstNode): node is ClassDeclaration { return node instanceof ClassDeclaration +} +if (!nodeByType.has(15)) { + nodeByType.set(15, ClassDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index e46a32592..7a55b8e16 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -44,22 +45,22 @@ export class ClassDefinition extends TypedAstNode { super(pointer) console.warn("Warning: stub node ClassDefinition") } - static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition1(global.context, passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition2(global.context, passNode(ident), modifiers, flags)) } - static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags)) } get identConst(): Identifier | undefined { @@ -161,4 +162,7 @@ export class ClassDefinition extends TypedAstNode { } export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition +} +if (!nodeByType.has(14)) { + nodeByType.set(14, ClassDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts index f61e0aad0..64378b296 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 888be069f..503561f90 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ClassExpression extends Expression { super(pointer) console.warn("Warning: stub node ClassExpression") } - static createClassExpression(def?: ClassDefinition): ClassExpression | undefined { + static createClassExpression(def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) } - static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression | undefined { + static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def))) } get definitionConst(): ClassDefinition | undefined { @@ -46,4 +47,7 @@ export class ClassExpression extends Expression { } export function isClassExpression(node: AstNode): node is ClassExpression { return node instanceof ClassExpression +} +if (!nodeByType.has(16)) { + nodeByType.set(16, ClassExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index 65083a584..fb7de87a5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -37,10 +38,10 @@ export class ClassProperty extends ClassElement { super(pointer) console.warn("Warning: stub node ClassProperty") } - static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } - static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } get typeAnnotationConst(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class ClassProperty extends ClassElement { } export function isClassProperty(node: AstNode): node is ClassProperty { return node instanceof ClassProperty +} +if (!nodeByType.has(17)) { + nodeByType.set(17, ClassProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index 880888735..4772fea2b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -34,13 +35,16 @@ export class ClassStaticBlock extends ClassElement { super(pointer) console.warn("Warning: stub node ClassStaticBlock") } - static createClassStaticBlock(value?: Expression): ClassStaticBlock | undefined { + static createClassStaticBlock(value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) } - static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock | undefined { + static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._UpdateClassStaticBlock(global.context, passNode(original), passNode(value))) } } export function isClassStaticBlock(node: AstNode): node is ClassStaticBlock { return node instanceof ClassStaticBlock +} +if (!nodeByType.has(18)) { + nodeByType.set(18, ClassStaticBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index d92ad39b5..b9e7fba20 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ConditionalExpression extends Expression { super(pointer) console.warn("Warning: stub node ConditionalExpression") } - static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate))) } - static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate))) } get testConst(): Expression | undefined { @@ -60,4 +61,7 @@ export class ConditionalExpression extends Expression { } export function isConditionalExpression(node: AstNode): node is ConditionalExpression { return node instanceof ConditionalExpression +} +if (!nodeByType.has(19)) { + nodeByType.set(19, ConditionalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index 51ad34eb0..52c66fd96 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class ContinueStatement extends Statement { super(pointer) console.warn("Warning: stub node ContinueStatement") } - static createContinueStatement(): ContinueStatement | undefined { + static createContinueStatement(): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) } - static updateContinueStatement(original?: ContinueStatement): ContinueStatement | undefined { + static updateContinueStatement(original?: ContinueStatement): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original))) } - static create1ContinueStatement(ident?: Identifier): ContinueStatement | undefined { + static create1ContinueStatement(ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident))) } - static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement | undefined { + static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { @@ -58,4 +59,7 @@ export class ContinueStatement extends Statement { } export function isContinueStatement(node: AstNode): node is ContinueStatement { return node instanceof ContinueStatement +} +if (!nodeByType.has(20)) { + nodeByType.set(20, ContinueStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index b4f3c236a..a22d4fe29 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,13 +34,16 @@ export class DebuggerStatement extends Statement { super(pointer) console.warn("Warning: stub node DebuggerStatement") } - static createDebuggerStatement(): DebuggerStatement | undefined { + static createDebuggerStatement(): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) } - static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement | undefined { + static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._UpdateDebuggerStatement(global.context, passNode(original))) } } export function isDebuggerStatement(node: AstNode): node is DebuggerStatement { return node instanceof DebuggerStatement +} +if (!nodeByType.has(21)) { + nodeByType.set(21, DebuggerStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index 87db27b5d..1bef25a96 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class Decorator extends Statement { super(pointer) console.warn("Warning: stub node Decorator") } - static createDecorator(expr?: Expression): Decorator | undefined { + static createDecorator(expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) } - static updateDecorator(original?: Decorator, expr?: Expression): Decorator | undefined { + static updateDecorator(original?: Decorator, expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class Decorator extends Statement { } export function isDecorator(node: AstNode): node is Decorator { return node instanceof Decorator +} +if (!nodeByType.has(22)) { + nodeByType.set(22, Decorator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 314fc2522..8892919d0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { CallExpression } from "./CallExpression" @@ -35,13 +36,16 @@ export class DirectEvalExpression extends CallExpression { super(pointer) console.warn("Warning: stub node DirectEvalExpression") } - static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } - static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._UpdateDirectEvalExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } } export function isDirectEvalExpression(node: AstNode): node is DirectEvalExpression { return node instanceof DirectEvalExpression +} +if (!nodeByType.has(23)) { + nodeByType.set(23, DirectEvalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts index f69393d17..c6f8f0615 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class DoWhileStatement extends LoopStatement { } export function isDoWhileStatement(node: AstNode): node is DoWhileStatement { return node instanceof DoWhileStatement +} +if (!nodeByType.has(24)) { + nodeByType.set(24, DoWhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index 30f74e4f5..2090b961f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSClassLiteral extends Expression { super(pointer) console.warn("Warning: stub node ETSClassLiteral") } - static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral | undefined { + static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))) } - static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral | undefined { + static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr))) } get exprConst(): TypeNode | undefined { @@ -46,4 +47,7 @@ export class ETSClassLiteral extends Expression { } export function isETSClassLiteral(node: AstNode): node is ETSClassLiteral { return node instanceof ETSClassLiteral +} +if (!nodeByType.has(70)) { + nodeByType.set(70, ETSClassLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts index 4a24d4bfa..3a37dd0fa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ETSFunctionType } from "./ETSFunctionType" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts index 3456e57b9..627678b97 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -73,4 +74,7 @@ export class ETSFunctionType extends TypeNode { } export function isETSFunctionType(node: AstNode): node is ETSFunctionType { return node instanceof ETSFunctionType +} +if (!nodeByType.has(66)) { + nodeByType.set(66, ETSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts index 7143ac0b8..16205bfaa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ImportDeclaration } from "./ImportDeclaration" @@ -58,4 +59,7 @@ export class ETSImportDeclaration extends ImportDeclaration { } export function isETSImportDeclaration(node: AstNode): node is ETSImportDeclaration { return node instanceof ETSImportDeclaration +} +if (!nodeByType.has(78)) { + nodeByType.set(78, ETSImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index af9f15d70..24c8748f7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSLaunchExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSLaunchExpression") } - static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression | undefined { + static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) } - static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression | undefined { + static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._UpdateETSLaunchExpression(global.context, passNode(original), passNode(expr))) } get callConst(): CallExpression | undefined { @@ -46,4 +47,7 @@ export class ETSLaunchExpression extends Expression { } export function isETSLaunchExpression(node: AstNode): node is ETSLaunchExpression { return node instanceof ETSLaunchExpression +} +if (!nodeByType.has(74)) { + nodeByType.set(74, ETSLaunchExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts index f7fc73b62..18df46b99 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" @@ -59,4 +60,7 @@ export class ETSModule extends BlockStatement { } export function isETSModule(node: AstNode): node is ETSModule { return node instanceof ETSModule +} +if (!nodeByType.has(81)) { + nodeByType.set(81, ETSModule) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index 5d2dfca72..bc727dd58 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSNewArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewArrayInstanceExpression") } - static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension))) } - static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension))) } get typeReference(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class ETSNewArrayInstanceExpression extends Expression { } export function isETSNewArrayInstanceExpression(node: AstNode): node is ETSNewArrayInstanceExpression { return node instanceof ETSNewArrayInstanceExpression +} +if (!nodeByType.has(75)) { + nodeByType.set(75, ETSNewArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index b75bab626..65dfaf041 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,16 +34,16 @@ export class ETSNewClassInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewClassInstanceExpression") } - static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other))) } get getTypeRefConst(): Expression | undefined { @@ -54,4 +55,7 @@ export class ETSNewClassInstanceExpression extends Expression { } export function isETSNewClassInstanceExpression(node: AstNode): node is ETSNewClassInstanceExpression { return node instanceof ETSNewClassInstanceExpression +} +if (!nodeByType.has(77)) { + nodeByType.set(77, ETSNewClassInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index 88a7b6be6..fa74403f1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewMultiDimArrayInstanceExpression") } - static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other))) } get typeReference(): TypeNode | undefined { @@ -61,4 +62,7 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { } export function isETSNewMultiDimArrayInstanceExpression(node: AstNode): node is ETSNewMultiDimArrayInstanceExpression { return node instanceof ETSNewMultiDimArrayInstanceExpression +} +if (!nodeByType.has(76)) { + nodeByType.set(76, ETSNewMultiDimArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index 279fc8472..0f551fd82 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class ETSNullType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSNullType") } - static createETSNullType(): ETSNullType | undefined { + static createETSNullType(): ETSNullType { return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) } - static updateETSNullType(original?: ETSNullType): ETSNullType | undefined { + static updateETSNullType(original?: ETSNullType): ETSNullType { return new ETSNullType(global.generatedEs2panda._UpdateETSNullTypeIr(global.context, passNode(original))) } } export function isETSNullType(node: AstNode): node is ETSNullType { return node instanceof ETSNullType +} +if (!nodeByType.has(62)) { + nodeByType.set(62, ETSNullType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index f784110d9..f651e034c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,13 +35,16 @@ export class ETSPackageDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ETSPackageDeclaration") } - static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration | undefined { + static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) } - static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration | undefined { + static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._UpdateETSPackageDeclaration(global.context, passNode(original), passNode(name))) } } export function isETSPackageDeclaration(node: AstNode): node is ETSPackageDeclaration { return node instanceof ETSPackageDeclaration +} +if (!nodeByType.has(69)) { + nodeByType.set(69, ETSPackageDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index 44a6f7f48..5820b193d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,10 +36,10 @@ export class ETSParameterExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSParameterExpression") } - static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._CreateETSParameterExpression(global.context, passNode(identOrSpread), passNode(initializer))) } - static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._UpdateETSParameterExpression(global.context, passNode(original), passNode(identOrSpread), passNode(initializer))) } get isDefaultConst(): boolean { @@ -59,4 +60,7 @@ export class ETSParameterExpression extends Expression { } export function isETSParameterExpression(node: AstNode): node is ETSParameterExpression { return node instanceof ETSParameterExpression +} +if (!nodeByType.has(79)) { + nodeByType.set(79, ETSParameterExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index 761c6f1b9..49428e2ab 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class ETSPrimitiveType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSPrimitiveType") } - static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) } - static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._UpdateETSPrimitiveType(global.context, passNode(original), type)) } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { @@ -46,4 +47,7 @@ export class ETSPrimitiveType extends TypeNode { } export function isETSPrimitiveType(node: AstNode): node is ETSPrimitiveType { return node instanceof ETSPrimitiveType +} +if (!nodeByType.has(68)) { + nodeByType.set(68, ETSPrimitiveType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts index f9df26fee..ec203d068 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class ETSReExportDeclaration extends Statement { } export function isETSReExportDeclaration(node: AstNode): node is ETSReExportDeclaration { return node instanceof ETSReExportDeclaration +} +if (!nodeByType.has(57)) { + nodeByType.set(57, ETSReExportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index b341a7ed3..0d5dabfee 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassDeclaration } from "./ClassDeclaration" @@ -34,13 +35,16 @@ export class ETSStructDeclaration extends ClassDeclaration { super(pointer) console.warn("Warning: stub node ETSStructDeclaration") } - static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration | undefined { + static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) } - static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration | undefined { + static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._UpdateETSStructDeclaration(global.context, passNode(original), passNode(def))) } } export function isETSStructDeclaration(node: AstNode): node is ETSStructDeclaration { return node instanceof ETSStructDeclaration +} +if (!nodeByType.has(83)) { + nodeByType.set(83, ETSStructDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index fbcee5019..1b8e46741 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,22 +34,22 @@ export class ETSTuple extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTuple") } - static createETSTuple(): ETSTuple | undefined { + static createETSTuple(): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) } - static updateETSTuple(original?: ETSTuple): ETSTuple | undefined { + static updateETSTuple(original?: ETSTuple): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple(global.context, passNode(original))) } - static create1ETSTuple(size: number): ETSTuple | undefined { + static create1ETSTuple(size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple1(global.context, size)) } - static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple | undefined { + static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple1(global.context, passNode(original), size)) } - static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple2(global.context, passNodeArray(typeList), typeListLen)) } - static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple2(global.context, passNode(original), passNodeArray(typeList), typeListLen)) } get getTupleSizeConst(): number { @@ -63,4 +64,7 @@ export class ETSTuple extends TypeNode { } export function isETSTuple(node: AstNode): node is ETSTuple { return node instanceof ETSTuple +} +if (!nodeByType.has(80)) { + nodeByType.set(80, ETSTuple) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index eb65893c4..850ddc4eb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class ETSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReference") } - static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) } - static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._UpdateETSTypeReference(global.context, passNode(original), passNode(part))) } get part(): ETSTypeReferencePart | undefined { @@ -49,4 +50,7 @@ export class ETSTypeReference extends TypeNode { } export function isETSTypeReference(node: AstNode): node is ETSTypeReference { return node instanceof ETSTypeReference +} +if (!nodeByType.has(71)) { + nodeByType.set(71, ETSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 9d33ec09b..6e6f029b6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,16 +36,16 @@ export class ETSTypeReferencePart extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReferencePart") } - static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart(global.context, passNode(name), passNode(typeParams), passNode(prev))) } - static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart(global.context, passNode(original), passNode(name), passNode(typeParams), passNode(prev))) } - static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart | undefined { + static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart1(global.context, passNode(name))) } - static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart | undefined { + static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart1(global.context, passNode(original), passNode(name))) } get previous(): ETSTypeReferencePart | undefined { @@ -65,4 +66,7 @@ export class ETSTypeReferencePart extends TypeNode { } export function isETSTypeReferencePart(node: AstNode): node is ETSTypeReferencePart { return node instanceof ETSTypeReferencePart +} +if (!nodeByType.has(72)) { + nodeByType.set(72, ETSTypeReferencePart) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index ac8aa77c6..967d6b175 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class ETSUndefinedType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUndefinedType") } - static createETSUndefinedType(): ETSUndefinedType | undefined { + static createETSUndefinedType(): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) } - static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType | undefined { + static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._UpdateETSUndefinedTypeIr(global.context, passNode(original))) } } export function isETSUndefinedType(node: AstNode): node is ETSUndefinedType { return node instanceof ETSUndefinedType +} +if (!nodeByType.has(63)) { + nodeByType.set(63, ETSUndefinedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index ab58232f1..4c84dd484 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class ETSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUnionType") } - static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._CreateETSUnionTypeIr(global.context, passNodeArray(types), typesLen)) } - static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._UpdateETSUnionTypeIr(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class ETSUnionType extends TypeNode { } export function isETSUnionType(node: AstNode): node is ETSUnionType { return node instanceof ETSUnionType +} +if (!nodeByType.has(73)) { + nodeByType.set(73, ETSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index ae5dbb3b4..c1ad2314d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class ETSWildcardType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSWildcardType") } - static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) } - static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._UpdateETSWildcardType(global.context, passNode(original), passNode(typeReference), flags)) } get typeReference(): ETSTypeReference | undefined { @@ -50,4 +51,7 @@ export class ETSWildcardType extends TypeNode { } export function isETSWildcardType(node: AstNode): node is ETSWildcardType { return node instanceof ETSWildcardType +} +if (!nodeByType.has(67)) { + nodeByType.set(67, ETSWildcardType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index a74af4e3a..d3dc1d031 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,13 +34,16 @@ export class EmptyStatement extends Statement { super(pointer) console.warn("Warning: stub node EmptyStatement") } - static createEmptyStatement(): EmptyStatement | undefined { + static createEmptyStatement(): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) } - static updateEmptyStatement(original?: EmptyStatement): EmptyStatement | undefined { + static updateEmptyStatement(original?: EmptyStatement): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._UpdateEmptyStatement(global.context, passNode(original))) } } export function isEmptyStatement(node: AstNode): node is EmptyStatement { return node instanceof EmptyStatement +} +if (!nodeByType.has(25)) { + nodeByType.set(25, EmptyStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index d827b1a94..43a236881 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ExportAllDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportAllDeclaration") } - static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._CreateExportAllDeclaration(global.context, passNode(source), passNode(exported))) } - static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._UpdateExportAllDeclaration(global.context, passNode(original), passNode(source), passNode(exported))) } get sourceConst(): StringLiteral | undefined { @@ -50,4 +51,7 @@ export class ExportAllDeclaration extends Statement { } export function isExportAllDeclaration(node: AstNode): node is ExportAllDeclaration { return node instanceof ExportAllDeclaration +} +if (!nodeByType.has(26)) { + nodeByType.set(26, ExportAllDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 4da8c11d4..8f0f43509 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,10 +34,10 @@ export class ExportDefaultDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportDefaultDeclaration") } - static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) } - static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._UpdateExportDefaultDeclaration(global.context, passNode(original), passNode(decl), exportEquals)) } get decl(): AstNode | undefined { @@ -51,4 +52,7 @@ export class ExportDefaultDeclaration extends Statement { } export function isExportDefaultDeclaration(node: AstNode): node is ExportDefaultDeclaration { return node instanceof ExportDefaultDeclaration +} +if (!nodeByType.has(27)) { + nodeByType.set(27, ExportDefaultDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index a90bb6bbd..d7f7a23db 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,22 +36,22 @@ export class ExportNamedDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportNamedDeclaration") } - static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) } - static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen)) } - static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration1(global.context, passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration1(global.context, passNode(original), passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration | undefined { + static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration2(global.context, passNode(decl))) } - static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration | undefined { + static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration2(global.context, passNode(original), passNode(decl))) } get declConst(): AstNode | undefined { @@ -65,4 +66,7 @@ export class ExportNamedDeclaration extends Statement { } export function isExportNamedDeclaration(node: AstNode): node is ExportNamedDeclaration { return node instanceof ExportNamedDeclaration +} +if (!nodeByType.has(28)) { + nodeByType.set(28, ExportNamedDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 382c89054..e5a2f111d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ExportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ExportSpecifier") } - static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._CreateExportSpecifier(global.context, passNode(local), passNode(exported))) } - static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._UpdateExportSpecifier(global.context, passNode(original), passNode(local), passNode(exported))) } get localConst(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ExportSpecifier extends Statement { } export function isExportSpecifier(node: AstNode): node is ExportSpecifier { return node instanceof ExportSpecifier +} +if (!nodeByType.has(29)) { + nodeByType.set(29, ExportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts index 29c10a05b..a10db93e7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index bbc0cfb2e..e5df62dc1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ExpressionStatement extends Statement { super(pointer) console.warn("Warning: stub node ExpressionStatement") } - static createExpressionStatement(expr?: Expression): ExpressionStatement | undefined { + static createExpressionStatement(expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) } - static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement | undefined { + static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._UpdateExpressionStatement(global.context, passNode(original), passNode(expr))) } get getExpressionConst(): Expression | undefined { @@ -49,4 +50,7 @@ export class ExpressionStatement extends Statement { } export function isExpressionStatement(node: AstNode): node is ExpressionStatement { return node instanceof ExpressionStatement +} +if (!nodeByType.has(30)) { + nodeByType.set(30, ExpressionStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts index 832fed72c..6bfbe4adf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -56,4 +57,7 @@ export class ForInStatement extends LoopStatement { } export function isForInStatement(node: AstNode): node is ForInStatement { return node instanceof ForInStatement +} +if (!nodeByType.has(31)) { + nodeByType.set(31, ForInStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts index affdb4ed3..cbde8c02a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForOfStatement extends LoopStatement { } export function isForOfStatement(node: AstNode): node is ForOfStatement { return node instanceof ForOfStatement +} +if (!nodeByType.has(32)) { + nodeByType.set(32, ForOfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts index 509fe7646..ad9600df4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForUpdateStatement extends LoopStatement { } export function isForUpdateStatement(node: AstNode): node is ForUpdateStatement { return node instanceof ForUpdateStatement +} +if (!nodeByType.has(33)) { + nodeByType.set(33, ForUpdateStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts index e11cd95f9..44d73ed8e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ScriptFunction } from "./ScriptFunction" diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index 2a71f9ee2..a1e8986a6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,16 +36,16 @@ export class FunctionDeclaration extends Statement { super(pointer) console.warn("Warning: stub node FunctionDeclaration") } - static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration(global.context, passNode(original), passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration1(global.context, passNode(func), isAnonymous)) } - static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration1(global.context, passNode(original), passNode(func), isAnonymous)) } get function(): ScriptFunction | undefined { @@ -65,4 +66,7 @@ export class FunctionDeclaration extends Statement { } export function isFunctionDeclaration(node: AstNode): node is FunctionDeclaration { return node instanceof FunctionDeclaration +} +if (!nodeByType.has(34)) { + nodeByType.set(34, FunctionDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 549488ee3..44ad0227a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,16 +36,16 @@ export class FunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node FunctionExpression") } - static createFunctionExpression(func?: ScriptFunction): FunctionExpression | undefined { + static createFunctionExpression(func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) } - static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression | undefined { + static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression1(global.context, passNode(namedExpr), passNode(func))) } - static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression1(global.context, passNode(original), passNode(namedExpr), passNode(func))) } get functionConst(): ScriptFunction | undefined { @@ -62,4 +63,7 @@ export class FunctionExpression extends Expression { } export function isFunctionExpression(node: AstNode): node is FunctionExpression { return node instanceof FunctionExpression +} +if (!nodeByType.has(35)) { + nodeByType.set(35, FunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 04b8cb47f..f1962692d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,22 +36,22 @@ export class Identifier extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node Identifier") } - static createIdentifier(): Identifier | undefined { + static createIdentifier(): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) } - static updateIdentifier(original?: Identifier): Identifier | undefined { + static updateIdentifier(original?: Identifier): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier(global.context, passNode(original))) } - static create1Identifier(name: string): Identifier | undefined { + static create1Identifier(name: string): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier1(global.context, name)) } - static update1Identifier(original: Identifier | undefined, name: string): Identifier | undefined { + static update1Identifier(original: Identifier | undefined, name: string): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier1(global.context, passNode(original), name)) } - static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier2(global.context, name, passNode(typeAnnotation))) } - static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier2(global.context, passNode(original), name, passNode(typeAnnotation))) } get nameConst(): string { @@ -101,4 +102,7 @@ export class Identifier extends AnnotatedExpression { } export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier +} +if (!nodeByType.has(36)) { + nodeByType.set(36, Identifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts index 688ea8080..e2c428239 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -55,4 +56,7 @@ export class IfStatement extends Statement { } export function isIfStatement(node: AstNode): node is IfStatement { return node instanceof IfStatement +} +if (!nodeByType.has(38)) { + nodeByType.set(38, IfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index 38a6ff2af..8426d022d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ImportDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ImportDeclaration") } - static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._CreateImportDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } - static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._UpdateImportDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } get sourceConst(): StringLiteral | undefined { @@ -59,4 +60,7 @@ export class ImportDeclaration extends Statement { } export function isImportDeclaration(node: AstNode): node is ImportDeclaration { return node instanceof ImportDeclaration +} +if (!nodeByType.has(39)) { + nodeByType.set(39, ImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 28d39da39..d0e1af481 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportDefaultSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportDefaultSpecifier") } - static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier | undefined { + static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) } - static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier | undefined { + static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._UpdateImportDefaultSpecifier(global.context, passNode(original), passNode(local))) } get localConst(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ImportDefaultSpecifier extends Statement { } export function isImportDefaultSpecifier(node: AstNode): node is ImportDefaultSpecifier { return node instanceof ImportDefaultSpecifier +} +if (!nodeByType.has(41)) { + nodeByType.set(41, ImportDefaultSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index 489f8b840..239332713 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ImportExpression extends Expression { super(pointer) console.warn("Warning: stub node ImportExpression") } - static createImportExpression(source?: Expression): ImportExpression | undefined { + static createImportExpression(source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) } - static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression | undefined { + static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._UpdateImportExpression(global.context, passNode(original), passNode(source))) } get source(): Expression | undefined { @@ -48,4 +49,7 @@ export class ImportExpression extends Expression { } export function isImportExpression(node: AstNode): node is ImportExpression { return node instanceof ImportExpression +} +if (!nodeByType.has(40)) { + nodeByType.set(40, ImportExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index b50dd642c..8f31b6bdd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportNamespaceSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportNamespaceSpecifier") } - static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier | undefined { + static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) } - static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier | undefined { + static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._UpdateImportNamespaceSpecifier(global.context, passNode(original), passNode(local))) } get local(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ImportNamespaceSpecifier extends Statement { } export function isImportNamespaceSpecifier(node: AstNode): node is ImportNamespaceSpecifier { return node instanceof ImportNamespaceSpecifier +} +if (!nodeByType.has(42)) { + nodeByType.set(42, ImportNamespaceSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 54ea216c9..ed85cc9ff 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportSpecifier") } - static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._CreateImportSpecifier(global.context, passNode(imported), passNode(local))) } - static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._UpdateImportSpecifier(global.context, passNode(original), passNode(imported), passNode(local))) } get imported(): Identifier | undefined { @@ -55,4 +56,7 @@ export class ImportSpecifier extends Statement { } export function isImportSpecifier(node: AstNode): node is ImportSpecifier { return node instanceof ImportSpecifier +} +if (!nodeByType.has(43)) { + nodeByType.set(43, ImportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts index 4bfb4ab11..53d42c93e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts index 255075d6e..04137ff53 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class LabelledStatement extends Statement { } export function isLabelledStatement(node: AstNode): node is LabelledStatement { return node instanceof LabelledStatement +} +if (!nodeByType.has(44)) { + nodeByType.set(44, LabelledStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts index 8b2a04106..1ea75b77c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts index 73b0ba804..b8e4df54c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts index 175973148..9269c8186 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index fc70b945f..f37fa993b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -35,10 +36,10 @@ export class MemberExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node MemberExpression") } - static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._CreateMemberExpression(global.context, passNode(object_arg), passNode(property), kind, computed, optional_arg)) } - static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._UpdateMemberExpression(global.context, passNode(original), passNode(object_arg), passNode(property), kind, computed, optional_arg)) } get object(): Expression | undefined { @@ -65,4 +66,7 @@ export class MemberExpression extends MaybeOptionalExpression { } export function isMemberExpression(node: AstNode): node is MemberExpression { return node instanceof MemberExpression +} +if (!nodeByType.has(45)) { + nodeByType.set(45, MemberExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index 6d02a0c56..4bb2da92c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class MetaProperty extends Expression { super(pointer) console.warn("Warning: stub node MetaProperty") } - static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) } - static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._UpdateMetaProperty(global.context, passNode(original), kind)) } get kindConst(): Es2pandaMetaPropertyKind { @@ -46,4 +47,7 @@ export class MetaProperty extends Expression { } export function isMetaProperty(node: AstNode): node is MetaProperty { return node instanceof MetaProperty +} +if (!nodeByType.has(46)) { + nodeByType.set(46, MetaProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index 502e8f193..060bfa53b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -36,10 +37,10 @@ export class MethodDefinition extends ClassElement { super(pointer) console.warn("Warning: stub node MethodDefinition") } - static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) } - static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._UpdateMethodDefinition(global.context, passNode(original), kind, passNode(key), passNode(value), modifiers, isComputed)) } get kindConst(): Es2pandaMethodDefinitionKind { @@ -69,4 +70,7 @@ export class MethodDefinition extends ClassElement { } export function isMethodDefinition(node: AstNode): node is MethodDefinition { return node instanceof MethodDefinition +} +if (!nodeByType.has(47)) { + nodeByType.set(47, MethodDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index a8060bb1b..c94085776 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class NamedType extends TypeNode { super(pointer) console.warn("Warning: stub node NamedType") } - static createNamedType(name?: Identifier): NamedType | undefined { + static createNamedType(name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) } - static updateNamedType(original?: NamedType, name?: Identifier): NamedType | undefined { + static updateNamedType(original?: NamedType, name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._UpdateNamedType(global.context, passNode(original), passNode(name))) } get nameConst(): Identifier | undefined { @@ -53,4 +54,7 @@ export class NamedType extends TypeNode { } export function isNamedType(node: AstNode): node is NamedType { return node instanceof NamedType +} +if (!nodeByType.has(48)) { + nodeByType.set(48, NamedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 1c43309d0..a303f11b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class NewExpression extends Expression { super(pointer) console.warn("Warning: stub node NewExpression") } - static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) } - static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._UpdateNewExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen)) } get calleeConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class NewExpression extends Expression { } export function isNewExpression(node: AstNode): node is NewExpression { return node instanceof NewExpression +} +if (!nodeByType.has(49)) { + nodeByType.set(49, NewExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index b61e7aa8c..138dca3e5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class NullLiteral extends Literal { super(pointer) console.warn("Warning: stub node NullLiteral") } - static createNullLiteral(): NullLiteral | undefined { + static createNullLiteral(): NullLiteral { return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) } - static updateNullLiteral(original?: NullLiteral): NullLiteral | undefined { + static updateNullLiteral(original?: NullLiteral): NullLiteral { return new NullLiteral(global.generatedEs2panda._UpdateNullLiteral(global.context, passNode(original))) } } export function isNullLiteral(node: AstNode): node is NullLiteral { return node instanceof NullLiteral +} +if (!nodeByType.has(50)) { + nodeByType.set(50, NullLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts index 0677d42de..25df8b1f0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -39,4 +40,7 @@ export class NumberLiteral extends Literal { } export function isNumberLiteral(node: AstNode): node is NumberLiteral { return node instanceof NumberLiteral +} +if (!nodeByType.has(52)) { + nodeByType.set(52, NumberLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts index 1c8e9eea7..5191506de 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index ec426f5fc..0b7bb2292 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class OmittedExpression extends Expression { super(pointer) console.warn("Warning: stub node OmittedExpression") } - static createOmittedExpression(): OmittedExpression | undefined { + static createOmittedExpression(): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) } - static updateOmittedExpression(original?: OmittedExpression): OmittedExpression | undefined { + static updateOmittedExpression(original?: OmittedExpression): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._UpdateOmittedExpression(global.context, passNode(original))) } } export function isOmittedExpression(node: AstNode): node is OmittedExpression { return node instanceof OmittedExpression +} +if (!nodeByType.has(53)) { + nodeByType.set(53, OmittedExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index 2dde8584e..402149a3b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class OpaqueTypeNode extends TypeNode { super(pointer) console.warn("Warning: stub node OpaqueTypeNode") } - static create1OpaqueTypeNode(): OpaqueTypeNode | undefined { + static create1OpaqueTypeNode(): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._CreateOpaqueTypeNode1(global.context)) } - static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode | undefined { + static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._UpdateOpaqueTypeNode1(global.context, passNode(original))) } } export function isOpaqueTypeNode(node: AstNode): node is OpaqueTypeNode { return node instanceof OpaqueTypeNode +} +if (!nodeByType.has(153)) { + nodeByType.set(153, OpaqueTypeNode) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 115f28cb4..0f0f3b40b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class PrefixAssertionExpression extends Expression { super(pointer) console.warn("Warning: stub node PrefixAssertionExpression") } - static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._CreatePrefixAssertionExpression(global.context, passNode(expr), passNode(type))) } - static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._UpdatePrefixAssertionExpression(global.context, passNode(original), passNode(expr), passNode(type))) } get exprConst(): Expression | undefined { @@ -49,4 +50,7 @@ export class PrefixAssertionExpression extends Expression { } export function isPrefixAssertionExpression(node: AstNode): node is PrefixAssertionExpression { return node instanceof PrefixAssertionExpression +} +if (!nodeByType.has(54)) { + nodeByType.set(54, PrefixAssertionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index 67f37e128..79ad82d32 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class Property extends Expression { super(pointer) console.warn("Warning: stub node Property") } - static createProperty(key?: Expression, value?: Expression): Property | undefined { + static createProperty(key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._CreateProperty(global.context, passNode(key), passNode(value))) } - static updateProperty(original?: Property, key?: Expression, value?: Expression): Property | undefined { + static updateProperty(original?: Property, key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._UpdateProperty(global.context, passNode(original), passNode(key), passNode(value))) } - static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._CreateProperty1(global.context, kind, passNode(key), passNode(value), isMethod, isComputed)) } - static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._UpdateProperty1(global.context, passNode(original), kind, passNode(key), passNode(value), isMethod, isComputed)) } get key(): Expression | undefined { @@ -76,4 +77,7 @@ export class Property extends Expression { } export function isProperty(node: AstNode): node is Property { return node instanceof Property +} +if (!nodeByType.has(55)) { + nodeByType.set(55, Property) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index 002fab298..e5d7aca88 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -34,10 +35,10 @@ export class RegExpLiteral extends Literal { super(pointer) console.warn("Warning: stub node RegExpLiteral") } - static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) } - static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._UpdateRegExpLiteral(global.context, passNode(original), pattern, flags, flagsStr)) } get patternConst(): string { @@ -49,4 +50,7 @@ export class RegExpLiteral extends Literal { } export function isRegExpLiteral(node: AstNode): node is RegExpLiteral { return node instanceof RegExpLiteral +} +if (!nodeByType.has(56)) { + nodeByType.set(56, RegExpLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index 6d416cdbe..066ed62b6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class ReturnStatement extends Statement { super(pointer) console.warn("Warning: stub node ReturnStatement") } - static createReturnStatement(): ReturnStatement | undefined { + static createReturnStatement(): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) } - static updateReturnStatement(original?: ReturnStatement): ReturnStatement | undefined { + static updateReturnStatement(original?: ReturnStatement): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement(global.context, passNode(original))) } - static create1ReturnStatement(argument?: Expression): ReturnStatement | undefined { + static create1ReturnStatement(argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement1(global.context, passNode(argument))) } - static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement | undefined { + static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement1(global.context, passNode(original), passNode(argument))) } get argument(): Expression | undefined { @@ -55,4 +56,7 @@ export class ReturnStatement extends Statement { } export function isReturnStatement(node: AstNode): node is ReturnStatement { return node instanceof ReturnStatement +} +if (!nodeByType.has(58)) { + nodeByType.set(58, ReturnStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index 062ae458e..ec0eff15a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Identifier } from "./Identifier" @@ -168,4 +169,7 @@ export class ScriptFunction extends AstNode { } export function isScriptFunction(node: AstNode): node is ScriptFunction { return node instanceof ScriptFunction +} +if (!nodeByType.has(59)) { + nodeByType.set(59, ScriptFunction) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index df3665420..db6bbc5e5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class SequenceExpression extends Expression { super(pointer) console.warn("Warning: stub node SequenceExpression") } - static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._CreateSequenceExpression(global.context, passNodeArray(sequence_arg), sequenceLen)) } - static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._UpdateSequenceExpression(global.context, passNode(original), passNodeArray(sequence_arg), sequenceLen)) } get sequenceConst(): readonly Expression[] { @@ -48,4 +49,7 @@ export class SequenceExpression extends Expression { } export function isSequenceExpression(node: AstNode): node is SequenceExpression { return node instanceof SequenceExpression +} +if (!nodeByType.has(60)) { + nodeByType.set(60, SequenceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts index 85b1a750c..b8b5489ec 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts index b3c39e95d..f1d2849fa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class Statement extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index cec3d65cd..877d51956 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,13 @@ export class StringLiteral extends Literal { super(pointer) console.warn("Warning: stub node StringLiteral") } - static updateStringLiteral(original?: StringLiteral): StringLiteral | undefined { + static updateStringLiteral(original?: StringLiteral): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral(global.context, passNode(original))) } - static create1StringLiteral(str: string): StringLiteral | undefined { + static create1StringLiteral(str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._CreateStringLiteral1(global.context, str)) } - static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral | undefined { + static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral1(global.context, passNode(original), str)) } get strConst(): string { @@ -48,4 +49,7 @@ export class StringLiteral extends Literal { } export function isStringLiteral(node: AstNode): node is StringLiteral { return node instanceof StringLiteral +} +if (!nodeByType.has(61)) { + nodeByType.set(61, StringLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index cfd0c78ca..7257a67a9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class SuperExpression extends Expression { super(pointer) console.warn("Warning: stub node SuperExpression") } - static createSuperExpression(): SuperExpression | undefined { + static createSuperExpression(): SuperExpression { return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) } - static updateSuperExpression(original?: SuperExpression): SuperExpression | undefined { + static updateSuperExpression(original?: SuperExpression): SuperExpression { return new SuperExpression(global.generatedEs2panda._UpdateSuperExpression(global.context, passNode(original))) } } export function isSuperExpression(node: AstNode): node is SuperExpression { return node instanceof SuperExpression +} +if (!nodeByType.has(82)) { + nodeByType.set(82, SuperExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts index 64bcdb304..a56fdb3cc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class SwitchCaseStatement extends Statement { } export function isSwitchCaseStatement(node: AstNode): node is SwitchCaseStatement { return node instanceof SwitchCaseStatement +} +if (!nodeByType.has(84)) { + nodeByType.set(84, SwitchCaseStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index 824fc4be8..e2dec7709 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class SwitchStatement extends Statement { super(pointer) console.warn("Warning: stub node SwitchStatement") } - static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) } - static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._UpdateSwitchStatement(global.context, passNode(original), passNode(discriminant), passNodeArray(cases), casesLen)) } get discriminantConst(): Expression | undefined { @@ -56,4 +57,7 @@ export class SwitchStatement extends Statement { } export function isSwitchStatement(node: AstNode): node is SwitchStatement { return node instanceof SwitchStatement +} +if (!nodeByType.has(85)) { + nodeByType.set(85, SwitchStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index a9e9bc5c4..0554e0ec0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSAnyKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSAnyKeyword") } - static createTSAnyKeyword(): TSAnyKeyword | undefined { + static createTSAnyKeyword(): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) } - static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword | undefined { + static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._UpdateTSAnyKeyword(global.context, passNode(original))) } } export function isTSAnyKeyword(node: AstNode): node is TSAnyKeyword { return node instanceof TSAnyKeyword +} +if (!nodeByType.has(90)) { + nodeByType.set(90, TSAnyKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index 7c08bd7bc..5b83f3e2e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSArrayType extends TypeNode { super(pointer) console.warn("Warning: stub node TSArrayType") } - static createTSArrayType(elementType?: TypeNode): TSArrayType | undefined { + static createTSArrayType(elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._CreateTSArrayType(global.context, passNode(elementType))) } - static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType | undefined { + static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._UpdateTSArrayType(global.context, passNode(original), passNode(elementType))) } get elementTypeConst(): TypeNode | undefined { @@ -45,4 +46,7 @@ export class TSArrayType extends TypeNode { } export function isTSArrayType(node: AstNode): node is TSArrayType { return node instanceof TSArrayType +} +if (!nodeByType.has(101)) { + nodeByType.set(101, TSArrayType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 6d892689c..e2e94a689 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,10 +36,10 @@ export class TSAsExpression extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSAsExpression") } - static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._CreateTSAsExpression(global.context, passNode(expression), passNode(typeAnnotation), isConst)) } - static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._UpdateTSAsExpression(global.context, passNode(original), passNode(expression), passNode(typeAnnotation), isConst)) } get exprConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TSAsExpression extends AnnotatedExpression { } export function isTSAsExpression(node: AstNode): node is TSAsExpression { return node instanceof TSAsExpression +} +if (!nodeByType.has(137)) { + nodeByType.set(137, TSAsExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 5c5e0204e..7b09d8a02 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSBigintKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBigintKeyword") } - static createTSBigintKeyword(): TSBigintKeyword | undefined { + static createTSBigintKeyword(): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) } - static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword | undefined { + static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._UpdateTSBigintKeyword(global.context, passNode(original))) } } export function isTSBigintKeyword(node: AstNode): node is TSBigintKeyword { return node instanceof TSBigintKeyword +} +if (!nodeByType.has(97)) { + nodeByType.set(97, TSBigintKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 25fd5d2b4..f5310ed5f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSBooleanKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBooleanKeyword") } - static createTSBooleanKeyword(): TSBooleanKeyword | undefined { + static createTSBooleanKeyword(): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) } - static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword | undefined { + static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._UpdateTSBooleanKeyword(global.context, passNode(original))) } } export function isTSBooleanKeyword(node: AstNode): node is TSBooleanKeyword { return node instanceof TSBooleanKeyword +} +if (!nodeByType.has(92)) { + nodeByType.set(92, TSBooleanKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index a5e43b62a..2580d32a6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class TSClassImplements extends Expression { super(pointer) console.warn("Warning: stub node TSClassImplements") } - static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements(global.context, passNode(expression), passNode(typeParameters))) } - static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements(global.context, passNode(original), passNode(expression), passNode(typeParameters))) } - static create1TSClassImplements(expression?: Expression): TSClassImplements | undefined { + static create1TSClassImplements(expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements1(global.context, passNode(expression))) } - static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements | undefined { + static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements1(global.context, passNode(original), passNode(expression))) } get expr(): Expression | undefined { @@ -58,4 +59,7 @@ export class TSClassImplements extends Expression { } export function isTSClassImplements(node: AstNode): node is TSClassImplements { return node instanceof TSClassImplements +} +if (!nodeByType.has(138)) { + nodeByType.set(138, TSClassImplements) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index 21f9982bd..d65e3496c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSConditionalType extends TypeNode { super(pointer) console.warn("Warning: stub node TSConditionalType") } - static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._CreateTSConditionalType(global.context, passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } - static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._UpdateTSConditionalType(global.context, passNode(original), passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } get checkTypeConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSConditionalType extends TypeNode { } export function isTSConditionalType(node: AstNode): node is TSConditionalType { return node instanceof TSConditionalType +} +if (!nodeByType.has(110)) { + nodeByType.set(110, TSConditionalType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts index eeb36fa8a..daf1cc754 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -56,4 +57,7 @@ export class TSConstructorType extends TypeNode { } export function isTSConstructorType(node: AstNode): node is TSConstructorType { return node instanceof TSConstructorType +} +if (!nodeByType.has(125)) { + nodeByType.set(125, TSConstructorType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index d02c58204..a53d96c14 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -36,10 +37,10 @@ export class TSEnumDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSEnumDeclaration") } - static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._CreateTSEnumDeclaration(global.context, passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } - static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._UpdateTSEnumDeclaration(global.context, passNode(original), passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } get keyConst(): Identifier | undefined { @@ -66,4 +67,7 @@ export class TSEnumDeclaration extends TypedStatement { } export function isTSEnumDeclaration(node: AstNode): node is TSEnumDeclaration { return node instanceof TSEnumDeclaration +} +if (!nodeByType.has(86)) { + nodeByType.set(86, TSEnumDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 30fd92c70..2dada9d1d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class TSEnumMember extends Statement { super(pointer) console.warn("Warning: stub node TSEnumMember") } - static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember | undefined { + static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember(global.context, passNode(key), passNode(init))) } - static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember | undefined { + static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember(global.context, passNode(original), passNode(key), passNode(init))) } - static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember1(global.context, passNode(key), passNode(init), isGenerated)) } - static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember1(global.context, passNode(original), passNode(key), passNode(init), isGenerated)) } get keyConst(): Expression | undefined { @@ -64,4 +65,7 @@ export class TSEnumMember extends Statement { } export function isTSEnumMember(node: AstNode): node is TSEnumMember { return node instanceof TSEnumMember +} +if (!nodeByType.has(87)) { + nodeByType.set(87, TSEnumMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index 68f06199e..09292e1a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSExternalModuleReference extends Expression { super(pointer) console.warn("Warning: stub node TSExternalModuleReference") } - static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference | undefined { + static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) } - static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference | undefined { + static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._UpdateTSExternalModuleReference(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class TSExternalModuleReference extends Expression { } export function isTSExternalModuleReference(node: AstNode): node is TSExternalModuleReference { return node instanceof TSExternalModuleReference +} +if (!nodeByType.has(88)) { + nodeByType.set(88, TSExternalModuleReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts index a69de43ee..aa112e1bf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -53,4 +54,7 @@ export class TSFunctionType extends TypeNode { } export function isTSFunctionType(node: AstNode): node is TSFunctionType { return node instanceof TSFunctionType +} +if (!nodeByType.has(124)) { + nodeByType.set(124, TSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 15d089924..4439807d1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class TSImportEqualsDeclaration extends Statement { super(pointer) console.warn("Warning: stub node TSImportEqualsDeclaration") } - static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) } - static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._UpdateTSImportEqualsDeclaration(global.context, passNode(original), passNode(id), passNode(moduleReference), isExport)) } get idConst(): Identifier | undefined { @@ -53,4 +54,7 @@ export class TSImportEqualsDeclaration extends Statement { } export function isTSImportEqualsDeclaration(node: AstNode): node is TSImportEqualsDeclaration { return node instanceof TSImportEqualsDeclaration +} +if (!nodeByType.has(123)) { + nodeByType.set(123, TSImportEqualsDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index d3baf27b2..01cce7661 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSImportType extends TypeNode { super(pointer) console.warn("Warning: stub node TSImportType") } - static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } - static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._UpdateTSImportType(global.context, passNode(original), passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } get paramConst(): Expression | undefined { @@ -56,4 +57,7 @@ export class TSImportType extends TypeNode { } export function isTSImportType(node: AstNode): node is TSImportType { return node instanceof TSImportType +} +if (!nodeByType.has(111)) { + nodeByType.set(111, TSImportType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index 929d213b3..cc1ae8a70 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -35,10 +36,10 @@ export class TSIndexSignature extends TypedAstNode { super(pointer) console.warn("Warning: stub node TSIndexSignature") } - static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._CreateTSIndexSignature(global.context, passNode(param), passNode(typeAnnotation), readonly_arg)) } - static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._UpdateTSIndexSignature(global.context, passNode(original), passNode(param), passNode(typeAnnotation), readonly_arg)) } get paramConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TSIndexSignature extends TypedAstNode { } export function isTSIndexSignature(node: AstNode): node is TSIndexSignature { return node instanceof TSIndexSignature +} +if (!nodeByType.has(135)) { + nodeByType.set(135, TSIndexSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index f1792697d..3a4735dc7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSIndexedAccessType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIndexedAccessType") } - static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._CreateTSIndexedAccessType(global.context, passNode(objectType), passNode(indexType))) } - static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._UpdateTSIndexedAccessType(global.context, passNode(original), passNode(objectType), passNode(indexType))) } get objectTypeConst(): TypeNode | undefined { @@ -48,4 +49,7 @@ export class TSIndexedAccessType extends TypeNode { } export function isTSIndexedAccessType(node: AstNode): node is TSIndexedAccessType { return node instanceof TSIndexedAccessType +} +if (!nodeByType.has(129)) { + nodeByType.set(129, TSIndexedAccessType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index f0b45fdbf..fd155eb76 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSInferType extends TypeNode { super(pointer) console.warn("Warning: stub node TSInferType") } - static createTSInferType(typeParam?: TSTypeParameter): TSInferType | undefined { + static createTSInferType(typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) } - static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType | undefined { + static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._UpdateTSInferType(global.context, passNode(original), passNode(typeParam))) } get typeParamConst(): TSTypeParameter | undefined { @@ -46,4 +47,7 @@ export class TSInferType extends TypeNode { } export function isTSInferType(node: AstNode): node is TSInferType { return node instanceof TSInferType +} +if (!nodeByType.has(109)) { + nodeByType.set(109, TSInferType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index 284f28809..73133678f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSInterfaceBody extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceBody") } - static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) } - static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._UpdateTSInterfaceBody(global.context, passNode(original), passNodeArray(body), bodyLen)) } get bodyPtr(): readonly AstNode[] { @@ -51,4 +52,7 @@ export class TSInterfaceBody extends Expression { } export function isTSInterfaceBody(node: AstNode): node is TSInterfaceBody { return node instanceof TSInterfaceBody +} +if (!nodeByType.has(131)) { + nodeByType.set(131, TSInterfaceBody) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index f9bea7253..d015665ef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -40,10 +41,10 @@ export class TSInterfaceDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSInterfaceDeclaration") } - static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } - static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._UpdateTSInterfaceDeclaration(global.context, passNode(original), passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } get body(): TSInterfaceBody | undefined { @@ -97,4 +98,7 @@ export class TSInterfaceDeclaration extends TypedStatement { } export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { return node instanceof TSInterfaceDeclaration +} +if (!nodeByType.has(130)) { + nodeByType.set(130, TSInterfaceDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index d7b633693..8e59d11af 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSInterfaceHeritage extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceHeritage") } - static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage | undefined { + static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._CreateTSInterfaceHeritage(global.context, passNode(expr))) } - static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage | undefined { + static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._UpdateTSInterfaceHeritage(global.context, passNode(original), passNode(expr))) } get expr(): TypeNode | undefined { @@ -49,4 +50,7 @@ export class TSInterfaceHeritage extends Expression { } export function isTSInterfaceHeritage(node: AstNode): node is TSInterfaceHeritage { return node instanceof TSInterfaceHeritage +} +if (!nodeByType.has(132)) { + nodeByType.set(132, TSInterfaceHeritage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index e3cc6b959..b4f380718 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSIntersectionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIntersectionType") } - static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) } - static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._UpdateTSIntersectionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly Expression[] { @@ -46,4 +47,7 @@ export class TSIntersectionType extends TypeNode { } export function isTSIntersectionType(node: AstNode): node is TSIntersectionType { return node instanceof TSIntersectionType +} +if (!nodeByType.has(112)) { + nodeByType.set(112, TSIntersectionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index 558cbcc67..514a5e1b8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSLiteralType extends TypeNode { super(pointer) console.warn("Warning: stub node TSLiteralType") } - static createTSLiteralType(literal?: Expression): TSLiteralType | undefined { + static createTSLiteralType(literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) } - static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType | undefined { + static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._UpdateTSLiteralType(global.context, passNode(original), passNode(literal))) } get literalConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSLiteralType extends TypeNode { } export function isTSLiteralType(node: AstNode): node is TSLiteralType { return node instanceof TSLiteralType +} +if (!nodeByType.has(108)) { + nodeByType.set(108, TSLiteralType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 4bec564d2..df7036c68 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSMappedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSMappedType") } - static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._CreateTSMappedType(global.context, passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } - static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._UpdateTSMappedType(global.context, passNode(original), passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } get typeParameter(): TSTypeParameter | undefined { @@ -56,4 +57,7 @@ export class TSMappedType extends TypeNode { } export function isTSMappedType(node: AstNode): node is TSMappedType { return node instanceof TSMappedType +} +if (!nodeByType.has(113)) { + nodeByType.set(113, TSMappedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts index 96072c65e..cb1219662 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -65,4 +66,7 @@ export class TSMethodSignature extends AstNode { } export function isTSMethodSignature(node: AstNode): node is TSMethodSignature { return node instanceof TSMethodSignature +} +if (!nodeByType.has(105)) { + nodeByType.set(105, TSMethodSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts index dd276c788..99b04712e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -39,4 +40,7 @@ export class TSModuleBlock extends Statement { } export function isTSModuleBlock(node: AstNode): node is TSModuleBlock { return node instanceof TSModuleBlock +} +if (!nodeByType.has(114)) { + nodeByType.set(114, TSModuleBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts index 98adfc7cc..6dd73bc7e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class TSModuleDeclaration extends Statement { } export function isTSModuleDeclaration(node: AstNode): node is TSModuleDeclaration { return node instanceof TSModuleDeclaration +} +if (!nodeByType.has(122)) { + nodeByType.set(122, TSModuleDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index b7d1d4663..d71cc25a2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSNamedTupleMember extends TypeNode { super(pointer) console.warn("Warning: stub node TSNamedTupleMember") } - static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._CreateTSNamedTupleMember(global.context, passNode(label), passNode(elementType), optional_arg)) } - static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._UpdateTSNamedTupleMember(global.context, passNode(original), passNode(label), passNode(elementType), optional_arg)) } get labelConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSNamedTupleMember extends TypeNode { } export function isTSNamedTupleMember(node: AstNode): node is TSNamedTupleMember { return node instanceof TSNamedTupleMember +} +if (!nodeByType.has(134)) { + nodeByType.set(134, TSNamedTupleMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index f5dff1d60..61a9a3eb2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNeverKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNeverKeyword") } - static createTSNeverKeyword(): TSNeverKeyword | undefined { + static createTSNeverKeyword(): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) } - static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword | undefined { + static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._UpdateTSNeverKeyword(global.context, passNode(original))) } } export function isTSNeverKeyword(node: AstNode): node is TSNeverKeyword { return node instanceof TSNeverKeyword +} +if (!nodeByType.has(98)) { + nodeByType.set(98, TSNeverKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index c349ead31..a154667c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSNonNullExpression extends Expression { super(pointer) console.warn("Warning: stub node TSNonNullExpression") } - static createTSNonNullExpression(expr?: Expression): TSNonNullExpression | undefined { + static createTSNonNullExpression(expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) } - static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression | undefined { + static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._UpdateTSNonNullExpression(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class TSNonNullExpression extends Expression { } export function isTSNonNullExpression(node: AstNode): node is TSNonNullExpression { return node instanceof TSNonNullExpression +} +if (!nodeByType.has(99)) { + nodeByType.set(99, TSNonNullExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index fdb0363c9..a338f0527 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNullKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNullKeyword") } - static createTSNullKeyword(): TSNullKeyword | undefined { + static createTSNullKeyword(): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) } - static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword | undefined { + static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._UpdateTSNullKeyword(global.context, passNode(original))) } } export function isTSNullKeyword(node: AstNode): node is TSNullKeyword { return node instanceof TSNullKeyword +} +if (!nodeByType.has(100)) { + nodeByType.set(100, TSNullKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 14c7a45c0..ef48ea57c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNumberKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNumberKeyword") } - static createTSNumberKeyword(): TSNumberKeyword | undefined { + static createTSNumberKeyword(): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) } - static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword | undefined { + static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._UpdateTSNumberKeyword(global.context, passNode(original))) } } export function isTSNumberKeyword(node: AstNode): node is TSNumberKeyword { return node instanceof TSNumberKeyword +} +if (!nodeByType.has(89)) { + nodeByType.set(89, TSNumberKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index ee05fa504..f8bfb3d1e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSObjectKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSObjectKeyword") } - static createTSObjectKeyword(): TSObjectKeyword | undefined { + static createTSObjectKeyword(): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) } - static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword | undefined { + static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._UpdateTSObjectKeyword(global.context, passNode(original))) } } export function isTSObjectKeyword(node: AstNode): node is TSObjectKeyword { return node instanceof TSObjectKeyword +} +if (!nodeByType.has(96)) { + nodeByType.set(96, TSObjectKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index 4206b7b5c..18d1991d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSParameterProperty extends Expression { super(pointer) console.warn("Warning: stub node TSParameterProperty") } - static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._CreateTSParameterProperty(global.context, accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } - static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._UpdateTSParameterProperty(global.context, passNode(original), accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } get accessibilityConst(): Es2pandaAccessibilityOption { @@ -58,4 +59,7 @@ export class TSParameterProperty extends Expression { } export function isTSParameterProperty(node: AstNode): node is TSParameterProperty { return node instanceof TSParameterProperty +} +if (!nodeByType.has(121)) { + nodeByType.set(121, TSParameterProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 1e091bef9..cdfc0257e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSParenthesizedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSParenthesizedType") } - static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType | undefined { + static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._CreateTSParenthesizedType(global.context, passNode(type))) } - static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType | undefined { + static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._UpdateTSParenthesizedType(global.context, passNode(original), passNode(type))) } get typeConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSParenthesizedType extends TypeNode { } export function isTSParenthesizedType(node: AstNode): node is TSParenthesizedType { return node instanceof TSParenthesizedType +} +if (!nodeByType.has(107)) { + nodeByType.set(107, TSParenthesizedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index d14000f2a..fb9f0eead 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedAstNode } from "./AnnotatedAstNode" @@ -35,10 +36,10 @@ export class TSPropertySignature extends AnnotatedAstNode { super(pointer) console.warn("Warning: stub node TSPropertySignature") } - static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._CreateTSPropertySignature(global.context, passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } - static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._UpdateTSPropertySignature(global.context, passNode(original), passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } get keyConst(): Expression | undefined { @@ -62,4 +63,7 @@ export class TSPropertySignature extends AnnotatedAstNode { } export function isTSPropertySignature(node: AstNode): node is TSPropertySignature { return node instanceof TSPropertySignature +} +if (!nodeByType.has(104)) { + nodeByType.set(104, TSPropertySignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index d7c41cff3..8a23a4275 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSQualifiedName extends Expression { super(pointer) console.warn("Warning: stub node TSQualifiedName") } - static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._CreateTSQualifiedName(global.context, passNode(left), passNode(right))) } - static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._UpdateTSQualifiedName(global.context, passNode(original), passNode(left), passNode(right))) } get leftConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSQualifiedName extends Expression { } export function isTSQualifiedName(node: AstNode): node is TSQualifiedName { return node instanceof TSQualifiedName +} +if (!nodeByType.has(128)) { + nodeByType.set(128, TSQualifiedName) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts index 4fc3e85cb..8f3335b4a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -58,4 +59,7 @@ export class TSSignatureDeclaration extends TypedAstNode { } export function isTSSignatureDeclaration(node: AstNode): node is TSSignatureDeclaration { return node instanceof TSSignatureDeclaration +} +if (!nodeByType.has(106)) { + nodeByType.set(106, TSSignatureDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index 6638b1b3e..e0e7a8ac2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSStringKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSStringKeyword") } - static createTSStringKeyword(): TSStringKeyword | undefined { + static createTSStringKeyword(): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) } - static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword | undefined { + static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._UpdateTSStringKeyword(global.context, passNode(original))) } } export function isTSStringKeyword(node: AstNode): node is TSStringKeyword { return node instanceof TSStringKeyword +} +if (!nodeByType.has(91)) { + nodeByType.set(91, TSStringKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index c5a813ea9..f41c0b7f1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSThisType extends TypeNode { super(pointer) console.warn("Warning: stub node TSThisType") } - static createTSThisType(): TSThisType | undefined { + static createTSThisType(): TSThisType { return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) } - static updateTSThisType(original?: TSThisType): TSThisType | undefined { + static updateTSThisType(original?: TSThisType): TSThisType { return new TSThisType(global.generatedEs2panda._UpdateTSThisType(global.context, passNode(original))) } } export function isTSThisType(node: AstNode): node is TSThisType { return node instanceof TSThisType +} +if (!nodeByType.has(115)) { + nodeByType.set(115, TSThisType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index f780da746..4189b9d06 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSTupleType extends TypeNode { super(pointer) console.warn("Warning: stub node TSTupleType") } - static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._CreateTSTupleType(global.context, passNodeArray(elementTypes), elementTypesLen)) } - static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._UpdateTSTupleType(global.context, passNode(original), passNodeArray(elementTypes), elementTypesLen)) } get elementTypeConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class TSTupleType extends TypeNode { } export function isTSTupleType(node: AstNode): node is TSTupleType { return node instanceof TSTupleType +} +if (!nodeByType.has(133)) { + nodeByType.set(133, TSTupleType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index cc5654dfb..e9ff06a0f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedStatement } from "./AnnotatedStatement" @@ -38,16 +39,16 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { super(pointer) console.warn("Warning: stub node TSTypeAliasDeclaration") } - static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration(global.context, passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration(global.context, passNode(original), passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration | undefined { + static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration1(global.context, passNode(id))) } - static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration | undefined { + static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration1(global.context, passNode(original), passNode(id))) } get id(): Identifier | undefined { @@ -74,4 +75,7 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { } export function isTSTypeAliasDeclaration(node: AstNode): node is TSTypeAliasDeclaration { return node instanceof TSTypeAliasDeclaration +} +if (!nodeByType.has(126)) { + nodeByType.set(126, TSTypeAliasDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 8d1915b7d..ad6d47764 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,10 +36,10 @@ export class TSTypeAssertion extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSTypeAssertion") } - static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._CreateTSTypeAssertion(global.context, passNode(typeAnnotation), passNode(expression))) } - static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._UpdateTSTypeAssertion(global.context, passNode(original), passNode(typeAnnotation), passNode(expression))) } get getExpressionConst(): Expression | undefined { @@ -50,4 +51,7 @@ export class TSTypeAssertion extends AnnotatedExpression { } export function isTSTypeAssertion(node: AstNode): node is TSTypeAssertion { return node instanceof TSTypeAssertion +} +if (!nodeByType.has(139)) { + nodeByType.set(139, TSTypeAssertion) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index db04fb73b..0f66760cf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSTypeLiteral extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeLiteral") } - static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) } - static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._UpdateTSTypeLiteral(global.context, passNode(original), passNodeArray(members), membersLen)) } get membersConst(): readonly AstNode[] { @@ -45,4 +46,7 @@ export class TSTypeLiteral extends TypeNode { } export function isTSTypeLiteral(node: AstNode): node is TSTypeLiteral { return node instanceof TSTypeLiteral +} +if (!nodeByType.has(103)) { + nodeByType.set(103, TSTypeLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 0245e44c4..c69211c1d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypeOperator extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeOperator") } - static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._CreateTSTypeOperator(global.context, passNode(type), operatorType)) } - static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._UpdateTSTypeOperator(global.context, passNode(original), passNode(type), operatorType)) } get typeConst(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class TSTypeOperator extends TypeNode { } export function isTSTypeOperator(node: AstNode): node is TSTypeOperator { return node instanceof TSTypeOperator +} +if (!nodeByType.has(116)) { + nodeByType.set(116, TSTypeOperator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index df61b3d5e..69d217e48 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -37,16 +38,16 @@ export class TSTypeParameter extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameter") } - static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter(global.context, passNode(name), passNode(constraint), passNode(defaultType))) } - static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType))) } - static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter1(global.context, passNode(name), passNode(constraint), passNode(defaultType), flags)) } - static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter1(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType), flags)) } get nameConst(): Identifier | undefined { @@ -73,4 +74,7 @@ export class TSTypeParameter extends Expression { } export function isTSTypeParameter(node: AstNode): node is TSTypeParameter { return node instanceof TSTypeParameter +} +if (!nodeByType.has(117)) { + nodeByType.set(117, TSTypeParameter) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 649b62924..2be0b6bff 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSTypeParameterDeclaration extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterDeclaration") } - static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._CreateTSTypeParameterDeclaration(global.context, passNodeArray(params), paramsLen, requiredParams)) } - static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._UpdateTSTypeParameterDeclaration(global.context, passNode(original), passNodeArray(params), paramsLen, requiredParams)) } get paramsConst(): readonly TSTypeParameter[] { @@ -49,4 +50,7 @@ export class TSTypeParameterDeclaration extends Expression { } export function isTSTypeParameterDeclaration(node: AstNode): node is TSTypeParameterDeclaration { return node instanceof TSTypeParameterDeclaration +} +if (!nodeByType.has(118)) { + nodeByType.set(118, TSTypeParameterDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index bb571ed29..faeb4299a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSTypeParameterInstantiation extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterInstantiation") } - static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._CreateTSTypeParameterInstantiation(global.context, passNodeArray(params), paramsLen)) } - static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._UpdateTSTypeParameterInstantiation(global.context, passNode(original), passNodeArray(params), paramsLen)) } get paramsConst(): readonly TypeNode[] { @@ -46,4 +47,7 @@ export class TSTypeParameterInstantiation extends Expression { } export function isTSTypeParameterInstantiation(node: AstNode): node is TSTypeParameterInstantiation { return node instanceof TSTypeParameterInstantiation +} +if (!nodeByType.has(119)) { + nodeByType.set(119, TSTypeParameterInstantiation) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 0af99af29..5c605d795 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypePredicate extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypePredicate") } - static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._CreateTSTypePredicate(global.context, passNode(parameterName), passNode(typeAnnotation), asserts)) } - static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._UpdateTSTypePredicate(global.context, passNode(original), passNode(parameterName), passNode(typeAnnotation), asserts)) } get parameterNameConst(): Expression | undefined { @@ -52,4 +53,7 @@ export class TSTypePredicate extends TypeNode { } export function isTSTypePredicate(node: AstNode): node is TSTypePredicate { return node instanceof TSTypePredicate +} +if (!nodeByType.has(120)) { + nodeByType.set(120, TSTypePredicate) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index e4be5cc26..8cc40264c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypeQuery extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeQuery") } - static createTSTypeQuery(exprName?: Expression): TSTypeQuery | undefined { + static createTSTypeQuery(exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) } - static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery | undefined { + static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._UpdateTSTypeQuery(global.context, passNode(original), passNode(exprName))) } get exprNameConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSTypeQuery extends TypeNode { } export function isTSTypeQuery(node: AstNode): node is TSTypeQuery { return node instanceof TSTypeQuery +} +if (!nodeByType.has(136)) { + nodeByType.set(136, TSTypeQuery) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index 286229070..53215db15 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeReference") } - static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._CreateTSTypeReference(global.context, passNode(typeName), passNode(typeParams))) } - static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._UpdateTSTypeReference(global.context, passNode(original), passNode(typeName), passNode(typeParams))) } get typeParamsConst(): TSTypeParameterInstantiation | undefined { @@ -50,4 +51,7 @@ export class TSTypeReference extends TypeNode { } export function isTSTypeReference(node: AstNode): node is TSTypeReference { return node instanceof TSTypeReference +} +if (!nodeByType.has(127)) { + nodeByType.set(127, TSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 617f53697..895f5f82c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSUndefinedKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUndefinedKeyword") } - static createTSUndefinedKeyword(): TSUndefinedKeyword | undefined { + static createTSUndefinedKeyword(): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) } - static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword | undefined { + static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._UpdateTSUndefinedKeyword(global.context, passNode(original))) } } export function isTSUndefinedKeyword(node: AstNode): node is TSUndefinedKeyword { return node instanceof TSUndefinedKeyword +} +if (!nodeByType.has(94)) { + nodeByType.set(94, TSUndefinedKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index 7602a8fbe..9b696f94c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnionType") } - static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._CreateTSUnionType(global.context, passNodeArray(types), typesLen)) } - static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._UpdateTSUnionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class TSUnionType extends TypeNode { } export function isTSUnionType(node: AstNode): node is TSUnionType { return node instanceof TSUnionType +} +if (!nodeByType.has(102)) { + nodeByType.set(102, TSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 0b4030231..b7d88e15b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSUnknownKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnknownKeyword") } - static createTSUnknownKeyword(): TSUnknownKeyword | undefined { + static createTSUnknownKeyword(): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) } - static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword | undefined { + static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._UpdateTSUnknownKeyword(global.context, passNode(original))) } } export function isTSUnknownKeyword(node: AstNode): node is TSUnknownKeyword { return node instanceof TSUnknownKeyword +} +if (!nodeByType.has(95)) { + nodeByType.set(95, TSUnknownKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 392412c70..8197ebb73 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSVoidKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSVoidKeyword") } - static createTSVoidKeyword(): TSVoidKeyword | undefined { + static createTSVoidKeyword(): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) } - static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword | undefined { + static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._UpdateTSVoidKeyword(global.context, passNode(original))) } } export function isTSVoidKeyword(node: AstNode): node is TSVoidKeyword { return node instanceof TSVoidKeyword +} +if (!nodeByType.has(93)) { + nodeByType.set(93, TSVoidKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 991244956..00cd6f6dc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,10 +36,10 @@ export class TaggedTemplateExpression extends Expression { super(pointer) console.warn("Warning: stub node TaggedTemplateExpression") } - static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._CreateTaggedTemplateExpression(global.context, passNode(tag), passNode(quasi), passNode(typeParams))) } - static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._UpdateTaggedTemplateExpression(global.context, passNode(original), passNode(tag), passNode(quasi), passNode(typeParams))) } get tagConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TaggedTemplateExpression extends Expression { } export function isTaggedTemplateExpression(node: AstNode): node is TaggedTemplateExpression { return node instanceof TaggedTemplateExpression +} +if (!nodeByType.has(140)) { + nodeByType.set(140, TaggedTemplateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index 0d505f70f..cb05a99e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,16 +34,16 @@ export class TemplateElement extends Expression { super(pointer) console.warn("Warning: stub node TemplateElement") } - static createTemplateElement(): TemplateElement | undefined { + static createTemplateElement(): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) } - static updateTemplateElement(original?: TemplateElement): TemplateElement | undefined { + static updateTemplateElement(original?: TemplateElement): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement(global.context, passNode(original))) } - static create1TemplateElement(raw: string, cooked: string): TemplateElement | undefined { + static create1TemplateElement(raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement1(global.context, raw, cooked)) } - static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement | undefined { + static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement1(global.context, passNode(original), raw, cooked)) } get rawConst(): string { @@ -54,4 +55,7 @@ export class TemplateElement extends Expression { } export function isTemplateElement(node: AstNode): node is TemplateElement { return node instanceof TemplateElement +} +if (!nodeByType.has(141)) { + nodeByType.set(141, TemplateElement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index 952583ba0..227569f5d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TemplateLiteral extends Expression { super(pointer) console.warn("Warning: stub node TemplateLiteral") } - static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._CreateTemplateLiteral(global.context, passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } - static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._UpdateTemplateLiteral(global.context, passNode(original), passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } get quasisConst(): readonly TemplateElement[] { @@ -49,4 +50,7 @@ export class TemplateLiteral extends Expression { } export function isTemplateLiteral(node: AstNode): node is TemplateLiteral { return node instanceof TemplateLiteral +} +if (!nodeByType.has(142)) { + nodeByType.set(142, TemplateLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 28563e464..d622b5e56 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class ThisExpression extends Expression { super(pointer) console.warn("Warning: stub node ThisExpression") } - static createThisExpression(): ThisExpression | undefined { + static createThisExpression(): ThisExpression { return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) } - static updateThisExpression(original?: ThisExpression): ThisExpression | undefined { + static updateThisExpression(original?: ThisExpression): ThisExpression { return new ThisExpression(global.generatedEs2panda._UpdateThisExpression(global.context, passNode(original))) } } export function isThisExpression(node: AstNode): node is ThisExpression { return node instanceof ThisExpression +} +if (!nodeByType.has(143)) { + nodeByType.set(143, ThisExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index c2468f34c..46ece221f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ThrowStatement extends Statement { super(pointer) console.warn("Warning: stub node ThrowStatement") } - static createThrowStatement(argument?: Expression): ThrowStatement | undefined { + static createThrowStatement(argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) } - static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement | undefined { + static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._UpdateThrowStatement(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class ThrowStatement extends Statement { } export function isThrowStatement(node: AstNode): node is ThrowStatement { return node instanceof ThrowStatement +} +if (!nodeByType.has(145)) { + nodeByType.set(145, ThrowStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts index cbf22f6dc..b790a1d19 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -53,4 +54,7 @@ export class TryStatement extends Statement { } export function isTryStatement(node: AstNode): node is TryStatement { return node instanceof TryStatement +} +if (!nodeByType.has(146)) { + nodeByType.set(146, TryStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts index bd893051b..789c66b72 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts index a93cec213..2e9212727 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class TypedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts index f277f2845..d3efbbbab 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index e12144926..541ef9675 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TypeofExpression extends Expression { super(pointer) console.warn("Warning: stub node TypeofExpression") } - static createTypeofExpression(argument?: Expression): TypeofExpression | undefined { + static createTypeofExpression(argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) } - static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression | undefined { + static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._UpdateTypeofExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class TypeofExpression extends Expression { } export function isTypeofExpression(node: AstNode): node is TypeofExpression { return node instanceof TypeofExpression +} +if (!nodeByType.has(144)) { + nodeByType.set(144, TypeofExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index 3664948fc..d0ab980f3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class UnaryExpression extends Expression { super(pointer) console.warn("Warning: stub node UnaryExpression") } - static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) } - static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._UpdateUnaryExpression(global.context, passNode(original), passNode(argument), unaryOperator)) } get operatorTypeConst(): Es2pandaTokenType { @@ -52,4 +53,7 @@ export class UnaryExpression extends Expression { } export function isUnaryExpression(node: AstNode): node is UnaryExpression { return node instanceof UnaryExpression +} +if (!nodeByType.has(147)) { + nodeByType.set(147, UnaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index ff60f1550..7928c3511 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class UndefinedLiteral extends Literal { super(pointer) console.warn("Warning: stub node UndefinedLiteral") } - static createUndefinedLiteral(): UndefinedLiteral | undefined { + static createUndefinedLiteral(): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) } - static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral | undefined { + static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._UpdateUndefinedLiteral(global.context, passNode(original))) } } export function isUndefinedLiteral(node: AstNode): node is UndefinedLiteral { return node instanceof UndefinedLiteral +} +if (!nodeByType.has(51)) { + nodeByType.set(51, UndefinedLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index e0f3f1374..14ad0b275 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class UpdateExpression extends Expression { super(pointer) console.warn("Warning: stub node UpdateExpression") } - static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) } - static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._UpdateUpdateExpression(global.context, passNode(original), passNode(argument), updateOperator, isPrefix)) } get operatorTypeConst(): Es2pandaTokenType { @@ -55,4 +56,7 @@ export class UpdateExpression extends Expression { } export function isUpdateExpression(node: AstNode): node is UpdateExpression { return node instanceof UpdateExpression +} +if (!nodeByType.has(148)) { + nodeByType.set(148, UpdateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index b145115d8..2d562e5fe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -37,10 +38,10 @@ export class VariableDeclaration extends Statement { super(pointer) console.warn("Warning: stub node VariableDeclaration") } - static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._CreateVariableDeclaration(global.context, kind, passNodeArray(declarators), declaratorsLen)) } - static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._UpdateVariableDeclaration(global.context, passNode(original), kind, passNodeArray(declarators), declaratorsLen)) } get declaratorsConst(): readonly VariableDeclarator[] { @@ -61,4 +62,7 @@ export class VariableDeclaration extends Statement { } export function isVariableDeclaration(node: AstNode): node is VariableDeclaration { return node instanceof VariableDeclaration +} +if (!nodeByType.has(149)) { + nodeByType.set(149, VariableDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index 9d46bd035..bebada215 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -35,16 +36,16 @@ export class VariableDeclarator extends TypedStatement { super(pointer) console.warn("Warning: stub node VariableDeclarator") } - static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) } - static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator(global.context, passNode(original), flag, passNode(ident))) } - static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator1(global.context, flag, passNode(ident), passNode(init))) } - static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator1(global.context, passNode(original), flag, passNode(ident), passNode(init))) } get init(): Expression | undefined { @@ -65,4 +66,7 @@ export class VariableDeclarator extends TypedStatement { } export function isVariableDeclarator(node: AstNode): node is VariableDeclarator { return node instanceof VariableDeclarator +} +if (!nodeByType.has(150)) { + nodeByType.set(150, VariableDeclarator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts index b5ca5e0be..d2b24f274 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class WhileStatement extends LoopStatement { } export function isWhileStatement(node: AstNode): node is WhileStatement { return node instanceof WhileStatement +} +if (!nodeByType.has(151)) { + nodeByType.set(151, WhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index 6a1279f7b..5de301724 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class YieldExpression extends Expression { super(pointer) console.warn("Warning: stub node YieldExpression") } - static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) } - static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._UpdateYieldExpression(global.context, passNode(original), passNode(argument), isDelegate)) } get hasDelegateConst(): boolean { @@ -48,4 +49,7 @@ export class YieldExpression extends Expression { } export function isYieldExpression(node: AstNode): node is YieldExpression { return node instanceof YieldExpression +} +if (!nodeByType.has(152)) { + nodeByType.set(152, YieldExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index 4fc36e327..648817510 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -12,10 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - export { KNativePointer } from "@koalaui/interop" +export { AstNode } from "./arkts-api/peers/AstNode" export { Es2pandaAstNodeType } from "./Es2pandaEnums" -export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode, @@ -24,8 +23,9 @@ export { unpackNode, unpackNonNullableObject, unpackString, - unpackObject + unpackObject, + assertValidPeer } from "./arkts-api/utilities/private" +export { nodeByType } from "./arkts-api/class-by-peer" export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" -export { AstNode } from "./arkts-api/peers/AstNode" diff --git a/arkoala-arkts/libarkts/src/utils.ts b/arkoala-arkts/libarkts/src/utils.ts index c30d3b0f5..15cc29473 100644 --- a/arkoala-arkts/libarkts/src/utils.ts +++ b/arkoala-arkts/libarkts/src/utils.ts @@ -26,10 +26,11 @@ export function isNumber(value: any): value is number { return typeof value === `number` } -// TODO: the lowerings insert %% and other special symbols -// into names of temporary variables. -// Until we keep feeding ast dumps back to the parser -// this function is needed. +/* + TODO: + The lowerings insert %% and other special symbols into names of temporary variables. + Until we keep feeding ast dumps back to the parser this function is needed. + */ export function filterSource(text: string): string { return text .replaceAll(/%/g, "_") diff --git a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts index 1f1335b87..b4d4b3611 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts @@ -19,6 +19,9 @@ suite(util.basename(__filename), () => { const annotations = arkts.getAnnotations(script.statements[0]) const names = annotations.map((annot) => { + if (annot.expr === undefined) { + throw new Error('annotation expression is undefined') + } if (!arkts.isIdentifier(annot.expr)) { throw new Error('annotation expected to be Identifier') } diff --git a/arkoala-arkts/libarkts/test/test-util.ts b/arkoala-arkts/libarkts/test/test-util.ts index 3d85b1ea1..c065bbe35 100644 --- a/arkoala-arkts/libarkts/test/test-util.ts +++ b/arkoala-arkts/libarkts/test/test-util.ts @@ -14,7 +14,6 @@ */ import { global } from "../src/arkts-api/static/global" -import * as ts from "../src/ts-api" import * as arkts from "../src/arkts-api" import * as pth from "path" @@ -24,13 +23,6 @@ import { exec, execSync } from "child_process" export { Es2pandaNativeModule } from "../src/Es2pandaNativeModule" export { assert } from "chai" -class defaultTransformationContext implements ts.TransformationContext { -} - -export function getDefaultTransformationContext(): ts.TransformationContext { - return new defaultTransformationContext() -} - export function alignText(text: string): string { const lines = text.replace(/\t/gy, ' ').split('\n') @@ -63,19 +55,15 @@ export function assertEqualsSource(sourceResult: string, sourceExpect: string, m ) } -export function TS_TEST_ASSERTION(node: ts.SourceFile, source: string, state?: ts.ContextState) { - ARKTS_TEST_ASSERTION(node.node, source, state) -} - -export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: ts.ContextState) { - const finalState: ts.ContextState = (() => { +export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: arkts.Es2pandaContextState) { + const finalState: arkts.Es2pandaContextState = (() => { if (state !== undefined) { return state } if (process.env.STATE_CHECKED !== undefined) { - return ts.ContextState.ES2PANDA_STATE_CHECKED + return arkts.Es2pandaContextState.ES2PANDA_STATE_CHECKED } - return ts.ContextState.ES2PANDA_STATE_PARSED + return arkts.Es2pandaContextState.ES2PANDA_STATE_PARSED })() arkts.proceedToState(finalState) @@ -94,40 +82,7 @@ export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, stat } } -export function addMemoParamsToFunctionDeclaration(func: ts.FunctionDeclaration): ts.FunctionDeclaration { - return ts.factory.updateFunctionDeclaration( - func, - undefined, - undefined, - func.name, - undefined, - [ - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_context"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_context_type") - ), - undefined - ), - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_id"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_id_type") - ), - undefined - ), - ...func.parameters - ], - undefined, - func.body - ) -} + export function cleanGenerated(): void { exec('npm run clean:generated') @@ -142,7 +97,7 @@ export function fileToAbc(path: string, isModule?: boolean): void { } export function contextToAbc(): void { - arkts.proceedToState(ts.ContextState.ES2PANDA_STATE_BIN_GENERATED) + arkts.proceedToState(arkts.Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) // TODO: get name of file execSync('mkdir -p ./generated') execSync('mv ./main.abc ./generated/main.abc') diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts index 0071bb839..120ce4949 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts @@ -2,7 +2,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" import { factory } from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("empty-function", function() { // function test_func() { // // empty diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts index 2c2229a8a..ca2966d4d 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // adding y: string to signature test("update-name-and-add-param-to-function", function() { // function new_test_func(x: number, y: string) { diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts index 470141df7..bfad65152 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // full memo rewrite test("memo-function-with-lambda-memo-param", function() { // function foo( diff --git a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts index 05106f2a2..00c60f8de 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" // tests for abc generation (now failing on CI) -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("updating-expression-statement", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts index 62c53242f..72f8253b9 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("sample-1", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts index 33a83fe9b..66369eefa 100644 --- a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("const-number", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts index 9bdc32742..1ece5e82a 100644 --- a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { MemoTransformer } from "../../../plugins/src/memo-transformer" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("memo-transformer-sample-1", function() { const sample_in = ` diff --git a/arkoala-arkts/memo-plugin/src/function-transformer.ts b/arkoala-arkts/memo-plugin/src/function-transformer.ts index 0c86fe39a..b42df68bd 100644 --- a/arkoala-arkts/memo-plugin/src/function-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/function-transformer.ts @@ -15,11 +15,18 @@ import * as arkts from "@koalaui/libarkts" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextParameter, createIdParameter, createContextArgument, createIdArgument, RuntimeNames, PositionalIdTracker } from "./utils" +import { + createContextArgument, + createContextParameter, + createIdArgument, + createIdParameter, + PositionalIdTracker, + RuntimeNames +} from "./utils" function hasMemoAnnotation(node: arkts.ScriptFunction) { return arkts.getAnnotations(node).some((it) => - arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION + it.expr !== undefined && arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION ) } @@ -34,7 +41,7 @@ function createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.BlockStatement | undefined { if (node === undefined) return node - const scopeDeclaraion = arkts.factory.createVariableDeclaration( + const scopeDeclaration = arkts.factory.createVariableDeclaration( 0, arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, [ @@ -93,7 +100,7 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. return arkts.factory.updateBlock( node, [ - scopeDeclaraion, + scopeDeclaration, unchangedCheck, ...node.statements, recache @@ -115,7 +122,7 @@ export class FunctionTransformer extends AbstractVisitor { if (node instanceof arkts.MethodDefinition) { if (methodDefinitionHasMemoAnnotation) { // TODO: fix - const updatedNode = arkts.factory.updateMethodDefinition( + return arkts.factory.updateMethodDefinition( node, 2, node.name, @@ -134,7 +141,6 @@ export class FunctionTransformer extends AbstractVisitor { node.modifiers, false ) - return updatedNode } } if (node instanceof arkts.CallExpression) { -- Gitee From 5c7a5501585ca6d9a717e7c2af4f941d8832ab3a Mon Sep 17 00:00:00 2001 From: Roman Sedaikin Date: Wed, 19 Feb 2025 14:16:37 +0000 Subject: [PATCH 14/31] !20 EtsHarness fix exports. * EtsHarness fix exports. --- arkoala-arkts/arkui/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arkoala-arkts/arkui/src/index.ts b/arkoala-arkts/arkui/src/index.ts index 2945b8f24..b2ed0e9af 100644 --- a/arkoala-arkts/arkui/src/index.ts +++ b/arkoala-arkts/arkui/src/index.ts @@ -26,5 +26,8 @@ export * from "./ForEach" export * from "./LazyForEach" export * from "./ohos.router" export * from "./ArkNavigation" +export * from "./PeerNode" +export * from "./generated/Events" +export * from "./generated/peers/CallbacksChecker" export * from "./peers/ArkTestComponentPeer" export * from "./ArkTestComponent" \ No newline at end of file -- Gitee From d875ada1fe8fb05781be2bc74f9a108a4390eca6 Mon Sep 17 00:00:00 2001 From: Peter Z Date: Wed, 19 Feb 2025 14:30:56 +0000 Subject: [PATCH 15/31] !19 KOALA_INTEROP_CTX_5 macros * KOALA_INTEROP_CTX_5 macros --- interop/src/cpp/ani/convertors-ani.h | 2 +- interop/src/cpp/cangjie/convertors-cj.h | 16 ++++++++++++++++ interop/src/cpp/ets/convertors-ets.h | 24 ++++++++++++++++++++++++ interop/src/cpp/jni/convertors-jni.h | 24 ++++++++++++++++++++++++ interop/src/cpp/napi/convertors-napi.h | 14 ++++++++++++++ 5 files changed, 79 insertions(+), 1 deletion(-) diff --git a/interop/src/cpp/ani/convertors-ani.h b/interop/src/cpp/ani/convertors-ani.h index c6aaaf46c..05c27dcec 100644 --- a/interop/src/cpp/ani/convertors-ani.h +++ b/interop/src/cpp/ani/convertors-ani.h @@ -1198,7 +1198,7 @@ MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 InteropTypeConverter::InteropType _p0, \ InteropTypeConverter::InteropType _p1, \ InteropTypeConverter::InteropType _p2, \ - InteropTypeConverter::InteropType _p3 \ + InteropTypeConverter::InteropType _p3, \ InteropTypeConverter::InteropType _p4) { \ KOALA_MAYBE_LOG(name) \ P0 p0 = getArgument(env, _p0); \ diff --git a/interop/src/cpp/cangjie/convertors-cj.h b/interop/src/cpp/cangjie/convertors-cj.h index 631393ced..0524f796a 100644 --- a/interop/src/cpp/cangjie/convertors-cj.h +++ b/interop/src/cpp/cangjie/convertors-cj.h @@ -792,6 +792,22 @@ KOALA_INTEROP_EXPORT InteropTypeConverter::InteropType name( \ return makeResult(impl_##name(ctx, p0, p1, p2, p3)); \ } +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ +KOALA_INTEROP_EXPORT InteropTypeConverter::InteropType name( \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(_p0); \ + P1 p1 = getArgument(_p1); \ + P2 p2 = getArgument(_p2); \ + P3 p3 = getArgument(_p3); \ + P4 p4 = getArgument(_p4); \ + KVMContext ctx = (KVMContext)0; \ + return makeResult(impl_##name(ctx, p0, p1, p2, p3, p4)); \ +} #define KOALA_INTEROP_CALL_INT(venv, id, length, args) \ { \ diff --git a/interop/src/cpp/ets/convertors-ets.h b/interop/src/cpp/ets/convertors-ets.h index ce43a7126..edeb53f12 100644 --- a/interop/src/cpp/ets/convertors-ets.h +++ b/interop/src/cpp/ets/convertors-ets.h @@ -1199,6 +1199,30 @@ MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2, ETS_SL } \ MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3, ETS_SLOW_NATIVE_FLAG) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + InteropTypeConverter::InteropType Ark_##name(EtsEnv *env, ets_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + P4 p4 = getArgument(env, _p4); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + return rv; \ + } \ +MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4, ETS_SLOW_NATIVE_FLAG) + #define KOALA_INTEROP_CTX_V0(name) \ void Ark_##name(EtsEnv *env, ets_class clazz) { \ KOALA_MAYBE_LOG(name) \ diff --git a/interop/src/cpp/jni/convertors-jni.h b/interop/src/cpp/jni/convertors-jni.h index 37773881e..d0c8b8a4b 100644 --- a/interop/src/cpp/jni/convertors-jni.h +++ b/interop/src/cpp/jni/convertors-jni.h @@ -1315,6 +1315,30 @@ MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2) } \ MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + KOALA_JNI_CALL(SlowInteropTypeConverter::InteropType) Java_org_##name(JNIEnv* env, jclass instance, \ + SlowInteropTypeConverter::InteropType _p0, \ + SlowInteropTypeConverter::InteropType _p1, \ + SlowInteropTypeConverter::InteropType _p2, \ + SlowInteropTypeConverter::InteropType _p3, \ + SlowInteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + P4 p4 = getArgument(env, _p4); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = SlowInteropTypeConverter::convertTo(env, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + return rv; \ +} \ +MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4) + #define KOALA_INTEROP_CTX_V0(name) \ KOALA_JNI_CALL(void) Java_org_##name(JNIEnv* env, jclass instance) { \ KOALA_MAYBE_LOG(name) \ diff --git a/interop/src/cpp/napi/convertors-napi.h b/interop/src/cpp/napi/convertors-napi.h index 467d5920d..1ca24e16e 100644 --- a/interop/src/cpp/napi/convertors-napi.h +++ b/interop/src/cpp/napi/convertors-napi.h @@ -1233,6 +1233,20 @@ public: } \ MAKE_NODE_EXPORT(KOALA_INTEROP_MODULE, name) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + napi_value Node_##name(napi_env env, napi_callback_info cbinfo) { \ + KOALA_MAYBE_LOG(name) \ + CallbackInfo info(env, cbinfo); \ + KVMContext ctx = reinterpret_cast((napi_env)info.Env()); \ + P0 p0 = getArgument(info, 0); \ + P1 p1 = getArgument(info, 1); \ + P2 p2 = getArgument(info, 2); \ + P3 p3 = getArgument(info, 3); \ + P4 p4 = getArgument(info, 4); \ + return makeResult(info, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + } \ + MAKE_NODE_EXPORT(KOALA_INTEROP_MODULE, name) + #define KOALA_INTEROP_CTX_V0(name) \ napi_value Node_##name(napi_env env, napi_callback_info cbinfo) { \ KOALA_MAYBE_LOG(name) \ -- Gitee From 87aa7a106f49650b47e8c1cc7ac2dcf686d9cf13 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 19 Feb 2025 14:31:52 +0000 Subject: [PATCH 16/31] !22 libarkts: interface body --- .../plugins/src/component-transformer.ts | 1 + .../src/arkts-api/factory/nodeFactory.ts | 13 ++++++--- .../src/arkts-api/factory/nodeTests.ts | 5 ---- arkoala-arkts/libarkts/src/arkts-api/types.ts | 29 ------------------- .../libarkts/src/arkts-api/visitor.ts | 29 +++++++++++++++---- .../generated/peers/TSInterfaceDeclaration.ts | 15 +++++----- 6 files changed, 40 insertions(+), 52 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index 10b2a6d0e..8f4ebde89 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -52,6 +52,7 @@ export class ComponentTransformer extends AbstractVisitor { const interfaceDeclarations = this.context.componentNames.map( name => arkts.factory.createInterfaceDeclaration( [], + 0, arkts.factory.createIdentifier(`__Options_${name}`), nullptr, // TODO: wtf arkts.factory.createBlock([]), diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index 4f3f39b21..eb99b8552 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -43,7 +43,6 @@ import { StringLiteral, StructDeclaration, SuperExpression, - TSInterfaceDeclaration, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, @@ -53,7 +52,7 @@ import { } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" -import { AnnotationUsage } from "../../generated" +import { AnnotationUsage, TSInterfaceBody, TSInterfaceDeclaration } from "../../generated" function compose( create: (...args: ARGS) => T, @@ -278,10 +277,16 @@ export const factory = { return compose(TSTypeParameterInstantiation.create) }, get createInterfaceDeclaration() { - return TSInterfaceDeclaration.create + return TSInterfaceDeclaration.createTSInterfaceDeclaration }, get updateInterfaceDeclaration() { - return compose(TSInterfaceDeclaration.create) + return compose(TSInterfaceDeclaration.createTSInterfaceDeclaration) + }, + get createInterfaceBody() { + return TSInterfaceBody.createTSInterfaceBody + }, + get updateInterfaceBody() { + return compose(TSInterfaceBody.createTSInterfaceBody) }, get createUndefinedLiteral() { return UndefinedLiteral.create diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index dd87fe0c4..bcb493faa 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -16,7 +16,6 @@ import { ScriptFunction, StringLiteral, StructDeclaration, - TSInterfaceDeclaration, VariableDeclaration, ClassProperty } from "../types" @@ -27,10 +26,6 @@ export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclar return global.es2panda._IsAnnotationDeclaration(node.peer); } -export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { - return global.es2panda._IsTSInterfaceDeclaration(node.peer); -} - export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier } diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index e546bff6e..d1136c3fe 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -1237,35 +1237,6 @@ export class TSTypeParameterInstantiation extends AstNode { } } -export class TSInterfaceDeclaration extends AstNode { - constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_DECLARATION) - super(peer) - } - - static create( - extendsParams: readonly AstNode[], - id: AstNode, - typeParams: AstNode, - body: AstNode, - isStatic: KBoolean, - isExternal: KBoolean, - ): TSInterfaceDeclaration { - return new TSInterfaceDeclaration( - global.generatedEs2panda._CreateTSInterfaceDeclaration( - global.context, - passNodeArray(extendsParams), - extendsParams.length, - passNode(id), - passNode(typeParams), - passNode(body), - isStatic, - isExternal, - ) - ) - } -} - export class UndefinedLiteral extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL) diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 622448e38..e52994391 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -26,15 +26,13 @@ import { FunctionSignature, MethodDefinition, ScriptFunction, - StructDeclaration + StructDeclaration, } from "./types" -import { - Es2pandaClassDefinitionModifiers, - Es2pandaModifierFlags -} from "../generated/Es2pandaEnums" +import { Es2pandaClassDefinitionModifiers, Es2pandaModifierFlags } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" import { AstNode } from "./peers/AstNode" import { MemberExpression } from "./to-be-generated/MemberExpression" +import { TSInterfaceBody, TSInterfaceDeclaration } from "../generated" type Visitor = (node: AstNode) => AstNode @@ -224,7 +222,26 @@ export function visitEachChild( node.optional ) } - + if (node instanceof TSInterfaceDeclaration) { + return factory.updateInterfaceDeclaration( + node, + nodesVisitor(node.extends, visitor), + node.extends.length, + nodeVisitor(node.id, visitor), + nodeVisitor(node.typeParams, visitor), + nodeVisitor(node.body, visitor), + node.isStaticConst, + // TODO: how do I get it? + true + ) + } + if (node instanceof TSInterfaceBody) { + return factory.updateInterfaceBody( + node, + nodesVisitor(node.body, visitor), + node.body.length + ) + } // TODO return node } diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index d015665ef..270f23290 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -14,17 +14,15 @@ */ import { + assertValidPeer, + AstNode, global, + KNativePointer, + nodeByType, passNode, passNodeArray, - unpackNonNullableNode, unpackNode, - unpackNodeArray, - assertValidPeer, - AstNode, - Es2pandaAstNodeType, - KNativePointer, - nodeByType + unpackNodeArray } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -35,6 +33,7 @@ import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Decorator } from "./Decorator" import { ClassDeclaration } from "./ClassDeclaration" import { AnnotationUsage } from "./AnnotationUsage" + export class TSInterfaceDeclaration extends TypedStatement { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 130) @@ -101,4 +100,4 @@ export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDecl } if (!nodeByType.has(130)) { nodeByType.set(130, TSInterfaceDeclaration) -} \ No newline at end of file +} -- Gitee From 2a66b0a87ab27fb2444b1ae354bb7448ae294828 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Wed, 19 Feb 2025 14:37:39 +0000 Subject: [PATCH 17/31] !23 Generate with idlize 2.0.31 (+ PR 1597), API 119 --- .../generated/ArkCursorControlNamespace.ts | 2 +- .../generated/ArkCustomBuilderInterfaces.ts | 22 ++ ...ts => ArkGlobalScopeCommonMaterialized.ts} | 50 ++-- ...=> ArkGlobalScopeInspectorMaterialized.ts} | 14 +- .../ArkRichEditorControllerMaterialized.ts | 2 +- .../arkui/src/generated/GlobalScope.ts | 34 +-- .../src/generated/SyntheticDeclarations.ts | 3 +- .../arkts/ArkUIGeneratedNativeModule.ts | 36 +-- arkoala-arkts/arkui/src/generated/index.ts | 9 +- .../peers/CallbackDeserializeCall.ts | 5 +- .../generated/peers/CallbackTransformer.ts | 2 +- .../arkui/src/generated/peers/Deserializer.ts | 5 +- .../arkui/src/generated/peers/Serializer.ts | 3 +- arkoala-arkts/arkui/types/index-full.d.ts | 15 +- arkoala/arkui-types/index-full.d.ts | 1 + .../generated/ArkCustomBuilderInterfaces.ts | 22 ++ .../peers/CallbackDeserializeCall.ts | 3 +- .../arkui/src/generated/peers/Deserializer.ts | 3 +- .../arkui/src/generated/peers/Serializer.ts | 1 + .../native/src/generated/Serializers.h | 182 +++++++------- .../src/generated/arkoala_api_generated.h | 196 +++++++-------- .../native/src/generated/bridge_generated.cc | 114 ++++----- .../native/src/generated/dummy_impl.cc | 228 +++++++++--------- .../native/src/generated/real_impl.cc | 192 +++++++-------- arkoala/tools/peer-generator/package.json | 6 +- 25 files changed, 601 insertions(+), 549 deletions(-) create mode 100644 arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts rename arkoala-arkts/arkui/src/generated/{ArkGlobalScopecommonMaterialized.ts => ArkGlobalScopeCommonMaterialized.ts} (73%) rename arkoala-arkts/arkui/src/generated/{ArkGlobalScopeinspectorMaterialized.ts => ArkGlobalScopeInspectorMaterialized.ts} (78%) create mode 100644 arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts diff --git a/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts index 1dff81756..79b8920bc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts @@ -16,7 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { PointerStyle } from "./ArkArkuiCustomInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" @@ -24,6 +23,7 @@ import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +import { PointerStyle } from "./ArkArkuiCustomInterfaces" export namespace cursorControl { export class GlobalScope_cursorControl_common { public static setCursor(value: PointerStyle): void { diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts new file mode 100644 index 000000000..1d25b804f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts similarity index 73% rename from arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts rename to arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts index 79c5c9dfb..3d82a993a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts @@ -26,61 +26,61 @@ import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScopecommon { +export class GlobalScope_common { public static getContext(component?: Object): Context { const component_casted = component as (Object | undefined) - return GlobalScopecommon.getContext_serialize(component_casted) + return GlobalScope_common.getContext_serialize(component_casted) } public static postCardAction(component: Object, action: Object): void { const component_casted = component as (Object) const action_casted = action as (Object) - GlobalScopecommon.postCardAction_serialize(component_casted, action_casted) + GlobalScope_common.postCardAction_serialize(component_casted, action_casted) return } public static dollar_r(value: string, params: Array): Resource { const value_casted = value as (string) const params_casted = params as (Array) - return GlobalScopecommon.dollar_r_serialize(value_casted, params_casted) + return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) } public static dollar_rawfile(value: string): Resource { const value_casted = value as (string) - return GlobalScopecommon.dollar_rawfile_serialize(value_casted) + return GlobalScope_common.dollar_rawfile_serialize(value_casted) } public static animateTo(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScopecommon.animateTo_serialize(value_casted, event_casted) + GlobalScope_common.animateTo_serialize(value_casted, event_casted) return } public static animateToImmediately(value: AnimateParam, event: (() => void)): void { const value_casted = value as (AnimateParam) const event_casted = event as ((() => void)) - GlobalScopecommon.animateToImmediately_serialize(value_casted, event_casted) + GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) return } public static vp2px(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.vp2px_serialize(value_casted) + return GlobalScope_common.vp2px_serialize(value_casted) } public static px2vp(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.px2vp_serialize(value_casted) + return GlobalScope_common.px2vp_serialize(value_casted) } public static fp2px(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.fp2px_serialize(value_casted) + return GlobalScope_common.fp2px_serialize(value_casted) } public static px2fp(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.px2fp_serialize(value_casted) + return GlobalScope_common.px2fp_serialize(value_casted) } public static lpx2px(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.lpx2px_serialize(value_casted) + return GlobalScope_common.lpx2px_serialize(value_casted) } public static px2lpx(value: number): number { const value_casted = value as (number) - return GlobalScopecommon.px2lpx_serialize(value_casted) + return GlobalScope_common.px2lpx_serialize(value_casted) } private static getContext_serialize(component?: Object): Context { const thisSerializer : Serializer = Serializer.hold() @@ -91,7 +91,7 @@ export class GlobalScopecommon { const component_value = component! thisSerializer.writeCustomObject("Object", component_value) } - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_getContext(thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() return new Deserializer(retval, retval.length).readContext() } @@ -99,7 +99,7 @@ export class GlobalScopecommon { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomObject("Object", component) thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScopecommon_postCardAction(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static dollar_r_serialize(value: string, params: Array): Resource { @@ -109,50 +109,50 @@ export class GlobalScopecommon { const params_element : object = params[i] thisSerializer.writeCustomObject("Any", params_element) } - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() return new Deserializer(retval, retval.length).readResource() } private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_rawfile(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) return new Deserializer(retval, retval.length).readResource() } private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScopecommon_animateTo(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeAnimateParam(value) thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScopecommon_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) + ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_vp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) return retval } private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2vp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) return retval } private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_fp2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) return retval } private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2fp(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) return retval } private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_lpx2px(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) return retval } private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2lpx(value) + const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) return retval } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts similarity index 78% rename from arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts rename to arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts index 6b82e5728..125e14c83 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts @@ -23,28 +23,28 @@ import { Serializer } from "./peers/Serializer" import { CallbackKind } from "./peers/CallbackKind" import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScopeinspector { +export class GlobalScope_inspector { public static getInspectorNodes(): Object { - return GlobalScopeinspector.getInspectorNodes_serialize() + return GlobalScope_inspector.getInspectorNodes_serialize() } public static getInspectorNodeById(id: number): Object { const id_casted = id as (number) - return GlobalScopeinspector.getInspectorNodeById_serialize(id_casted) + return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) } public static setAppBgColor(value: string): void { const value_casted = value as (string) - GlobalScopeinspector.setAppBgColor_serialize(value_casted) + GlobalScope_inspector.setAppBgColor_serialize(value_casted) return } private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodes() + const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() throw new Error("Object deserialization is not implemented.") } private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodeById(id) + const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) throw new Error("Object deserialization is not implemented.") } private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScopeinspector_setAppBgColor(value) + ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 8efee3e6e..e6b48149f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -25,7 +25,7 @@ import { PreviewText } from "./ArkTextCommonInterfaces" import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomNodeBuilder } from "./SyntheticDeclarations" +import { CustomNodeBuilder } from "./ArkCustomBuilderInterfaces" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts index da5e731e5..3a4269319 100644 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ b/arkoala-arkts/arkui/src/generated/GlobalScope.ts @@ -16,53 +16,53 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { GlobalScopecommon } from "./ArkGlobalScopecommonMaterialized" +import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" import { Context, AnimateParam } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Callback_Void } from "./SyntheticDeclarations" -import { GlobalScopeinspector } from "./ArkGlobalScopeinspectorMaterialized" +import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" export function getContext(component: Object): Context { - return GlobalScopecommon.getContext(component) + return GlobalScope_common.getContext(component) } export function postCardAction(component: Object, action: Object): void { - GlobalScopecommon.postCardAction(component, action) + GlobalScope_common.postCardAction(component, action) } export function dollar_r(value: string, params: Array): Resource { - return GlobalScopecommon.dollar_r(value, params) + return GlobalScope_common.dollar_r(value, params) } export function dollar_rawfile(value: string): Resource { - return GlobalScopecommon.dollar_rawfile(value) + return GlobalScope_common.dollar_rawfile(value) } export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScopecommon.animateTo(value, event) + GlobalScope_common.animateTo(value, event) } export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScopecommon.animateToImmediately(value, event) + GlobalScope_common.animateToImmediately(value, event) } export function vp2px(value: number): number { - return GlobalScopecommon.vp2px(value) + return GlobalScope_common.vp2px(value) } export function px2vp(value: number): number { - return GlobalScopecommon.px2vp(value) + return GlobalScope_common.px2vp(value) } export function fp2px(value: number): number { - return GlobalScopecommon.fp2px(value) + return GlobalScope_common.fp2px(value) } export function px2fp(value: number): number { - return GlobalScopecommon.px2fp(value) + return GlobalScope_common.px2fp(value) } export function lpx2px(value: number): number { - return GlobalScopecommon.lpx2px(value) + return GlobalScope_common.lpx2px(value) } export function px2lpx(value: number): number { - return GlobalScopecommon.px2lpx(value) + return GlobalScope_common.px2lpx(value) } export function getInspectorNodes(): Object { - return GlobalScopeinspector.getInspectorNodes() + return GlobalScope_inspector.getInspectorNodes() } export function getInspectorNodeById(id: number): Object { - return GlobalScopeinspector.getInspectorNodeById(id) + return GlobalScope_inspector.getInspectorNodeById(id) } export function setAppBgColor(value: string): void { - GlobalScopeinspector.setAppBgColor(value) + GlobalScope_inspector.setAppBgColor(value) } diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index c4d7bf4c7..f106b915e 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -75,6 +75,7 @@ import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { IsolatedComponentAttribute } from "./ArkIsolatedComponentInterfaces" import { StyledString } from "./ArkStyledStringMaterialized" export type AsyncCallback_image_PixelMap_Void = (result: PixelMap) => void; +export type Callback_Pointer_Void = (value: KPointer) => void; export interface Literal_Want_want { want: Want; } @@ -196,8 +197,6 @@ export type Callback_TouchEvent_HitTestMode = (parameter: TouchEvent) => HitTest export interface Literal_Alignment_align { align?: Alignment; } -export type Callback_Pointer_Void = (value: KPointer) => void; -export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; export interface Literal_Empty { } export interface Literal_String_key_Any_defaultValue { diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts index 3970fddbd..211c9433d 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -1814,6 +1814,9 @@ export class ArkUIGeneratedNativeModule { native static _TransitionEffect_asymmetric(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TransitionEffect_animation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TransitionEffect_combine(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean + native static _GlobalScope_cursorControl_common_setCursor(value: KInt): void + native static _GlobalScope_cursorControl_common_restoreDefault(): void native static _BaseEvent_ctor(): KPointer native static _BaseEvent_getFinalizer(): KPointer native static _BaseEvent_getModifierKeyState(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean @@ -2004,21 +2007,18 @@ export class ArkUIGeneratedNativeModule { native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean - native static _GlobalScope_cursorControl_common_setCursor(value: KInt): void - native static _GlobalScope_cursorControl_common_restoreDefault(): void - native static _GlobalScopecommon_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer - native static _GlobalScopecommon_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer - native static _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer - native static _GlobalScopecommon_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScopecommon_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScopecommon_vp2px(value: number): number - native static _GlobalScopecommon_px2vp(value: number): number - native static _GlobalScopecommon_fp2px(value: number): number - native static _GlobalScopecommon_px2fp(value: number): number - native static _GlobalScopecommon_lpx2px(value: number): number - native static _GlobalScopecommon_px2lpx(value: number): number + native static _GlobalScope_common_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _GlobalScope_common_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer + native static _GlobalScope_common_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScope_common_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScope_common_vp2px(value: number): number + native static _GlobalScope_common_px2vp(value: number): number + native static _GlobalScope_common_fp2px(value: number): number + native static _GlobalScope_common_px2fp(value: number): number + native static _GlobalScope_common_lpx2px(value: number): number + native static _GlobalScope_common_px2lpx(value: number): number native static _ContextMenu_ctor(): KPointer native static _ContextMenu_getFinalizer(): KPointer native static _ContextMenu_close(): undefined @@ -2659,7 +2659,7 @@ export class ArkUIGeneratedNativeModule { native static _LinearIndicatorController_stop(ptr: KPointer): void native static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void - native static _GlobalScopeinspector_getInspectorNodes(): KPointer - native static _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer - native static _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void + native static _GlobalScope_inspector_getInspectorNodes(): KPointer + native static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer + native static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index 346e2c4e9..c48770c9a 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -131,6 +131,7 @@ export * from "./ArkAnimationExtenderInterfaces" export * from "./ArkArkuiCustomInterfaces" export * from "./ArkArkuiExternalInterfaces" export * from "./SyntheticDeclarations" +export * from "./ArkCustomBuilderInterfaces" export * from "./ArkNavigationExtenderInterfaces" export * from "./ArkPointInterfaces" export * from "./ArkStaticComponentsInterfaces" @@ -303,6 +304,8 @@ export * from "./ArkDrawingRenderingContextMaterialized" export * from "./ArkICurveMaterialized" export * from "./ArkDrawModifierMaterialized" export * from "./ArkTransitionEffectMaterialized" +export * from "./ArkFocusControlNamespace" +export * from "./ArkCursorControlNamespace" export * from "./ArkBaseEventMaterialized" export * from "./ArkClickEventMaterialized" export * from "./ArkHoverEventMaterialized" @@ -320,9 +323,7 @@ export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkUICommonEventMaterialized" export * from "./ArkGestureModifierMaterialized" -export * from "./ArkFocusControlNamespace" -export * from "./ArkCursorControlNamespace" -export * from "./ArkGlobalScopecommonMaterialized" +export * from "./ArkGlobalScopeCommonMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" export * from "./ArkLinearGradientMaterialized" @@ -421,5 +422,5 @@ export * from "./ArkImageAttachmentMaterialized" export * from "./ArkCustomSpanMaterialized" export * from "./ArkLinearIndicatorControllerMaterialized" export * from "./ArkProfilerNamespace" -export * from "./ArkGlobalScopeinspectorMaterialized" +export * from "./ArkGlobalScopeInspectorMaterialized" export * from "./GlobalScope" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts index 0d6509997..2dfc5e772 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -20,7 +20,7 @@ import { ResourceHolder, KInt, KStringPtr, wrapSystemCallback, KPointer, Runtime import { CallbackTransformer } from "./CallbackTransformer" import { AccessibilityCallback, TouchTestInfo, TouchResult, CustomBuilder, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragItemInfo, ItemDragInfo, PreDragStatus, SheetDismiss, SheetType, SpringBackAction, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { AsyncCallback_image_PixelMap_Void, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CustomBuilder_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavDestinationContext_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_NavigationTransitionProxy_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PanelMode_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PopInfo_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_ResourceStr_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Union_Number_Array_Number_Void, Callback_Union_Number_Resource_Void, Callback_Union_String_Array_String_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, CustomNodeBuilder, Type_NavigationAttribute_customNavContentTransition_delegate, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CustomBuilder_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavDestinationContext_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_NavigationTransitionProxy_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PanelMode_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PopInfo_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_ResourceStr_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Union_Number_Array_Number_Void, Callback_Union_Number_Resource_Void, Callback_Union_String_Array_String_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" import { PixelMap } from "./../ArkPixelMapMaterialized" import { ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" import { Area, ResourceStr, SizeOptions, VoidCallback } from "./../ArkUnitsInterfaces" @@ -73,6 +73,7 @@ import { TouchEvent } from "./../ArkTouchEventMaterialized" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { WithThemeAttribute, WithThemeInterface, WithThemeOptions } from "./../ArkWithThemeInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" @@ -1358,7 +1359,7 @@ export function deserializeAndCallContentDidScrollCallback(thisDeserializer: Des } export function deserializeAndCallCustomNodeBuilder(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer) => KPointer)) + const _call = (ResourceHolder.instance().get(_resourceId) as CustomNodeBuilder) let parentNode : KPointer = thisDeserializer.readPointer() let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) const _callResult = _call(parentNode) diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts index 073c835bc..344a26bcf 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts @@ -16,7 +16,7 @@ import { KPointer } from "@koalaui/interop" import { PeerNode } from "../../PeerNode" import { CustomBuilder } from "../ArkCommonInterfaces" -import { CustomNodeBuilder } from "../SyntheticDeclarations" +import { CustomNodeBuilder } from "../ArkCustomBuilderInterfaces" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" // TODO need invert dependency: createUiDetachedRoot should be imported from @koalaui/arkoala same as in TS diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 40f9df871..2c313cae3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -27,6 +27,7 @@ import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, La import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" @@ -59,7 +60,7 @@ import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthSt import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" @@ -876,7 +877,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } - readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { + readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index 0de60e3a4..45589648c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -23,6 +23,7 @@ import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, La import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" @@ -55,7 +56,7 @@ import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthSt import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 069fd9a02..281b83eb9 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -361,6 +361,7 @@ declare interface PixelMap { readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } +declare type CustomNodeBuilder = ((parentNode: number|bigint) => number|bigint); declare type NavExtender_OnUpdateStack = ((value: string) => void); declare class NavExtender { static setUpdateStackCallback(peer: NavPathStack, callback_: NavExtender_OnUpdateStack): void; @@ -1329,6 +1330,13 @@ declare interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare interface EventTarget { area: Area; } @@ -2458,13 +2466,6 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; - function restoreDefault(): void; -} declare function getContext(component?: Object): Context; declare function postCardAction(component: Object, action: Object): void; declare function $r(value: string, ...params: any[]): Resource; diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 5077b0651..25c2ef32f 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -431,6 +431,7 @@ declare interface PixelMap { readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } +declare type CustomNodeBuilder = ((parentNode: number|bigint) => number|bigint); declare type NavExtender_OnUpdateStack = ((value: string) => void); declare class NavExtender { static setUpdateStackCallback(peer: NavPathStack, callback_: NavExtender_OnUpdateStack): void; diff --git a/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts b/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts new file mode 100644 index 000000000..56aa34a09 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; diff --git a/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts index 66b8e19d6..ba547c0cf 100644 --- a/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -111,6 +111,7 @@ import { TimePickerResult } from "./../ArkTimePickerInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { WithThemeAttribute, WithThemeInterface, WithThemeOptions, CustomTheme } from "./../ArkWithThemeInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -1398,7 +1399,7 @@ export function deserializeAndCallContentDidScrollCallback(thisDeserializer: Des } export function deserializeAndCallCustomNodeBuilder(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer) => KPointer)) + const _call = (ResourceHolder.instance().get(_resourceId) as CustomNodeBuilder) let parentNode: KPointer = thisDeserializer.readPointer() let _continuation: ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) const _callResult = _call(parentNode) diff --git a/arkoala/arkui/src/generated/peers/Deserializer.ts b/arkoala/arkui/src/generated/peers/Deserializer.ts index 998024e7e..d6ccc8a27 100644 --- a/arkoala/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala/arkui/src/generated/peers/Deserializer.ts @@ -27,6 +27,7 @@ import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, La import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" @@ -864,7 +865,7 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } - readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { + readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() diff --git a/arkoala/arkui/src/generated/peers/Serializer.ts b/arkoala/arkui/src/generated/peers/Serializer.ts index b025fb5dc..b28f91bb1 100644 --- a/arkoala/arkui/src/generated/peers/Serializer.ts +++ b/arkoala/arkui/src/generated/peers/Serializer.ts @@ -23,6 +23,7 @@ import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, La import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index 23c705968..9048b0fa8 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -21294,35 +21294,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Context& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_PointerStyle value) { - result->append("Ark_PointerStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PointerStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PointerStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UIGestureEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -24974,6 +24945,35 @@ inline Ark_RuntimeType runtimeType(const Opt_MouseButton& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_PointerStyle value) { + result->append("Ark_PointerStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PointerStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PointerStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_TransitionEffect_appear_disappear& value) { return INTEROP_RUNTIME_OBJECT; @@ -27826,16 +27826,16 @@ inline Ark_RuntimeType runtimeType(const Opt_ButtonTriggerClickCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScopeinspector& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_inspector& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GlobalScopeinspector value) { +inline void WriteToString(std::string* result, const Ark_GlobalScope_inspector value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GlobalScopeinspector* value) { +inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -27848,7 +27848,7 @@ inline void WriteToString(std::string* result, const Opt_GlobalScopeinspector* v result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScopeinspector& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_inspector& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -45633,70 +45633,16 @@ inline Ark_RuntimeType runtimeType(const Opt_SceneOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScopecommon& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GlobalScopecommon value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GlobalScopecommon* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScopecommon& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_cursorControl_common& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_cursorControl_common value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_cursorControl_common* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_cursorControl_common& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_focusControl_common& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_common& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_focusControl_common value) { +inline void WriteToString(std::string* result, const Ark_GlobalScope_common value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_focusControl_common* value) { +inline void WriteToString(std::string* result, const Opt_GlobalScope_common* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -45709,7 +45655,7 @@ inline void WriteToString(std::string* result, const Opt_GlobalScope_focusContro result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_focusControl_common& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_common& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -49888,6 +49834,60 @@ inline Ark_RuntimeType runtimeType(const Opt_SafeAreaType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_cursorControl_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_cursorControl_common value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_cursorControl_common* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_cursorControl_common& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_focusControl_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_focusControl_common value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_focusControl_common* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_focusControl_common& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PreDragStatus& value) { return INTEROP_RUNTIME_NUMBER; diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 00363f012..034d8d93b 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -156,7 +156,7 @@ typedef struct InteropBuffer { // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 118 +#define GENERATED_ARKUI_FULL_API_VERSION 119 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 @@ -1432,9 +1432,9 @@ typedef struct Callback_Array_String_Void Callback_Array_String_Void; typedef struct Opt_Callback_Array_String_Void Opt_Callback_Array_String_Void; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; typedef struct Opt_ButtonTriggerClickCallback Opt_ButtonTriggerClickCallback; -typedef struct GlobalScopeinspectorPeer GlobalScopeinspectorPeer; -typedef struct GlobalScopeinspectorPeer* Ark_GlobalScopeinspector; -typedef struct Opt_GlobalScopeinspector Opt_GlobalScopeinspector; +typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; +typedef struct GlobalScope_inspectorPeer* Ark_GlobalScope_inspector; +typedef struct Opt_GlobalScope_inspector Opt_GlobalScope_inspector; typedef struct GlobalScope_Profiler_inspectorPeer GlobalScope_Profiler_inspectorPeer; typedef struct GlobalScope_Profiler_inspectorPeer* Ark_GlobalScope_Profiler_inspector; typedef struct Opt_GlobalScope_Profiler_inspector Opt_GlobalScope_Profiler_inspector; @@ -2351,15 +2351,9 @@ typedef struct ContextMenuPeer* Ark_ContextMenu; typedef struct Opt_ContextMenu Opt_ContextMenu; typedef struct Ark_SceneOptions Ark_SceneOptions; typedef struct Opt_SceneOptions Opt_SceneOptions; -typedef struct GlobalScopecommonPeer GlobalScopecommonPeer; -typedef struct GlobalScopecommonPeer* Ark_GlobalScopecommon; -typedef struct Opt_GlobalScopecommon Opt_GlobalScopecommon; -typedef struct GlobalScope_cursorControl_commonPeer GlobalScope_cursorControl_commonPeer; -typedef struct GlobalScope_cursorControl_commonPeer* Ark_GlobalScope_cursorControl_common; -typedef struct Opt_GlobalScope_cursorControl_common Opt_GlobalScope_cursorControl_common; -typedef struct GlobalScope_focusControl_commonPeer GlobalScope_focusControl_commonPeer; -typedef struct GlobalScope_focusControl_commonPeer* Ark_GlobalScope_focusControl_common; -typedef struct Opt_GlobalScope_focusControl_common Opt_GlobalScope_focusControl_common; +typedef struct GlobalScope_commonPeer GlobalScope_commonPeer; +typedef struct GlobalScope_commonPeer* Ark_GlobalScope_common; +typedef struct Opt_GlobalScope_common Opt_GlobalScope_common; typedef struct UICommonEventPeer UICommonEventPeer; typedef struct UICommonEventPeer* Ark_UICommonEvent; typedef struct Opt_UICommonEvent Opt_UICommonEvent; @@ -2568,6 +2562,12 @@ typedef struct Opt_HoverEvent Opt_HoverEvent; typedef struct BaseEventPeer BaseEventPeer; typedef struct BaseEventPeer* Ark_BaseEvent; typedef struct Opt_BaseEvent Opt_BaseEvent; +typedef struct GlobalScope_cursorControl_commonPeer GlobalScope_cursorControl_commonPeer; +typedef struct GlobalScope_cursorControl_commonPeer* Ark_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_cursorControl_common Opt_GlobalScope_cursorControl_common; +typedef struct GlobalScope_focusControl_commonPeer GlobalScope_focusControl_commonPeer; +typedef struct GlobalScope_focusControl_commonPeer* Ark_GlobalScope_focusControl_common; +typedef struct Opt_GlobalScope_focusControl_common Opt_GlobalScope_focusControl_common; typedef struct Ark_TransitionEffects Ark_TransitionEffects; typedef struct Opt_TransitionEffects Opt_TransitionEffects; typedef struct Ark_PointLightStyle Ark_PointLightStyle; @@ -4267,56 +4267,6 @@ typedef struct Opt_ModelType { Ark_Tag tag; Ark_ModelType value; } Opt_ModelType; -typedef enum Ark_PointerStyle { - ARK_POINTER_STYLE_DEFAULT = 0, - ARK_POINTER_STYLE_EAST = 1, - ARK_POINTER_STYLE_WEST = 2, - ARK_POINTER_STYLE_SOUTH = 3, - ARK_POINTER_STYLE_NORTH = 4, - ARK_POINTER_STYLE_WEST_EAST = 5, - ARK_POINTER_STYLE_NORTH_SOUTH = 6, - ARK_POINTER_STYLE_NORTH_EAST = 7, - ARK_POINTER_STYLE_NORTH_WEST = 8, - ARK_POINTER_STYLE_SOUTH_EAST = 9, - ARK_POINTER_STYLE_SOUTH_WEST = 10, - ARK_POINTER_STYLE_NORTH_EAST_SOUTH_WEST = 11, - ARK_POINTER_STYLE_NORTH_WEST_SOUTH_EAST = 12, - ARK_POINTER_STYLE_CROSS = 13, - ARK_POINTER_STYLE_CURSOR_COPY = 14, - ARK_POINTER_STYLE_CURSOR_FORBID = 15, - ARK_POINTER_STYLE_COLOR_SUCKER = 16, - ARK_POINTER_STYLE_HAND_GRABBING = 17, - ARK_POINTER_STYLE_HAND_OPEN = 18, - ARK_POINTER_STYLE_HAND_POINTING = 19, - ARK_POINTER_STYLE_HELP = 20, - ARK_POINTER_STYLE_MOVE = 21, - ARK_POINTER_STYLE_RESIZE_LEFT_RIGHT = 22, - ARK_POINTER_STYLE_RESIZE_UP_DOWN = 23, - ARK_POINTER_STYLE_SCREENSHOT_CHOOSE = 24, - ARK_POINTER_STYLE_SCREENSHOT_CURSOR = 25, - ARK_POINTER_STYLE_TEXT_CURSOR = 26, - ARK_POINTER_STYLE_ZOOM_IN = 27, - ARK_POINTER_STYLE_ZOOM_OUT = 28, - ARK_POINTER_STYLE_MIDDLE_BTN_EAST = 29, - ARK_POINTER_STYLE_MIDDLE_BTN_WEST = 30, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH = 31, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH = 32, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH = 33, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_EAST = 34, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_WEST = 35, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_EAST = 36, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_WEST = 37, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, - ARK_POINTER_STYLE_HORIZONTAL_TEXT_CURSOR = 39, - ARK_POINTER_STYLE_CURSOR_CROSS = 40, - ARK_POINTER_STYLE_CURSOR_CIRCLE = 41, - ARK_POINTER_STYLE_LOADING = 42, - ARK_POINTER_STYLE_RUNNING = 43, -} Ark_PointerStyle; -typedef struct Opt_PointerStyle { - Ark_Tag tag; - Ark_PointerStyle value; -} Opt_PointerStyle; typedef enum Ark_ContentClipMode { ARK_CONTENT_CLIP_MODE_CONTENT_ONLY = 0, ARK_CONTENT_CLIP_MODE_BOUNDARY = 1, @@ -4553,6 +4503,56 @@ typedef struct Opt_MouseButton { Ark_Tag tag; Ark_MouseButton value; } Opt_MouseButton; +typedef enum Ark_PointerStyle { + ARK_POINTER_STYLE_DEFAULT = 0, + ARK_POINTER_STYLE_EAST = 1, + ARK_POINTER_STYLE_WEST = 2, + ARK_POINTER_STYLE_SOUTH = 3, + ARK_POINTER_STYLE_NORTH = 4, + ARK_POINTER_STYLE_WEST_EAST = 5, + ARK_POINTER_STYLE_NORTH_SOUTH = 6, + ARK_POINTER_STYLE_NORTH_EAST = 7, + ARK_POINTER_STYLE_NORTH_WEST = 8, + ARK_POINTER_STYLE_SOUTH_EAST = 9, + ARK_POINTER_STYLE_SOUTH_WEST = 10, + ARK_POINTER_STYLE_NORTH_EAST_SOUTH_WEST = 11, + ARK_POINTER_STYLE_NORTH_WEST_SOUTH_EAST = 12, + ARK_POINTER_STYLE_CROSS = 13, + ARK_POINTER_STYLE_CURSOR_COPY = 14, + ARK_POINTER_STYLE_CURSOR_FORBID = 15, + ARK_POINTER_STYLE_COLOR_SUCKER = 16, + ARK_POINTER_STYLE_HAND_GRABBING = 17, + ARK_POINTER_STYLE_HAND_OPEN = 18, + ARK_POINTER_STYLE_HAND_POINTING = 19, + ARK_POINTER_STYLE_HELP = 20, + ARK_POINTER_STYLE_MOVE = 21, + ARK_POINTER_STYLE_RESIZE_LEFT_RIGHT = 22, + ARK_POINTER_STYLE_RESIZE_UP_DOWN = 23, + ARK_POINTER_STYLE_SCREENSHOT_CHOOSE = 24, + ARK_POINTER_STYLE_SCREENSHOT_CURSOR = 25, + ARK_POINTER_STYLE_TEXT_CURSOR = 26, + ARK_POINTER_STYLE_ZOOM_IN = 27, + ARK_POINTER_STYLE_ZOOM_OUT = 28, + ARK_POINTER_STYLE_MIDDLE_BTN_EAST = 29, + ARK_POINTER_STYLE_MIDDLE_BTN_WEST = 30, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH = 31, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH = 32, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH = 33, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_EAST = 34, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_WEST = 35, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_EAST = 36, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_WEST = 37, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + ARK_POINTER_STYLE_HORIZONTAL_TEXT_CURSOR = 39, + ARK_POINTER_STYLE_CURSOR_CROSS = 40, + ARK_POINTER_STYLE_CURSOR_CIRCLE = 41, + ARK_POINTER_STYLE_LOADING = 42, + ARK_POINTER_STYLE_RUNNING = 43, +} Ark_PointerStyle; +typedef struct Opt_PointerStyle { + Ark_Tag tag; + Ark_PointerStyle value; +} Opt_PointerStyle; typedef enum Ark_TransitionEdge { ARK_TRANSITION_EDGE_TOP = 0, ARK_TRANSITION_EDGE_BOTTOM = 1, @@ -10709,10 +10709,10 @@ typedef struct Opt_ButtonTriggerClickCallback { Ark_Tag tag; ButtonTriggerClickCallback value; } Opt_ButtonTriggerClickCallback; -typedef struct Opt_GlobalScopeinspector { +typedef struct Opt_GlobalScope_inspector { Ark_Tag tag; - Ark_GlobalScopeinspector value; -} Opt_GlobalScopeinspector; + Ark_GlobalScope_inspector value; +} Opt_GlobalScope_inspector; typedef struct Opt_GlobalScope_Profiler_inspector { Ark_Tag tag; Ark_GlobalScope_Profiler_inspector value; @@ -14474,18 +14474,10 @@ typedef struct Opt_SceneOptions { Ark_Tag tag; Ark_SceneOptions value; } Opt_SceneOptions; -typedef struct Opt_GlobalScopecommon { +typedef struct Opt_GlobalScope_common { Ark_Tag tag; - Ark_GlobalScopecommon value; -} Opt_GlobalScopecommon; -typedef struct Opt_GlobalScope_cursorControl_common { - Ark_Tag tag; - Ark_GlobalScope_cursorControl_common value; -} Opt_GlobalScope_cursorControl_common; -typedef struct Opt_GlobalScope_focusControl_common { - Ark_Tag tag; - Ark_GlobalScope_focusControl_common value; -} Opt_GlobalScope_focusControl_common; + Ark_GlobalScope_common value; +} Opt_GlobalScope_common; typedef struct Opt_UICommonEvent { Ark_Tag tag; Ark_UICommonEvent value; @@ -15335,6 +15327,14 @@ typedef struct Opt_BaseEvent { Ark_Tag tag; Ark_BaseEvent value; } Opt_BaseEvent; +typedef struct Opt_GlobalScope_cursorControl_common { + Ark_Tag tag; + Ark_GlobalScope_cursorControl_common value; +} Opt_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_focusControl_common { + Ark_Tag tag; + Ark_GlobalScope_focusControl_common value; +} Opt_GlobalScope_focusControl_common; typedef struct Ark_TransitionEffects { Ark_Undefined identity; Ark_Number opacity; @@ -19954,6 +19954,17 @@ typedef struct GENERATED_ArkUITransitionEffectAccessor { Ark_TransitionEffect transitionEffect); } GENERATED_ArkUITransitionEffectAccessor; +typedef struct GENERATED_ArkUIGlobalScope_focusControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_focusControl_common peer); + Ark_Boolean (*requestFocus)(const Ark_String* value); +} GENERATED_ArkUIGlobalScope_focusControl_commonAccessor; + +typedef struct GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_cursorControl_common peer); + void (*setCursor)(Ark_PointerStyle value); + void (*restoreDefault)(); +} GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor; + typedef struct GENERATED_ArkUIBaseEventAccessor { void (*destroyPeer)(Ark_BaseEvent peer); Ark_BaseEvent (*ctor)(); @@ -20299,19 +20310,8 @@ typedef struct GENERATED_ArkUIGestureModifierAccessor { const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct GENERATED_ArkUIGlobalScope_focusControl_commonAccessor { - void (*destroyPeer)(Ark_GlobalScope_focusControl_common peer); - Ark_Boolean (*requestFocus)(const Ark_String* value); -} GENERATED_ArkUIGlobalScope_focusControl_commonAccessor; - -typedef struct GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor { - void (*destroyPeer)(Ark_GlobalScope_cursorControl_common peer); - void (*setCursor)(Ark_PointerStyle value); - void (*restoreDefault)(); -} GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor; - -typedef struct GENERATED_ArkUIGlobalScopecommonAccessor { - void (*destroyPeer)(Ark_GlobalScopecommon peer); +typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_common peer); Ark_Context (*getContext)(const Opt_CustomObject* component); void (*postCardAction)(const Ark_CustomObject* component, const Ark_CustomObject* action); @@ -20328,7 +20328,7 @@ typedef struct GENERATED_ArkUIGlobalScopecommonAccessor { Ark_Int32 (*px2fp)(const Ark_Number* value); Ark_Int32 (*lpx2px)(const Ark_Number* value); Ark_Int32 (*px2lpx)(const Ark_Number* value); -} GENERATED_ArkUIGlobalScopecommonAccessor; +} GENERATED_ArkUIGlobalScope_commonAccessor; typedef struct GENERATED_ArkUIContextMenuAccessor { void (*destroyPeer)(Ark_ContextMenu peer); @@ -21680,12 +21680,12 @@ typedef struct GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor { void (*unregisterVsyncCallback)(); } GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor; -typedef struct GENERATED_ArkUIGlobalScopeinspectorAccessor { - void (*destroyPeer)(Ark_GlobalScopeinspector peer); +typedef struct GENERATED_ArkUIGlobalScope_inspectorAccessor { + void (*destroyPeer)(Ark_GlobalScope_inspector peer); Ark_CustomObject (*getInspectorNodes)(); Ark_CustomObject (*getInspectorNodeById)(const Ark_Number* id); void (*setAppBgColor)(const Ark_String* value); -} GENERATED_ArkUIGlobalScopeinspectorAccessor; +} GENERATED_ArkUIGlobalScope_inspectorAccessor; typedef struct GENERATED_ArkUIAbilityComponentEventsReceiver { void (*onConnect)(Ark_Int32 nodeId); @@ -22748,6 +22748,8 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIICurveAccessor* (*getICurveAccessor)(); const GENERATED_ArkUIDrawModifierAccessor* (*getDrawModifierAccessor)(); const GENERATED_ArkUITransitionEffectAccessor* (*getTransitionEffectAccessor)(); + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* (*getGlobalScope_focusControl_commonAccessor)(); + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* (*getGlobalScope_cursorControl_commonAccessor)(); const GENERATED_ArkUIBaseEventAccessor* (*getBaseEventAccessor)(); const GENERATED_ArkUIClickEventAccessor* (*getClickEventAccessor)(); const GENERATED_ArkUIHoverEventAccessor* (*getHoverEventAccessor)(); @@ -22765,9 +22767,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIUICommonEventAccessor* (*getUICommonEventAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); - const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* (*getGlobalScope_focusControl_commonAccessor)(); - const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* (*getGlobalScope_cursorControl_commonAccessor)(); - const GENERATED_ArkUIGlobalScopecommonAccessor* (*getGlobalScopecommonAccessor)(); + const GENERATED_ArkUIGlobalScope_commonAccessor* (*getGlobalScope_commonAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); const GENERATED_ArkUILinearGradientAccessor* (*getLinearGradientAccessor)(); @@ -22866,7 +22866,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUICustomSpanAccessor* (*getCustomSpanAccessor)(); const GENERATED_ArkUILinearIndicatorControllerAccessor* (*getLinearIndicatorControllerAccessor)(); const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* (*getGlobalScope_Profiler_inspectorAccessor)(); - const GENERATED_ArkUIGlobalScopeinspectorAccessor* (*getGlobalScopeinspectorAccessor)(); + const GENERATED_ArkUIGlobalScope_inspectorAccessor* (*getGlobalScope_inspectorAccessor)(); } GENERATED_ArkUIAccessors; typedef struct GENERATED_ArkUIGraphicsAPI { diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index 11da6444c..7185a879e 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -18855,6 +18855,18 @@ Ark_NativePointer impl_TransitionEffect_combine(Ark_NativePointer thisPtr, uint8 return GetAccessors()->getTransitionEffectAccessor()->combine(self, transitionEffect_value); } KOALA_INTEROP_3(TransitionEffect_combine, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_Boolean impl_GlobalScope_focusControl_common_requestFocus(const KStringPtr& value) { + return GetAccessors()->getGlobalScope_focusControl_commonAccessor()->requestFocus((const Ark_String*) (&value)); +} +KOALA_INTEROP_1(GlobalScope_focusControl_common_requestFocus, Ark_Boolean, KStringPtr) +void impl_GlobalScope_cursorControl_common_setCursor(Ark_Int32 value) { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->setCursor(static_cast(value)); +} +KOALA_INTEROP_V1(GlobalScope_cursorControl_common_setCursor, Ark_Int32) +void impl_GlobalScope_cursorControl_common_restoreDefault() { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->restoreDefault(); +} +KOALA_INTEROP_V0(GlobalScope_cursorControl_common_restoreDefault) Ark_NativePointer impl_BaseEvent_ctor() { return GetAccessors()->getBaseEventAccessor()->ctor(); } @@ -20055,19 +20067,7 @@ void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, uint8_t* thisA GetAccessors()->getGestureModifierAccessor()->applyGesture(self, (const Ark_UIGestureEvent*)&event_value); } KOALA_INTEROP_V3(GestureModifier_applyGesture, Ark_NativePointer, uint8_t*, int32_t) -Ark_Boolean impl_GlobalScope_focusControl_common_requestFocus(const KStringPtr& value) { - return GetAccessors()->getGlobalScope_focusControl_commonAccessor()->requestFocus((const Ark_String*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_focusControl_common_requestFocus, Ark_Boolean, KStringPtr) -void impl_GlobalScope_cursorControl_common_setCursor(Ark_Int32 value) { - GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->setCursor(static_cast(value)); -} -KOALA_INTEROP_V1(GlobalScope_cursorControl_common_setCursor, Ark_Int32) -void impl_GlobalScope_cursorControl_common_restoreDefault() { - GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->restoreDefault(); -} -KOALA_INTEROP_V0(GlobalScope_cursorControl_common_restoreDefault) -KInteropReturnBuffer impl_GlobalScopecommon_getContext(uint8_t* thisArray, int32_t thisLength) { +KInteropReturnBuffer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto component_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_CustomObject component_value_buf = {}; @@ -20078,18 +20078,18 @@ KInteropReturnBuffer impl_GlobalScopecommon_getContext(uint8_t* thisArray, int32 } Opt_CustomObject component_value = component_value_buf;; Serializer _retSerializer {}; - _retSerializer.writeContext(GetAccessors()->getGlobalScopecommonAccessor()->getContext((const Opt_CustomObject*)&component_value)); + _retSerializer.writeContext(GetAccessors()->getGlobalScope_commonAccessor()->getContext((const Opt_CustomObject*)&component_value)); return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(GlobalScopecommon_getContext, KInteropReturnBuffer, uint8_t*, int32_t) -void impl_GlobalScopecommon_postCardAction(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_2(GlobalScope_common_getContext, KInteropReturnBuffer, uint8_t*, int32_t) +void impl_GlobalScope_common_postCardAction(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject component_value = static_cast(thisDeserializer.readCustomObject("Object"));; Ark_CustomObject action_value = static_cast(thisDeserializer.readCustomObject("Object"));; - GetAccessors()->getGlobalScopecommonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); + GetAccessors()->getGlobalScope_commonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); } -KOALA_INTEROP_V2(GlobalScopecommon_postCardAction, uint8_t*, int32_t) -KInteropReturnBuffer impl_GlobalScopecommon_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V2(GlobalScope_common_postCardAction, uint8_t*, int32_t) +KInteropReturnBuffer impl_GlobalScope_common_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 params_value_buf_length = thisDeserializer.readInt32(); Array_CustomObject params_value_buf = {}; @@ -20100,54 +20100,54 @@ KInteropReturnBuffer impl_GlobalScopecommon_dollar_r(const KStringPtr& value, ui } Array_CustomObject params_value = params_value_buf;; Serializer _retSerializer {}; - _retSerializer.writeResource(GetAccessors()->getGlobalScopecommonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value)); + _retSerializer.writeResource(GetAccessors()->getGlobalScope_commonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value)); return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(GlobalScopecommon_dollar_r, KInteropReturnBuffer, KStringPtr, uint8_t*, int32_t) -KInteropReturnBuffer impl_GlobalScopecommon_dollar_rawfile(const KStringPtr& value) { +KOALA_INTEROP_3(GlobalScope_common_dollar_r, KInteropReturnBuffer, KStringPtr, uint8_t*, int32_t) +KInteropReturnBuffer impl_GlobalScope_common_dollar_rawfile(const KStringPtr& value) { Serializer _retSerializer {}; - _retSerializer.writeResource(GetAccessors()->getGlobalScopecommonAccessor()->dollar_rawfile((const Ark_String*) (&value))); + _retSerializer.writeResource(GetAccessors()->getGlobalScope_commonAccessor()->dollar_rawfile((const Ark_String*) (&value))); return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(GlobalScopecommon_dollar_rawfile, KInteropReturnBuffer, KStringPtr) -void impl_GlobalScopecommon_animateTo(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_1(GlobalScope_common_dollar_rawfile, KInteropReturnBuffer, KStringPtr) +void impl_GlobalScope_common_animateTo(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScopecommonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); + GetAccessors()->getGlobalScope_commonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); } -KOALA_INTEROP_V2(GlobalScopecommon_animateTo, uint8_t*, int32_t) -void impl_GlobalScopecommon_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { +KOALA_INTEROP_V2(GlobalScope_common_animateTo, uint8_t*, int32_t) +void impl_GlobalScope_common_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScopecommonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); + GetAccessors()->getGlobalScope_commonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); } -KOALA_INTEROP_V2(GlobalScopecommon_animateToImmediately, uint8_t*, int32_t) -Ark_Int32 impl_GlobalScopecommon_vp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->vp2px((const Ark_Number*) (&value)); +KOALA_INTEROP_V2(GlobalScope_common_animateToImmediately, uint8_t*, int32_t) +Ark_Int32 impl_GlobalScope_common_vp2px(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->vp2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_vp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScopecommon_px2vp(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->px2vp((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScope_common_vp2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScope_common_px2vp(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->px2vp((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_px2vp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScopecommon_fp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->fp2px((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScope_common_px2vp, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScope_common_fp2px(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->fp2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_fp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScopecommon_px2fp(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->px2fp((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScope_common_fp2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScope_common_px2fp(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->px2fp((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_px2fp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScopecommon_lpx2px(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->lpx2px((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScope_common_px2fp, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScope_common_lpx2px(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->lpx2px((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_lpx2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScopecommon_px2lpx(KInteropNumber value) { - return GetAccessors()->getGlobalScopecommonAccessor()->px2lpx((const Ark_Number*) (&value)); +KOALA_INTEROP_1(GlobalScope_common_lpx2px, Ark_Int32, KInteropNumber) +Ark_Int32 impl_GlobalScope_common_px2lpx(KInteropNumber value) { + return GetAccessors()->getGlobalScope_commonAccessor()->px2lpx((const Ark_Number*) (&value)); } -KOALA_INTEROP_1(GlobalScopecommon_px2lpx, Ark_Int32, KInteropNumber) +KOALA_INTEROP_1(GlobalScope_common_px2lpx, Ark_Int32, KInteropNumber) Ark_NativePointer impl_ContextMenu_ctor() { return GetAccessors()->getContextMenuAccessor()->ctor(); } @@ -24409,15 +24409,15 @@ void impl_GlobalScope_Profiler_inspector_unregisterVsyncCallback() { GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->unregisterVsyncCallback(); } KOALA_INTEROP_V0(GlobalScope_Profiler_inspector_unregisterVsyncCallback) -void impl_GlobalScopeinspector_getInspectorNodes() { - GetAccessors()->getGlobalScopeinspectorAccessor()->getInspectorNodes(); +void impl_GlobalScope_inspector_getInspectorNodes() { + GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodes(); } -KOALA_INTEROP_V0(GlobalScopeinspector_getInspectorNodes) -void impl_GlobalScopeinspector_getInspectorNodeById(KInteropNumber id) { - GetAccessors()->getGlobalScopeinspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); +KOALA_INTEROP_V0(GlobalScope_inspector_getInspectorNodes) +void impl_GlobalScope_inspector_getInspectorNodeById(KInteropNumber id) { + GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); } -KOALA_INTEROP_V1(GlobalScopeinspector_getInspectorNodeById, KInteropNumber) -void impl_GlobalScopeinspector_setAppBgColor(const KStringPtr& value) { - GetAccessors()->getGlobalScopeinspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); +KOALA_INTEROP_V1(GlobalScope_inspector_getInspectorNodeById, KInteropNumber) +void impl_GlobalScope_inspector_setAppBgColor(const KStringPtr& value) { + GetAccessors()->getGlobalScope_inspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); } -KOALA_INTEROP_V1(GlobalScopeinspector_setAppBgColor, KStringPtr) \ No newline at end of file +KOALA_INTEROP_V1(GlobalScope_inspector_setAppBgColor, KStringPtr) \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index 9a8a48d8e..cea2e2e67 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -23394,6 +23394,54 @@ namespace OHOS::Ace::NG::GeneratedModifier { return (Ark_TransitionEffect) 300; } } // TransitionEffectAccessor + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + if (!needGroupedLog(1)) + return 0; + string out("requestFocus("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetCursorImpl(Ark_PointerStyle value) + { + if (!needGroupedLog(1)) + return; + string out("setCursor("); + WriteToString(&out, value); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RestoreDefaultImpl() + { + if (!needGroupedLog(1)) + return; + string out("restoreDefault("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // GlobalScope_cursorControl_commonAccessor namespace BaseEventAccessor { void DestroyPeerImpl(Ark_BaseEvent peer) { @@ -25492,56 +25540,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GestureModifierAccessor - namespace GlobalScope_focusControl_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Boolean RequestFocusImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return 0; - string out("requestFocus("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - } // GlobalScope_focusControl_commonAccessor - namespace GlobalScope_cursorControl_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SetCursorImpl(Ark_PointerStyle value) - { - if (!needGroupedLog(1)) - return; - string out("setCursor("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RestoreDefaultImpl() - { - if (!needGroupedLog(1)) - return; - string out("restoreDefault("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GlobalScope_cursorControl_commonAccessor - namespace GlobalScopecommonAccessor { - void DestroyPeerImpl(Ark_GlobalScopecommon peer) + namespace GlobalScope_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_common peer) { if (!needGroupedLog(1)) return; @@ -25687,7 +25687,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - } // GlobalScopecommonAccessor + } // GlobalScope_commonAccessor namespace ContextMenuAccessor { void DestroyPeerImpl(Ark_ContextMenu peer) { @@ -33315,8 +33315,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GlobalScope_Profiler_inspectorAccessor - namespace GlobalScopeinspectorAccessor { - void DestroyPeerImpl(Ark_GlobalScopeinspector peer) + namespace GlobalScope_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_inspector peer) { if (!needGroupedLog(1)) return; @@ -33354,7 +33354,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - } // GlobalScopeinspectorAccessor + } // GlobalScope_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -34006,6 +34006,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TransitionEffectPeer { virtual ~TransitionEffectPeer() = default; }; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; const GENERATED_ArkUIBaseEventAccessor* GetBaseEventAccessor() { static const GENERATED_ArkUIBaseEventAccessor BaseEventAccessorImpl { @@ -34383,53 +34408,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { - GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, - GlobalScope_focusControl_commonAccessor::RequestFocusImpl, - }; - return &GlobalScope_focusControl_commonAccessorImpl; - } - - struct GlobalScope_focusControl_commonPeer { - virtual ~GlobalScope_focusControl_commonPeer() = default; - }; - const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { - GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, - GlobalScope_cursorControl_commonAccessor::SetCursorImpl, - GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_cursorControl_commonAccessorImpl; - } - - struct GlobalScope_cursorControl_commonPeer { - virtual ~GlobalScope_cursorControl_commonPeer() = default; - }; - const GENERATED_ArkUIGlobalScopecommonAccessor* GetGlobalScopecommonAccessor() - { - static const GENERATED_ArkUIGlobalScopecommonAccessor GlobalScopecommonAccessorImpl { - GlobalScopecommonAccessor::DestroyPeerImpl, - GlobalScopecommonAccessor::GetContextImpl, - GlobalScopecommonAccessor::PostCardActionImpl, - GlobalScopecommonAccessor::Dollar_rImpl, - GlobalScopecommonAccessor::Dollar_rawfileImpl, - GlobalScopecommonAccessor::AnimateToImpl, - GlobalScopecommonAccessor::AnimateToImmediatelyImpl, - GlobalScopecommonAccessor::Vp2pxImpl, - GlobalScopecommonAccessor::Px2vpImpl, - GlobalScopecommonAccessor::Fp2pxImpl, - GlobalScopecommonAccessor::Px2fpImpl, - GlobalScopecommonAccessor::Lpx2pxImpl, - GlobalScopecommonAccessor::Px2lpxImpl, - }; - return &GlobalScopecommonAccessorImpl; - } - - struct GlobalScopecommonPeer { - virtual ~GlobalScopecommonPeer() = default; + const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { + GlobalScope_commonAccessor::DestroyPeerImpl, + GlobalScope_commonAccessor::GetContextImpl, + GlobalScope_commonAccessor::PostCardActionImpl, + GlobalScope_commonAccessor::Dollar_rImpl, + GlobalScope_commonAccessor::Dollar_rawfileImpl, + GlobalScope_commonAccessor::AnimateToImpl, + GlobalScope_commonAccessor::AnimateToImmediatelyImpl, + GlobalScope_commonAccessor::Vp2pxImpl, + GlobalScope_commonAccessor::Px2vpImpl, + GlobalScope_commonAccessor::Fp2pxImpl, + GlobalScope_commonAccessor::Px2fpImpl, + GlobalScope_commonAccessor::Lpx2pxImpl, + GlobalScope_commonAccessor::Px2lpxImpl, + }; + return &GlobalScope_commonAccessorImpl; + } + + struct GlobalScope_commonPeer { + virtual ~GlobalScope_commonPeer() = default; }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { @@ -36149,19 +36149,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GlobalScope_Profiler_inspectorPeer { virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; - const GENERATED_ArkUIGlobalScopeinspectorAccessor* GetGlobalScopeinspectorAccessor() + const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() { - static const GENERATED_ArkUIGlobalScopeinspectorAccessor GlobalScopeinspectorAccessorImpl { - GlobalScopeinspectorAccessor::DestroyPeerImpl, - GlobalScopeinspectorAccessor::GetInspectorNodesImpl, - GlobalScopeinspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScopeinspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { + GlobalScope_inspectorAccessor::DestroyPeerImpl, + GlobalScope_inspectorAccessor::GetInspectorNodesImpl, + GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, + GlobalScope_inspectorAccessor::SetAppBgColorImpl, }; - return &GlobalScopeinspectorAccessorImpl; + return &GlobalScope_inspectorAccessorImpl; } - struct GlobalScopeinspectorPeer { - virtual ~GlobalScopeinspectorPeer() = default; + struct GlobalScope_inspectorPeer { + virtual ~GlobalScope_inspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -36202,6 +36202,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetICurveAccessor, GetDrawModifierAccessor, GetTransitionEffectAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, GetBaseEventAccessor, GetClickEventAccessor, GetHoverEventAccessor, @@ -36219,9 +36221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_focusControl_commonAccessor, - GetGlobalScope_cursorControl_commonAccessor, - GetGlobalScopecommonAccessor, + GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -36320,7 +36320,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_Profiler_inspectorAccessor, - GetGlobalScopeinspectorAccessor, + GetGlobalScope_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 4e3778d7f..44b4b07dc 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -11846,6 +11846,34 @@ namespace OHOS::Ace::NG::GeneratedModifier { return {}; } } // TransitionEffectAccessor + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + return {}; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + void SetCursorImpl(Ark_PointerStyle value) + { + } + void RestoreDefaultImpl() + { + } + } // GlobalScope_cursorControl_commonAccessor namespace BaseEventAccessor { void DestroyPeerImpl(Ark_BaseEvent peer) { @@ -12769,38 +12797,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // GestureModifierAccessor - namespace GlobalScope_focusControl_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_Boolean RequestFocusImpl(const Ark_String* value) - { - return {}; - } - } // GlobalScope_focusControl_commonAccessor - namespace GlobalScope_cursorControl_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - void SetCursorImpl(Ark_PointerStyle value) - { - } - void RestoreDefaultImpl() - { - } - } // GlobalScope_cursorControl_commonAccessor - namespace GlobalScopecommonAccessor { - void DestroyPeerImpl(Ark_GlobalScopecommon peer) + namespace GlobalScope_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_common peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } @@ -12854,7 +12854,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - } // GlobalScopecommonAccessor + } // GlobalScope_commonAccessor namespace ContextMenuAccessor { void DestroyPeerImpl(Ark_ContextMenu peer) { @@ -16351,10 +16351,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // GlobalScope_Profiler_inspectorAccessor - namespace GlobalScopeinspectorAccessor { - void DestroyPeerImpl(Ark_GlobalScopeinspector peer) + namespace GlobalScope_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_inspector peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } @@ -16370,7 +16370,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { void SetAppBgColorImpl(const Ark_String* value) { } - } // GlobalScopeinspectorAccessor + } // GlobalScope_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -17022,6 +17022,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TransitionEffectPeer { virtual ~TransitionEffectPeer() = default; }; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; const GENERATED_ArkUIBaseEventAccessor* GetBaseEventAccessor() { static const GENERATED_ArkUIBaseEventAccessor BaseEventAccessorImpl { @@ -17399,53 +17424,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { - GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, - GlobalScope_focusControl_commonAccessor::RequestFocusImpl, - }; - return &GlobalScope_focusControl_commonAccessorImpl; - } - - struct GlobalScope_focusControl_commonPeer { - virtual ~GlobalScope_focusControl_commonPeer() = default; - }; - const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { - GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, - GlobalScope_cursorControl_commonAccessor::SetCursorImpl, - GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_cursorControl_commonAccessorImpl; - } - - struct GlobalScope_cursorControl_commonPeer { - virtual ~GlobalScope_cursorControl_commonPeer() = default; - }; - const GENERATED_ArkUIGlobalScopecommonAccessor* GetGlobalScopecommonAccessor() - { - static const GENERATED_ArkUIGlobalScopecommonAccessor GlobalScopecommonAccessorImpl { - GlobalScopecommonAccessor::DestroyPeerImpl, - GlobalScopecommonAccessor::GetContextImpl, - GlobalScopecommonAccessor::PostCardActionImpl, - GlobalScopecommonAccessor::Dollar_rImpl, - GlobalScopecommonAccessor::Dollar_rawfileImpl, - GlobalScopecommonAccessor::AnimateToImpl, - GlobalScopecommonAccessor::AnimateToImmediatelyImpl, - GlobalScopecommonAccessor::Vp2pxImpl, - GlobalScopecommonAccessor::Px2vpImpl, - GlobalScopecommonAccessor::Fp2pxImpl, - GlobalScopecommonAccessor::Px2fpImpl, - GlobalScopecommonAccessor::Lpx2pxImpl, - GlobalScopecommonAccessor::Px2lpxImpl, - }; - return &GlobalScopecommonAccessorImpl; - } - - struct GlobalScopecommonPeer { - virtual ~GlobalScopecommonPeer() = default; + const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { + GlobalScope_commonAccessor::DestroyPeerImpl, + GlobalScope_commonAccessor::GetContextImpl, + GlobalScope_commonAccessor::PostCardActionImpl, + GlobalScope_commonAccessor::Dollar_rImpl, + GlobalScope_commonAccessor::Dollar_rawfileImpl, + GlobalScope_commonAccessor::AnimateToImpl, + GlobalScope_commonAccessor::AnimateToImmediatelyImpl, + GlobalScope_commonAccessor::Vp2pxImpl, + GlobalScope_commonAccessor::Px2vpImpl, + GlobalScope_commonAccessor::Fp2pxImpl, + GlobalScope_commonAccessor::Px2fpImpl, + GlobalScope_commonAccessor::Lpx2pxImpl, + GlobalScope_commonAccessor::Px2lpxImpl, + }; + return &GlobalScope_commonAccessorImpl; + } + + struct GlobalScope_commonPeer { + virtual ~GlobalScope_commonPeer() = default; }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { @@ -19165,19 +19165,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GlobalScope_Profiler_inspectorPeer { virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; - const GENERATED_ArkUIGlobalScopeinspectorAccessor* GetGlobalScopeinspectorAccessor() + const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() { - static const GENERATED_ArkUIGlobalScopeinspectorAccessor GlobalScopeinspectorAccessorImpl { - GlobalScopeinspectorAccessor::DestroyPeerImpl, - GlobalScopeinspectorAccessor::GetInspectorNodesImpl, - GlobalScopeinspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScopeinspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { + GlobalScope_inspectorAccessor::DestroyPeerImpl, + GlobalScope_inspectorAccessor::GetInspectorNodesImpl, + GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, + GlobalScope_inspectorAccessor::SetAppBgColorImpl, }; - return &GlobalScopeinspectorAccessorImpl; + return &GlobalScope_inspectorAccessorImpl; } - struct GlobalScopeinspectorPeer { - virtual ~GlobalScopeinspectorPeer() = default; + struct GlobalScope_inspectorPeer { + virtual ~GlobalScope_inspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -19218,6 +19218,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetICurveAccessor, GetDrawModifierAccessor, GetTransitionEffectAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, GetBaseEventAccessor, GetClickEventAccessor, GetHoverEventAccessor, @@ -19235,9 +19237,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_focusControl_commonAccessor, - GetGlobalScope_cursorControl_commonAccessor, - GetGlobalScopecommonAccessor, + GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -19336,7 +19336,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_Profiler_inspectorAccessor, - GetGlobalScopeinspectorAccessor, + GetGlobalScope_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index 37e8594ec..bdd8cc3cf 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -2,8 +2,8 @@ "name": "peer-generator", "description": "", "config": { - "idlize_version": "2.0.26", - "api_version": "118", + "idlize_version": "2.0.31", + "api_version": "119", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": { @@ -20,6 +20,6 @@ }, "dependencies": { "@koalaui/interop": "file:../../../../external/interop", - "idlizer-current": "file:../../../../idlize-2/arkgen" + "idlizer-current": "file:../../../../arkgen" } } -- Gitee From c52c8f3a45318265c4630fb025ffd052726d61fc Mon Sep 17 00:00:00 2001 From: Korobeinikov Evgeny Date: Wed, 19 Feb 2025 14:53:55 +0000 Subject: [PATCH 18/31] !24 Fix ets-harness version * Fix ets-harness version --- arkoala-arkts/ets-harness/package.json | 8 ++++---- tools/release.mjs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arkoala-arkts/ets-harness/package.json b/arkoala-arkts/ets-harness/package.json index 2138ab059..cadbdb01e 100644 --- a/arkoala-arkts/ets-harness/package.json +++ b/arkoala-arkts/ets-harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-harness", - "version": "1.4.8+devel", + "version": "1.5.5+devel", "description": "", "main": "./build/lib/src/launcher.js", "types": "./build/lib/src/launcher.d.ts", @@ -23,9 +23,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.4.8+devel", - "@koalaui/compat": "1.4.8+devel", - "@koalaui/harness": "1.4.8+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/tools/release.mjs b/tools/release.mjs index 3ea6f6cb6..18f04a0ea 100644 --- a/tools/release.mjs +++ b/tools/release.mjs @@ -68,6 +68,7 @@ const all_packages = [ new Package(path.join(EXTERNAL_HOME, "incremental/harness")), new Package(path.join(EXTERNAL_HOME, "incremental/runtime")), new Package(path.join(EXTERNAL_HOME, "incremental/compiler-plugin")), + new Package(path.join(EXTERNAL_HOME, "arkoala-arkts/ets-harness")), new Package(path.join(EXTERNAL_HOME, "arkoala/ets-plugin")), new Package(path.join(EXTERNAL_HOME, "arkoala/arkui-common")), new Package(path.join(EXTERNAL_HOME, "arkoala/arkui")), -- Gitee From 9cd2ca9a48960e139c880ec75d97f080339f4179 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Wed, 19 Feb 2025 16:03:36 +0000 Subject: [PATCH 19/31] !25 Use generated Options instead of Partial approach --- arkoala/ets-plugin/src/ApiUtils.ts | 18 ------------------ arkoala/ets-plugin/src/StructTransformer.ts | 8 +------- .../test/golden/arkoala/ets/Rewrite.ts | 2 +- .../test/golden/arkoala/spec/@customDialog.ts | 2 +- .../spec/test/pages/import@CustomDialog.ts | 2 +- .../test/golden/arkts/ets/Rewrite.ts | 2 +- .../test/golden/arkts/spec/@customDialog.ts | 2 +- .../spec/test/pages/import@CustomDialog.ts | 2 +- .../test/golden/koala/ets/Rewrite.ts | 2 +- .../test/golden/koala/spec/@customDialog.ts | 2 +- .../spec/test/pages/import@CustomDialog.ts | 2 +- 11 files changed, 10 insertions(+), 34 deletions(-) diff --git a/arkoala/ets-plugin/src/ApiUtils.ts b/arkoala/ets-plugin/src/ApiUtils.ts index b469a9d12..b461bbaf4 100644 --- a/arkoala/ets-plugin/src/ApiUtils.ts +++ b/arkoala/ets-plugin/src/ApiUtils.ts @@ -104,24 +104,6 @@ export function undefinedValue(): ts.Expression { return ts.factory.createIdentifier("undefined") } -export function partialForName(className: string) { - return ts.factory.createTypeReferenceNode( - "Partial", - [ - ts.factory.createTypeReferenceNode(className) - ] - ) -} - -export function partial(className: ts.Identifier) { - return ts.factory.createTypeReferenceNode( - "Partial", - [ - ts.factory.createTypeReferenceNode(ts.idText(className)) - ] - ) -} - export function anyIfNoType(type: ts.TypeNode | undefined): ts.TypeNode { if (!type) return Any() return type diff --git a/arkoala/ets-plugin/src/StructTransformer.ts b/arkoala/ets-plugin/src/StructTransformer.ts index 289e041a3..7f93de0d3 100644 --- a/arkoala/ets-plugin/src/StructTransformer.ts +++ b/arkoala/ets-plugin/src/StructTransformer.ts @@ -667,13 +667,7 @@ export class StructTransformer extends AbstractVisitor { [ parameter( id("initializer"), - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("Partial"), - [ts.factory.createTypeReferenceNode( - this.translateComponentName(adaptorClassName(node.name))!, - undefined - )] - ), + this.structOptions.createTypeReference(node), ts.factory.createObjectLiteralExpression() ) ], diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts index 3e171348b..92e7c274d 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts @@ -875,7 +875,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts index 4180f4500..4efc825eb 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts @@ -190,7 +190,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts index 54ca1c411..62189f289 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts @@ -102,7 +102,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts index 093fc0dce..c8b81391f 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts @@ -876,7 +876,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts index 32f190e27..2ee1bfc8f 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts @@ -192,7 +192,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts index 22be2c938..a5c169cc6 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts @@ -105,7 +105,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts index c05169dbb..86c02fb02 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts @@ -873,7 +873,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts index 6421236b7..e7de33702 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts @@ -192,7 +192,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts index 3f0441a65..0e5828e7e 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts @@ -104,7 +104,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { -- Gitee From 1fd796cb0176f8f85babc24ef906e6661df6bacf Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 19 Feb 2025 16:26:49 +0000 Subject: [PATCH 20/31] !26 Generate with 2.0.32 * Generate with 2.0.32 --- arkoala-arkts/arkui/src/PeerNode.ts | 1 + ...ArkCanvasRenderingContext2DMaterialized.ts | 8 +- .../src/generated/ArkCommonInterfaces.ts | 14 +- .../ArkGlobalScopeCommonMaterialized.ts | 158 ------- .../ArkGlobalScopeInspectorMaterialized.ts | 50 -- ...eenCanvasRenderingContext2DMaterialized.ts | 8 +- .../arkui/src/generated/GlobalScope.ts | 68 --- .../arkts/ArkUIGeneratedNativeModule.ts | 15 - .../arkui/src/generated/arkts/type_check.ts | 6 +- arkoala-arkts/arkui/src/generated/index.ts | 4 +- .../arkui/src/generated/peers/Deserializer.ts | 8 +- .../arkui/src/generated/peers/Serializer.ts | 7 +- .../arkui/src/generated/ts/type_check.ts | 6 +- arkoala-arkts/arkui/types/index-full.d.ts | 30 +- arkoala/arkui-types/index-full.d.ts | 44 +- .../ArkCanvasRendererMaterialized.ts | 2 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 8 +- .../src/generated/ArkCommonInterfaces.ts | 14 +- .../generated/ArkCursorControlNamespace.ts | 1 - .../generated/ArkCustomSpanMaterialized.ts | 2 +- .../src/generated/ArkDragEventMaterialized.ts | 4 +- .../src/generated/ArkFrameNodeMaterialized.ts | 2 +- .../ArkGlobalScopecommonMaterialized.ts | 159 ------- .../ArkGlobalScopeinspectorMaterialized.ts | 50 -- .../generated/ArkLayoutManagerMaterialized.ts | 4 +- .../generated/ArkListScrollerMaterialized.ts | 4 +- .../generated/ArkMeasurableMaterialized.ts | 8 +- ...eenCanvasRenderingContext2DMaterialized.ts | 8 +- ...ArkRichEditorBaseControllerMaterialized.ts | 4 +- .../ArkRichEditorControllerMaterialized.ts | 3 +- ...ditorStyledStringControllerMaterialized.ts | 2 +- .../src/generated/ArkScrollerMaterialized.ts | 4 +- ...rkTextContentControllerBaseMaterialized.ts | 4 +- .../ArkTextEditControllerExMaterialized.ts | 2 +- .../generated/ArkUIGeneratedNativeModule.ts | 147 +----- .../ArkUIGeneratedNativeModuleEmpty.ts | 76 +-- .../ArkXComponentControllerMaterialized.ts | 4 +- arkoala/arkui/src/generated/GlobalScope.ts | 66 --- .../arkui/src/generated/peers/Deserializer.ts | 8 +- .../arkui/src/generated/peers/Serializer.ts | 7 +- arkoala/arkui/src/resources.ts | 129 ++---- .../native/src/generated/Serializers.h | 98 ---- .../src/generated/arkoala_api_generated.h | 126 ++--- .../native/src/generated/bridge_generated.cc | 111 +---- .../native/src/generated/dummy_impl.cc | 433 ++++++------------ .../native/src/generated/real_impl.cc | 224 +++------ arkoala/loader/package.json | 16 +- arkoala/loader/src/ets/tsconfig.json | 6 +- arkoala/loader/webpack.config.ark.js | 6 - arkoala/loader/webpack.config.base.js | 6 - arkoala/loader/webpack.config.node-perf.js | 6 - arkoala/loader/webpack.config.node-test.js | 6 - arkoala/loader/webpack.config.web.js | 6 - 53 files changed, 444 insertions(+), 1749 deletions(-) delete mode 100644 arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts delete mode 100644 arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts delete mode 100644 arkoala-arkts/arkui/src/generated/GlobalScope.ts delete mode 100644 arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts delete mode 100644 arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts delete mode 100644 arkoala/arkui/src/generated/GlobalScope.ts diff --git a/arkoala-arkts/arkui/src/PeerNode.ts b/arkoala-arkts/arkui/src/PeerNode.ts index cb55241d7..69384bc7d 100644 --- a/arkoala-arkts/arkui/src/PeerNode.ts +++ b/arkoala-arkts/arkui/src/PeerNode.ts @@ -5,6 +5,7 @@ import { nullptr, pointer } from "@koalaui/interop" import { ArkRootPeer } from "./generated/peers/ArkStaticComponentsPeer" export const PeerNodeType = 11 +export const LazyForEachType = 13 const InitialID = 999 export class PeerNode extends IncrementalNode { diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 90fb51eb6..f0ac3d5ae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -80,9 +80,9 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (number | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { @@ -125,7 +125,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material off(type: string, callback_: (() => void)): void { throw new Error("TBD") } - private toDataURL_serialize(type?: string, quality?: number): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer : Serializer = Serializer.hold() let type_type : int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -139,7 +139,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material thisSerializer.writeInt8(quality_type as int32) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeNumber(quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._CanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index 7a22bdc90..752a2d716 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -21,12 +21,12 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, Color, ColoringStrategy, TouchType, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode, ImageSize, Alignment, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType } from "./ArkEnumsInterfaces" import { ResourceColor, Length, Bias, Area, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, Position, LocalizedBorderRadiuses, Margin, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { ICurve } from "./ArkICurveMaterialized" import { Callback_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_Number_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_DismissPopupAction_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" import { GestureJudgeResult, GestureInfo, GestureType, GestureMask, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" @@ -63,9 +63,11 @@ export interface ProvideOptions { } export interface AnimatableArithmetic { } +declare function getContext(arg0: Object): Context export interface Context { _ContextStub: string; } +declare function postCardAction(arg0: Object, arg1: Object): void export interface Configuration { colorMode: string; fontScale: number; @@ -81,6 +83,8 @@ export interface ExpectedFrameRateRange { max: number; expected: number; } +declare function dollar_r(arg0: string, arg1: Array): Resource +declare function dollar_rawfile(arg0: string): Resource export enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1 @@ -232,6 +236,14 @@ export interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(arg0: AnimateParam, arg1: (() => void)): void +declare function animateToImmediately(arg0: AnimateParam, arg1: (() => void)): void +declare function vp2px(arg0: number): number +declare function px2vp(arg0: number): number +declare function fp2px(arg0: number): number +declare function px2fp(arg0: number): number +declare function lpx2px(arg0: number): number +declare function px2lpx(arg0: number): number export interface EventTarget { area: Area; } diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts deleted file mode 100644 index 3d82a993a..000000000 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Context, AnimateParam } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_common { - public static getContext(component?: Object): Context { - const component_casted = component as (Object | undefined) - return GlobalScope_common.getContext_serialize(component_casted) - } - public static postCardAction(component: Object, action: Object): void { - const component_casted = component as (Object) - const action_casted = action as (Object) - GlobalScope_common.postCardAction_serialize(component_casted, action_casted) - return - } - public static dollar_r(value: string, params: Array): Resource { - const value_casted = value as (string) - const params_casted = params as (Array) - return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) - } - public static dollar_rawfile(value: string): Resource { - const value_casted = value as (string) - return GlobalScope_common.dollar_rawfile_serialize(value_casted) - } - public static animateTo(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateTo_serialize(value_casted, event_casted) - return - } - public static animateToImmediately(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) - return - } - public static vp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.vp2px_serialize(value_casted) - } - public static px2vp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2vp_serialize(value_casted) - } - public static fp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.fp2px_serialize(value_casted) - } - public static px2fp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2fp_serialize(value_casted) - } - public static lpx2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.lpx2px_serialize(value_casted) - } - public static px2lpx(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2lpx_serialize(value_casted) - } - private static getContext_serialize(component?: Object): Context { - const thisSerializer : Serializer = Serializer.hold() - let component_type : int32 = RuntimeType.UNDEFINED - component_type = runtimeType(component) - thisSerializer.writeInt8(component_type as int32) - if ((RuntimeType.UNDEFINED) != (component_type)) { - const component_value = component! - thisSerializer.writeCustomObject("Object", component_value) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - return new Deserializer(retval, retval.length).readContext() - } - private static postCardAction_serialize(component: Object, action: Object): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Object", component) - thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static dollar_r_serialize(value: string, params: Array): Resource { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeInt32(params.length as int32) - for (let i = 0; i < params.length; i++) { - const params_element : object = params[i] - thisSerializer.writeCustomObject("Any", params_element) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - return new Deserializer(retval, retval.length).readResource() - } - private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) - return new Deserializer(retval, retval.length).readResource() - } - private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) - return retval - } - private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) - return retval - } - private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) - return retval - } - private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) - return retval - } - private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) - return retval - } - private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) - return retval - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts deleted file mode 100644 index 125e14c83..000000000 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_inspector { - public static getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes_serialize() - } - public static getInspectorNodeById(id: number): Object { - const id_casted = id as (number) - return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) - } - public static setAppBgColor(value: string): void { - const value_casted = value as (string) - GlobalScope_inspector.setAppBgColor_serialize(value_casted) - return - } - private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() - throw new Error("Object deserialization is not implemented.") - } - private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) - throw new Error("Object deserialization is not implemented.") - } - private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts index a283f9b78..a183b5170 100644 --- a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -71,15 +71,15 @@ export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: object): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (object | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public transferToImageBitmap(): ImageBitmap { return this.transferToImageBitmap_serialize() } - private toDataURL_serialize(type?: string, quality?: object): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer : Serializer = Serializer.hold() let type_type : int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -93,7 +93,7 @@ export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements thisSerializer.writeInt8(quality_type as int32) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeCustomObject("Any", quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts deleted file mode 100644 index 3a4269319..000000000 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" -import { Context, AnimateParam } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" -import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" -export function getContext(component: Object): Context { - return GlobalScope_common.getContext(component) -} -export function postCardAction(component: Object, action: Object): void { - GlobalScope_common.postCardAction(component, action) -} -export function dollar_r(value: string, params: Array): Resource { - return GlobalScope_common.dollar_r(value, params) -} -export function dollar_rawfile(value: string): Resource { - return GlobalScope_common.dollar_rawfile(value) -} -export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateTo(value, event) -} -export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateToImmediately(value, event) -} -export function vp2px(value: number): number { - return GlobalScope_common.vp2px(value) -} -export function px2vp(value: number): number { - return GlobalScope_common.px2vp(value) -} -export function fp2px(value: number): number { - return GlobalScope_common.fp2px(value) -} -export function px2fp(value: number): number { - return GlobalScope_common.px2fp(value) -} -export function lpx2px(value: number): number { - return GlobalScope_common.lpx2px(value) -} -export function px2lpx(value: number): number { - return GlobalScope_common.px2lpx(value) -} -export function getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes() -} -export function getInspectorNodeById(id: number): Object { - return GlobalScope_inspector.getInspectorNodeById(id) -} -export function setAppBgColor(value: string): void { - GlobalScope_inspector.setAppBgColor(value) -} diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts index 211c9433d..848bd6051 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -2007,18 +2007,6 @@ export class ArkUIGeneratedNativeModule { native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer - native static _GlobalScope_common_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer - native static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer - native static _GlobalScope_common_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_vp2px(value: number): number - native static _GlobalScope_common_px2vp(value: number): number - native static _GlobalScope_common_fp2px(value: number): number - native static _GlobalScope_common_px2fp(value: number): number - native static _GlobalScope_common_lpx2px(value: number): number - native static _GlobalScope_common_px2lpx(value: number): number native static _ContextMenu_ctor(): KPointer native static _ContextMenu_getFinalizer(): KPointer native static _ContextMenu_close(): undefined @@ -2659,7 +2647,4 @@ export class ArkUIGeneratedNativeModule { native static _LinearIndicatorController_stop(ptr: KPointer): void native static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void - native static _GlobalScope_inspector_getInspectorNodes(): KPointer - native static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer - native static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index 8ee31b4a4..dedb9b9da 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -4189,6 +4189,9 @@ export class TypeChecker { static isArray_Number(value: object|string|number|undefined|null): boolean { return value instanceof Array } + static isArray_CustomObject(value: object|string|number|undefined|null): boolean { + return value instanceof Array + } static isArray_TouchObject(value: object|string|number|undefined|null): boolean { return value instanceof Array } @@ -4279,9 +4282,6 @@ export class TypeChecker { static isArray_LayoutSafeAreaEdge(value: object|string|number|undefined|null): boolean { return value instanceof Array } - static isArray_CustomObject(value: object|string|number|undefined|null): boolean { - return value instanceof Array - } static isArray_Point(value: object|string|number|undefined|null): boolean { return value instanceof Array } diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index c48770c9a..675403def 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -266,6 +266,7 @@ export * from "./ArkWaterFlowInterfaces" export * from "./ArkUiExtensionComponentInterfaces" export * from "./ArkStyledStringInterfaces" export * from "./ArkLinearindicatorInterfaces" +export * from "./ArkInspectorInterfaces" export * from "./ArkProfilerNamespace" export * from "./ArkRawFileDescriptorInterfaces" export * from "./ArkAnimationExtenderMaterialized" @@ -323,7 +324,6 @@ export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkUICommonEventMaterialized" export * from "./ArkGestureModifierMaterialized" -export * from "./ArkGlobalScopeCommonMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" export * from "./ArkLinearGradientMaterialized" @@ -422,5 +422,3 @@ export * from "./ArkImageAttachmentMaterialized" export * from "./ArkCustomSpanMaterialized" export * from "./ArkLinearIndicatorControllerMaterialized" export * from "./ArkProfilerNamespace" -export * from "./ArkGlobalScopeInspectorMaterialized" -export * from "./GlobalScope" diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 2c313cae3..1f0dcda9d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -22,7 +22,7 @@ import { CallbackKind } from "./CallbackKind" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, Context, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" @@ -7811,12 +7811,6 @@ export class Deserializer extends DeserializerBase { readComponent3DAttribute(): Component3DAttribute { throw new Error("Interface with functions is not supported") } - readContext(): Context { - let valueDeserializer : Deserializer = this - const _ContextStub_result : string = (valueDeserializer.readString() as string) - let value : Context = ({_ContextStub: _ContextStub_result} as Context) - return value - } readUIGestureEvent(): UIGestureEvent { throw new Error("Interface with functions is not supported") } diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index 45589648c..ade4c2bc9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -18,7 +18,7 @@ import { int32, float32, unsafeCast, int64 } from "@koalaui/common" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, Context, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" @@ -8861,11 +8861,6 @@ export class Serializer extends SerializerBase { } writeComponent3DAttribute(value: Component3DAttribute): void { } - writeContext(value: Context): void { - let valueSerializer : Serializer = this - const value__ContextStub = value._ContextStub - valueSerializer.writeString(value__ContextStub) - } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 0e3e6fd46..b0cef0c7b 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -19547,6 +19547,9 @@ export class TypeChecker { static isArray_Number(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } + static isArray_CustomObject(value: object|string|number|undefined|null): boolean { + return Array.isArray(value) + } static isArray_TouchObject(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } @@ -19637,9 +19640,6 @@ export class TypeChecker { static isArray_LayoutSafeAreaEdge(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isArray_CustomObject(value: object|string|number|undefined|null): boolean { - return Array.isArray(value) - } static isArray_Point(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 281b83eb9..8b4e63c08 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -1002,7 +1002,7 @@ declare class CanvasRenderingContext2D extends CanvasRenderer { declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer { constructor(width: number, height: number, settings?: RenderingContextSettings); constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit); - toDataURL(type?: string, quality?: any): string; + toDataURL(type?: string, quality?: number): string; transferToImageBitmap(): ImageBitmap; } declare class OffscreenCanvas { @@ -1143,9 +1143,11 @@ declare interface AnimatableArithmetic { multiply(scale: number): AnimatableArithmetic; equals(rhs: AnimatableArithmetic): boolean; } +declare function getContext(component?: Object): Context; declare interface Context { _ContextStub: string; } +declare function postCardAction(component: Object, action: Object): void; declare interface Configuration { readonly colorMode: string; readonly fontScale: number; @@ -1161,6 +1163,8 @@ declare interface ExpectedFrameRateRange { max: number; expected: number; } +declare function $r(value: string, ...params: any[]): Resource; +declare function $rawfile(value: string): Resource; declare enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1, @@ -1330,6 +1334,14 @@ declare interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(value: AnimateParam, event: (() => void)): void; +declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; +declare function vp2px(value: number): number; +declare function px2vp(value: number): number; +declare function fp2px(value: number): number; +declare function px2fp(value: number): number; +declare function lpx2px(value: number): number; +declare function px2lpx(value: number): number; declare namespace focusControl { function requestFocus(value: string): boolean; } @@ -2466,18 +2478,6 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } -declare function getContext(component?: Object): Context; -declare function postCardAction(component: Object, action: Object): void; -declare function $r(value: string, ...params: any[]): Resource; -declare function $rawfile(value: string): Resource; -declare function animateTo(value: AnimateParam, event: (() => void)): void; -declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; -declare function vp2px(value: number): number; -declare function px2vp(value: number): number; -declare function fp2px(value: number): number; -declare function px2fp(value: number): number; -declare function lpx2px(value: number): number; -declare function px2lpx(value: number): number; declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -8850,6 +8850,8 @@ declare class LinearIndicatorAttribute extends CommonMethod void); +declare function getInspectorNodes(): Object; +declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { type Callback_String_Void = ((info: string) => void); } @@ -8857,8 +8859,6 @@ declare namespace Profiler { function registerVsyncCallback(callback_: ((info: string) => void)): void; function unregisterVsyncCallback(): void; } -declare function getInspectorNodes(): Object; -declare function getInspectorNodeById(id: number): Object; declare function setAppBgColor(value: string): void; declare interface RawFileDescriptor { fd: number; diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 25c2ef32f..80c44f9d1 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -1072,7 +1072,7 @@ declare class CanvasRenderingContext2D extends CanvasRenderer { declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer { constructor(width: number, height: number, settings?: RenderingContextSettings); constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit); - toDataURL(type?: string, quality?: any): string; + toDataURL(type?: string, quality?: number): string; transferToImageBitmap(): ImageBitmap; } declare class OffscreenCanvas { @@ -1213,9 +1213,11 @@ declare interface AnimatableArithmetic { multiply(scale: number): AnimatableArithmetic; equals(rhs: AnimatableArithmetic): boolean; } +declare function getContext(component?: Object): Context; declare interface Context { _ContextStub: string; } +declare function postCardAction(component: Object, action: Object): void; declare interface Configuration { readonly colorMode: string; readonly fontScale: number; @@ -1231,6 +1233,8 @@ declare interface ExpectedFrameRateRange { max: number; expected: number; } +declare function $r(value: string, ...params: any[]): Resource; +declare function $rawfile(value: string): Resource; declare enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1, @@ -1400,6 +1404,21 @@ declare interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(value: AnimateParam, event: (() => void)): void; +declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; +declare function vp2px(value: number): number; +declare function px2vp(value: number): number; +declare function fp2px(value: number): number; +declare function px2fp(value: number): number; +declare function lpx2px(value: number): number; +declare function px2lpx(value: number): number; +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare interface EventTarget { area: Area; } @@ -2529,25 +2548,6 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; - function restoreDefault(): void; -} -declare function getContext(component?: Object): Context; -declare function postCardAction(component: Object, action: Object): void; -declare function $r(value: string, ...params: any[]): Resource; -declare function $rawfile(value: string): Resource; -declare function animateTo(value: AnimateParam, event: (() => void)): void; -declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; -declare function vp2px(value: number): number; -declare function px2vp(value: number): number; -declare function fp2px(value: number): number; -declare function px2fp(value: number): number; -declare function lpx2px(value: number): number; -declare function px2lpx(value: number): number; declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -8920,6 +8920,8 @@ declare class LinearIndicatorAttribute extends CommonMethod void); +declare function getInspectorNodes(): Object; +declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { type Callback_String_Void = ((info: string) => void); } @@ -8927,8 +8929,6 @@ declare namespace Profiler { function registerVsyncCallback(callback_: ((info: string) => void)): void; function unregisterVsyncCallback(): void; } -declare function getInspectorNodes(): Object; -declare function getInspectorNodeById(id: number): Object; declare function setAppBgColor(value: string): void; declare interface RawFileDescriptor { fd: number; diff --git a/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts index e6affb6fd..17f86aeea 100644 --- a/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -953,7 +953,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - return new Deserializer(retval, retval.byteLength).readTextMetrics() + return new Deserializer(retval.buffer, retval.byteLength).readTextMetrics() } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index e94011ffc..7adb134a5 100644 --- a/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -80,9 +80,9 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (number | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { @@ -125,7 +125,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material off(type: string, callback_: (() => void)): void { throw new Error("TBD") } - private toDataURL_serialize(type?: string, quality?: number): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer: Serializer = Serializer.hold() let type_type: int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -139,7 +139,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material thisSerializer.writeInt8(quality_type) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeNumber(quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._CanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts index 882662d66..7b98707e5 100644 --- a/arkoala/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts @@ -21,10 +21,10 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, Color, ColoringStrategy, GradientDirection, TouchType, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode, ImageSize, Alignment, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, MouseButton, MouseAction, KeyType, KeySource, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, IlluminatedType, AccessibilityHoverType } from "./ArkEnumsInterfaces" import { ResourceColor, Length, Bias, Area, Position, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, LocalizedBorderRadiuses, Margin, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, EdgeWidth } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { ICurve } from "./ArkICurveMaterialized" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" @@ -69,9 +69,11 @@ export interface ProvideOptions { } export interface AnimatableArithmetic { } +declare function getContext(arg0: Object): Context export interface Context { _ContextStub: string; } +declare function postCardAction(arg0: Object, arg1: Object): void export interface Configuration { colorMode: string; fontScale: number; @@ -87,6 +89,8 @@ export interface ExpectedFrameRateRange { max: number; expected: number; } +declare function dollar_r(arg0: string, arg1: Array): Resource +declare function dollar_rawfile(arg0: string): Resource export enum FinishCallbackType { REMOVED, LOGICALLY = 1, @@ -238,6 +242,14 @@ export interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(arg0: AnimateParam, arg1: (() => void)): void +declare function animateToImmediately(arg0: AnimateParam, arg1: (() => void)): void +declare function vp2px(arg0: number): number +declare function px2vp(arg0: number): number +declare function fp2px(arg0: number): number +declare function px2fp(arg0: number): number +declare function lpx2px(arg0: number): number +declare function px2lpx(arg0: number): number export interface EventTarget { area: Area; } diff --git a/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts index 9b80e9eba..cdbf60458 100644 --- a/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts +++ b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts @@ -16,7 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { PointerStyle } from "./ArkArkuiCustomInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts index 8d7ee26b0..591db04bc 100644 --- a/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -67,7 +67,7 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.byteLength).readCustomSpanMetrics() + return new Deserializer(retval.buffer, retval.byteLength).readCustomSpanMetrics() } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts index f9fea9ad0..918c35039 100644 --- a/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts @@ -180,7 +180,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readSummary() + return new Deserializer(retval.buffer, retval.byteLength).readSummary() } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, dragResult) @@ -191,7 +191,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readRectangle() + return new Deserializer(retval.buffer, retval.byteLength).readRectangle() } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts index 237729041..7953cc536 100644 --- a/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -170,6 +170,6 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readPosition() + return new Deserializer(retval.buffer, retval.byteLength).readPosition() } } diff --git a/arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts deleted file mode 100644 index 1003f574d..000000000 --- a/arkoala/arkui/src/generated/ArkGlobalScopecommonMaterialized.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Context, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { Curve, PlayMode } from "./ArkEnumsInterfaces" -import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScopecommon { - public static getContext(component?: Object): Context { - const component_casted = component as (Object | undefined) - return GlobalScopecommon.getContext_serialize(component_casted) - } - public static postCardAction(component: Object, action: Object): void { - const component_casted = component as (Object) - const action_casted = action as (Object) - GlobalScopecommon.postCardAction_serialize(component_casted, action_casted) - return - } - public static dollar_r(value: string, params: Array): Resource { - const value_casted = value as (string) - const params_casted = params as (Array) - return GlobalScopecommon.dollar_r_serialize(value_casted, params_casted) - } - public static dollar_rawfile(value: string): Resource { - const value_casted = value as (string) - return GlobalScopecommon.dollar_rawfile_serialize(value_casted) - } - public static animateTo(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScopecommon.animateTo_serialize(value_casted, event_casted) - return - } - public static animateToImmediately(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScopecommon.animateToImmediately_serialize(value_casted, event_casted) - return - } - public static vp2px(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.vp2px_serialize(value_casted) - } - public static px2vp(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.px2vp_serialize(value_casted) - } - public static fp2px(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.fp2px_serialize(value_casted) - } - public static px2fp(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.px2fp_serialize(value_casted) - } - public static lpx2px(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.lpx2px_serialize(value_casted) - } - public static px2lpx(value: number): number { - const value_casted = value as (number) - return GlobalScopecommon.px2lpx_serialize(value_casted) - } - private static getContext_serialize(component?: Object): Context { - const thisSerializer: Serializer = Serializer.hold() - let component_type: int32 = RuntimeType.UNDEFINED - component_type = runtimeType(component) - thisSerializer.writeInt8(component_type) - if ((RuntimeType.UNDEFINED) != (component_type)) { - const component_value = component! - thisSerializer.writeCustomObject("Object", component_value) - } - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_getContext(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - return new Deserializer(retval, retval.byteLength).readContext() - } - private static postCardAction_serialize(component: Object, action: Object): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Object", component) - thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScopecommon_postCardAction(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static dollar_r_serialize(value: string, params: Array): Resource { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeInt32(params.length) - for (let i = 0; i < params.length; i++) { - const params_element: any = params[i] - thisSerializer.writeCustomObject("Any", params_element) - } - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - return new Deserializer(retval, retval.byteLength).readResource() - } - private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_dollar_rawfile(value) - return new Deserializer(retval, retval.byteLength).readResource() - } - private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScopecommon_animateTo(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScopecommon_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_vp2px(value) - return retval - } - private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2vp(value) - return retval - } - private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_fp2px(value) - return retval - } - private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2fp(value) - return retval - } - private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_lpx2px(value) - return retval - } - private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScopecommon_px2lpx(value) - return retval - } -} diff --git a/arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts deleted file mode 100644 index c5de85fa3..000000000 --- a/arkoala/arkui/src/generated/ArkGlobalScopeinspectorMaterialized.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" -import { unsafeCast, int32, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScopeinspector { - public static getInspectorNodes(): Object { - return GlobalScopeinspector.getInspectorNodes_serialize() - } - public static getInspectorNodeById(id: number): Object { - const id_casted = id as (number) - return GlobalScopeinspector.getInspectorNodeById_serialize(id_casted) - } - public static setAppBgColor(value: string): void { - const value_casted = value as (string) - GlobalScopeinspector.setAppBgColor_serialize(value_casted) - return - } - private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodes() - throw new Error("Object deserialization is not implemented.") - } - private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScopeinspector_getInspectorNodeById(id) - throw new Error("Object deserialization is not implemented.") - } - private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScopeinspector_setAppBgColor(value) - } -} diff --git a/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts index 857b86c2f..72fdd0935 100644 --- a/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -71,11 +71,11 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - return new Deserializer(retval, retval.byteLength).readPositionWithAffinity() + return new Deserializer(retval.buffer, retval.byteLength).readPositionWithAffinity() } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - return new Deserializer(retval, retval.byteLength).readLineMetrics() + return new Deserializer(retval.buffer, retval.byteLength).readLineMetrics() } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts index 8d86eea5a..6f9df2801 100644 --- a/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -82,7 +82,7 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - return new Deserializer(retval, retval.byteLength).readRectResult() + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer: Serializer = Serializer.hold() @@ -117,6 +117,6 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - return new Deserializer(retval, retval.byteLength).readVisibleListContentInfo() + return new Deserializer(retval.buffer, retval.byteLength).readVisibleListContentInfo() } } diff --git a/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts index 166bf5cc2..cf5c278c9 100644 --- a/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -66,19 +66,19 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - return new Deserializer(retval, retval.byteLength).readMeasureResult() + return new Deserializer(retval.buffer, retval.byteLength).readMeasureResult() } private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readDirectionalEdgesT() + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj: MeasurableInternal = new MeasurableInternal() diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts index 7ecd1d274..10afb8f85 100644 --- a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -71,15 +71,15 @@ export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: any): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (any | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public transferToImageBitmap(): ImageBitmap { return this.transferToImageBitmap_serialize() } - private toDataURL_serialize(type?: string, quality?: any): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer: Serializer = Serializer.hold() let type_type: int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -93,7 +93,7 @@ export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements thisSerializer.writeInt8(quality_type) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeCustomObject("Any", quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() diff --git a/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index 4092c0fd7..79b31138f 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -109,7 +109,7 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readRichEditorTextStyle() + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorTextStyle() } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer: Serializer = Serializer.hold() @@ -142,6 +142,6 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readPreviewText() + return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() } } diff --git a/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 588ca8e64..2a9e208e6 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -25,6 +25,7 @@ import { PreviewText, DecorationStyleResult, PositionWithAffinity, LineMetrics, import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanPosition, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions } from "./ArkRichEditorInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr, Dimension, Margin, BorderRadiuses, Length, ResourceColor, PX, VP, FP, LPX, Percentage, Padding, Area, Position, SizeOptions } from "./ArkUnitsInterfaces" +import { CustomNodeBuilder } from "./ArkCustomBuilderInterfaces" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { ImageSpanAlignment, ImageFit, FontStyle, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, FontWeight, TextAlign, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" @@ -268,7 +269,7 @@ export class RichEditorController extends RichEditorBaseController implements Ma } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readRichEditorSelection() + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorSelection() } private fromStyledString_serialize(value: StyledString): Array { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index 8277fb411..071d4022c 100644 --- a/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -94,7 +94,7 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readRichEditorRange() + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorRange() } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts index e22a31519..7cd46889a 100644 --- a/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts @@ -155,7 +155,7 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readOffsetResult() + return new Deserializer(retval.buffer, retval.byteLength).readOffsetResult() } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer: Serializer = Serializer.hold() @@ -194,7 +194,7 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - return new Deserializer(retval, retval.byteLength).readRectResult() + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) diff --git a/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index a17a394d5..853da9233 100644 --- a/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -58,11 +58,11 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readCaretOffset() + return new Deserializer(retval.buffer, retval.byteLength).readCaretOffset() } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readRectResult() + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) diff --git a/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index a26351c51..bd9c2d924 100644 --- a/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -86,7 +86,7 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readPreviewText() + return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj: TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts index b03035ffc..25f6eb6a8 100644 --- a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts @@ -12579,6 +12579,27 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_focusControl_common_requestFocus(value) + } + throw new Error("Not implemented") + } + static _GlobalScope_cursorControl_common_setCursor(value: KInt): void { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_cursorControl_common_setCursor(value) + } + throw new Error("Not implemented") + } + static _GlobalScope_cursorControl_common_restoreDefault(): void { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_cursorControl_common_restoreDefault() + } + throw new Error("Not implemented") + } static _BaseEvent_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -13909,111 +13930,6 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_focusControl_common_requestFocus(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_cursorControl_common_setCursor(value: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_cursorControl_common_setCursor(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_cursorControl_common_restoreDefault(): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_cursorControl_common_restoreDefault() - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_getContext(thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_getContext(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_postCardAction(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_postCardAction(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_dollar_r(value, thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_dollar_rawfile(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_animateTo(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_animateTo(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_animateToImmediately(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_vp2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_vp2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_px2vp(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_px2vp(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_fp2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_fp2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_px2fp(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_px2fp(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_lpx2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_lpx2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScopecommon_px2lpx(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopecommon_px2lpx(value) - } - throw new Error("Not implemented") - } static _ContextMenu_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -18494,25 +18410,4 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScopeinspector_getInspectorNodes(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopeinspector_getInspectorNodes() - } - throw new Error("Not implemented") - } - static _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopeinspector_getInspectorNodeById(id) - } - throw new Error("Not implemented") - } - static _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScopeinspector_setAppBgColor(value) - } - throw new Error("Not implemented") - } } \ No newline at end of file diff --git a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts index 9d4ed761d..31d753f59 100644 --- a/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts @@ -5660,6 +5660,16 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TransitionEffect_combine") return -1 } + _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { + console.log("_GlobalScope_focusControl_common_requestFocus") + return false + } + _GlobalScope_cursorControl_common_setCursor(value: KInt): void { + console.log("_GlobalScope_cursorControl_common_setCursor") + } + _GlobalScope_cursorControl_common_restoreDefault(): void { + console.log("_GlobalScope_cursorControl_common_restoreDefault") + } _BaseEvent_ctor(): KPointer { console.log("_BaseEvent_ctor") return -1 @@ -6344,61 +6354,6 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureModifier_applyGesture") } - _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { - console.log("_GlobalScope_focusControl_common_requestFocus") - return false - } - _GlobalScope_cursorControl_common_setCursor(value: KInt): void { - console.log("_GlobalScope_cursorControl_common_setCursor") - } - _GlobalScope_cursorControl_common_restoreDefault(): void { - console.log("_GlobalScope_cursorControl_common_restoreDefault") - } - _GlobalScopecommon_getContext(thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { - console.log("_GlobalScopecommon_getContext") - return new Uint8Array() - } - _GlobalScopecommon_postCardAction(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScopecommon_postCardAction") - } - _GlobalScopecommon_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { - console.log("_GlobalScopecommon_dollar_r") - return new Uint8Array() - } - _GlobalScopecommon_dollar_rawfile(value: KStringPtr): KInteropReturnBuffer { - console.log("_GlobalScopecommon_dollar_rawfile") - return new Uint8Array() - } - _GlobalScopecommon_animateTo(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScopecommon_animateTo") - } - _GlobalScopecommon_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScopecommon_animateToImmediately") - } - _GlobalScopecommon_vp2px(value: number): number { - console.log("_GlobalScopecommon_vp2px") - return 1 - } - _GlobalScopecommon_px2vp(value: number): number { - console.log("_GlobalScopecommon_px2vp") - return 1 - } - _GlobalScopecommon_fp2px(value: number): number { - console.log("_GlobalScopecommon_fp2px") - return 1 - } - _GlobalScopecommon_px2fp(value: number): number { - console.log("_GlobalScopecommon_px2fp") - return 1 - } - _GlobalScopecommon_lpx2px(value: number): number { - console.log("_GlobalScopecommon_lpx2px") - return 1 - } - _GlobalScopecommon_px2lpx(value: number): number { - console.log("_GlobalScopecommon_px2lpx") - return 1 - } _ContextMenu_ctor(): KPointer { console.log("_ContextMenu_ctor") return -1 @@ -8774,15 +8729,4 @@ export class ArkUIGeneratedNativeModuleEmpty { _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void { console.log("_GlobalScope_Profiler_inspector_unregisterVsyncCallback") } - _GlobalScopeinspector_getInspectorNodes(): KPointer { - console.log("_GlobalScopeinspector_getInspectorNodes") - return -1 - } - _GlobalScopeinspector_getInspectorNodeById(id: number): KPointer { - console.log("_GlobalScopeinspector_getInspectorNodeById") - return -1 - } - _GlobalScopeinspector_setAppBgColor(value: KStringPtr): void { - console.log("_GlobalScopeinspector_setAppBgColor") - } } \ No newline at end of file diff --git a/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts index 5aa67c9f4..925249690 100644 --- a/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -124,7 +124,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readSurfaceRect() + return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRect() } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer: Serializer = Serializer.hold() @@ -134,7 +134,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - return new Deserializer(retval, retval.byteLength).readSurfaceRotationOptions() + return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRotationOptions() } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) diff --git a/arkoala/arkui/src/generated/GlobalScope.ts b/arkoala/arkui/src/generated/GlobalScope.ts deleted file mode 100644 index 6bd0ad323..000000000 --- a/arkoala/arkui/src/generated/GlobalScope.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { GlobalScopecommon } from "./ArkGlobalScopecommonMaterialized" -import { ICurve } from "./ArkICurveMaterialized" -import { GlobalScopeinspector } from "./ArkGlobalScopeinspectorMaterialized" -export function getContext(component: Object): Context { - return GlobalScopecommon.getContext(component) -} -export function postCardAction(component: Object, action: Object): void { - GlobalScopecommon.postCardAction(component, action) -} -export function dollar_r(value: string, params: Array): Resource { - return GlobalScopecommon.dollar_r(value, params) -} -export function dollar_rawfile(value: string): Resource { - return GlobalScopecommon.dollar_rawfile(value) -} -export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScopecommon.animateTo(value, event) -} -export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScopecommon.animateToImmediately(value, event) -} -export function vp2px(value: number): number { - return GlobalScopecommon.vp2px(value) -} -export function px2vp(value: number): number { - return GlobalScopecommon.px2vp(value) -} -export function fp2px(value: number): number { - return GlobalScopecommon.fp2px(value) -} -export function px2fp(value: number): number { - return GlobalScopecommon.px2fp(value) -} -export function lpx2px(value: number): number { - return GlobalScopecommon.lpx2px(value) -} -export function px2lpx(value: number): number { - return GlobalScopecommon.px2lpx(value) -} -export function getInspectorNodes(): Object { - return GlobalScopeinspector.getInspectorNodes() -} -export function getInspectorNodeById(id: number): Object { - return GlobalScopeinspector.getInspectorNodeById(id) -} -export function setAppBgColor(value: string): void { - GlobalScopeinspector.setAppBgColor(value) -} diff --git a/arkoala/arkui/src/generated/peers/Deserializer.ts b/arkoala/arkui/src/generated/peers/Deserializer.ts index d6ccc8a27..fc65e09ea 100644 --- a/arkoala/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala/arkui/src/generated/peers/Deserializer.ts @@ -22,7 +22,7 @@ import { Serializer } from "./Serializer" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, Context, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -7825,12 +7825,6 @@ export class Deserializer extends DeserializerBase { let value: Component3DAttribute = ({} as Component3DAttribute) return value } - readContext(): Context { - let valueDeserializer: Deserializer = this - const _ContextStub_result: string = (valueDeserializer.readString() as string) - let value: Context = ({_ContextStub: _ContextStub_result} as Context) - return value - } readUIGestureEvent(): UIGestureEvent { let value: UIGestureEvent = ({} as UIGestureEvent) return value diff --git a/arkoala/arkui/src/generated/peers/Serializer.ts b/arkoala/arkui/src/generated/peers/Serializer.ts index b28f91bb1..64d1a3465 100644 --- a/arkoala/arkui/src/generated/peers/Serializer.ts +++ b/arkoala/arkui/src/generated/peers/Serializer.ts @@ -18,7 +18,7 @@ import { int32, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, Context, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" @@ -8858,11 +8858,6 @@ export class Serializer extends SerializerBase { } writeComponent3DAttribute(value: Component3DAttribute): void { } - writeContext(value: Context): void { - let valueSerializer: Serializer = this - const value__ContextStub = value._ContextStub - valueSerializer.writeString(value__ContextStub) - } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { diff --git a/arkoala/arkui/src/resources.ts b/arkoala/arkui/src/resources.ts index 59269a958..134a18a4c 100644 --- a/arkoala/arkui/src/resources.ts +++ b/arkoala/arkui/src/resources.ts @@ -1,103 +1,40 @@ -/* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ArkResource } from "./shared/ArkResource" - -const RESOURCE_TYPE: Record = { // Copied from ets2bundle/compiler/src/pre_define.ts - color: 10001, - float: 10002, - string: 10003, - plural: 10004, - boolean: 10005, - intarray: 10006, - integer: 10007, - pattern: 10008, - strarray: 10009, - media: 20000, - rawfile: 30000 -}; - -class ResourceContext { - private bundleName: string = "" - private moduleName: string = "" - private resources: Record = {} - - initialize(bundleName: string, moduleName: string, resources: Record) { - this.bundleName = bundleName - this.moduleName = moduleName - this.resources = resources - } - - getResourceDescriptor(name: string, key: string, type: string, params?: any[]): Resource { - if (!this.bundleName) throw new Error("Uninitialized resources") - - let typeId = RESOURCE_TYPE[type]! - if (typeId == undefined) throw new Error("Illegal resource type: " + type) - - let id = this.resources[key] - if (id == undefined) throw new Error("No such resource: " + key) - - return this.getResourceDescriptorFromRaw(name, id, typeId, params) - } - - getRawfileResourceDescriptor(name: string, key: string): Resource { - if (!this.bundleName) throw new Error("Uninitialized resources") - return this.getResourceDescriptorFromRaw(name, 0, RESOURCE_TYPE.rawfile, [key]) - } - - private getResourceDescriptorFromRaw(name: string, id: number, type: number, params?: any[]): Resource { - return new ArkResource( - this.bundleName, - this.moduleName, - id, - type, - name, - params - ) +export function _r(bundleName: string, moduleName: string, name: string): Resource { + const param: string = name.split(".")[1]; + let res_type = 20000; + + switch (param) { + case 'media': + res_type = 20000; + break; + case 'color': + res_type = 10001; + break; + case 'string': + res_type = 10003; + break; + case 'float': + res_type = 10002; + break; } -} - -const resourceContext = new ResourceContext() -// TODO consider resolving resources in plugin - -const KEY_SCOPE_SPLIT_REGEXP = new RegExp("(.*?)\\.(.*)") - -function getAppKey(key: string): string { - let parts = key.match(KEY_SCOPE_SPLIT_REGEXP) - if (!parts) throw new Error("Illegal key: " + key) - if (parts[1] !== "app") throw new Error("Only 'app' resources are supported") // TODO 'sys' resources - return parts[2] + return { + "id": -1, + "type": res_type, + "params": new Array(name), + "bundleName": bundleName, + "moduleName": moduleName + } as Resource } -export function _r(name: string, ...params: any[]): Resource { - let key = getAppKey(name) - let type = key.split(".", 1)[0] - return resourceContext.getResourceDescriptor(name, key, type, params) +export function _rawfile(bundleName: string, moduleName: string, name: string): Resource { + return { + "id": 0, + "type": 30000, + "params": new Array(name), + "bundleName": bundleName, + "moduleName": moduleName + } as Resource } -export function _rawfile(name: string): Resource { - // TODO Does rawfile support extra params? - return resourceContext.getRawfileResourceDescriptor(name, getAppKey('app.' + name)) -} - -// /** @internal */ -export function __registerResources(bundleName: string, moduleName: string, resources: Record) { - if (!bundleName) throw new RangeError("Illegal bundle name") - if (!moduleName) throw new RangeError("Illegal module name") - - resourceContext.initialize(bundleName, moduleName, resources) -} \ No newline at end of file +export function __registerResources(bundleName: string, moduleName: string, resources: Record) {} \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index 9048b0fa8..33285e0e9 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -21263,37 +21263,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceStr_Scene& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Context& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_Context* value) { - result->append("{"); - // Ark_String _ContextStub - result->append("._ContextStub="); - WriteToString(result, &value->_ContextStub); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Context* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Context& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UIGestureEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -27826,33 +27795,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ButtonTriggerClickCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_inspector& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_inspector value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_inspector& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_Profiler_inspector& value) { return INTEROP_RUNTIME_OBJECT; @@ -45633,33 +45575,6 @@ inline Ark_RuntimeType runtimeType(const Opt_SceneOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_common& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_common value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_common* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_common& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UICommonEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -60299,12 +60214,6 @@ class Serializer : public SerializerBase { void writeComponent3DAttribute(Ark_Component3DAttribute value) { } - void writeContext(Ark_Context value) - { - Serializer& valueSerializer = *this; - const auto value__ContextStub = value._ContextStub; - valueSerializer.writeString(value__ContextStub); - } void writeUIGestureEvent(Ark_UIGestureEvent value) { } @@ -82978,13 +82887,6 @@ class Deserializer : public DeserializerBase { Ark_Component3DAttribute value = {}; return value; } - Ark_Context readContext() - { - Ark_Context value = {}; - Deserializer& valueDeserializer = *this; - value._ContextStub = static_cast(valueDeserializer.readString()); - return value; - } Ark_UIGestureEvent readUIGestureEvent() { Ark_UIGestureEvent value = {}; diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 034d8d93b..579261b2b 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -1150,8 +1150,6 @@ typedef struct Ark_Component3DAttribute Ark_Component3DAttribute; typedef struct Opt_Component3DAttribute Opt_Component3DAttribute; typedef struct Ark_Union_ResourceStr_Scene Ark_Union_ResourceStr_Scene; typedef struct Opt_Union_ResourceStr_Scene Opt_Union_ResourceStr_Scene; -typedef struct Ark_Context Ark_Context; -typedef struct Opt_Context Opt_Context; typedef struct Ark_UIGestureEvent Ark_UIGestureEvent; typedef struct Opt_UIGestureEvent Opt_UIGestureEvent; typedef struct VisibleAreaChangeCallback VisibleAreaChangeCallback; @@ -1432,9 +1430,6 @@ typedef struct Callback_Array_String_Void Callback_Array_String_Void; typedef struct Opt_Callback_Array_String_Void Opt_Callback_Array_String_Void; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; typedef struct Opt_ButtonTriggerClickCallback Opt_ButtonTriggerClickCallback; -typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; -typedef struct GlobalScope_inspectorPeer* Ark_GlobalScope_inspector; -typedef struct Opt_GlobalScope_inspector Opt_GlobalScope_inspector; typedef struct GlobalScope_Profiler_inspectorPeer GlobalScope_Profiler_inspectorPeer; typedef struct GlobalScope_Profiler_inspectorPeer* Ark_GlobalScope_Profiler_inspector; typedef struct Opt_GlobalScope_Profiler_inspector Opt_GlobalScope_Profiler_inspector; @@ -2351,9 +2346,6 @@ typedef struct ContextMenuPeer* Ark_ContextMenu; typedef struct Opt_ContextMenu Opt_ContextMenu; typedef struct Ark_SceneOptions Ark_SceneOptions; typedef struct Opt_SceneOptions Opt_SceneOptions; -typedef struct GlobalScope_commonPeer GlobalScope_commonPeer; -typedef struct GlobalScope_commonPeer* Ark_GlobalScope_common; -typedef struct Opt_GlobalScope_common Opt_GlobalScope_common; typedef struct UICommonEventPeer UICommonEventPeer; typedef struct UICommonEventPeer* Ark_UICommonEvent; typedef struct Opt_UICommonEvent Opt_UICommonEvent; @@ -9322,13 +9314,6 @@ typedef struct Opt_Union_ResourceStr_Scene { Ark_Tag tag; Ark_Union_ResourceStr_Scene value; } Opt_Union_ResourceStr_Scene; -typedef struct Ark_Context { - Ark_String _ContextStub; -} Ark_Context; -typedef struct Opt_Context { - Ark_Tag tag; - Ark_Context value; -} Opt_Context; typedef struct Ark_UIGestureEvent { void *handle; } Ark_UIGestureEvent; @@ -10709,10 +10694,6 @@ typedef struct Opt_ButtonTriggerClickCallback { Ark_Tag tag; ButtonTriggerClickCallback value; } Opt_ButtonTriggerClickCallback; -typedef struct Opt_GlobalScope_inspector { - Ark_Tag tag; - Ark_GlobalScope_inspector value; -} Opt_GlobalScope_inspector; typedef struct Opt_GlobalScope_Profiler_inspector { Ark_Tag tag; Ark_GlobalScope_Profiler_inspector value; @@ -14474,10 +14455,6 @@ typedef struct Opt_SceneOptions { Ark_Tag tag; Ark_SceneOptions value; } Opt_SceneOptions; -typedef struct Opt_GlobalScope_common { - Ark_Tag tag; - Ark_GlobalScope_common value; -} Opt_GlobalScope_common; typedef struct Opt_UICommonEvent { Ark_Tag tag; Ark_UICommonEvent value; @@ -19800,14 +19777,14 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { Ark_Int32 (*getGlobalAlpha)(Ark_CanvasRenderer peer); void (*setGlobalAlpha)(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha); - void (*getGlobalCompositeOperation)(Ark_CanvasRenderer peer); + Ark_String (*getGlobalCompositeOperation)(Ark_CanvasRenderer peer); void (*setGlobalCompositeOperation)(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation); void (*setFillStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle); void (*setStrokeStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle); - void (*getFilter)(Ark_CanvasRenderer peer); + Ark_String (*getFilter)(Ark_CanvasRenderer peer); void (*setFilter)(Ark_CanvasRenderer peer, const Ark_String* filter); Ark_Boolean (*getImageSmoothingEnabled)(Ark_CanvasRenderer peer); @@ -19834,7 +19811,7 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { Ark_Int32 (*getShadowBlur)(Ark_CanvasRenderer peer); void (*setShadowBlur)(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur); - void (*getShadowColor)(Ark_CanvasRenderer peer); + Ark_String (*getShadowColor)(Ark_CanvasRenderer peer); void (*setShadowColor)(Ark_CanvasRenderer peer, const Ark_String* shadowColor); Ark_Int32 (*getShadowOffsetX)(Ark_CanvasRenderer peer); @@ -19846,7 +19823,7 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { Ark_String (*getDirection)(Ark_CanvasRenderer peer); void (*setDirection)(Ark_CanvasRenderer peer, const Ark_String* direction); - void (*getFont)(Ark_CanvasRenderer peer); + Ark_String (*getFont)(Ark_CanvasRenderer peer); void (*setFont)(Ark_CanvasRenderer peer, const Ark_String* font); Ark_String (*getTextAlign)(Ark_CanvasRenderer peer); @@ -19861,9 +19838,9 @@ typedef struct GENERATED_ArkUICanvasRenderingContext2DAccessor { void (*destroyPeer)(Ark_CanvasRenderingContext2D peer); Ark_CanvasRenderingContext2D (*ctor)(const Opt_RenderingContextSettings* settings); Ark_NativePointer (*getFinalizer)(); - void (*toDataURL)(Ark_CanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_Number* quality); + Ark_String (*toDataURL)(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality); void (*startImageAnalyzer)(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); @@ -19886,9 +19863,9 @@ typedef struct GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor { const Ark_Number* height, const Opt_RenderingContextSettings* settings); Ark_NativePointer (*getFinalizer)(); - void (*toDataURL)(Ark_OffscreenCanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_CustomObject* quality); + Ark_String (*toDataURL)(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality); Ark_ImageBitmap (*transferToImageBitmap)(Ark_OffscreenCanvasRenderingContext2D peer); } GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor; @@ -20182,7 +20159,7 @@ typedef struct GENERATED_ArkUIKeyEventAccessor { Ark_Int32 (*getKeyCode)(Ark_KeyEvent peer); void (*setKeyCode)(Ark_KeyEvent peer, const Ark_Number* keyCode); - void (*getKeyText)(Ark_KeyEvent peer); + Ark_String (*getKeyText)(Ark_KeyEvent peer); void (*setKeyText)(Ark_KeyEvent peer, const Ark_String* keyText); Ark_KeySource (*getKeySource)(Ark_KeyEvent peer); @@ -20310,26 +20287,6 @@ typedef struct GENERATED_ArkUIGestureModifierAccessor { const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { - void (*destroyPeer)(Ark_GlobalScope_common peer); - Ark_Context (*getContext)(const Opt_CustomObject* component); - void (*postCardAction)(const Ark_CustomObject* component, - const Ark_CustomObject* action); - Ark_Resource (*dollar_r)(const Ark_String* value, - const Array_CustomObject* params); - Ark_Resource (*dollar_rawfile)(const Ark_String* value); - void (*animateTo)(const Ark_AnimateParam* value, - const Callback_Void* event); - void (*animateToImmediately)(const Ark_AnimateParam* value, - const Callback_Void* event); - Ark_Int32 (*vp2px)(const Ark_Number* value); - Ark_Int32 (*px2vp)(const Ark_Number* value); - Ark_Int32 (*fp2px)(const Ark_Number* value); - Ark_Int32 (*px2fp)(const Ark_Number* value); - Ark_Int32 (*lpx2px)(const Ark_Number* value); - Ark_Int32 (*px2lpx)(const Ark_Number* value); -} GENERATED_ArkUIGlobalScope_commonAccessor; - typedef struct GENERATED_ArkUIContextMenuAccessor { void (*destroyPeer)(Ark_ContextMenu peer); Ark_ContextMenu (*ctor)(); @@ -20506,14 +20463,14 @@ typedef struct GENERATED_ArkUIEventTargetInfoAccessor { void (*destroyPeer)(Ark_EventTargetInfo peer); Ark_EventTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getId)(Ark_EventTargetInfo peer); + Ark_String (*getId)(Ark_EventTargetInfo peer); } GENERATED_ArkUIEventTargetInfoAccessor; typedef struct GENERATED_ArkUIGestureRecognizerAccessor { void (*destroyPeer)(Ark_GestureRecognizer peer); Ark_GestureRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTag)(Ark_GestureRecognizer peer); + Ark_String (*getTag)(Ark_GestureRecognizer peer); Ark_GestureControl_GestureType (*getType)(Ark_GestureRecognizer peer); Ark_Boolean (*isBuiltIn)(Ark_GestureRecognizer peer); void (*setEnabled)(Ark_GestureRecognizer peer, @@ -20607,7 +20564,7 @@ typedef struct GENERATED_ArkUINavDestinationContextAccessor { Ark_NavPathInfo pathInfo); void (*setPathStack)(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack); - void (*getNavDestinationId)(Ark_NavDestinationContext peer); + Ark_String (*getNavDestinationId)(Ark_NavDestinationContext peer); void (*setNavDestinationId)(Ark_NavDestinationContext peer, const Ark_String* navDestinationId); } GENERATED_ArkUINavDestinationContextAccessor; @@ -20619,7 +20576,7 @@ typedef struct GENERATED_ArkUINavPathInfoAccessor { const Opt_Callback_PopInfo_Void* onPop, const Opt_Boolean* isEntry); Ark_NativePointer (*getFinalizer)(); - void (*getName)(Ark_NavPathInfo peer); + Ark_String (*getName)(Ark_NavPathInfo peer); void (*setName)(Ark_NavPathInfo peer, const Ark_String* name); void (*setParam)(Ark_NavPathInfo peer, @@ -21107,7 +21064,7 @@ typedef struct GENERATED_ArkUISubmitEventAccessor { Ark_SubmitEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*keepEditableState)(Ark_SubmitEvent peer); - void (*getText)(Ark_SubmitEvent peer); + Ark_String (*getText)(Ark_SubmitEvent peer); void (*setText)(Ark_SubmitEvent peer, const Ark_String* text); } GENERATED_ArkUISubmitEventAccessor; @@ -21198,7 +21155,7 @@ typedef struct GENERATED_ArkUIFileSelectorParamAccessor { void (*destroyPeer)(Ark_FileSelectorParam peer); Ark_FileSelectorParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTitle)(Ark_FileSelectorParam peer); + Ark_String (*getTitle)(Ark_FileSelectorParam peer); Ark_FileSelectorMode (*getMode)(Ark_FileSelectorParam peer); Array_String (*getAcceptType)(Ark_FileSelectorParam peer); Ark_Boolean (*isCapture)(Ark_FileSelectorParam peer); @@ -21259,7 +21216,7 @@ typedef struct GENERATED_ArkUIPermissionRequestAccessor { Ark_PermissionRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*deny)(Ark_PermissionRequest peer); - void (*getOrigin)(Ark_PermissionRequest peer); + Ark_String (*getOrigin)(Ark_PermissionRequest peer); Array_String (*getAccessibleResource)(Ark_PermissionRequest peer); void (*grant)(Ark_PermissionRequest peer, const Array_String* resources); @@ -21269,7 +21226,7 @@ typedef struct GENERATED_ArkUIScreenCaptureHandlerAccessor { void (*destroyPeer)(Ark_ScreenCaptureHandler peer); Ark_ScreenCaptureHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getOrigin)(Ark_ScreenCaptureHandler peer); + Ark_String (*getOrigin)(Ark_ScreenCaptureHandler peer); void (*grant)(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config); void (*deny)(Ark_ScreenCaptureHandler peer); @@ -21297,12 +21254,12 @@ typedef struct GENERATED_ArkUIWebContextMenuParamAccessor { Ark_NativePointer (*getFinalizer)(); Ark_Int32 (*x)(Ark_WebContextMenuParam peer); Ark_Int32 (*y)(Ark_WebContextMenuParam peer); - void (*getLinkUrl)(Ark_WebContextMenuParam peer); - void (*getUnfilteredLinkUrl)(Ark_WebContextMenuParam peer); - void (*getSourceUrl)(Ark_WebContextMenuParam peer); + Ark_String (*getLinkUrl)(Ark_WebContextMenuParam peer); + Ark_String (*getUnfilteredLinkUrl)(Ark_WebContextMenuParam peer); + Ark_String (*getSourceUrl)(Ark_WebContextMenuParam peer); Ark_Boolean (*existsImageContents)(Ark_WebContextMenuParam peer); Ark_ContextMenuMediaType (*getMediaType)(Ark_WebContextMenuParam peer); - void (*getSelectionText)(Ark_WebContextMenuParam peer); + Ark_String (*getSelectionText)(Ark_WebContextMenuParam peer); Ark_ContextMenuSourceType (*getSourceType)(Ark_WebContextMenuParam peer); Ark_ContextMenuInputFieldType (*getInputFieldType)(Ark_WebContextMenuParam peer); Ark_Boolean (*isEditable)(Ark_WebContextMenuParam peer); @@ -21330,8 +21287,8 @@ typedef struct GENERATED_ArkUIConsoleMessageAccessor { const Ark_Number* lineNumber, Ark_MessageLevel messageLevel); Ark_NativePointer (*getFinalizer)(); - void (*getMessage)(Ark_ConsoleMessage peer); - void (*getSourceId)(Ark_ConsoleMessage peer); + Ark_String (*getMessage)(Ark_ConsoleMessage peer); + Ark_String (*getSourceId)(Ark_ConsoleMessage peer); Ark_Int32 (*getLineNumber)(Ark_ConsoleMessage peer); Ark_MessageLevel (*getMessageLevel)(Ark_ConsoleMessage peer); } GENERATED_ArkUIConsoleMessageAccessor; @@ -21341,22 +21298,22 @@ typedef struct GENERATED_ArkUIWebResourceRequestAccessor { Ark_WebResourceRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); Array_Header (*getRequestHeader)(Ark_WebResourceRequest peer); - void (*getRequestUrl)(Ark_WebResourceRequest peer); + Ark_String (*getRequestUrl)(Ark_WebResourceRequest peer); Ark_Boolean (*isRequestGesture)(Ark_WebResourceRequest peer); Ark_Boolean (*isMainFrame)(Ark_WebResourceRequest peer); Ark_Boolean (*isRedirect)(Ark_WebResourceRequest peer); - void (*getRequestMethod)(Ark_WebResourceRequest peer); + Ark_String (*getRequestMethod)(Ark_WebResourceRequest peer); } GENERATED_ArkUIWebResourceRequestAccessor; typedef struct GENERATED_ArkUIWebResourceResponseAccessor { void (*destroyPeer)(Ark_WebResourceResponse peer); Ark_WebResourceResponse (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getResponseData)(Ark_WebResourceResponse peer); + Ark_String (*getResponseData)(Ark_WebResourceResponse peer); Opt_Union_String_Number_Buffer_Resource (*getResponseDataEx)(Ark_WebResourceResponse peer); - void (*getResponseEncoding)(Ark_WebResourceResponse peer); - void (*getResponseMimeType)(Ark_WebResourceResponse peer); - void (*getReasonMessage)(Ark_WebResourceResponse peer); + Ark_String (*getResponseEncoding)(Ark_WebResourceResponse peer); + Ark_String (*getResponseMimeType)(Ark_WebResourceResponse peer); + Ark_String (*getReasonMessage)(Ark_WebResourceResponse peer); Array_Header (*getResponseHeader)(Ark_WebResourceResponse peer); Ark_Int32 (*getResponseCode)(Ark_WebResourceResponse peer); void (*setResponseData)(Ark_WebResourceResponse peer, @@ -21380,7 +21337,7 @@ typedef struct GENERATED_ArkUIWebResourceErrorAccessor { void (*destroyPeer)(Ark_WebResourceError peer); Ark_WebResourceError (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getErrorInfo)(Ark_WebResourceError peer); + Ark_String (*getErrorInfo)(Ark_WebResourceError peer); Ark_Int32 (*getErrorCode)(Ark_WebResourceError peer); } GENERATED_ArkUIWebResourceErrorAccessor; @@ -21446,7 +21403,7 @@ typedef struct GENERATED_ArkUIXComponentControllerAccessor { void (*destroyPeer)(Ark_XComponentController peer); Ark_XComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getXComponentSurfaceId)(Ark_XComponentController peer); + Ark_String (*getXComponentSurfaceId)(Ark_XComponentController peer); Ark_CustomObject (*getXComponentContext)(Ark_XComponentController peer); void (*setXComponentSurfaceSize)(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value); @@ -21509,7 +21466,7 @@ typedef struct GENERATED_ArkUIStyledStringAccessor { Ark_StyledString (*ctor)(const Ark_Union_String_ImageAttachment_CustomSpan* value, const Opt_Array_StyleOptions* styles); Ark_NativePointer (*getFinalizer)(); - void (*getString)(Ark_StyledString peer); + Ark_String (*getString)(Ark_StyledString peer); Array_SpanStyle (*getStyles)(Ark_StyledString peer, const Ark_Number* start, const Ark_Number* length, @@ -21521,7 +21478,7 @@ typedef struct GENERATED_ArkUIStyledStringAccessor { const Opt_Number* length); void (*fromHtml)(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*toHtml)(Ark_StyledString styledString); + Ark_String (*toHtml)(Ark_StyledString styledString); Ark_Buffer (*marshalling)(Ark_StyledString styledString); void (*unmarshalling)(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); @@ -21532,7 +21489,7 @@ typedef struct GENERATED_ArkUITextStyle_styled_stringAccessor { void (*destroyPeer)(Ark_TextStyle_styled_string peer); Ark_TextStyle_styled_string (*ctor)(const Opt_TextStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - void (*getFontFamily)(Ark_TextStyle_styled_string peer); + Ark_String (*getFontFamily)(Ark_TextStyle_styled_string peer); Ark_Int32 (*getFontSize)(Ark_TextStyle_styled_string peer); Ark_Int32 (*getFontWeight)(Ark_TextStyle_styled_string peer); Ark_FontStyle (*getFontStyle)(Ark_TextStyle_styled_string peer); @@ -21601,7 +21558,7 @@ typedef struct GENERATED_ArkUIUrlStyleAccessor { void (*destroyPeer)(Ark_UrlStyle peer); Ark_UrlStyle (*ctor)(const Ark_String* url); Ark_NativePointer (*getFinalizer)(); - void (*getUrl)(Ark_UrlStyle peer); + Ark_String (*getUrl)(Ark_UrlStyle peer); } GENERATED_ArkUIUrlStyleAccessor; typedef struct GENERATED_ArkUIMutableStyledStringAccessor { @@ -21680,13 +21637,6 @@ typedef struct GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor { void (*unregisterVsyncCallback)(); } GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor; -typedef struct GENERATED_ArkUIGlobalScope_inspectorAccessor { - void (*destroyPeer)(Ark_GlobalScope_inspector peer); - Ark_CustomObject (*getInspectorNodes)(); - Ark_CustomObject (*getInspectorNodeById)(const Ark_Number* id); - void (*setAppBgColor)(const Ark_String* value); -} GENERATED_ArkUIGlobalScope_inspectorAccessor; - typedef struct GENERATED_ArkUIAbilityComponentEventsReceiver { void (*onConnect)(Ark_Int32 nodeId); void (*onDisconnect)(Ark_Int32 nodeId); @@ -22767,7 +22717,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIUICommonEventAccessor* (*getUICommonEventAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); - const GENERATED_ArkUIGlobalScope_commonAccessor* (*getGlobalScope_commonAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); const GENERATED_ArkUILinearGradientAccessor* (*getLinearGradientAccessor)(); @@ -22866,7 +22815,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUICustomSpanAccessor* (*getCustomSpanAccessor)(); const GENERATED_ArkUILinearIndicatorControllerAccessor* (*getLinearIndicatorControllerAccessor)(); const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* (*getGlobalScope_Profiler_inspectorAccessor)(); - const GENERATED_ArkUIGlobalScope_inspectorAccessor* (*getGlobalScope_inspectorAccessor)(); } GENERATED_ArkUIAccessors; typedef struct GENERATED_ArkUIGraphicsAPI { diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index 7185a879e..6852d0dde 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -18551,14 +18551,14 @@ void impl_CanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* } Opt_String type_value = type_value_buf;; const auto quality_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Number quality_value_buf = {}; + Opt_Float32 quality_value_buf = {}; quality_value_buf.tag = quality_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; if ((INTEROP_RUNTIME_UNDEFINED) != (quality_value_buf_runtimeType)) { - quality_value_buf.value = static_cast(thisDeserializer.readNumber()); + quality_value_buf.value = thisDeserializer.readFloat32(); } - Opt_Number quality_value = quality_value_buf;; - GetAccessors()->getCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Number*)&quality_value); + Opt_Float32 quality_value = quality_value_buf;; + GetAccessors()->getCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Float32*)&quality_value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_startImageAnalyzer(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { @@ -18655,14 +18655,14 @@ void impl_OffscreenCanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, } Opt_String type_value = type_value_buf;; const auto quality_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_CustomObject quality_value_buf = {}; + Opt_Float32 quality_value_buf = {}; quality_value_buf.tag = quality_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; if ((INTEROP_RUNTIME_UNDEFINED) != (quality_value_buf_runtimeType)) { - quality_value_buf.value = static_cast(thisDeserializer.readCustomObject("Any")); + quality_value_buf.value = thisDeserializer.readFloat32(); } - Opt_CustomObject quality_value = quality_value_buf;; - GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_CustomObject*)&quality_value); + Opt_Float32 quality_value = quality_value_buf;; + GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Float32*)&quality_value); } KOALA_INTEROP_V3(OffscreenCanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_transferToImageBitmap(Ark_NativePointer thisPtr) { @@ -20067,87 +20067,6 @@ void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, uint8_t* thisA GetAccessors()->getGestureModifierAccessor()->applyGesture(self, (const Ark_UIGestureEvent*)&event_value); } KOALA_INTEROP_V3(GestureModifier_applyGesture, Ark_NativePointer, uint8_t*, int32_t) -KInteropReturnBuffer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - const auto component_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_CustomObject component_value_buf = {}; - component_value_buf.tag = component_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (component_value_buf_runtimeType)) - { - component_value_buf.value = static_cast(thisDeserializer.readCustomObject("Object")); - } - Opt_CustomObject component_value = component_value_buf;; - Serializer _retSerializer {}; - _retSerializer.writeContext(GetAccessors()->getGlobalScope_commonAccessor()->getContext((const Opt_CustomObject*)&component_value)); - return _retSerializer.toReturnBuffer(); -} -KOALA_INTEROP_2(GlobalScope_common_getContext, KInteropReturnBuffer, uint8_t*, int32_t) -void impl_GlobalScope_common_postCardAction(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject component_value = static_cast(thisDeserializer.readCustomObject("Object"));; - Ark_CustomObject action_value = static_cast(thisDeserializer.readCustomObject("Object"));; - GetAccessors()->getGlobalScope_commonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); -} -KOALA_INTEROP_V2(GlobalScope_common_postCardAction, uint8_t*, int32_t) -KInteropReturnBuffer impl_GlobalScope_common_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int32 params_value_buf_length = thisDeserializer.readInt32(); - Array_CustomObject params_value_buf = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(¶ms_value_buf, params_value_buf_length); - for (int params_value_buf_i = 0; params_value_buf_i < params_value_buf_length; params_value_buf_i++) { - params_value_buf.array[params_value_buf_i] = static_cast(thisDeserializer.readCustomObject("Any")); - } - Array_CustomObject params_value = params_value_buf;; - Serializer _retSerializer {}; - _retSerializer.writeResource(GetAccessors()->getGlobalScope_commonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value)); - return _retSerializer.toReturnBuffer(); -} -KOALA_INTEROP_3(GlobalScope_common_dollar_r, KInteropReturnBuffer, KStringPtr, uint8_t*, int32_t) -KInteropReturnBuffer impl_GlobalScope_common_dollar_rawfile(const KStringPtr& value) { - Serializer _retSerializer {}; - _retSerializer.writeResource(GetAccessors()->getGlobalScope_commonAccessor()->dollar_rawfile((const Ark_String*) (&value))); - return _retSerializer.toReturnBuffer(); -} -KOALA_INTEROP_1(GlobalScope_common_dollar_rawfile, KInteropReturnBuffer, KStringPtr) -void impl_GlobalScope_common_animateTo(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; - Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); -} -KOALA_INTEROP_V2(GlobalScope_common_animateTo, uint8_t*, int32_t) -void impl_GlobalScope_common_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; - Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); -} -KOALA_INTEROP_V2(GlobalScope_common_animateToImmediately, uint8_t*, int32_t) -Ark_Int32 impl_GlobalScope_common_vp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->vp2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_vp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2vp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2vp((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2vp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_fp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->fp2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_fp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2fp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2fp((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2fp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_lpx2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->lpx2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_lpx2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2lpx(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2lpx((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2lpx, Ark_Int32, KInteropNumber) Ark_NativePointer impl_ContextMenu_ctor() { return GetAccessors()->getContextMenuAccessor()->ctor(); } @@ -24408,16 +24327,4 @@ KOALA_INTEROP_V2(GlobalScope_Profiler_inspector_registerVsyncCallback, uint8_t*, void impl_GlobalScope_Profiler_inspector_unregisterVsyncCallback() { GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->unregisterVsyncCallback(); } -KOALA_INTEROP_V0(GlobalScope_Profiler_inspector_unregisterVsyncCallback) -void impl_GlobalScope_inspector_getInspectorNodes() { - GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodes(); -} -KOALA_INTEROP_V0(GlobalScope_inspector_getInspectorNodes) -void impl_GlobalScope_inspector_getInspectorNodeById(KInteropNumber id) { - GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); -} -KOALA_INTEROP_V1(GlobalScope_inspector_getInspectorNodeById, KInteropNumber) -void impl_GlobalScope_inspector_setAppBgColor(const KStringPtr& value) { - GetAccessors()->getGlobalScope_inspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); -} -KOALA_INTEROP_V1(GlobalScope_inspector_setAppBgColor, KStringPtr) \ No newline at end of file +KOALA_INTEROP_V0(GlobalScope_Profiler_inspector_unregisterVsyncCallback) \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index cea2e2e67..0991ff11e 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -22484,13 +22484,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) + Ark_String GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getGlobalCompositeOperation("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) @@ -22522,13 +22524,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFilterImpl(Ark_CanvasRenderer peer) + Ark_String GetFilterImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFilter("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) @@ -22700,13 +22704,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetShadowColorImpl(Ark_CanvasRenderer peer) + Ark_String GetShadowColorImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getShadowColor("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) @@ -22778,13 +22784,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFontImpl(Ark_CanvasRenderer peer) + Ark_String GetFontImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFont("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) @@ -22867,18 +22875,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ToDataURLImpl(Ark_CanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_Number* quality) + Ark_String ToDataURLImpl(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { if (!needGroupedLog(1)) - return; + return {}; string out("toDataURL("); WriteToString(&out, type); out.append(", "); WriteToString(&out, quality); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, @@ -22998,18 +23008,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_CustomObject* quality) + Ark_String ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { if (!needGroupedLog(1)) - return; + return {}; string out("toDataURL("); WriteToString(&out, type); out.append(", "); WriteToString(&out, quality); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) { @@ -24845,13 +24857,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetKeyTextImpl(Ark_KeyEvent peer) + Ark_String GetKeyTextImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getKeyText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) @@ -25540,154 +25554,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_common peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Context GetContextImpl(const Opt_CustomObject* component) - { - if (!needGroupedLog(1)) - return {}; - string out("getContext("); - WriteToString(&out, component); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - void PostCardActionImpl(const Ark_CustomObject* component, - const Ark_CustomObject* action) - { - if (!needGroupedLog(1)) - return; - string out("postCardAction("); - WriteToString(&out, component); - out.append(", "); - WriteToString(&out, action); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Resource Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) - { - if (!needGroupedLog(1)) - return {}; - string out("dollar_r("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, params); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - Ark_Resource Dollar_rawfileImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return {}; - string out("dollar_rawfile("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - void AnimateToImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - if (!needGroupedLog(1)) - return; - string out("animateTo("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, event); - out.append(") \n"); - appendGroupedLog(1, out); - } - void AnimateToImmediatelyImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - if (!needGroupedLog(1)) - return; - string out("animateToImmediately("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, event); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Int32 Vp2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("vp2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - Ark_Int32 Px2vpImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("px2vp("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - Ark_Int32 Fp2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("fp2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - Ark_Int32 Px2fpImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("px2fp("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - Ark_Int32 Lpx2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("lpx2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - Ark_Int32 Px2lpxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 0; - string out("px2lpx("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - } // GlobalScope_commonAccessor namespace ContextMenuAccessor { void DestroyPeerImpl(Ark_ContextMenu peer) { @@ -26733,13 +26599,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetIdImpl(Ark_EventTargetInfo peer) + Ark_String GetIdImpl(Ark_EventTargetInfo peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { @@ -26771,13 +26639,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTagImpl(Ark_GestureRecognizer peer) + Ark_String GetTagImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTag("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { @@ -27323,13 +27193,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetNavDestinationIdImpl(Ark_NavDestinationContext peer) + Ark_String GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getNavDestinationId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) @@ -27381,13 +27253,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetNameImpl(Ark_NavPathInfo peer) + Ark_String GetNameImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getName("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) @@ -30016,13 +29890,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetTextImpl(Ark_SubmitEvent peer) + Ark_String GetTextImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) @@ -30510,13 +30386,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTitleImpl(Ark_FileSelectorParam peer) + Ark_String GetTitleImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTitle("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { @@ -30860,13 +30738,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetOriginImpl(Ark_PermissionRequest peer) + Ark_String GetOriginImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getOrigin("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { @@ -30918,13 +30798,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetOriginImpl(Ark_ScreenCaptureHandler peer) + Ark_String GetOriginImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getOrigin("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) @@ -31080,29 +30962,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetLinkUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getLinkUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getUnfilteredLinkUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetSourceUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetSourceUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSourceUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { @@ -31124,13 +31012,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetSelectionTextImpl(Ark_WebContextMenuParam peer) + Ark_String GetSelectionTextImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSelectionText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { @@ -31310,21 +31200,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetMessageImpl(Ark_ConsoleMessage peer) + Ark_String GetMessageImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getMessage("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetSourceIdImpl(Ark_ConsoleMessage peer) + Ark_String GetSourceIdImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSourceId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { @@ -31386,13 +31280,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetRequestUrlImpl(Ark_WebResourceRequest peer) + Ark_String GetRequestUrlImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { @@ -31424,13 +31320,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetRequestMethodImpl(Ark_WebResourceRequest peer) + Ark_String GetRequestMethodImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestMethod("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { @@ -31462,13 +31360,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetResponseDataImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseDataImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseData("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { @@ -31480,29 +31380,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetResponseEncodingImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseEncodingImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseEncoding("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseMimeType("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetReasonMessageImpl(Ark_WebResourceResponse peer) + Ark_String GetReasonMessageImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getReasonMessage("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { @@ -31634,13 +31540,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetErrorInfoImpl(Ark_WebResourceError peer) + Ark_String GetErrorInfoImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getErrorInfo("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { @@ -32020,13 +31928,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetXComponentSurfaceIdImpl(Ark_XComponentController peer) + Ark_String GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getXComponentSurfaceId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { @@ -32363,13 +32273,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetStringImpl(Ark_StyledString peer) + Ark_String GetStringImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getString("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Array_SpanStyle GetStylesImpl(Ark_StyledString peer, const Ark_Number* start, @@ -32428,14 +32340,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ToHtmlImpl(Ark_StyledString styledString) + Ark_String ToHtmlImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) - return; + return {}; string out("toHtml("); WriteToString(&out, styledString); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { @@ -32501,13 +32415,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetFontFamilyImpl(Ark_TextStyle_styled_string peer) + Ark_String GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFontFamily("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { @@ -32928,13 +32844,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetUrlImpl(Ark_UrlStyle peer) + Ark_String GetUrlImpl(Ark_UrlStyle peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // UrlStyleAccessor namespace MutableStyledStringAccessor { @@ -33315,46 +33233,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GlobalScope_Profiler_inspectorAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(Ark_GlobalScope_inspector peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_CustomObject GetInspectorNodesImpl() - { - if (!needGroupedLog(1)) - return {}; - string out("getInspectorNodes("); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - Ark_CustomObject GetInspectorNodeByIdImpl(const Ark_Number* id) - { - if (!needGroupedLog(1)) - return {}; - string out("getInspectorNodeById("); - WriteToString(&out, id); - out.append(") \n"); - out.append("[return {}] \n"); - appendGroupedLog(1, out); - return {}; - } - void SetAppBgColorImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return; - string out("setAppBgColor("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GlobalScope_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -34408,29 +34286,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -36149,20 +36004,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GlobalScope_Profiler_inspectorPeer { virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() - { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, - }; - return &GlobalScope_inspectorAccessorImpl; - } - - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; - }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { static const GENERATED_ArkUIAccessors accessorsImpl = { @@ -36221,7 +36062,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -36320,7 +36160,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_Profiler_inspectorAccessor, - GetGlobalScope_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 44b4b07dc..9f2225960 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -11453,8 +11453,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* globalAlpha) { } - void GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) + Ark_String GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { + return {}; } void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) @@ -11468,8 +11469,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle) { } - void GetFilterImpl(Ark_CanvasRenderer peer) + Ark_String GetFilterImpl(Ark_CanvasRenderer peer) { + return {}; } void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) @@ -11539,8 +11541,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* shadowBlur) { } - void GetShadowColorImpl(Ark_CanvasRenderer peer) + Ark_String GetShadowColorImpl(Ark_CanvasRenderer peer) { + return {}; } void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) @@ -11570,8 +11573,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_String* direction) { } - void GetFontImpl(Ark_CanvasRenderer peer) + Ark_String GetFontImpl(Ark_CanvasRenderer peer) { + return {}; } void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) @@ -11610,10 +11614,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ToDataURLImpl(Ark_CanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_Number* quality) + Ark_String ToDataURLImpl(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { + return {}; } void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, @@ -11666,10 +11671,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, - const Opt_String* type, - const Opt_CustomObject* quality) + Ark_String ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { + return {}; } Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) { @@ -12480,8 +12486,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* keyCode) { } - void GetKeyTextImpl(Ark_KeyEvent peer) + Ark_String GetKeyTextImpl(Ark_KeyEvent peer) { + return {}; } void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) @@ -12797,64 +12804,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(Ark_GlobalScope_common peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_Context GetContextImpl(const Opt_CustomObject* component) - { - return {}; - } - void PostCardActionImpl(const Ark_CustomObject* component, - const Ark_CustomObject* action) - { - } - Ark_Resource Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) - { - return {}; - } - Ark_Resource Dollar_rawfileImpl(const Ark_String* value) - { - return {}; - } - void AnimateToImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - } - void AnimateToImmediatelyImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - } - Ark_Int32 Vp2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2vpImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Fp2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2fpImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Lpx2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2lpxImpl(const Ark_Number* value) - { - return {}; - } - } // GlobalScope_commonAccessor namespace ContextMenuAccessor { void DestroyPeerImpl(Ark_ContextMenu peer) { @@ -13345,8 +13294,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetIdImpl(Ark_EventTargetInfo peer) + Ark_String GetIdImpl(Ark_EventTargetInfo peer) { + return {}; } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { @@ -13365,8 +13315,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTagImpl(Ark_GestureRecognizer peer) + Ark_String GetTagImpl(Ark_GestureRecognizer peer) { + return {}; } Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { @@ -13610,8 +13561,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavPathStack pathStack) { } - void GetNavDestinationIdImpl(Ark_NavDestinationContext peer) + Ark_String GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { + return {}; } void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) @@ -13637,8 +13589,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetNameImpl(Ark_NavPathInfo peer) + Ark_String GetNameImpl(Ark_NavPathInfo peer) { + return {}; } void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) @@ -14823,8 +14776,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { void KeepEditableStateImpl(Ark_SubmitEvent peer) { } - void GetTextImpl(Ark_SubmitEvent peer) + Ark_String GetTextImpl(Ark_SubmitEvent peer) { + return {}; } void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) @@ -15061,8 +15015,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTitleImpl(Ark_FileSelectorParam peer) + Ark_String GetTitleImpl(Ark_FileSelectorParam peer) { + return {}; } Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { @@ -15229,8 +15184,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { void DenyImpl(Ark_PermissionRequest peer) { } - void GetOriginImpl(Ark_PermissionRequest peer) + Ark_String GetOriginImpl(Ark_PermissionRequest peer) { + return {}; } Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { @@ -15257,8 +15213,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetOriginImpl(Ark_ScreenCaptureHandler peer) + Ark_String GetOriginImpl(Ark_ScreenCaptureHandler peer) { + return {}; } void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) @@ -15336,14 +15293,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void GetLinkUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetLinkUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } - void GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } - void GetSourceUrlImpl(Ark_WebContextMenuParam peer) + Ark_String GetSourceUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { @@ -15353,8 +15313,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void GetSelectionTextImpl(Ark_WebContextMenuParam peer) + Ark_String GetSelectionTextImpl(Ark_WebContextMenuParam peer) { + return {}; } Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { @@ -15435,11 +15396,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetMessageImpl(Ark_ConsoleMessage peer) + Ark_String GetMessageImpl(Ark_ConsoleMessage peer) { + return {}; } - void GetSourceIdImpl(Ark_ConsoleMessage peer) + Ark_String GetSourceIdImpl(Ark_ConsoleMessage peer) { + return {}; } Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { @@ -15470,8 +15433,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void GetRequestUrlImpl(Ark_WebResourceRequest peer) + Ark_String GetRequestUrlImpl(Ark_WebResourceRequest peer) { + return {}; } Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { @@ -15485,8 +15449,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void GetRequestMethodImpl(Ark_WebResourceRequest peer) + Ark_String GetRequestMethodImpl(Ark_WebResourceRequest peer) { + return {}; } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { @@ -15505,21 +15470,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetResponseDataImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseDataImpl(Ark_WebResourceResponse peer) { + return {}; } Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { return {}; } - void GetResponseEncodingImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseEncodingImpl(Ark_WebResourceResponse peer) { + return {}; } - void GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) + Ark_String GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { + return {}; } - void GetReasonMessageImpl(Ark_WebResourceResponse peer) + Ark_String GetReasonMessageImpl(Ark_WebResourceResponse peer) { + return {}; } Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { @@ -15578,8 +15547,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetErrorInfoImpl(Ark_WebResourceError peer) + Ark_String GetErrorInfoImpl(Ark_WebResourceError peer) { + return {}; } Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { @@ -15755,8 +15725,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetXComponentSurfaceIdImpl(Ark_XComponentController peer) + Ark_String GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { + return {}; } Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { @@ -15906,8 +15877,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetStringImpl(Ark_StyledString peer) + Ark_String GetStringImpl(Ark_StyledString peer) { + return {}; } Array_SpanStyle GetStylesImpl(Ark_StyledString peer, const Ark_Number* start, @@ -15931,8 +15903,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ToHtmlImpl(Ark_StyledString styledString) + Ark_String ToHtmlImpl(Ark_StyledString styledString) { + return {}; } Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { @@ -15963,8 +15936,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetFontFamilyImpl(Ark_TextStyle_styled_string peer) + Ark_String GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { + return {}; } Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { @@ -16175,8 +16149,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetUrlImpl(Ark_UrlStyle peer) + Ark_String GetUrlImpl(Ark_UrlStyle peer) { + return {}; } } // UrlStyleAccessor namespace MutableStyledStringAccessor { @@ -16351,26 +16326,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // GlobalScope_Profiler_inspectorAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(Ark_GlobalScope_inspector peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_CustomObject GetInspectorNodesImpl() - { - return {}; - } - Ark_CustomObject GetInspectorNodeByIdImpl(const Ark_Number* id) - { - return {}; - } - void SetAppBgColorImpl(const Ark_String* value) - { - } - } // GlobalScope_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -17424,29 +17379,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -19165,20 +19097,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GlobalScope_Profiler_inspectorPeer { virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() - { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, - }; - return &GlobalScope_inspectorAccessorImpl; - } - - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; - }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { static const GENERATED_ArkUIAccessors accessorsImpl = { @@ -19237,7 +19155,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -19336,7 +19253,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, GetGlobalScope_Profiler_inspectorAccessor, - GetGlobalScope_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/loader/package.json b/arkoala/loader/package.json index ffa3afb89..0e9a7c7f8 100644 --- a/arkoala/loader/package.json +++ b/arkoala/loader/package.json @@ -18,28 +18,26 @@ "ets": "cd src/ets; ets-tsc", "test:hzvm:loader": "npm run compile:hzvm-host", "clean": "ets-tsc -b . --clean && rimraf build dist lib generated unmemoized", - "compile:node-test-host": "npm run gen-resources && npm run -C ../framework compile:native-node-host && ets-tsc -b ../extension-component && npm run ets && npm run compile:node-test", - "compile:node-test-host:unmemoizing": "npm run gen-resources && npm run unmemoize --prefix ../extension-component && npm run ets && ets-tsc -b tsconfig-unmemoize.json && npm run compile:node-test:unmemoizing", + "compile:node-test-host": "npm run -C ../framework compile:native-node-host && ets-tsc -b ../extension-component && npm run ets && npm run compile:node-test", + "compile:node-test-host:unmemoizing": "npm run unmemoize --prefix ../extension-component && npm run ets && ets-tsc -b tsconfig-unmemoize.json && npm run compile:node-test:unmemoizing", "compile:node-test": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-test.js", "compile:node-test:unmemoizing": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-test.js --env tsconfig=tsconfig-run-unmemoized.json --env unmemoized=unmemoized", "compile:node-test:unmemoizing:arkts": "bash ../external/incremental/tools/panda/arkts/arktsc --extension sts unmemoized/generated/ets/page.ts --arktsconfig arktsconfig-run-unmemoized.json", - "compile:perf-ets": "npm run plugins:compile && HOS_SDK_HOME='../ohos-sdk/ohos-sdk/HarmonyOS-NEXT-DB1/openharmony' npm run gen-resources && ets-tsc -p ../extension-component && npm run ets", + "compile:perf-ets": "npm run plugins:compile && ets-tsc -p ../extension-component && npm run ets", "compile:perf-node": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-perf.js", "compile:web": "WEBPACK_NO_MINIMIZE=true webpack serve --open --config webpack.config.web.js", "pack:perf": "npm run compile:perf-ets && npm run compile:perf-node && webpack ./lib/index-perf.js && echo 'Packed to dist/main.js'", "run:perf-node": "npm run compile:perf-ets && npm run compile:perf-node && node --expose-gc ./lib/js/arkoala-perf-node.js", "run:web": "npm run compile:perf-ets && npm run compile:web", - "compile-gen-resources": "npm run --prefix ../ohos-sdk download; cd scripts; tsc gen-resources.ts --types node --target es6 --module commonjs; cd ..", - "gen-resources": "npm run compile-gen-resources && node ./scripts/gen-resources.js", - "compile:hzvm-host": "npm run gen-resources && npm run ets && npm run compile:hzvm", - "compile:hzvm-ohos": "npm run gen-resources && npm run ets && npm run compile:hzvm -- --env os=ohos --env arch=arm64", + "compile:hzvm-host": "npm run ets && npm run compile:hzvm", + "compile:hzvm-ohos": "npm run ets && npm run compile:hzvm -- --env os=ohos --env arch=arm64", "compile:hzvm": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.ts --config webpack.config.ark.js", "compile:hzvm-test": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.test.ts --config webpack.config.app.js", - "compile:test-ohos": "npm run gen-resources && npm run ets && npm run compile:hzvm-test -- --env os=ohos --env arch=arm64", + "compile:test-ohos": "npm run ets && npm run compile:hzvm-test -- --env os=ohos --env arch=arm64", "compile:hzvm-framework": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.framework.js", "compile:framework-ohos": "npm run compile:hzvm-framework -- --env os=ohos --env arch=arm64", "compile:framework": "npm run compile:hzvm-framework", - "compile:perf-hzvm-ohos": "npm run gen-resources && npm run ets && npm run compile:perf-hzvm -- --env os=ohos --env arch=arm64", + "compile:perf-hzvm-ohos": "npm run ets && npm run compile:perf-hzvm -- --env os=ohos --env arch=arm64", "compile:perf-hzvm": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.perf.ts --config webpack.config.ark.js" }, "devDependencies": { diff --git a/arkoala/loader/src/ets/tsconfig.json b/arkoala/loader/src/ets/tsconfig.json index 101af63b4..aac432cf2 100644 --- a/arkoala/loader/src/ets/tsconfig.json +++ b/arkoala/loader/src/ets/tsconfig.json @@ -8,7 +8,11 @@ { "transform": "@koalaui/ets-plugin/build/lib/src/ArkExpander.js", "destination": "../../generated/ets", - "arkui": "@koalaui/arkoala-arkui" + "arkui": "@koalaui/arkoala-arkui", + "applicationInfo": { + "bundleName": "com.example.trivial.application", + "moduleName": "entry" + } } ], "types": ["arkoala-runtime"], diff --git a/arkoala/loader/webpack.config.ark.js b/arkoala/loader/webpack.config.ark.js index 3e60676aa..968befc06 100644 --- a/arkoala/loader/webpack.config.ark.js +++ b/arkoala/loader/webpack.config.ark.js @@ -25,8 +25,6 @@ const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -63,10 +61,6 @@ const makeConfig = ({ os, arch }) => ({ 'LOAD_NATIVE': `globalThis.requireNapi("ArkoalaNative", true)`, 'NATIVE_LIBRARY_NAME': `"ArkoalaNative"`, }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), { apply(compiler) { compiler.hooks.compilation.tap('OHOSCompilationHook', (compilation) => { diff --git a/arkoala/loader/webpack.config.base.js b/arkoala/loader/webpack.config.base.js index b6bc35d15..4df463c96 100644 --- a/arkoala/loader/webpack.config.base.js +++ b/arkoala/loader/webpack.config.base.js @@ -26,8 +26,6 @@ const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE const is_user_bridge = true -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -54,10 +52,6 @@ const makeConfig = ({ os, arch }) => ({ 'LOAD_NATIVE': is_user_bridge ? `globalThis.requireNapi("ArkoalaNative", true)` : `globalThis.requireNapi("arkoalanative_${os}_${arch}")`, 'NATIVE_LIBRARY_NAME': is_user_bridge ? `"ArkoalaNative"` : `"arkoalanative_${os}_${arch}"`, }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", devtool: minimize ? false : "inline-source-map", diff --git a/arkoala/loader/webpack.config.node-perf.js b/arkoala/loader/webpack.config.node-perf.js index 93993fcb4..aee9f0bc6 100644 --- a/arkoala/loader/webpack.config.node-perf.js +++ b/arkoala/loader/webpack.config.node-perf.js @@ -19,8 +19,6 @@ const DefinePlugin = require("webpack").DefinePlugin const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -54,10 +52,6 @@ const makeConfig = ({ os, arch }) => ({ plugins: [ new DefinePlugin({ }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", diff --git a/arkoala/loader/webpack.config.node-test.js b/arkoala/loader/webpack.config.node-test.js index b3b788852..1393a696d 100644 --- a/arkoala/loader/webpack.config.node-test.js +++ b/arkoala/loader/webpack.config.node-test.js @@ -21,8 +21,6 @@ const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin') const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch, tsconfig, unmemoized }) => ({ target: "node", @@ -72,10 +70,6 @@ const makeConfig = ({ os, arch, tsconfig, unmemoized }) => ({ 'NATIVE_LIBRARY_NAME': `"./ArkoalaNative_${os}_${arch}.node"`, "process.env.KOALAUI_SELF_PROFILE": "false", }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", diff --git a/arkoala/loader/webpack.config.web.js b/arkoala/loader/webpack.config.web.js index 77f23b188..5f4c2c1a0 100644 --- a/arkoala/loader/webpack.config.web.js +++ b/arkoala/loader/webpack.config.web.js @@ -19,8 +19,6 @@ const path = require("path") const DefinePlugin = require("webpack").DefinePlugin const ProvidePlugin = require("webpack").ProvidePlugin -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ module.exports = { target: "web", @@ -51,10 +49,6 @@ module.exports = { plugins: [ new DefinePlugin({ }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"], - }), ], mode: "development", -- Gitee From 265d5a2d2abd1bf3a2538382ea67a16d5aa72259 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 19 Feb 2025 18:18:16 +0000 Subject: [PATCH 21/31] !27 Fix generation 2.0.32 * Fix * Fix generation --- .../src/generated/ArkInspectorInterfaces.ts | 24 +++++++++++++++++++ .../src/generated/ArkInspectorInterfaces.ts | 24 +++++++++++++++++++ .../src/generated/arkoala_api_generated.h | 2 +- arkoala/tools/peer-generator/package.json | 4 ++-- 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts create mode 100644 arkoala/arkui/src/generated/ArkInspectorInterfaces.ts diff --git a/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts new file mode 100644 index 000000000..df70cea9b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +declare function getInspectorNodes(): Object +declare function getInspectorNodeById(arg0: number): Object +declare function setAppBgColor(arg0: string): void diff --git a/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts b/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts new file mode 100644 index 000000000..a9e69bb1f --- /dev/null +++ b/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +declare function getInspectorNodes(): Object +declare function getInspectorNodeById(arg0: number): Object +declare function setAppBgColor(arg0: string): void diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 579261b2b..e085de495 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -156,7 +156,7 @@ typedef struct InteropBuffer { // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 119 +#define GENERATED_ARKUI_FULL_API_VERSION 120 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index bdd8cc3cf..c1e11ffa4 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -2,8 +2,8 @@ "name": "peer-generator", "description": "", "config": { - "idlize_version": "2.0.31", - "api_version": "119", + "idlize_version": "2.0.32", + "api_version": "120", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": { -- Gitee From ff3550af4aff41408c0e7203869bed77c6fee512 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 20 Feb 2025 00:27:37 +0000 Subject: [PATCH 22/31] !28 Don't expose FunctionSignature object to the user --- arkoala-arkts/arkui/src/sts/arkui.sts | 9 +-- .../plugins/src/builder-lambda-transformer.ts | 42 ++++++------ .../plugins/src/struct-transformer.ts | 9 +-- arkoala-arkts/libarkts/src/arkts-api/types.ts | 17 +++-- .../libarkts/src/arkts-api/visitor.ts | 16 ++--- .../test/arkts-api/functions/create.test.ts | 67 +++++++++---------- .../arkts-api/import-export/import.test.ts | 10 ++- .../memo-plugin/src/function-transformer.ts | 7 +- 8 files changed, 81 insertions(+), 96 deletions(-) diff --git a/arkoala-arkts/arkui/src/sts/arkui.sts b/arkoala-arkts/arkui/src/sts/arkui.sts index 58a5b1b1a..8a0ade1b5 100644 --- a/arkoala-arkts/arkui/src/sts/arkui.sts +++ b/arkoala-arkts/arkui/src/sts/arkui.sts @@ -100,9 +100,7 @@ export class Button extends CommonMethod { options?: ButtonOptions|string, //content?: () => void ): Button { - //throw new Error("This method should only be called through a @BuilderLambda redirect") - console.log("Button") - return factory() + throw new Error("This method should only be called through a @BuilderLambda redirect") } static instantiateImpl( @@ -129,10 +127,7 @@ export class Text extends CommonMethod { options?: TextOptions|string, //content?: () => void ): Text { - //throw new Error("This method should only be called through a @BuilderLambda redirect") - - console.log("Text") - return factory() + throw new Error("This method should only be called through a @BuilderLambda redirect") } // TODO: the second argument will be gone after hte plugin is improved diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index ab1fc833e..0a11eb781 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -40,10 +40,14 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar undefined ) - const signature = arkts.FunctionSignature.create(undefined, - [ - param - ], + const func = arkts.factory.createScriptFunction( + body, + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW, + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, + false, + undefined, + [ param ], + undefined, // TODO: it should be the return type of the function annotated with the @BuilderLambda typeName ? arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier( @@ -52,15 +56,6 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar ) : undefined ) - const func = arkts.factory.createScriptFunction( - body, - signature, - arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW, - arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, - false, - undefined - ) - return arkts.factory.createArrowFunction( func ) @@ -201,24 +196,25 @@ function builderLambdaBodyRewrite(node: arkts.AstNode): arkts.AstNode { const body: arkts.BlockStatement = scriptFunc.body; const statements: arkts.AstNode[] = body.statements.map((statement: arkts.AstNode) => { if ( - arkts.isExpressionStatement(statement) - && statement.expression + arkts.isExpressionStatement(statement) + && statement.expression && arkts.isCallExpression(statement.expression) ) { return transformBuilderLambda(statement.expression); } return statement; - }); + }); const updateBody = arkts.factory.updateBlock(body, statements); - const signature: arkts.FunctionSignature = arkts.FunctionSignature.create(undefined, [], undefined); const updateFunc: arkts.ScriptFunction = arkts.factory.updateScriptFunction( - scriptFunc, - updateBody, - signature, // TODO: Cannot get signature from original ScriptFunction node + scriptFunc, + updateBody, scriptFunc.scriptFunctionFlags, scriptFunc.modifiers, false, + undefined, + undefined, + undefined, undefined ); @@ -271,11 +267,11 @@ function transformBuilderLambda(node: arkts.CallExpression): arkts.AstNode { const typeName = builderLambdaTypeName(leaf) const lambdaArg = getLambdaArg(lambdaBody, typeName) - let args: arkts.AstNode[] = leaf.arguments.length < 3 + let args: arkts.AstNode[] = leaf.arguments.length < 3 ? leaf.arguments as arkts.AstNode[] : [ - ...leaf.arguments.slice(0, 2), - builderLambdaBodyRewrite(leaf.arguments.at(2)!), + ...leaf.arguments.slice(0, 2), + builderLambdaBodyRewrite(leaf.arguments.at(2)!), ...leaf.arguments.slice(3) // Currently, this is never reached since the maximum length of arguments is 3 ]; diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts index 1243e1c91..826e0b193 100644 --- a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -112,17 +112,14 @@ function transformBuildMethod( const params: arkts.ETSParameterExpression[] = prepareArgsInBuildMethod(className); - const signature: arkts.FunctionSignature = arkts.FunctionSignature.create( - undefined, - params, - undefined - ); const updateScriptFunction = arkts.factory.createScriptFunction( scriptFunction.body, - signature, scriptFunction.scriptFunctionFlags, scriptFunction.modifiers, false, + undefined, + params, + undefined, undefined ); diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index d1136c3fe..ce18131e8 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -472,7 +472,7 @@ export class FunctionSignature extends ArktsObject { static create( typeParamsDecl: TSTypeParameterDeclaration | undefined, - params: readonly AstNode[], + params: readonly AstNode[] | undefined, returnTypeAnnotation: AstNode | undefined, ): FunctionSignature { return new FunctionSignature( @@ -480,7 +480,7 @@ export class FunctionSignature extends ArktsObject { global.context, passNode(typeParamsDecl), passNodeArray(params), - params.length, + params?.length ?? 0, passNode(returnTypeAnnotation), false ) @@ -498,6 +498,7 @@ export class ScriptFunction extends AstNode { super(peer) this.parameters = unpackNodeArray(global.generatedEs2panda._ScriptFunctionParams(global.context, this.peer)) this.typeParamsDecl = unpackNode(global.generatedEs2panda._ScriptFunctionTypeParams(global.context, this.peer)) + this.returnTypeAnnotation = unpackNode(global.generatedEs2panda._ScriptFunctionReturnTypeAnnotation(global.context, this.peer)) this.body = unpackNode(global.generatedEs2panda._ScriptFunctionBody(global.context, this.peer)) // this.signature = unpackNode(global.generatedEs2panda._ScriptFunctionSignature(global.context, this.peer)) // this.declare = global.generatedEs2panda._ScriptFunctionDeclareConst(global.context, this.peer) @@ -508,20 +509,21 @@ export class ScriptFunction extends AstNode { static create( body: AstNode | undefined, - signature: FunctionSignature | undefined, functionFlags: Es2pandaScriptFunctionFlags, modifierFlags: Es2pandaModifierFlags, declare: boolean, ident: Identifier | undefined, - parameters?: ETSParameterExpression[], + parameters: ETSParameterExpression[]|undefined, + typeParamsDecl: TSTypeParameterDeclaration|undefined, + returnTypeAnnotation: AstNode|undefined ): ScriptFunction { const peer = global.generatedEs2panda._CreateScriptFunction( global.context, passNode(body), - signature?.peer ?? FunctionSignature.create( - undefined, + FunctionSignature.create( + typeParamsDecl, parameters!, - undefined + returnTypeAnnotation ).peer, functionFlags, modifierFlags @@ -576,6 +578,7 @@ export class ScriptFunction extends AstNode { readonly parameters: ETSParameterExpression[] readonly typeParamsDecl?: TSTypeParameterDeclaration + readonly returnTypeAnnotation: AstNode | undefined readonly body?: BlockStatement // readonly signature: FunctionSignature readonly scriptFunctionFlags: KInt diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index e52994391..2b000c8e0 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -175,16 +175,13 @@ export function visitEachChild( factory.updateScriptFunction( node.scriptFunction, nodeVisitor(node.scriptFunction.body, visitor), - FunctionSignature.create( - node.scriptFunction.typeParamsDecl, - node.scriptFunction.parameters, - // TODO: fix return type - nullptr - ), 0, node.modifiers | Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC || Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, - node.name + node.name, + node.scriptFunction.parameters, + node.scriptFunction.typeParamsDecl, + node.scriptFunction.returnTypeAnnotation ) ), node.modifiers, @@ -195,12 +192,13 @@ export function visitEachChild( return factory.updateScriptFunction( node, nodeVisitor(node.body, visitor), - nullptr, node.scriptFunctionFlags, Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, false, nodeVisitor(node.ident, visitor), - nodesVisitor(node.parameters, visitor) + nodesVisitor(node.parameters, visitor), + nodeVisitor(node.typeParamsDecl, visitor), + nodeVisitor(node.returnTypeAnnotation, visitor) ) } if (node instanceof EtsImportDeclaration) { diff --git a/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts b/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts index 10a452f91..928e92ccc 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts @@ -50,17 +50,15 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [], - undefined - ), arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_NONE, arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, arkts.factory.createIdentifier( 'foo' - ) + ), + [], + undefined, + undefined ), false ), @@ -152,40 +150,39 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [ - arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier( - 'x', - arkts.factory.createPrimitiveType( - arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_INT - ) - ), - undefined - ), - arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier( - 'y', - arkts.factory.createTypeReferenceFromId( - arkts.factory.createIdentifier( - 'string' - ) - ) - ), - arkts.factory.createStringLiteral( - 'bbb' - ) - ) - ], - undefined - ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_NONE, arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, arkts.factory.createIdentifier( 'foo' - ) + ), + [ + arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'x', + arkts.factory.createPrimitiveType( + arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_INT + ) + ), + undefined + ), + arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'y', + arkts.factory.createTypeReferenceFromId( + arkts.factory.createIdentifier( + 'string' + ) + ) + ), + arkts.factory.createStringLiteral( + 'bbb' + ) + ) + ], + undefined, + undefined ), false ), diff --git a/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts b/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts index d7d254f9c..fe8649ed6 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts @@ -167,15 +167,13 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [], - undefined - ), scriptFunction.scriptFunctionFlags, scriptFunction.modifiers, false, - scriptFunction.ident + scriptFunction.ident, + [], + undefined, + undefined ), false ) diff --git a/arkoala-arkts/memo-plugin/src/function-transformer.ts b/arkoala-arkts/memo-plugin/src/function-transformer.ts index b42df68bd..1aed94b37 100644 --- a/arkoala-arkts/memo-plugin/src/function-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/function-transformer.ts @@ -124,18 +124,19 @@ export class FunctionTransformer extends AbstractVisitor { // TODO: fix return arkts.factory.updateMethodDefinition( node, - 2, + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( arkts.factory.updateScriptFunction( node.scriptFunction, updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), - undefined, node.scriptFunction.scriptFunctionFlags, node.scriptFunction.modifiers, false, node.scriptFunction.ident, - [...createHiddenParameters(), ...node.scriptFunction.parameters] + [...createHiddenParameters(), ...node.scriptFunction.parameters], + node.scriptFunction.typeParamsDecl, + node.scriptFunction.returnTypeAnnotation ), ), node.modifiers, -- Gitee From 1a51cba3e56699115bab64b01cbde45e7b628297 Mon Sep 17 00:00:00 2001 From: kolegovilya Date: Thu, 20 Feb 2025 09:18:31 +0000 Subject: [PATCH 23/31] !31 KReturnInteropBuffer convertor for ets * KReturnInteropBuffer convertor for ets --- interop/src/cpp/ets/convertors-ets.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/interop/src/cpp/ets/convertors-ets.h b/interop/src/cpp/ets/convertors-ets.h index edeb53f12..4d1e9543a 100644 --- a/interop/src/cpp/ets/convertors-ets.h +++ b/interop/src/cpp/ets/convertors-ets.h @@ -91,6 +91,21 @@ struct InteropTypeConverter { } }; +template<> +struct InteropTypeConverter { + using InteropType = ets_byteArray; + static KByte* convertFrom(EtsEnv* env, InteropType value) = delete; + static InteropType convertTo(EtsEnv* env, KInteropReturnBuffer value) { + ets_byteArray array = env->NewByteArray(value.length); + KByte* data = (KByte*)env->PinByteArray(array); + memcpy(data, (KByte*)value.data, value.length); + env->UnpinByteArray(array); + value.dispose(value.data, value.length); + return array; + }; + static void release(EtsEnv* env, InteropType value, KInteropReturnBuffer converted) {} +}; + template<> struct InteropTypeConverter { using InteropType = ets_byteArray; -- Gitee From 736d3908e33ba52ac29a4df2dac1e3167ee7bfbf Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Thu, 20 Feb 2025 09:51:45 +0000 Subject: [PATCH 24/31] !32 Replace direct usages of chai with our harness --- arkoala/ets-plugin/.gitlab-ci.yml | 8 +- arkoala/ets-plugin/oh-package.json5 | 3 - arkoala/ets-plugin/package.json | 7 +- arkoala/ets-plugin/test/rewrites.test.ts | 3 +- .../test/specification/specification.test.ts | 3 +- arkoala/ets-plugin/test/utils.ts | 4 +- incremental/compat/oh-package.json5 | 5 - incremental/compat/package.json | 5 - incremental/compiler-plugin/.gitlab-ci.yml | 3 +- incremental/compiler-plugin/oh-package.json5 | 3 - incremental/compiler-plugin/package.json | 6 +- .../compiler-plugin/test/auto_detect.test.ts | 4 +- .../compiler-plugin/test/basic.test.ts | 4 +- .../test/diagnostics/diagnostics.test.ts | 4 +- .../test/function_return.test.ts | 4 +- .../test/parenthesised-call.test.ts | 150 +++++++++--------- incremental/compiler-plugin/test/util.test.ts | 4 +- .../test/variable_declaration.test.ts | 4 +- .../compiler-plugin/test/whole_file.test.ts | 4 +- .../test/wrap_object_literal.test.ts | 4 +- incremental/harness/js/register.js | 34 ++++ incremental/harness/package.json | 2 + incremental/package.json | 2 - incremental/runtime/.gitlab-ci.yml | 1 + incremental/runtime/oh-package.json5 | 3 - incremental/runtime/package.json | 3 - .../runtime/test/animation/Easing.test.ts | 4 +- .../runtime/test/common/MarkableQueue.test.ts | 4 +- incremental/runtime/test/memo/bind.test.ts | 2 +- .../runtime/test/memo/changeListener.test.ts | 4 +- .../runtime/test/memo/contextLocal.test.ts | 4 +- .../runtime/test/memo/remember.test.ts | 4 +- incremental/runtime/test/memo/repeat.test.ts | 4 +- .../runtime/test/states/Journal.test.ts | 4 +- incremental/runtime/test/states/State.test.ts | 2 +- .../runtime/test/states/state_basics.test.ts | 4 +- .../runtime/test/tree/TreeNode.test.ts | 4 +- .../runtime/test/tree/TreePath.test.ts | 4 +- interop/oh-package.json5 | 4 - interop/package.json | 4 - 40 files changed, 170 insertions(+), 159 deletions(-) create mode 100644 incremental/harness/js/register.js diff --git a/arkoala/ets-plugin/.gitlab-ci.yml b/arkoala/ets-plugin/.gitlab-ci.yml index 1f26c8b83..b23b44b2c 100644 --- a/arkoala/ets-plugin/.gitlab-ci.yml +++ b/arkoala/ets-plugin/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -45,6 +45,7 @@ test ets-plugin (arkoala): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkts): stage: test @@ -61,6 +62,7 @@ test ets-plugin (arkts): - build compat - build common - build ets-plugin + - build harness test ets-plugin (koala): stage: test @@ -77,6 +79,7 @@ test ets-plugin (koala): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkoala spec): stage: test @@ -94,6 +97,7 @@ test ets-plugin (arkoala spec): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkts spec): stage: test @@ -111,6 +115,7 @@ test ets-plugin (arkts spec): - build compat - build common - build ets-plugin + - build harness test ets-plugin (koala spec): stage: test @@ -128,6 +133,7 @@ test ets-plugin (koala spec): - build compat - build common - build ets-plugin + - build harness pack ets-plugin: extends: diff --git a/arkoala/ets-plugin/oh-package.json5 b/arkoala/ets-plugin/oh-package.json5 index 48b4bce36..17a0cd831 100644 --- a/arkoala/ets-plugin/oh-package.json5 +++ b/arkoala/ets-plugin/oh-package.json5 @@ -24,11 +24,8 @@ "keywords": [], "dependencies": {}, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/arkoala/ets-plugin/package.json b/arkoala/ets-plugin/package.json index aa39e9813..4cc6699ab 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -40,14 +40,13 @@ "clean": "rimraf build test/spec test/specification/ets2bundle" }, "keywords": [], - "dependencies": {}, + "dependencies": { + "@koalaui/harness": "1.5.5+devel" + }, "devDependencies": { "@koalaui/ets-tsc": "4.9.5-r4", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/arkoala/ets-plugin/test/rewrites.test.ts b/arkoala/ets-plugin/test/rewrites.test.ts index 42b6978a4..6a0a433dc 100644 --- a/arkoala/ets-plugin/test/rewrites.test.ts +++ b/arkoala/ets-plugin/test/rewrites.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +13,7 @@ * limitations under the License. */ +import { suite, test } from "@koalaui/harness" import { assertGeneratedEqualsGolden, testFolder } from "./utils" suite("Basic rewrites of ArkUI syntactic features", () => { diff --git a/arkoala/ets-plugin/test/specification/specification.test.ts b/arkoala/ets-plugin/test/specification/specification.test.ts index ab0ba5ec5..fd23a8e6b 100644 --- a/arkoala/ets-plugin/test/specification/specification.test.ts +++ b/arkoala/ets-plugin/test/specification/specification.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +13,7 @@ * limitations under the License. */ +import { suite } from "@koalaui/harness" import { directoriesManager, testsForDirectories } from "../utils"; suite("ArkUI specification", () => { diff --git a/arkoala/ets-plugin/test/utils.ts b/arkoala/ets-plugin/test/utils.ts index aba4f32aa..f278a6741 100644 --- a/arkoala/ets-plugin/test/utils.ts +++ b/arkoala/ets-plugin/test/utils.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ import * as path from 'path' import * as fs from 'fs' -import { assert } from "chai" +import { Assert as assert } from "@koalaui/harness" import * as child from "child_process" export function testFolder(folder: string) { diff --git a/incremental/compat/oh-package.json5 b/incremental/compat/oh-package.json5 index 0a0d59e03..45b5a9768 100644 --- a/incremental/compat/oh-package.json5 +++ b/incremental/compat/oh-package.json5 @@ -20,15 +20,10 @@ "dependencies": { }, "devDependencies": { - "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } diff --git a/incremental/compat/package.json b/incremental/compat/package.json index 81a3dea9b..76b7d73c2 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -33,15 +33,10 @@ "keywords": [], "dependencies": {}, "devDependencies": { - "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } \ No newline at end of file diff --git a/incremental/compiler-plugin/.gitlab-ci.yml b/incremental/compiler-plugin/.gitlab-ci.yml index 415b70528..84bf44371 100644 --- a/incremental/compiler-plugin/.gitlab-ci.yml +++ b/incremental/compiler-plugin/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -49,6 +49,7 @@ test compiler-plugin: - build compat - build common - build compiler-plugin + - build harness pack compiler-plugin: extends: diff --git a/incremental/compiler-plugin/oh-package.json5 b/incremental/compiler-plugin/oh-package.json5 index eaac79d1b..a3fd33cd5 100644 --- a/incremental/compiler-plugin/oh-package.json5 +++ b/incremental/compiler-plugin/oh-package.json5 @@ -13,11 +13,8 @@ "@koalaui/common": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/compiler-plugin/package.json b/incremental/compiler-plugin/package.json index a81d998ee..f584381d0 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -10,14 +10,12 @@ ], "keywords": [], "dependencies": { - "@koalaui/common": "1.5.5+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/compiler-plugin/test/auto_detect.test.ts b/incremental/compiler-plugin/test/auto_detect.test.ts index ea6993fa6..e1dea4fd1 100644 --- a/incremental/compiler-plugin/test/auto_detect.test.ts +++ b/incremental/compiler-plugin/test/auto_detect.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { log, getLogFiltered, resetLog } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/basic.test.ts b/incremental/compiler-plugin/test/basic.test.ts index 26d9b039a..f701ccffd 100644 --- a/incremental/compiler-plugin/test/basic.test.ts +++ b/incremental/compiler-plugin/test/basic.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,13 +13,13 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { qox, til, zex as wax, accessId, juv, Zan, ryq, bae } from "./module.test" import { exported } from "./exports.test" import defexport from "./default-export.test" import { E } from "./export-as.test" import { __id, Context } from "./context.test" import { log, getLogFiltered, resetLog, cleanDumpDirectory, checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts b/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts index f7bf8a981..7895b1b60 100644 --- a/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts +++ b/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import * as child from "child_process" import * as path from "path" diff --git a/incremental/compiler-plugin/test/function_return.test.ts b/incremental/compiler-plugin/test/function_return.test.ts index 69b219597..575ebcd99 100644 --- a/incremental/compiler-plugin/test/function_return.test.ts +++ b/incremental/compiler-plugin/test/function_return.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/parenthesised-call.test.ts b/incremental/compiler-plugin/test/parenthesised-call.test.ts index ec35ac296..49a358a96 100644 --- a/incremental/compiler-plugin/test/parenthesised-call.test.ts +++ b/incremental/compiler-plugin/test/parenthesised-call.test.ts @@ -1,75 +1,75 @@ -/* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// import { Context } from "./context.test" -import { checkDump } from "./util.test" -// import { assert } from "chai" - -// const someId: string = "xxx" - -suite("Parenthesised call expressions", () => { - test("Parenthesised memo functions", () => { - /** @memo */ - function f(): void { - return - } - - /** @memo */ - function g(x: number, y: number): number { - return x + y - } - - /** @memo */ - function expr_memo(): void { - f(); - (f)(); - f(); - (((((f)))))(); - - g(1, 2); - (g)(3, 4); - g(5, 6); - (((((g)))))(7, 8); - } - }) - - test("Parenthesised non memo functions", () => { - function f(): void { - return - } - - function g(x: number, y: number): number { - return x + y - } - - /** @memo */ - function expr_non_memo(): void { - f(); - (f)(); - f(); - (((((f)))))(); - - g(1, 2); - (g)(3, 4); - g(5, 6); - (((((g)))))(7, 8); - } - }) - - - for (let name of ["expr_memo", "expr_non_memo"]) { - checkDump(name, "parenthesised-call") - } -}) +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { suite, test } from "@koalaui/harness" +// import { Context } from "./context.test" +import { checkDump } from "./util.test" + +// const someId: string = "xxx" + +suite("Parenthesised call expressions", () => { + test("Parenthesised memo functions", () => { + /** @memo */ + function f(): void { + return + } + + /** @memo */ + function g(x: number, y: number): number { + return x + y + } + + /** @memo */ + function expr_memo(): void { + f(); + (f)(); + f(); + (((((f)))))(); + + g(1, 2); + (g)(3, 4); + g(5, 6); + (((((g)))))(7, 8); + } + }) + + test("Parenthesised non memo functions", () => { + function f(): void { + return + } + + function g(x: number, y: number): number { + return x + y + } + + /** @memo */ + function expr_non_memo(): void { + f(); + (f)(); + f(); + (((((f)))))(); + + g(1, 2); + (g)(3, 4); + g(5, 6); + (((((g)))))(7, 8); + } + }) + + + for (let name of ["expr_memo", "expr_non_memo"]) { + checkDump(name, "parenthesised-call") + } +}) diff --git a/incremental/compiler-plugin/test/util.test.ts b/incremental/compiler-plugin/test/util.test.ts index d0f1f469c..46d738546 100644 --- a/incremental/compiler-plugin/test/util.test.ts +++ b/incremental/compiler-plugin/test/util.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, test } from "@koalaui/harness" import * as path from "path" import * as fs from "fs" -import { assert } from "chai" let logText: string = "" diff --git a/incremental/compiler-plugin/test/variable_declaration.test.ts b/incremental/compiler-plugin/test/variable_declaration.test.ts index c97d223bd..f352d644a 100644 --- a/incremental/compiler-plugin/test/variable_declaration.test.ts +++ b/incremental/compiler-plugin/test/variable_declaration.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/whole_file.test.ts b/incremental/compiler-plugin/test/whole_file.test.ts index fe813a0e1..56d9801c0 100644 --- a/incremental/compiler-plugin/test/whole_file.test.ts +++ b/incremental/compiler-plugin/test/whole_file.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import * as fs from "fs" -import { assert } from "chai" function assertUnmemoizedEqualGolden(filename: string) { const unmemoized = fs.readFileSync(`./test/unmemoized/${filename}`, "utf8"); diff --git a/incremental/compiler-plugin/test/wrap_object_literal.test.ts b/incremental/compiler-plugin/test/wrap_object_literal.test.ts index 24ea67b2d..3e6b54e47 100644 --- a/incremental/compiler-plugin/test/wrap_object_literal.test.ts +++ b/incremental/compiler-plugin/test/wrap_object_literal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/harness/js/register.js b/incremental/harness/js/register.js new file mode 100644 index 000000000..c87312c19 --- /dev/null +++ b/incremental/harness/js/register.js @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { goldenSetup } from "./golden.js" + +const tsNode = require("ts-node") +const path = require("path") + +goldenSetup('.', '.') + +unmemoized_suffix = process.env.UNMEMOIZED_SUFFIX +if (unmemoized_suffix == undefined) { + unmemoized_suffix = '' +} + +tsNode.register({ + files: true, + // If uncommented, running tests doesn't perform type checks. + // transpileOnly: true, + project: path.resolve(`test`, `tsconfig${unmemoized_suffix}.json`), + compiler: "@koalaui/ets-tsc" +}) diff --git a/incremental/harness/package.json b/incremental/harness/package.json index 399333031..ae2817257 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -6,6 +6,7 @@ "types": "build/src/index.d.ts", "files": [ "js/golden.js", + "js/register.js", "build/src/**/*.js", "build/src/**/*.d.ts" ], @@ -20,6 +21,7 @@ }, "exports": { "./golden": "./js/golden.js", + "./register": "./js/register.js", ".": "./build/src/index.js" }, "scripts": { diff --git a/incremental/package.json b/incremental/package.json index 824bca843..edf017428 100644 --- a/incremental/package.json +++ b/incremental/package.json @@ -11,8 +11,6 @@ "compiler-plugin" ], "devDependencies": { - "@types/chai": "4.3.10", - "chai": "4.3.10", "ts-node": "^10.7.0", "ts-patch": "^2.1.0", "tslib": "^2.3.1", diff --git a/incremental/runtime/.gitlab-ci.yml b/incremental/runtime/.gitlab-ci.yml index 56b5b2e8d..d6ef49604 100644 --- a/incremental/runtime/.gitlab-ci.yml +++ b/incremental/runtime/.gitlab-ci.yml @@ -51,6 +51,7 @@ test runtime: - build compat - build compiler-plugin - build runtime + - build harness test runtime (ArkTS): stage: test diff --git a/incremental/runtime/oh-package.json5 b/incremental/runtime/oh-package.json5 index c282b8826..5dc6bc9a7 100644 --- a/incremental/runtime/oh-package.json5 +++ b/incremental/runtime/oh-package.json5 @@ -25,11 +25,8 @@ "@koalaui/compat": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index a0f665056..8dec785b9 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -46,11 +46,8 @@ "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/runtime/test/animation/Easing.test.ts b/incremental/runtime/test/animation/Easing.test.ts index f648ccf37..8b41c853c 100644 --- a/incremental/runtime/test/animation/Easing.test.ts +++ b/incremental/runtime/test/animation/Easing.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { Easing, EasingCurve, EasingStepJump } from "../../src/animation/Easing" function assertEasing(easing: EasingCurve, ...expected: number[]) { diff --git a/incremental/runtime/test/common/MarkableQueue.test.ts b/incremental/runtime/test/common/MarkableQueue.test.ts index 58f9de2b1..7d7aa326d 100644 --- a/incremental/runtime/test/common/MarkableQueue.test.ts +++ b/incremental/runtime/test/common/MarkableQueue.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert, suite, test } from "@koalaui/harness" import { MarkableQueue, markableQueue } from "@koalaui/common" -import { assert as Assert } from "chai" const collector = new Array() diff --git a/incremental/runtime/test/memo/bind.test.ts b/incremental/runtime/test/memo/bind.test.ts index 0fe1ab75a..d889d47fc 100644 --- a/incremental/runtime/test/memo/bind.test.ts +++ b/incremental/runtime/test/memo/bind.test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, State, diff --git a/incremental/runtime/test/memo/changeListener.test.ts b/incremental/runtime/test/memo/changeListener.test.ts index 975be91f1..e200f0d9b 100644 --- a/incremental/runtime/test/memo/changeListener.test.ts +++ b/incremental/runtime/test/memo/changeListener.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, OnChange, diff --git a/incremental/runtime/test/memo/contextLocal.test.ts b/incremental/runtime/test/memo/contextLocal.test.ts index 4d901e4e3..b0cc6cfc9 100644 --- a/incremental/runtime/test/memo/contextLocal.test.ts +++ b/incremental/runtime/test/memo/contextLocal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { State, TestNode, diff --git a/incremental/runtime/test/memo/remember.test.ts b/incremental/runtime/test/memo/remember.test.ts index a5c53f9d7..3596bb8df 100644 --- a/incremental/runtime/test/memo/remember.test.ts +++ b/incremental/runtime/test/memo/remember.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, State, diff --git a/incremental/runtime/test/memo/repeat.test.ts b/incremental/runtime/test/memo/repeat.test.ts index 392cd1a1e..f489f8a4b 100644 --- a/incremental/runtime/test/memo/repeat.test.ts +++ b/incremental/runtime/test/memo/repeat.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { UniqueId, KoalaCallsiteKey } from "@koalaui/common" import { GlobalStateManager, diff --git a/incremental/runtime/test/states/Journal.test.ts b/incremental/runtime/test/states/Journal.test.ts index 712e8b550..74439ca86 100644 --- a/incremental/runtime/test/states/Journal.test.ts +++ b/incremental/runtime/test/states/Journal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert as Assert } from "chai" +import { Assert, suite, test } from "@koalaui/harness" import { Changes, Journal } from "../../src/states/Journal" function assertChange(changes: Changes | undefined, state: Object, expected: Value) { diff --git a/incremental/runtime/test/states/State.test.ts b/incremental/runtime/test/states/State.test.ts index 65c7d833b..99e5edacc 100644 --- a/incremental/runtime/test/states/State.test.ts +++ b/incremental/runtime/test/states/State.test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { UniqueId, KoalaCallsiteKey } from "@koalaui/common" import { IncrementalNode, MutableState, State, TestNode, testUpdate, ValueTracker } from "../../src" import { createStateManager } from "../../src/states/State" diff --git a/incremental/runtime/test/states/state_basics.test.ts b/incremental/runtime/test/states/state_basics.test.ts index 3652ecaf3..13f667e59 100644 --- a/incremental/runtime/test/states/state_basics.test.ts +++ b/incremental/runtime/test/states/state_basics.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { uint32 } from "@koalaui/common" import { GlobalStateManager, diff --git a/incremental/runtime/test/tree/TreeNode.test.ts b/incremental/runtime/test/tree/TreeNode.test.ts index 365db44ca..3fae69b18 100644 --- a/incremental/runtime/test/tree/TreeNode.test.ts +++ b/incremental/runtime/test/tree/TreeNode.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { TreeNode } from "../../src/tree/TreeNode" class StringNode extends TreeNode { diff --git a/incremental/runtime/test/tree/TreePath.test.ts b/incremental/runtime/test/tree/TreePath.test.ts index 0a3110f6d..f13e34178 100644 --- a/incremental/runtime/test/tree/TreePath.test.ts +++ b/incremental/runtime/test/tree/TreePath.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { TreePath } from "../../src/tree/TreePath" suite("TreePath", () => { diff --git a/interop/oh-package.json5 b/interop/oh-package.json5 index 2db4af57c..96d62e6ba 100644 --- a/interop/oh-package.json5 +++ b/interop/oh-package.json5 @@ -49,14 +49,10 @@ "@koalaui/common": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } diff --git a/interop/package.json b/interop/package.json index 7f0af0df8..48d0c6630 100644 --- a/interop/package.json +++ b/interop/package.json @@ -61,15 +61,11 @@ }, "devDependencies": { "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", "@types/node": "^18.0.0", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21", "@koalaui/ets-tsc": "4.9.5-r4", "@koalaui/fast-arktsc": "next" -- Gitee From 378dee3f9011da3043c26e791c5477618dfb551f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=B2=BA=E8=80=B3?= Date: Thu, 20 Feb 2025 10:30:33 +0000 Subject: [PATCH 25/31] !13 handle LazyForEach hybrid scenario * review fix and fix startIdx * fix activeCnt * handle LazyForEach hybrid scenario --- arkoala-arkts/arkui/src/LazyForEach.ts | 53 ++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/arkoala-arkts/arkui/src/LazyForEach.ts b/arkoala-arkts/arkui/src/LazyForEach.ts index bf3610d7e..a198e825b 100644 --- a/arkoala-arkts/arkui/src/LazyForEach.ts +++ b/arkoala-arkts/arkui/src/LazyForEach.ts @@ -13,10 +13,10 @@ * limitations under the License. */ -import { __context, contextNode, memoEntry2, remember, rememberMutableState, scheduleCallback } from "@koalaui/runtime" -import { hashCodeFromString, int32 } from "@koalaui/common" +import { __context, __id, contextNode, DataNode, IncrementalNode, memoEntry2, remember, rememberMutableState, scheduleCallback } from "@koalaui/runtime" +import { hashCodeFromString, int32, KoalaCallsiteKey } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; -import { PeerNode } from "./PeerNode"; +import { LazyForEachType, PeerNode, PeerNodeType } from "./PeerNode"; import { LazyForEachOps } from "./generated/ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts @@ -107,6 +107,44 @@ class VisibleRange { this.markDown = more return true } + + get activeCount(): int32 { + return this.indexDown >= 0 ? this.indexDown - this.indexUp + 1 : 0 + } +} + +class LazyForEachIdentifier { + constructor(id: KoalaCallsiteKey, totalCnt: int32, activeCnt: int32) { + this.id = id + this.totalCnt = totalCnt + this.activeCnt = activeCnt + } + readonly id: KoalaCallsiteKey + readonly totalCnt: int32 + readonly activeCnt: int32 +} + +/** + * @param id unique identifier of LazyForEach + * @returns item offset of LazyForEach in parent's children + */ +/** @memo */ +function getOffset(parent: PeerNode, id: KoalaCallsiteKey): int32 { + let offset = 0 + for (let child = parent.firstChild; child; child = child!.nextSibling) { + // corresponding DataNode is attached after the generated items + let info = DataNode.extract(LazyForEachType, child!!) + if (info?.id === id) { + offset -= info!.activeCnt + console.log(`offset = ${offset}`) + return offset + } else if (info) { + offset += info!.totalCnt - info!.activeCnt // active nodes are already counted + } else if (child!.isKind(PeerNodeType)) { + ++offset + } + } + return offset // DataNode not found, maybe throw error? } /** @memo */ @@ -121,7 +159,10 @@ export function LazyForEach(dataSource: IDataSource, console.log(`LazyForEach current=${current.value} version=${version.value} mark=${mark.value}`) let parent = contextNode() - const visibleRange = new VisibleRange(parent, current.value, current.value) + + const currentLocal = current.value >= 0 ? Math.max(current.value - getOffset(parent, __id()), 0) as int32 : -1; // translated to local index + console.log(`currentLocal = ${currentLocal}`) + const visibleRange = new VisibleRange(parent, currentLocal, currentLocal) remember(() => { LazyForEachManager.OnRangeUpdate(visibleRange.parent, dataSource.totalCount() as int32, (currentIndex: int32, currentMark: pointer, end: int32) => { console.log(`LazyForEach[${parent}]: current updated to ${currentIndex} ${currentMark} end=${end}`) @@ -161,4 +202,8 @@ export function LazyForEach(dataSource: IDataSource, LazyForEachManager.SetInsertMark(parent, moreUp ? visibleRange.markUp : visibleRange.markDown, moreUp) } parent.setInsertMark(nullptr, false) + + // create DataNode to provide count information to parent + const identifier = new LazyForEachIdentifier(__id(), dataSource.totalCount() as int32, visibleRange.activeCount) + DataNode.attach(LazyForEachType, identifier) } -- Gitee From b30c330d13e2647c6cb93b9f397cd2acc9a6fa73 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 20 Feb 2025 10:40:01 +0000 Subject: [PATCH 26/31] !29 A collection of memo samples (mostly don't work)) --- arkoala-arkts/libarkts/arktsconfig-memo.json | 18 +++++ arkoala-arkts/libarkts/package.json | 2 + arkoala-arkts/libarkts/plugins/input/memo.sts | 70 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 arkoala-arkts/libarkts/arktsconfig-memo.json create mode 100644 arkoala-arkts/libarkts/plugins/input/memo.sts diff --git a/arkoala-arkts/libarkts/arktsconfig-memo.json b/arkoala-arkts/libarkts/arktsconfig-memo.json new file mode 100644 index 000000000..d3645627b --- /dev/null +++ b/arkoala-arkts/libarkts/arktsconfig-memo.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "package0": "@koalaui/example", + "outDir": "./abc", + "baseUrl": ".", + "paths": { + "@koalaui/runtime": [ + "../memo-plugin/runtime-api" + ] + }, + "plugins": [ + { + "transform": "@koalaui/memo-plugin", + "stage": "checked" + } + ] + } +} diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index fd2fb9326..77397bf7d 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -27,7 +27,9 @@ "compile:plugins": "npx ets-tsc -p plugins/tsconfig.json", "restart": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/main.sts --output ./build/abc/main.abc --dump-plugin-ast --arktsconfig ./arktsconfig.json --restart-stages", "direct": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/no-import-no-struct.sts --output ./build/abc/no-import-no-struct.abc --dump-plugin-ast --arktsconfig ./arktsconfig-print-only.json", + "memo": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/memo.sts --output ./build/abc/memo.abc --dump-plugin-ast --arktsconfig ./arktsconfig-memo.json --restart-stages", "run": "npm run compile && npm run compile:plugins && npm run restart", + "run:memo": "npm run compile && npm run compile:plugins && npm run compile --prefix ../memo-plugin && npm run memo", "run:abc": "../../incremental/tools/panda/node_modules/@panda/sdk/linux_host_tools/bin/ark --load-runtimes=ets --boot-panda-files=../../incremental/tools/panda/node_modules/@panda/sdk/ets/etsstdlib.abc ./main.abc main.ETSGLOBAL::main", "mocha": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk TS_NODE_PROJECT=./test/tsconfig.json mocha -r tsconfig-paths/register --reporter-option maxDiffSize=0", "test": "npm run compile:native && npm run mocha", diff --git a/arkoala-arkts/libarkts/plugins/input/memo.sts b/arkoala-arkts/libarkts/plugins/input/memo.sts new file mode 100644 index 000000000..1ac3b80a0 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/input/memo.sts @@ -0,0 +1,70 @@ + +@interface memo{} + +class Test { + + @memo void_method(): void { + } + + @memo a_method_with_implicit_return_type() { + } + + @memo void_method_with_arg(arg: string) { + } + + // TODO: return statement duplicates + // @memo void_method_with_return(arg: string) { + // return + // } + + // TODO: context.compute + // @memo string_method_with_return(arg: string): string { + // return arg + // } + + // TODO: context.compute + // @memo method_with_type_parameter(arg: T): T { + // return arg + // } + + // TODO: return statement duplicates + // @memo static static_method_with_type_parameter(arg: T): void { + // return + // } + + @memo internal_call() { + // TODO: the call doesn't rewrite + // this.void_method() + } + + //@memo lambda_arg(@memo arg: () => void) { + + //} + + //@memo lambda_arg_with_arg(@memo arg: (value: string) => string) { + + //} +} + +class Use { + test() { + const test = new Test() + + // TODO: the calls don't rewrite + // test.void_method() + // test.void_method_with_arg("an arg") + // test.void_method_with_return("a value") + // Test.static_method_with_type_parameter("I'm static") + + // TODO: the function don't rewrite + // test.string_method_with_return("a string") + // test.method_with_type_parameter("I'm string") + + // TODO: lamda calls + // test.lambda_arg(() => {}) + // test.lambda_arg((value: string) => value) + } +} + + + -- Gitee From 8207945a28ffaaea14f799a17a18c2a7b1cd7d22 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 20 Feb 2025 13:53:03 +0300 Subject: [PATCH 27/31] better return + some refactor --- arkoala-arkts/libarkts/package.json | 3 + arkoala-arkts/libarkts/plugins/input/memo.sts | 7 +- arkoala-arkts/libarkts/src/arkts-api/types.ts | 7 ++ .../libarkts/src/arkts-api/visitor.ts | 10 ++ arkoala-arkts/memo-plugin/demo/demo.sts | 2 +- arkoala-arkts/memo-plugin/demo/demo.ts | 2 +- arkoala-arkts/memo-plugin/package.json | 2 +- ...-transformer.ts => FunctionTransformer.ts} | 98 ++++++++----------- arkoala-arkts/memo-plugin/src/MemoFactory.ts | 92 +++++++++++++++++ ...memo-transformer.ts => MemoTransformer.ts} | 21 ++-- ...ort-transformer.ts => ReturnTranformer.ts} | 30 ++---- arkoala-arkts/memo-plugin/src/utils.ts | 44 --------- 12 files changed, 182 insertions(+), 136 deletions(-) rename arkoala-arkts/memo-plugin/src/{function-transformer.ts => FunctionTransformer.ts} (63%) create mode 100644 arkoala-arkts/memo-plugin/src/MemoFactory.ts rename arkoala-arkts/memo-plugin/src/{memo-transformer.ts => MemoTransformer.ts} (60%) rename arkoala-arkts/memo-plugin/src/{import-transformer.ts => ReturnTranformer.ts} (42%) diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 77397bf7d..c5aa665a2 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -16,6 +16,9 @@ }, "dependencies": { }, + "devDependencies": { + "@koalaui/memo-plugin": "../memo-plugin" + }, "scripts": { "clean": "rimraf build native/build*", "compile:koala:interop": "npm run --prefix ../../interop compile", diff --git a/arkoala-arkts/libarkts/plugins/input/memo.sts b/arkoala-arkts/libarkts/plugins/input/memo.sts index 1ac3b80a0..ea899c933 100644 --- a/arkoala-arkts/libarkts/plugins/input/memo.sts +++ b/arkoala-arkts/libarkts/plugins/input/memo.sts @@ -12,10 +12,9 @@ class Test { @memo void_method_with_arg(arg: string) { } - // TODO: return statement duplicates - // @memo void_method_with_return(arg: string) { - // return - // } + @memo void_method_with_return(arg: string) { + return + } // TODO: context.compute // @memo string_method_with_return(arg: string): string { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index ce18131e8..1120feac5 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -832,6 +832,9 @@ export class IfStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT) super(peer) + this.test = unpackNonNullableNode(global.generatedEs2panda._IfStatementTest(global.context, this.peer)) + this.consequent = unpackNonNullableNode(global.generatedEs2panda._IfStatementConsequent(global.context, this.peer)) + this.alternate = unpackNode(global.generatedEs2panda._IfStatementAlternate(global.context, this.peer)) } static create( @@ -848,6 +851,10 @@ export class IfStatement extends AstNode { ) ) } + + test: AstNode + consequent: AstNode + alternate: AstNode | undefined } export class StructDeclaration extends AstNode { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 2b000c8e0..2a2f07b45 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -24,6 +24,7 @@ import { ExpressionStatement, FunctionDeclaration, FunctionSignature, + IfStatement, MethodDefinition, ScriptFunction, StructDeclaration, @@ -240,6 +241,15 @@ export function visitEachChild( node.body.length ) } + if (node instanceof IfStatement) { + console.log(node.consequent, node.alternate) + return factory.updateIfStatement( + node, + nodeVisitor(node.test, visitor), + nodeVisitor(node.consequent, visitor), + nodeVisitor(node.alternate, visitor), + ) + } // TODO return node } diff --git a/arkoala-arkts/memo-plugin/demo/demo.sts b/arkoala-arkts/memo-plugin/demo/demo.sts index 74bb5f28f..35618d5ab 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.sts +++ b/arkoala-arkts/memo-plugin/demo/demo.sts @@ -3,7 +3,7 @@ import { memo_foo } from "./stub" @memo function foo_wrapper() { - memo_foo("hello") + console.log(123) } function main() { diff --git a/arkoala-arkts/memo-plugin/demo/demo.ts b/arkoala-arkts/memo-plugin/demo/demo.ts index 989a003bf..52dc529cf 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.ts +++ b/arkoala-arkts/memo-plugin/demo/demo.ts @@ -6,7 +6,7 @@ import { memo_foo } from "./stub" /** @memo */ function foo_wrapper() { - memo_foo("hello") + return } function main() { diff --git a/arkoala-arkts/memo-plugin/package.json b/arkoala-arkts/memo-plugin/package.json index 875b28ee7..441cde2d9 100644 --- a/arkoala-arkts/memo-plugin/package.json +++ b/arkoala-arkts/memo-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/memo-plugin", - "main": "build/src/memo-transformer.js", + "main": "build/src/MemoTransformer.js", "scripts": { "compile": "tsc -b .", "compile:libarkts": "npm run compile --prefix ../libarkts", diff --git a/arkoala-arkts/memo-plugin/src/function-transformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts similarity index 63% rename from arkoala-arkts/memo-plugin/src/function-transformer.ts rename to arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index 1aed94b37..b381bf7db 100644 --- a/arkoala-arkts/memo-plugin/src/function-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -14,15 +14,13 @@ */ import * as arkts from "@koalaui/libarkts" +import { factory } from "./MemoFactory" import { AbstractVisitor } from "./AbstractVisitor" import { - createContextArgument, - createContextParameter, - createIdArgument, - createIdParameter, PositionalIdTracker, RuntimeNames } from "./utils" +import { ReturnTransformer } from "./ReturnTranformer" function hasMemoAnnotation(node: arkts.ScriptFunction) { return arkts.getAnnotations(node).some((it) => @@ -30,14 +28,6 @@ function hasMemoAnnotation(node: arkts.ScriptFunction) { ) } -function createHiddenParameters(): arkts.ETSParameterExpression[] { - return [createContextParameter(), createIdParameter()] -} - -function createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode[] { - return [createContextArgument(), createIdArgument(hash)] -} - function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.BlockStatement | undefined { if (node === undefined) return node @@ -60,8 +50,8 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. [arkts.factory.createIdentifier("")] ), [ - createIdArgument(hash) - ] + factory.createIdArgument(hash) + ], ) ) ] @@ -72,44 +62,34 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_OK), arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, false, - false + false, ), - arkts.factory.createReturnStatement( - arkts.factory.createMemberExpression( - arkts.factory.createIdentifier(RuntimeNames.SCOPE), - arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, - false, - false - ) - ) + arkts.factory.createReturnStatement() ) - const recache = arkts.factory.createReturnStatement( - arkts.factory.createCallExpression( - arkts.factory.createMemberExpression( - arkts.factory.createIdentifier(RuntimeNames.SCOPE), - arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_NEW), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ), - undefined, - [] + if (node.statements.length && node.statements[node.statements.length - 1] instanceof arkts.ReturnStatement) { + return arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + unchangedCheck, + ...node.statements, + ] ) - ) - return arkts.factory.updateBlock( - node, - [ - scopeDeclaration, - unchangedCheck, - ...node.statements, - recache - ] - ) + } else { + return arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + unchangedCheck, + ...node.statements, + arkts.factory.createReturnStatement(), + ] + ) + } } export class FunctionTransformer extends AbstractVisitor { - constructor(private positionalIdTracker: PositionalIdTracker) { + constructor(private positionalIdTracker: PositionalIdTracker, private returnTransformer: ReturnTransformer) { super() } @@ -127,17 +107,19 @@ export class FunctionTransformer extends AbstractVisitor { arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( - arkts.factory.updateScriptFunction( - node.scriptFunction, - updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), - node.scriptFunction.scriptFunctionFlags, - node.scriptFunction.modifiers, - false, - node.scriptFunction.ident, - [...createHiddenParameters(), ...node.scriptFunction.parameters], - node.scriptFunction.typeParamsDecl, - node.scriptFunction.returnTypeAnnotation - ), + this.returnTransformer.visitEachChild( + arkts.factory.updateScriptFunction( + node.scriptFunction, + updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), + node.scriptFunction.scriptFunctionFlags, + node.scriptFunction.modifiers, + false, + node.scriptFunction.ident, + [...factory.createHiddenParameters(), ...node.scriptFunction.parameters], + node.scriptFunction.typeParamsDecl, + node.scriptFunction.returnTypeAnnotation + ), + ) as arkts.ScriptFunction, ), node.modifiers, false @@ -152,7 +134,7 @@ export class FunctionTransformer extends AbstractVisitor { node, node.expression, undefined, - [...createHiddenArguments(this.positionalIdTracker.id(decl.name.name)), ...node.arguments] + [...factory.createHiddenArguments(this.positionalIdTracker.id(decl.name.name)), ...node.arguments] ) } } diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts new file mode 100644 index 000000000..26ccd4c9c --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import * as arkts from "@koalaui/libarkts" +import { RuntimeNames } from "./utils" + +export class factory { + // Importing + static createContextTypeImportSpecifier(): arkts.ImportSpecifier { + return arkts.factory.createImportSpecifier( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), + ) + } + static createIdTypeImportSpecifier(): arkts.ImportSpecifier { + return arkts.factory.createImportSpecifier( + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), + ) + } + static createContextTypesImportDeclaration(): arkts.EtsImportDeclaration { + return arkts.factory.createImportDeclaration( + arkts.factory.createStringLiteral(RuntimeNames.CONTEXT_TYPE_DEFAULT_IMPORT), + [factory.createContextTypeImportSpecifier(), factory.createIdTypeImportSpecifier()], + arkts.Es2pandaImportKinds.IMPORT_KINDS_TYPE, + true, + ) + } + + // Parameters + static createContextParameter(): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT, + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) + ), + undefined + ) + } + static createIdParameter(): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.ID, + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) + ), + undefined + ) + } + static createHiddenParameters(): arkts.ETSParameterExpression[] { + return [factory.createContextParameter(), factory.createIdParameter()] + } + + // Arguments + static createContextArgument(): arkts.AstNode { + return arkts.factory.createIdentifier(RuntimeNames.CONTEXT) + } + static createIdArgument(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode { + return arkts.factory.createBinaryExpression( + arkts.factory.createIdentifier(RuntimeNames.ID), + arkts.Es2pandaTokenType.TOKEN_TYPE_PUNCTUATOR_PLUS, + hash + ) + } + static createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode[] { + return [factory.createContextArgument(), factory.createIdArgument(hash)] + } + + // Recache + static createRecacheCall(): arkts.CallExpression { + return arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_NEW), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), + undefined, + [] + ) + } +} diff --git a/arkoala-arkts/memo-plugin/src/memo-transformer.ts b/arkoala-arkts/memo-plugin/src/MemoTransformer.ts similarity index 60% rename from arkoala-arkts/memo-plugin/src/memo-transformer.ts rename to arkoala-arkts/memo-plugin/src/MemoTransformer.ts index 02c8d3a6a..a4b7df728 100644 --- a/arkoala-arkts/memo-plugin/src/memo-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/MemoTransformer.ts @@ -14,9 +14,10 @@ */ import * as arkts from "@koalaui/libarkts" -import { FunctionTransformer } from "./function-transformer" -import { ImportTransformer } from "./import-transformer" +import { factory } from "./MemoFactory" +import { FunctionTransformer } from "./FunctionTransformer" import { PositionalIdTracker } from "./utils" +import { ReturnTransformer } from "./ReturnTranformer" export interface TransformerOptions { trace?: boolean, @@ -27,9 +28,17 @@ export default function memoTransformer( ) { return (node: arkts.EtsScript) => { const positionalIdTracker = new PositionalIdTracker(arkts.getFileName(), false) - const importTransformer = new ImportTransformer() - const functionTransformer = new FunctionTransformer(positionalIdTracker) - importTransformer.visitor(node) - return functionTransformer.visitor(node) + const returnTransformer = new ReturnTransformer() + const functionTransformer = new FunctionTransformer(positionalIdTracker, returnTransformer) + return functionTransformer.visitor( + arkts.factory.updateEtsScript( + node, + [ + ...node.getChildren().filter(it => it instanceof arkts.EtsImportDeclaration), + factory.createContextTypesImportDeclaration(), + ...node.getChildren().filter(it => !(it instanceof arkts.EtsImportDeclaration)), + ] + ) + ) } } diff --git a/arkoala-arkts/memo-plugin/src/import-transformer.ts b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts similarity index 42% rename from arkoala-arkts/memo-plugin/src/import-transformer.ts rename to arkoala-arkts/memo-plugin/src/ReturnTranformer.ts index 4037bcf65..8b0301366 100644 --- a/arkoala-arkts/memo-plugin/src/import-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts @@ -14,29 +14,17 @@ */ import * as arkts from "@koalaui/libarkts" +import { factory } from "./MemoFactory" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextTypeImportSpecifier, createIdTypeImportSpecifier, RuntimeNames } from "./utils" -function createContextTypesImportDeclaration(): arkts.EtsImportDeclaration { - return arkts.factory.createImportDeclaration( - arkts.factory.createStringLiteral(RuntimeNames.CONTEXT_TYPE_DEFAULT_IMPORT), - [createContextTypeImportSpecifier(), createIdTypeImportSpecifier()], - arkts.Es2pandaImportKinds.IMPORT_KINDS_TYPE, - true, - ) -} - -export class ImportTransformer extends AbstractVisitor { - visitor(node: arkts.AstNode): arkts.AstNode { - if (node instanceof arkts.EtsScript) { - return arkts.factory.updateEtsScript( - node, - [ - ...node.getChildren().filter(it => it instanceof arkts.EtsImportDeclaration), - createContextTypesImportDeclaration(), - ...node.getChildren().filter(it => !(it instanceof arkts.EtsImportDeclaration)), - ] - ) +export class ReturnTransformer extends AbstractVisitor { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + if (beforeChildren instanceof arkts.ScriptFunction) { + return beforeChildren + } + const node = this.visitEachChild(beforeChildren) + if (node instanceof arkts.ReturnStatement) { + return arkts.factory.updateReturnStatement(node, factory.createRecacheCall()) } return node } diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index e3746e925..3b4e6d80a 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -32,50 +32,6 @@ export enum RuntimeNames { SCOPE = "__memo_scope", } -export function createContextTypeImportSpecifier(): arkts.ImportSpecifier { - return arkts.factory.createImportSpecifier( - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), - ) -} - -export function createIdTypeImportSpecifier(): arkts.ImportSpecifier { - return arkts.factory.createImportSpecifier( - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), - ) -} - -export function createContextParameter(): arkts.ETSParameterExpression { - return arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier(RuntimeNames.CONTEXT, - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) - ), - undefined - ) -} - -export function createIdParameter(): arkts.ETSParameterExpression { - return arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier(RuntimeNames.ID, - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) - ), - undefined - ) -} - -export function createContextArgument(): arkts.AstNode { - return arkts.factory.createIdentifier(RuntimeNames.CONTEXT) -} - -export function createIdArgument(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode { - return arkts.factory.createBinaryExpression( - arkts.factory.createIdentifier(RuntimeNames.ID), - arkts.Es2pandaTokenType.TOKEN_TYPE_PUNCTUATOR_PLUS, - hash - ) -} - function baseName(path: string): string { return path.replace(/^.*\/(.*)$/, "$1") } -- Gitee From c26bb990742a29a4d1726aafad1e1f8d4c0a5740 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 20 Feb 2025 16:15:42 +0300 Subject: [PATCH 28/31] improved return + memo arguments --- arkoala-arkts/libarkts/plugins/input/memo.sts | 7 ++--- arkoala-arkts/libarkts/src/arkts-api/types.ts | 11 +++++-- .../libarkts/src/arkts-api/visitor.ts | 4 +-- arkoala-arkts/memo-plugin/demo/demo.sts | 2 +- arkoala-arkts/memo-plugin/demo/demo.ts | 7 ++++- .../memo-plugin/src/FunctionTransformer.ts | 24 ++++++++++---- arkoala-arkts/memo-plugin/src/MemoFactory.ts | 31 +++++++++++++++++++ arkoala-arkts/memo-plugin/src/utils.ts | 2 ++ 8 files changed, 72 insertions(+), 16 deletions(-) diff --git a/arkoala-arkts/libarkts/plugins/input/memo.sts b/arkoala-arkts/libarkts/plugins/input/memo.sts index ea899c933..c655abe05 100644 --- a/arkoala-arkts/libarkts/plugins/input/memo.sts +++ b/arkoala-arkts/libarkts/plugins/input/memo.sts @@ -16,10 +16,9 @@ class Test { return } - // TODO: context.compute - // @memo string_method_with_return(arg: string): string { - // return arg - // } + @memo string_method_with_return(arg: string): string { + return arg + } // TODO: context.compute // @memo method_with_type_parameter(arg: T): T { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 1120feac5..e48a86cc5 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -134,6 +134,9 @@ export class CallExpression extends AstNode { super(peer) this.expression = unpackNonNullableNode( global.generatedEs2panda._CallExpressionCallee(global.context, this.peer)) + const tsTypeParameterInstantiation = unpackNode(global.generatedEs2panda._CallExpressionTypeParams(global.context, this.peer)) + this.typeArguments = tsTypeParameterInstantiation ? + unpackNodeArray(global.generatedEs2panda._TSTypeParameterInstantiationParamsConst(global.context, tsTypeParameterInstantiation.peer)) : undefined this.arguments = unpackNodeArray( global.generatedEs2panda._CallExpressionArguments(global.context, this.peer)) this.trailingBlock = unpackNode( @@ -142,7 +145,7 @@ export class CallExpression extends AstNode { static create( expression: AstNode, - typeParamsDecl: TSTypeParameterDeclaration | undefined, + typeArguments: readonly AstNode[] | undefined, args: readonly AstNode[] | undefined, trailingBlock: AstNode | undefined = undefined ): CallExpression { @@ -151,7 +154,7 @@ export class CallExpression extends AstNode { passNode(expression), passNodeArray(args), args?.length ?? 0, - passNode(typeParamsDecl), + typeArguments ? passNode(TSTypeParameterInstantiation.create(typeArguments)) : nullptr, false, false ) @@ -165,6 +168,7 @@ export class CallExpression extends AstNode { } readonly expression: AstNode // Expression + readonly typeArguments: readonly AstNode[] | undefined readonly arguments: readonly AstNode[] readonly trailingBlock: AstNode|undefined // BlockStatement } @@ -711,6 +715,7 @@ export class ETSParameterExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION) super(peer) + this.identifier = unpackNonNullableNode(global.generatedEs2panda._ETSParameterExpressionIdent(global.context, this.peer)) } static create( @@ -742,6 +747,8 @@ export class ETSParameterExpression extends AstNode { newAnnotations.length ); } + + identifier: Identifier } export class TSTypeParameterDeclaration extends AstNode { diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index 2a2f07b45..6d518991d 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -28,6 +28,7 @@ import { MethodDefinition, ScriptFunction, StructDeclaration, + TSTypeParameterInstantiation, } from "./types" import { Es2pandaClassDefinitionModifiers, Es2pandaModifierFlags } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" @@ -114,7 +115,7 @@ export function visitEachChild( return factory.updateCallExpression( node, nodeVisitor(node.expression, visitor), - undefined, // TODO + nodesVisitor(node.typeArguments, visitor), nodesVisitor(node.arguments, visitor), nodeVisitor(node.trailingBlock, visitor) ) @@ -242,7 +243,6 @@ export function visitEachChild( ) } if (node instanceof IfStatement) { - console.log(node.consequent, node.alternate) return factory.updateIfStatement( node, nodeVisitor(node.test, visitor), diff --git a/arkoala-arkts/memo-plugin/demo/demo.sts b/arkoala-arkts/memo-plugin/demo/demo.sts index 35618d5ab..74bb5f28f 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.sts +++ b/arkoala-arkts/memo-plugin/demo/demo.sts @@ -3,7 +3,7 @@ import { memo_foo } from "./stub" @memo function foo_wrapper() { - console.log(123) + memo_foo("hello") } function main() { diff --git a/arkoala-arkts/memo-plugin/demo/demo.ts b/arkoala-arkts/memo-plugin/demo/demo.ts index 52dc529cf..e3f7f6b97 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.ts +++ b/arkoala-arkts/memo-plugin/demo/demo.ts @@ -4,9 +4,14 @@ import { GlobalStateManager, memoEntry, StateContext } from "@koalaui/runtime" import { memo_foo } from "./stub" +/** @memo */ +function f(s: string): string { + return s +} + /** @memo */ function foo_wrapper() { - return + console.log(f("hello")) } function main() { diff --git a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index b381bf7db..0491cb932 100644 --- a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -28,7 +28,12 @@ function hasMemoAnnotation(node: arkts.ScriptFunction) { ) } -function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.BlockStatement | undefined { +function updateFunctionBody( + node: arkts.BlockStatement | undefined, + parameters: arkts.ETSParameterExpression[], + returnTypeAnnotation: arkts.AstNode | undefined, + hash: arkts.NumberLiteral | arkts.StringLiteral +): arkts.BlockStatement | undefined { if (node === undefined) return node const scopeDeclaration = arkts.factory.createVariableDeclaration( @@ -46,16 +51,16 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. false, false ), - arkts.factory.createTypeParameterDeclaration( - [arkts.factory.createIdentifier("")] - ), + returnTypeAnnotation ? [returnTypeAnnotation] : [arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID)], [ - factory.createIdArgument(hash) + factory.createIdArgument(hash), + arkts.factory.createNumericLiteral(parameters.length) ], ) ) ] ) + const memoParameters = parameters.map((name, id) => { return factory.createMemoParameterDeclaration(id, name.identifier.name) }) const unchangedCheck = arkts.factory.createIfStatement( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), @@ -71,6 +76,7 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. node, [ scopeDeclaration, + ...memoParameters, unchangedCheck, ...node.statements, ] @@ -80,6 +86,7 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. node, [ scopeDeclaration, + ...memoParameters, unchangedCheck, ...node.statements, arkts.factory.createReturnStatement(), @@ -110,7 +117,12 @@ export class FunctionTransformer extends AbstractVisitor { this.returnTransformer.visitEachChild( arkts.factory.updateScriptFunction( node.scriptFunction, - updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), + updateFunctionBody( + node.scriptFunction.body, + node.scriptFunction.parameters, + node.scriptFunction.returnTypeAnnotation, + this.positionalIdTracker.id(node.name.name) + ), node.scriptFunction.scriptFunctionFlags, node.scriptFunction.modifiers, false, diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts index 26ccd4c9c..94a9f9b4b 100644 --- a/arkoala-arkts/memo-plugin/src/MemoFactory.ts +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -75,6 +75,37 @@ export class factory { return [factory.createContextArgument(), factory.createIdArgument(hash)] } + // Memo parameters + static memoParameterIdentifier(name: string): arkts.Identifier { + return arkts.factory.createIdentifier(`${RuntimeNames.PARAMETER}_${name}`) + } + static createMemoParameterDeclaration(id: number, name: string): arkts.AstNode { + return arkts.factory.createVariableDeclaration( + 0, + arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, + [ + arkts.factory.createVariableDeclarator( + arkts.Es2pandaVariableDeclaratorFlag.VARIABLE_DECLARATOR_FLAG_CONST, + this.memoParameterIdentifier(name), + arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_PARAMETER_STATE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), + undefined, + [ + arkts.factory.createNumericLiteral(id), + arkts.factory.createIdentifier(name), + ], + ) + ) + ] + ) + } + // Recache static createRecacheCall(): arkts.CallExpression { return arkts.factory.createCallExpression( diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index 3b4e6d80a..2c9dab10a 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -25,10 +25,12 @@ export enum RuntimeNames { CONTEXT_TYPE_DEFAULT_IMPORT = "@koalaui/runtime", ID = "__memo_id", ID_TYPE = "__memo_id_type", + INTERNAL_PARAMETER_STATE = "param", INTERNAL_SCOPE = "scope", INTERNAL_VALUE = "cached", INTERNAL_VALUE_NEW = "recache", INTERNAL_VALUE_OK = "unchanged", + PARAMETER = "__memo_parameter", SCOPE = "__memo_scope", } -- Gitee From ce7c263c0431387c40530a811ce3f03bb17a74e3 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 20 Feb 2025 16:34:36 +0300 Subject: [PATCH 29/31] args caching --- arkoala-arkts/memo-plugin/demo/demo.ts | 7 +------ .../memo-plugin/src/FunctionTransformer.ts | 2 +- arkoala-arkts/memo-plugin/src/MemoFactory.ts | 8 ++++---- .../memo-plugin/src/ReturnTranformer.ts | 18 +++++++++++++++++- arkoala-arkts/memo-plugin/src/utils.ts | 1 + 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/arkoala-arkts/memo-plugin/demo/demo.ts b/arkoala-arkts/memo-plugin/demo/demo.ts index e3f7f6b97..989a003bf 100644 --- a/arkoala-arkts/memo-plugin/demo/demo.ts +++ b/arkoala-arkts/memo-plugin/demo/demo.ts @@ -4,14 +4,9 @@ import { GlobalStateManager, memoEntry, StateContext } from "@koalaui/runtime" import { memo_foo } from "./stub" -/** @memo */ -function f(s: string): string { - return s -} - /** @memo */ function foo_wrapper() { - console.log(f("hello")) + memo_foo("hello") } function main() { diff --git a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index 0491cb932..8b8cf2dbf 100644 --- a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -114,7 +114,7 @@ export class FunctionTransformer extends AbstractVisitor { arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( - this.returnTransformer.visitEachChild( + this.returnTransformer.withParameters(node.scriptFunction.parameters).visitEachChild( arkts.factory.updateScriptFunction( node.scriptFunction, updateFunctionBody( diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts index 94a9f9b4b..df313fb63 100644 --- a/arkoala-arkts/memo-plugin/src/MemoFactory.ts +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -76,7 +76,7 @@ export class factory { } // Memo parameters - static memoParameterIdentifier(name: string): arkts.Identifier { + static createMemoParameterIdentifier(name: string): arkts.Identifier { return arkts.factory.createIdentifier(`${RuntimeNames.PARAMETER}_${name}`) } static createMemoParameterDeclaration(id: number, name: string): arkts.AstNode { @@ -86,7 +86,7 @@ export class factory { [ arkts.factory.createVariableDeclarator( arkts.Es2pandaVariableDeclaratorFlag.VARIABLE_DECLARATOR_FLAG_CONST, - this.memoParameterIdentifier(name), + this.createMemoParameterIdentifier(name), arkts.factory.createCallExpression( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), @@ -107,7 +107,7 @@ export class factory { } // Recache - static createRecacheCall(): arkts.CallExpression { + static createRecacheCall(args: arkts.MemberExpression[]): arkts.CallExpression { return arkts.factory.createCallExpression( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), @@ -117,7 +117,7 @@ export class factory { false ), undefined, - [] + args, ) } } diff --git a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts index 8b0301366..25a3bfc1a 100644 --- a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts +++ b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts @@ -16,15 +16,31 @@ import * as arkts from "@koalaui/libarkts" import { factory } from "./MemoFactory" import { AbstractVisitor } from "./AbstractVisitor" +import { RuntimeNames } from "./utils" export class ReturnTransformer extends AbstractVisitor { + _args: arkts.MemberExpression[] = [] + + withParameters(parameters: arkts.ETSParameterExpression[]): ReturnTransformer { + this._args = parameters.map((param) => { + return arkts.factory.createMemberExpression( + factory.createMemoParameterIdentifier(param.identifier.name), + arkts.factory.createIdentifier(RuntimeNames.VALUE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_GETTER, + false, + false, + ) + }) + return this + } + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { if (beforeChildren instanceof arkts.ScriptFunction) { return beforeChildren } const node = this.visitEachChild(beforeChildren) if (node instanceof arkts.ReturnStatement) { - return arkts.factory.updateReturnStatement(node, factory.createRecacheCall()) + return arkts.factory.updateReturnStatement(node, factory.createRecacheCall(this._args)) } return node } diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index 2c9dab10a..a15f05b32 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -32,6 +32,7 @@ export enum RuntimeNames { INTERNAL_VALUE_OK = "unchanged", PARAMETER = "__memo_parameter", SCOPE = "__memo_scope", + VALUE = "value", } function baseName(path: string): string { -- Gitee From 5e7f1ecc304dfbfe55ee88f0638ae22eb18ed23b Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 20 Feb 2025 17:02:35 +0300 Subject: [PATCH 30/31] fix --- .../memo-plugin/src/FunctionTransformer.ts | 2 +- arkoala-arkts/memo-plugin/src/MemoFactory.ts | 4 ++-- .../memo-plugin/src/ReturnTranformer.ts | 17 +---------------- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index 8b8cf2dbf..0491cb932 100644 --- a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -114,7 +114,7 @@ export class FunctionTransformer extends AbstractVisitor { arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( - this.returnTransformer.withParameters(node.scriptFunction.parameters).visitEachChild( + this.returnTransformer.visitEachChild( arkts.factory.updateScriptFunction( node.scriptFunction, updateFunctionBody( diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts index df313fb63..51d256735 100644 --- a/arkoala-arkts/memo-plugin/src/MemoFactory.ts +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -107,7 +107,7 @@ export class factory { } // Recache - static createRecacheCall(args: arkts.MemberExpression[]): arkts.CallExpression { + static createRecacheCall(arg?: arkts.AstNode): arkts.CallExpression { return arkts.factory.createCallExpression( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), @@ -117,7 +117,7 @@ export class factory { false ), undefined, - args, + arg ? [arg] : undefined, ) } } diff --git a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts index 25a3bfc1a..58566b2c6 100644 --- a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts +++ b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts @@ -19,28 +19,13 @@ import { AbstractVisitor } from "./AbstractVisitor" import { RuntimeNames } from "./utils" export class ReturnTransformer extends AbstractVisitor { - _args: arkts.MemberExpression[] = [] - - withParameters(parameters: arkts.ETSParameterExpression[]): ReturnTransformer { - this._args = parameters.map((param) => { - return arkts.factory.createMemberExpression( - factory.createMemoParameterIdentifier(param.identifier.name), - arkts.factory.createIdentifier(RuntimeNames.VALUE), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_GETTER, - false, - false, - ) - }) - return this - } - visitor(beforeChildren: arkts.AstNode): arkts.AstNode { if (beforeChildren instanceof arkts.ScriptFunction) { return beforeChildren } const node = this.visitEachChild(beforeChildren) if (node instanceof arkts.ReturnStatement) { - return arkts.factory.updateReturnStatement(node, factory.createRecacheCall(this._args)) + return arkts.factory.updateReturnStatement(node, factory.createRecacheCall(node.argument)) } return node } -- Gitee From b7f03340c6c013f229efe02e78092fcf754807b5 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Thu, 20 Feb 2025 17:17:32 +0300 Subject: [PATCH 31/31] better caching --- .../memo-plugin/src/FunctionTransformer.ts | 66 +++++++++++-------- arkoala-arkts/memo-plugin/src/MemoFactory.ts | 11 ++++ .../memo-plugin/src/ReturnTranformer.ts | 8 ++- 3 files changed, 55 insertions(+), 30 deletions(-) diff --git a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index 0491cb932..537869375 100644 --- a/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -33,9 +33,9 @@ function updateFunctionBody( parameters: arkts.ETSParameterExpression[], returnTypeAnnotation: arkts.AstNode | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral -): arkts.BlockStatement | undefined { +): [arkts.BlockStatement | undefined, arkts.ReturnStatement | undefined] { if (node === undefined) - return node + return [node, undefined] const scopeDeclaration = arkts.factory.createVariableDeclaration( 0, arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, @@ -61,6 +61,7 @@ function updateFunctionBody( ] ) const memoParameters = parameters.map((name, id) => { return factory.createMemoParameterDeclaration(id, name.identifier.name) }) + const syntheticReturnStatement = factory.createSyntheticReturnStatement() const unchangedCheck = arkts.factory.createIfStatement( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), @@ -69,29 +70,35 @@ function updateFunctionBody( false, false, ), - arkts.factory.createReturnStatement() + syntheticReturnStatement, ) if (node.statements.length && node.statements[node.statements.length - 1] instanceof arkts.ReturnStatement) { - return arkts.factory.updateBlock( - node, - [ - scopeDeclaration, - ...memoParameters, - unchangedCheck, - ...node.statements, - ] - ) + return [ + arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + ...memoParameters, + unchangedCheck, + ...node.statements, + ] + ), + syntheticReturnStatement, + ] } else { - return arkts.factory.updateBlock( - node, - [ - scopeDeclaration, - ...memoParameters, - unchangedCheck, - ...node.statements, - arkts.factory.createReturnStatement(), - ] - ) + return [ + arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + ...memoParameters, + unchangedCheck, + ...node.statements, + arkts.factory.createReturnStatement(), + ] + ), + syntheticReturnStatement, + ] } } @@ -109,20 +116,21 @@ export class FunctionTransformer extends AbstractVisitor { if (node instanceof arkts.MethodDefinition) { if (methodDefinitionHasMemoAnnotation) { // TODO: fix + const [body, syntheticReturnStatement] = updateFunctionBody( + node.scriptFunction.body, + node.scriptFunction.parameters, + node.scriptFunction.returnTypeAnnotation, + this.positionalIdTracker.id(node.name.name), + ) return arkts.factory.updateMethodDefinition( node, arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( - this.returnTransformer.visitEachChild( + this.returnTransformer.skip(syntheticReturnStatement).visitEachChild( arkts.factory.updateScriptFunction( node.scriptFunction, - updateFunctionBody( - node.scriptFunction.body, - node.scriptFunction.parameters, - node.scriptFunction.returnTypeAnnotation, - this.positionalIdTracker.id(node.name.name) - ), + body, node.scriptFunction.scriptFunctionFlags, node.scriptFunction.modifiers, false, diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts index 51d256735..986c7d2c2 100644 --- a/arkoala-arkts/memo-plugin/src/MemoFactory.ts +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -120,4 +120,15 @@ export class factory { arg ? [arg] : undefined, ) } + static createSyntheticReturnStatement(): arkts.ReturnStatement { + return arkts.factory.createReturnStatement( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, + false, + false, + ), + ) + } } diff --git a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts index 58566b2c6..02573e05f 100644 --- a/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts +++ b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts @@ -19,12 +19,18 @@ import { AbstractVisitor } from "./AbstractVisitor" import { RuntimeNames } from "./utils" export class ReturnTransformer extends AbstractVisitor { + _skip?: arkts.ReturnStatement + skip(syntheticReturnStatement?: arkts.ReturnStatement): ReturnTransformer { + this._skip = syntheticReturnStatement + return this + } + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { if (beforeChildren instanceof arkts.ScriptFunction) { return beforeChildren } const node = this.visitEachChild(beforeChildren) - if (node instanceof arkts.ReturnStatement) { + if (node instanceof arkts.ReturnStatement && !(node.peer == this._skip?.peer)) { return arkts.factory.updateReturnStatement(node, factory.createRecacheCall(node.argument)) } return node -- Gitee